Hello Helmut,

that strange behaviour happens in my cases every time, when in
the lookup-form any outputs occur, something like an info, an debugprint,
or something like that.

are there any changes at this form ??
or is it "standard" ?

bxe,
SebDra




-----Original Message-----
From: HEW (Helmut Wimmer) [mailto:[EMAIL PROTECTED]
Sent: Monday, December 20, 2004 1:08 PM
To: development-axapta@yahoogroups.com
Subject: [development-axapta] Lookup form closes immediately



Hi

1. The ItemId field has a "lookup" method that will open the FRM
InventItemIdLookupSimple. When the user clicks on the lookup button, the
form is opened and the user can select an item id.

public void lookup()
{
    Args       args;
    Object     formRun;
    FormRun    caller;
    ;

    args = new Args();
    args.name(formStr(InventItemIdLookupSimple));
    args.caller(element);
    formRun = classFactory.formRunClass(args);
    formRun.init();
    this.performFormLookup(formRun);
}

2. The salesunit field has a "modified" method that should simply open the
lookup form again for the item id. When the user changes the unit, the
lookup form is opened and then closed immediately.

public boolean modified()
{
    boolean ret;

    ret = super();
    SalesLine_ItemId.setFocus();
    SalesLine_ItemId.lookup();

    return ret;
}

What should happen? -> Of course the lookup form should stay available so
the user can select something.

There is only those 2 new methods compared to a standard Axapta.

Please Note: depending on which exe version you are running, the above error
occurs or not:

Axapta 2.5 SP1: The error does NOT occur, the lookup form stays open.
Axapta 2.5 SP4: The error occurs, lookup form closes immediately.
Axapta 3.0 SP3: The error occurs, lookup form closes immediately.

My question is:
how can I open the lookup form of a specific field on a form when the lookup
is called from a different field's modified method ???

Best regards
Helmut





------------------------ Yahoo! Groups Sponsor --------------------~--> Make
a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->


Yahoo! Groups Links











Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to