Hi, I am having a similar issue: I'm just trying to set the value of the Skillbuilder Super LOV using a Dynamic Action. There is documentation that says the LOV version 2.0.1 supports this, but I am unable to get it to work: http://www.danielmcghan.us/2012/03/super-lov-release-201.html
I have tried every combination of "Enterable/Not Eneterable", "Restricted/Not Restrictted", etc., but it doesn't work. Any help would be appreciated.
I'm using Apex 4.2 and SuperLOV 2.0.2
It does work. Don't forget that the superlov is built as a fieldset which contains a hidden item ( = return value) and the text item ( = display value). Calling either $s or apex.item.setValue with one value will set the return value of the item.
$s(pNd, pValue, pDisplayValue, pSuppressChangeEvent)
You can see it working as expected by inspecting the html. When you want to set the display value as well as the return value, then simply provide a third parameter.
$s("P18_SLOV", "JAMES", "7900")
Now, also be aware that the superlov has some interesting methods available, as seen in the documentation:
The getValuesByReturn and setValuesByReturn methods can be used to programmatically fetch return values and set the item using the return values. getValuesByReturn will return a JSON object with the results from the fetch. setValuesByReturn goes a step further using the return values to set the display and return values for the item. Example(s):
$('#P1_ITEM_NAME').apex_super_lov('getValuesByReturn', '101'); $('#P1_ITEM_NAME').apex_super_lov('setValuesByReturn', '999');
apex.item( "P70_X" ).setValue( "1", "Hello", true );
Thank you so much!