Home > X++ stuffs > Calling a Form using Args Class

Calling a Form using Args Class

Has anyone tried calling a Form through an Args class?

The Args caller method return the Object value

 

static void Elearn_Args(Args _args)

{

     FormRun   formRun;

     ;

     _args     = new Args(formstr(CustTable));

     formRun = ClassFactory::formRunClassOnClient(_args);

 

     if(formRun)

     {

             formRun.init();

             formRun.run();

             sleep(2000);  // Allows the form to display for this many seconds.

     }

     else

             throw error(‘Form not found in AOT.’);}

Advertisements
Categories: X++ stuffs
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: