Hi
I have below code . I want Integer value
IF Customer.GETFILTER("Customer Posting Group") <>'' THEN
CPG := Customer.GETFILTER("Customer Posting Group")
ELSE
CPG := '';
Thanks
*This post is locked for comments
You can get the real value of the posting groups but not in integers obviously.
Hi
It has Code DataType. In a report when User selects filter Customer Posting Group from Customer table then list of Posting Groups is displayed. Can we get its Index value or not.
Thanks
It's not a Option Type, so you cant convert it into an integer.
P.S - Option returns integer only.
IF Customer.GETFILTER("Customer Posting Group") <>'' THEN BEGIN CustomerPostingGroup.GET(Customer.GETFILTER("Customer Posting Group")); CPG := CustomerPostingGroup.<YourOptionFieldWithIndex>; END ELSE CPG := 0;
where CustomerPostingGroup is record 92. I don't have any option fields there - so it should be a customization. Option converts to integer directly without EVALUATE.
Hi
In Customer Posting Group it shows like Domestic,Export. I want Index value
Thanks
How come you can take this DEB-DE into an Integer??
I thought that names of Customer Posting Groups are digits-only. So what do you want to transform into integer?
Hi
I am getting below erroe
The Value 'DEB-DE' cannot be evaluated to type Integer
Thanks
IF Customer.GETFILTER("Customer Posting Group") <>'' THEN
EVALUATE(CPG, Customer.GETFILTER("Customer Posting Group"))
ELSE
CPG := 0;
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156