Hi Isabelle,
You are missing a trailing else at the end of the statement. If your SaleOrg isn’t in SW01, SW16, or SW17, what should be returned? That will need to be what the else returns.
Hope this helps.
Hi Isabelle,
I think you have missed else statement at the end.(meaning you have not completed if-else statement syntax correctly)
if $NewSalesAreas_2/SalesOrg = 'SW01' then 'C' else if $NewSalesAreas_2/SalesOrg = 'SW16' then 'GG' else if $NewSalesAreas_2 = 'SW17' then 'GG' else ‘some string’
Add else statement at the end. It will work. Thanks
Regards
hi isabelle try this
if $NewSalesAreas_2/SalesOrg = 'SW01' then 'C' else if $NewSalesAreas_2/SalesOrg = 'SW16' then 'GG' else if $NewSalesAreas_2 = 'SW17' then 'GG' else ‘some string’
Hi Isabelle,
In the current solution you have to change the mendix solution every time the salesorganisation codes change or are added. My suggestion is to add an entity SalesOrg with the string needed. In your edit screen you can add a a reference selector to the salesorg entity.
Regards,
Andre
Was an answer accepted on this. It does seem strange that an if must have a corresponding else.