display method

hii all,

I have a query,I want to display field value of table2 in FormA by using display method, FormA datasource is Table1. I wrote display method in table1.but I cant see display field in form. when I wrote display menthod in form control,I can see the field but value is not displaying, any any one suggest.

my code is written in Table2 methods

display AmountMST displayfield1()

{

table1 tab1;

// AmountMST mst;

select field1 from table1 where table1.RecId==this.RecId;

return table1.field1;

You said that you wanted to display fields from table2, but it’s not what display method does - it displays field1 from table1.

(Question moved to the Developer forum.)

Make sure you set the data source property on the form control. And make sure you use the correct relation in there where clause of your select.