For your display method you need to use something like the following:-
Display ItemId _apmItemId()
{
return itemID;
}
You need to define the data type or EDT you are returning, in my example “ItemId”, then name your method _apmItemId.
You then return your variable which you have passed the data into via the Fetch() method “return itemId”.
This method goes directly into the report section you are returning the data.
You then simply drag and drop your method into the report section which creates a data field.
Probably, I should have been more specific. I don’t have a problem to display my item(ItemId).
My scope is not to display this item, I need hold Itemid value in var. I have a method(itemId() ) under CustPackingSlipTrans table, which returns an ItemId.
I have created a new ItemId var in ClassDeclaration(under SalesPackingSlip method) and I need to assign a value form itemId() method;
Be more specific: in PageFooter section i have a string control which holds a message(txt).
This message needs to be hide/invisible when condition is true in ItemID. We have items(InventTable)masked as: INT-XXXXX && XXXXX
Let’s say:
str name;
str res;
name = [ClassDeclaration].var(which holds itemid value);
res = substr(name,1,3)
and condiotional block, something like this:
if(res ==‘INT’)
{
return ‘display message method’;
}
else
{
return ‘’;
}
I have suggested to add a new flag/field in InventTable and check the item. It could be a better approch