This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Here is the code I'm trying to execute without success. On my log. all I'm getting is TREEITEM which makes no sense.
What changes do I need to make to set the visibility of the #PRIM_MD.ListIcon
For Each(#Item) In(#List.Items)
#PhoneIcon.CurrentItem.Visible := (#Sys_Web.Device = Mobile)
EndFor
This works because:
a. the #Name.CurrentItem points at the named item in the list for the Current Item (in this case also represented by #Item).
b. Using an expression to set the value.
* go through the list and make Phone Icon Visible if a mobile device.
For Each(#Item) In(#List.Items)
Get_Entry Number(#Item.Entry) From_List(#List)
#PhoneIcon.CurrentItem.Visible := (#Sys_Web.Device = Mobile)
Endfor