I have a requirement to open a popup window after a user has performed a drag and drop of an item on the new Apex 5 calendar. The popup is used to enter some notes about why that specific item was moved, so I need to capture the APEX$PK_VALUE. I tried creating a dynamic action using the Before and After refresh events, but these didn't work too well and I was struggling to get the proper ID captured. I also tried creating a JS function that opens the popup for the given ID and tried calling that from the drag and drop PL/SQL like this:
htp.p('window["editNote"]('||:APEX$PK_VALUE||');');
This results in an error: unexpected token "w". I also tried wrapping that in JSON since most ajax calls are expecting that as the output format but that too failed.
Anyone got an ideas on how to go about this?
Regards, Tony