Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

Lookup using temporary table

$
0
0

I`m trying to create a custom lookup by building a temporary table and then show the result.

 

I able to do it with a normal table , but not a temp table.

 

Is it possible or not?

Thanks

 

 

 

    ttsbegin;

    BER_tmpDisplayComboLookup.itemid = 'aa bas';

    BER_tmpDisplayComboLookup.qtyDestination = 1234;

    BER_tmpDisplayComboLookup.qtySource = 1111;

    BER_tmpDisplayComboLookup.insert();

    ttscommit;

 

    qbdsBER_tmpDisplayComboLookup =  query.addDataSource(tableNum(BER_tmpDisplayComboLookup));

    sysTableLookup  = SysMultiTableLookup::newParameters(this, query);

    sysTableLookup.addLookupfield(fieldnum(BER_tmpDisplayComboLookup, itemid),1,true);

    sysTableLookup.performFormLookup();


Viewing all articles
Browse latest Browse all 9880

Latest Images

Trending Articles



Latest Images