Hi,
My version of apex is 4.2.4.00.08
Problem:
I want to set select list value using dynamic action (custom event with doom scope - document).
Only types of items that i can set is type 'Read Only'. When item is of type 'Select List' or 'Text Field' or 'Numer Field' value is not set. Additionally when I change type of item to 'Read Only' it displays value with no problem.
I got this button in html region A1
<a class="uButtonSmall uButtonAlt" style="text-decoration: none;" href="javascript:void(0);" onClick="javascript:$.event.trigger('EdRowEvent',[['testtext']]);"><span>Click</span></a>'
there is also P7_2312 item in A1 region.
Now in dynamic action using:
custom event: EdRowEvent
selection type: DOM Object
DOM Object: document
true action (10)
Action: 'SET VALUE'
Set Type: JavaScript Expression
$s("P7_2312",this.data[0]);
P7_2312 is added to affected elements
true action (20)
Action: 'Refresh'
Refresh region A1 (the one with button)
By pushing button Click i want to dynamically set P7_2312.
When item is defined as 'Text Field', 'Select List' (value 'testtext' is populated on select list) it is not set, but when it is set to 'Read Only' value is shown.
According to documentation $s recognizes type of updated item JavaScript APIs.
Can you help me how to set values of 'Text Field' and 'Select List' using javascript api in apex ?
Thanks