Page 1 of 1

Basic table field

Posted: Tue Jun 03, 2014 3:45 pm
by hsh_636
Hello, I dont know much about basic table fields or how basic they are, Im already using it to store data from mysql database and its working fine, but I dont know how to get the contents of the cells or a specific cell in the table and I searched for some kind of documentation about this type of field but the information I found wasnt useful.

Re: Basic table field

Posted: Tue Jun 03, 2014 4:34 pm
by Klaus
Hi hsh_636,

well, a TABLE field is "just" a field with TABs in it! :D
...
## To get "cell" B2
set itemdel to TAB
put item 2 of line 2 of fld "your table field here" into tCellB2
...


Best

Klaus

Re: Basic table field

Posted: Thu Jun 19, 2014 1:44 pm
by sritcp
So, what message does the field object receive when you click on item 2 of line 2 (that is, the cell[2,2] is highlighted, with the insertion point appearing at the beginning) ?

The code

Code: Select all

on mouseUp
   put the selectedText of me into msg
end mouseUp
returns empty.

Thanks,
Sri.

Re: Basic table field

Posted: Thu Jun 19, 2014 2:31 pm
by bn
Hi Sri,

the table field is very basic and on top the working is hidden from the user in a frontscript.

for a discussion see:
http://runtime-revolution.278305.n4.nab ... 76192.html

there is also a script how to get at the cell that received a click.

Kind regards
Bernd

Re: Basic table field

Posted: Fri Jun 20, 2014 9:18 pm
by sritcp
Thanks for the link, Bernd!

Regards,
Sri.