Skip to Content

Listbox with default value and single entry does not register event unless value changes?

Hello... we have a text field that users click on to navigate... now they want the field to support multiple values, which is easily handled with a listbox, PAI, etc.

Here's the tricky part... because 90% of the time there will only be one value to select from, and because we want the users to be able to see the value without having to click on the listbox, we'd like to assign the default value to the listbox display (the value that shows on the listbox before they select anything). Oddly, this works fine except when there is only one value in the listbox (the same value as the display) -- looks like unless the listbox display value changes on select, SAP doesn't consider this a PAI event and just ignores it (we can kind of get around that by putting '_' at the end of the default display value, so SAP does trigger the PAI, but that's a bit too kludgy imho). We need the PAI event to fire on select even when the value doesn't change because it triggers a SUBMIT.

I searched around in SAP forums but didn't come up with any way to do this. I suppose the users can live with a standard listbox and no default value, but it sure would be nice to show them a default value and have it work when there's one value in the list... is there no way to do this? Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers