简体   繁体   中英

how concatenate 2 values lookup.addLookupfield Dynamics ax

I have no idea how to concatenate 2 values on the same field , I mean something like this:

lookup.addLookupfield(fieldNum(Table, ProductName)," " ,fieldNum(Table,ProductPrice));

This is my code for now:

lookup.addLookupfield(fieldNum(BBP_TableProducts, ProductName));

If you have add 2 field in lookup you have to do it in 2 separate lines .

For example:

lookup.addLookupfield(fieldNum(Table, ProductName));
lookup.addLookupfield(fieldNum(Table, ProductPrice));

This is the definition of addLookupfield function

public void addLookupfield(FieldId _fieldId, [boolean _returnItem])

You can't concatenate values in the same addLookupfield function.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM