Tuesday 8 August 2017

how to get the value from the map

say pass is map and you have inserted some value in the map and then you want to locate a key value by this name


use :

string    UOM;

 UOM =  pass.lookup(#CurrentUOM);

difference between lookup and lookupstr is that if no value found then lookup will throw error message where as lookupstr won't.

you can also use like that

pass.lookupStr(#QtyReceived);






No comments:

Post a Comment

intercompany PO multiple product receipt by x++

public void processStampICPO(PackingSlipId _deliveryNote,                             Transdate _deliverydate,                             ...