| View previous topic :: View next topic |
| Author |
Message |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Mon Dec 08, 2003 6:48 pm Post subject: Getting @tem(Table1) information.... |
|
|
Hi Guys, Just started to use the Table element for the first time.
Tried useing like a List element to get information from where I click but does not seem to react at all. N0 errors just acts like no event generated.
Am I going about this the wrong way ?
P.S.
I only want the data from the highlights row and column so if I have a table with the following:
RefID Name Lname Tele email
0001 Andy Fletcher
0002 Any One
I Click on 0001 and I want only 0001 to be returned.
Any help much appreciated
Regards
Andy Fletcher |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Mon Dec 08, 2003 7:15 pm Post subject: |
|
|
Simply Parse the result:
| Code: |
Option Fieldsep,@tab()
PARSE "%%RefID;%%Name;%%Lname;%%Tele;%%email",@item(table)
info %%RefID |
Bye, Fabian |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Mon Dec 08, 2003 8:06 pm Post subject: |
|
|
Many Thanks Fabian,
This would be okay if I could get a Click event to occur.
I have named my table eResult and created an label for the event of
:eResultCLICK
But nothing happens when I click on it. I have set the dialog with a CLICK
parameter also. Anything wrong hear ?
Regards
Andy Fletcher
| X-Tools wrote: | Simply Parse the result:
| Code: |
Option Fieldsep,@tab()
PARSE "%%RefID;%%Name;%%Lname;%%Tele;%%email",@item(table)
info %%RefID |
Bye, Fabian |
|
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Mon Dec 08, 2003 8:40 pm Post subject: |
|
|
I seem to remember having some problem when I was messing around with Tables - I had to name my tables Table1, Table2, etc. That solved it, or at least I thought at the time. Don't know if it would work for you. (It could be that I accidentally fixed it some other way, and just thought the renaming fixed it - I don't know.) _________________ Joe Floyd |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Dec 09, 2003 1:34 am Post subject: |
|
|
Be sure that you leave an open space between your last column setup
there and the CLICK style. The hint goes in the blank spot if you want
a popup hint. I can't tell you how many times I've forgotten about the
hint spot there and had click there, and then pissed and groaned about
the click not working.
| Code: | | DIALOG ADD,TABLE,TABLE1,24,14,600,268,ID[70]|Class[110],,CLICK,COLUMNSORT |
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Dec 09, 2003 12:42 pm Post subject: |
|
|
i was going to suggest the very same thing garrett
serge _________________
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Tue Dec 09, 2003 2:12 pm Post subject: |
|
|
Many thanks for your comments i'll try renaming them later today and let you know for your own "Known fix" list.
Regards
Andy Fletcher
| jwfv wrote: | | I seem to remember having some problem when I was messing around with Tables - I had to name my tables Table1, Table2, etc. That solved it, or at least I thought at the time. Don't know if it would work for you. (It could be that I accidentally fixed it some other way, and just thought the renaming fixed it - I don't know.) |
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Tue Dec 09, 2003 2:15 pm Post subject: |
|
|
Ahhhhh !
That makes sence, Many thanks Garrett.
Regards
Andy Fletcher
| Garrett wrote: | Be sure that you leave an open space between your last column setup
there and the CLICK style. The hint goes in the blank spot if you want
a popup hint. I can't tell you how many times I've forgotten about the
hint spot there and had click there, and then pissed and groaned about
the click not working.
| Code: | | DIALOG ADD,TABLE,TABLE1,24,14,600,268,ID[70]|Class[110],,CLICK,COLUMNSORT |
-Garrett |
|
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Tue Dec 09, 2003 5:24 pm Post subject: |
|
|
I tried another test - I don't think your problem has anything to do with the names of the tables. I tried tables named different things and they worked fine.
When I inserted a table element with the dialog designer, and chose the CLICK style, it inserted it in the section reserved for HINT. (Like the example from Garrett above.)
Has this bug been reported so it can be fixed in the next version? _________________ Joe Floyd |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Mon Dec 15, 2003 10:35 pm Post subject: |
|
|
Hi Joe,
I assume as Garrett knew about this that he would probably have reported the bug.
All okay with me now I know about the bug
regards and many thanks for your help.
Andy Fletcher.
| jwfv wrote: | I tried another test - I don't think your problem has anything to do with the names of the tables. I tried tables named different things and they worked fine.
When I inserted a table element with the dialog designer, and chose the CLICK style, it inserted it in the section reserved for HINT. (Like the example from Garrett above.)
Has this bug been reported so it can be fixed in the next version? |
|
|
| Back to top |
|
 |
|