I have a requirement to make some data retrieval using barcode EAN128.
In form there must be 2 controls; the first is itemId and 2nd is nameAlias, both from inventTable. My issue is that when user will scan the itemId it must retrieve the nameAlias too in the second control. So for that I made two display methods in my table which I'm using as datasource.
I dragged those methods into my form's design.
This is the first control's code:
public display BarcodeString myB()
{
Barcode barcode;
InventTable inv;
;
barcode = Barcode::construct(BarcodeType::EAN128);
barcode.string(true, inv.ItemId);
barcode.encode();
return barcode.barcodeStr();
}
This is code for the second control, which must retrieve the nameAlias
Public display ItemNameAlias qty()
{
return InventTable::find(this.myB()).NameAlias;
}
Thanks in advance for the help.