Hi,
  pass/get the datasource(table_DS) to the class and call executeQuery().
  illustration
  Say u r doing the following in the main() of a class -
   
  static void main(Args _args)
  {
  ~.
  .some code....
  ~.
  ~.
  if(_args && _args.caller)
  {
    yourTableBuffer = _args.record();
    if(yourTableBuffer.isFormDatasource()
    {
    yourTable_ds=yourTableBuffer.datasource();
   }
  yourTable_ds.executeQuery()
  ~
  ~
   
  }
   
  Sailendran Rajan
   
  

suneel babu <[EMAIL PROTECTED]> wrote:
          
Thanks for ur solution.

I am also try this way. But it works on the form controls only. when calling a 
menuitem(Class) from a form through menu buttons. when i return back to that 
form, is is not refreshed. how to call executeQuery() of a datasource from 
class. 


Thanks in Advance. 


To: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Tue, 22 May 2007 01:26:06 
-0700Subject: Re: [development-axapta] Form Refresh problem

call executequery() from code. Override the same if required.Sailendransuneel 
babu <[EMAIL PROTECTED]> wrote:HI., I have problem with form refresh in axapta. 
when i change an record info in the data source of the current form then it 
doesn't refreshed. once i close the form and then open then its refreshed. plz 
tell any solution. for this. Thank 
u.,__________________________________________________________Want to look 
great? Get expert opinion on beauty and skin 
care.http://content.msn.co.in/Lifestyle/AskExpert/Default01.htm[Non-text 
portions of this message have been 
removed]---------------------------------Need a vacation? Get great deals to 
amazing places on Yahoo! Travel. [Non-text portions of this message have been 
removed] 

__________________________________________________________
Catch the cricket action with MSN!
http://content.msn.co.in/Sports/Cricket/Default.aspx

[Non-text portions of this message have been removed]



         

       
---------------------------------
Got a little couch potato? 
Check out fun summer activities for kids.

[Non-text portions of this message have been removed]

Reply via email to