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
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to