What is in a Popup
It can be tricky to manage values from a popup. As they do not contain the value you normally want. This is a simple demonstration of a popup. Where the randomally generated sid of the selected item is obtained and used to display the label and value of the selected item in the list.
In the popup StatePopup
I create a custom variable "itemvalue" and use the getGroupedItem() to get the SID of the item this will be something like Page1.auto_31980 as it is generated at runtime. I use the get() passing in this SID with a string of .value appended. So the compute will resovle to, for example, get(Page1.auto_31980.value)
get(getGroupedItem('statePopup', 'value', statePopup.value->value, 'Page1', 'page', 'form')+.'.value')"
Then with a set() is used to place the value into a instance for display in the form.
set('instance("holder")/showvalue', variable:itemvalue ,'','xforms')
Owner: EIM - Australia , www.eim-worldwide.com
Title: Whats In a Popup Sample form to demonstrate xforms popups
Author: Isabel Ralph
Lotus Forms version (7.5) ver 3.0
Date: Oct 2008