I have been trying out Extension Library and I must say I am really impressed with it. One of my favorite control there is Name Picker. The only problem with that is the input control whose value is set by name picker needs to be in edit mode and it shows the selected names in abbreviated format. In one of our application we wanted to show common names and the input control to be non-editable so that user could not play around with values.
So I created a simple work around for this one. First, create a hidden input which will store the selected names in abbreviated format and set this in for property of name picker. Second, create a computed field which show common names from hidden input you just created. Now for the hidden input create an onchange event which will partial refresh the computed field. And you are done!
Below is the sample XPage code of the workaround.
So I created a simple work around for this one. First, create a hidden input which will store the selected names in abbreviated format and set this in for property of name picker. Second, create a computed field which show common names from hidden input you just created. Now for the hidden input create an onchange event which will partial refresh the computed field. And you are done!
Below is the sample XPage code of the workaround.
Thanks!
ReplyDelete