I have a non-auto generated section in which I have a dropdown referred by a <select> element. Onchange of a value in this dropdown, I want to execute a JS function openUrlInSpace(). In this JS function, in the first parameter, I have to pass "pyActivity=Rule-Obj-ListView.ShowView&ViewClass=Assign-Worklist&ViewPurpose=WorkList&UserID=X&glimpseMode=Scripts".
In the place of 'X' highlighted, I have to pass the value selected in the dropdown. How to achieve this? Thanks in advance.
I think first you have to send the selected value to server and make sure it gets saved and then use the save data in the query formation. You may need to use JQuery. I am not sure about the correct syntax for that but i think it is something like $(id).val() .
Alternatively ( and preferably ) you can easily achieve it via out of the box features in PEGA. If you switch to auto generated section then you can select PostValue on change option followed by OpenURLByWindow where you can use the already stored data.