[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

Urgent - How to get FormId

Adam Tarkowski

1/5/2006 10:44:00 PM

In report i have a statement which depends on the name of callerform

Can someone give me some like this:
classIdGet(element.args().caller()) == classNum(SalesFormLetter_Quotation)
but with form not class


5 Answers

Adam Tarkowski

1/6/2006 12:22:00 AM

0

or maybe something like ABC::formHasAMethod(form, method)
It will be also satisfying


Nitin

1/6/2006 5:38:00 AM

0

Hi Adam,

You can get the caller form name using element.args().caller().name().

Regards
Nitin Jain

"Adam Tarkowski" wrote:

> or maybe something like ABC::formHasAMethod(form, method)
> It will be also satisfying
>
>
>

mortenm

1/6/2006 7:15:00 AM

0

Hi Adam,

You could use global::formHasMethod(element.args().caller(), "methodName")

Regards,
Morten Mile

"Adam Tarkowski" wrote:

> or maybe something like ABC::formHasAMethod(form, method)
> It will be also satisfying
>
>
>

Luegisdorf

1/6/2006 7:31:00 AM

0

Hi Adam

You could use this sample:


if (element.args() && element.args().caller() &&
classIdGet(element.args().caller()) == classnum(SysSetupFormRun) &&
element.args.caller().name() == formstr(SalesFormLetter_Quotation))
{
// cames definitly from SalesFormLetter_Quotation
}
else
{
// cames from elsewhere
}


Best regards
Patrick

"Adam Tarkowski" wrote:

> In report i have a statement which depends on the name of callerform
>
> Can someone give me some like this:
> classIdGet(element.args().caller()) == classNum(SalesFormLetter_Quotation)
> but with form not class
>
>
>

Adam Tarkowski

1/6/2006 8:26:00 AM

0

Thank you all very much for help
This is what i need