I was working with an advanced example in the help file and there seems to be a bug that doesn't allow it to work correctly, or there is not enough actions to make the example work correctly.
The example is Adding Items to a List box (with data) found in Command Reference -> Actions -> Examples -> Advanced.
The problem is as follows. When you use the remove function there is an actions check to see if an item has been selected. %selecedcount%=ListBoxObject(LB - PhoneBook].GetProperty("SelectedCount"). This works on all items except for the item at index 0. Even with the item at index 0 selected the selected count returns as 0. All other items return at 1.
The other thing that doesn't work with this action is when you select an item in the list, the name populated the edit category however, the phone number does not populate the phone field I think because of the Mask. Is there a way to make it appear, using Page.ShowObject and Page.HideObject? It doesn't seem that the example is complete in what it is supposed to do.
Thanks.
The example is Adding Items to a List box (with data) found in Command Reference -> Actions -> Examples -> Advanced.
The problem is as follows. When you use the remove function there is an actions check to see if an item has been selected. %selecedcount%=ListBoxObject(LB - PhoneBook].GetProperty("SelectedCount"). This works on all items except for the item at index 0. Even with the item at index 0 selected the selected count returns as 0. All other items return at 1.
The other thing that doesn't work with this action is when you select an item in the list, the name populated the edit category however, the phone number does not populate the phone field I think because of the Mask. Is there a way to make it appear, using Page.ShowObject and Page.HideObject? It doesn't seem that the example is complete in what it is supposed to do.
Thanks.
Comment