hareendra:
Then I need to get the person_name of the selected record of the form.
I tried doing:
application.output(forms.frm_form1.foundset.person_name)
I get a null value.
Can someone help me with this?
Are your sure the foundset on that form is correct and you’re on the correct selected record?
Because this:
forms.frm_form1.foundset.person_name
is pointing directly to the column ‘person_name’ in the foundset, which is taken direcly from the connected table (I assume you did connect a table to ‘frm_form1’?!)
That has absolutely nothing to do with the field/fieldname you have put on your form.
Sorry for the confusion.
No I did not map my form to a table. I created a form without a table. then using the solution model, I created a data source. I will give the entire code:
var _sql = "SELECT person_name FROM table1;
var _dataset = databaseManager.getDataSetByQuery(globals._active_server, _sql, null, -1);