Title: Nachricht

Put this code in the init method of your form and call it from different places and see what you get, it should help you get moving with this.

 

Note: If the form object is being called from a class like salesEdit lines, then this will always point to a class, and you actually have to attack the class to find where it is being called from.

 

-Preston

 

//-----code

if(! element.args().caller())

        info('No Caller');

else

        info(element.args().caller().toString());

 

//----Code

 

 

-----Original Message-----
From: Groß [mailto:[EMAIL PROTECTED]
Sent:
Thursday, April 08, 2004 7:28 AM
To: [EMAIL PROTECTED]
Subject: AW: [development-axapta] The never ending "go to maintable" thing...

 

hi sonny,

 

thank's for replay, good idea - but:

the mentioned form (in my case: smmQuotationTable) will be called from other places in the application by the same menuitem. so I can't distinguish if the form was called by the "go to maintable" function or not....

 

anybody else a hint...?

 

regards

wolfgang

-----Ursprüngliche Nachricht-----
Von: Sonny Wibawa Adi [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 8. April 2004 07:34
An: [EMAIL PROTECTED]
Betreff: Re: [development-axapta] The never ending "go to maintable" thing...

Hi wolfgang,

 

 

For default, axapta will call a menu item that having the same name with the table name. For example, you can check the menutemname caller using args object.

 

void init()

{

    if (element.args.menuItemName() != null && element.args.menuItemName() ==  menustr(InventTable))

    {

        // here is your code..

    }

}

PS: you may want to check too that the menuitemtype is a menu item display.

 

 

Regards,

 

Sonny Wibawa Adi



wohegro <[EMAIL PROTECTED]> wrote:

hi there,

does anybody know if it's possible to indicate in an opened form, if
the form was called by an "go to maintable" jump ?

thank's in advance
regards to all
wolfgang


Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today



Yahoo! Groups Links

Reply via email to