[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

microsoft.public.axapta.programming

RE: 4520.2 Current Form

saac

2/13/2006 12:56:00 PM


Hello Bruzzel

Very usefull info, thaks

Do you know how to activate the form you find in your code, if it is already
open in the background ?

"bruzzel" wrote:

> The current (not all) open form can be obtained using the following static method
>
> static FormRun GetActiveFormRun()
> {
> ObjectIdent oi;
> Object o;
> FormRun ret;
> ;
> ret = NULL;
> oi = Infolog.parmLastActivatedForm();
> if (oi) {
> o = oi.object();
> if (o) {
> if (SysDictClass::isEqualOrSuperclass(classidget(o), classnum(FormRun))) {
> ret = o;
> }
> }
> }
> return ret;
> }
>
>
> For getting information about ALL open forms I think you'll have to modify the Info class (method) FormNotify for that which
>
> 1) should add the ObjectIdent of the form during activation to a new array (of objectidents) - if it isn't already entered in that array
> 2) remove the ObjectIdent of that form from the array during closing
>
> regards
>
> michael
>
> technet.navision.com Posting date: Friday, August 02, 2002
>
> technet.navision.com Posting path: Navision Axapta/Technology (Ax)/MorphX