Use of Isformdatasource?

Hai friend…

  1. I need the help could you please tell me the use of Isformdatasource method of table with any example?

  2. And tell me how i get the modified values in the grid in form level?

eg:

i have the table with a datasource and grid when i modify the value in the grid i need to print the modified value in info method but i should not use modified field method in table level?

Please suggest me…[:S]

  1. isFormDataSource() says whether the buffer originates from a form data source. You can get the data source by dataSource() method and call it’s refresh() method, for example.

  2. Use modified() method on form data source field (which will be used for all controls bound to that field) or on a specific form control.

thanks for ur reply martin.

I have used this code in update

public void update()
{
;
if(this.isFormDataSource())
{
info(“this coming from form datasource”);
}
else
{
info(“this NOT coming from form datasource”);
}
super();
}

when i updating from table browser lever it printing

This coming from form datasource

and when i update the table from form grid level again it printing the same

This coming from form datasource

is this right that i understand the concept of isformdatasource?

What you didn’t realize is that table browser is a form too!

yes martin i got it

tell me when it set false.

from where i need to call that method to set as false

Absolutely anywhere, just don’t use a buffer that was fetched by form datasource. If you get it from a select statement, for example, it’s obviously not a form datasource.

Thank you very much martin i tried that update method in job its works martin thank u thank you very much.

Keep in touch martin

hai martin yesterday i forgot to ask about that second question what i mentioned in my post

  1. And tell me how i get the modified values in the grid in form level?

eg: i have the table with a datasource and grid when i modify the value in the grid i need to print the modified value in info method but i should not use modified field method in table level?

Use modified method at form data source level