Welcome! Log In Create A New Profile

Advanced

return selected table row field in a modal

Posted by Joel 
Joel
return selected table row field in a modal
October 27, 2008 07:47PM
Hi -

I'm having trouble understanding from the help files how to return the value of a selected row in a table. I'm using a radio button (not Ajax). I want to return the "GroupID" field value of the selected row. can't seem to figure out the syntax for doing this. Also, does the "GroupID" have to be a column in the table or can I grab it from the query that is supplying the table?

Thanks -
Fabrice Harari
Re: return selected table row field in a modal
October 27, 2008 09:21PM
Hi Joel...

In server code:

TableName.ColName[Tableselect(tablename)] will give you the value of the desired column

This will work whether the table is memory (programmed) or file/query linked...

If the table is linked to a file, then FileName.LinkedFieldName will give you the desired value (no index here, as the current line of the table matches the current file buffer)

Same thing should be true for the query case...

Best regards

Fabrice Harari
WinDev, WebDev, WinDev Mobile consulting
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: