Page 1 of 1

Recover the value of a field

Posted: Tue Sep 11, 2012 2:39 pm
by kaw
I want to retrieve the value of a field of my screen to put in my url: http://ipadress?p='fieldvalue'.
What should I do?

Re: Recover the value of a field

Posted: Tue Sep 11, 2012 2:43 pm
by Alex
The get() API should do the trick. See here:

http://www.profoundlogic.com/docs/displ ... %28+id+%29

Code: Select all

var url = "http://ipaddress?p=" + get("MyFieldId");

Re: Recover the value of a field

Posted: Wed Sep 12, 2012 8:44 am
by FoxBill
I have a similar question. I can get a value if it is an input or display with a set field location.
My problem is how do I get value of field in a grid when I click on the row.
I know how to determine the row number but I have a problem when I try to get a value from a specific colum and row in the grid. So my Question is how do i determine the Id of that location?

Re: Recover the value of a field

Posted: Wed Sep 12, 2012 10:33 am
by Alex
You will need to use the getCellValue() method, described here:

http://www.profoundlogic.com/docs/displ ... 2C+col+%29

Re: Recover the value of a field

Posted: Thu Sep 20, 2012 10:36 am
by FoxBill
This works fine when the number of rows is small. I am linking my grid to a database file and and I have over 100 records in the file. To be able to get cell value, the grid on the screen has to show all the records. If I have fewer rows than records, when I scrow down and click on a record it sends me a null value. I have two field values I am trying to retrieve when I click on a row so a drop down box does not work. Is there a way to get a value with out making the number of rows in the grid larger than the available records?

Re: Recover the value of a field

Posted: Thu Sep 27, 2012 12:41 pm
by Alex
In our next update, we will be publishing an update to the .getCellValue() API that will resolve this issue.