Posted: 12 Nov 2015 23:49 EST Last activity: 18 Dec 2015 0:20 EST
On Click event actions not working via HTML rule.
Can anyone please suggest me which are the OOTB scripts to include in HTML rule for making Onclick actions work ?
Issue: - On Click event actions not working via HTML rule. [Note: I cannot use Harness since there seems to be a conflict between OOTB PRPC JS ( pzpega_ui_backbone) and external api Js ( ESRI arcgis/ dojo) which is making map not to load]
PRPC Version - 7.1.7
Harness -> Section - > Button configured in a section has Run Activity as On click action.
Activity has Show-HTML step passing HTML rule as parameter.
In the HTML rule, I have included section which has a Link control with an on click event and action configured. When I click on that link, nothing happens.
Are you attempting to do something like the following:
Have a link with and onclick event calling a run script action and you are passing a function name defined on an included HTML rule. I don't see any onclick defined within the HTML you included so assuming you are doing on the control it's self.
Please include a screen shot of the link onclick configuration and the html block you are attempting to call.
Are you trying to implement your own on-click, or are you trying to use the ootb on-click ? I suggest you start with the ootb one. For instance, in designer studio, use a "link" object and see if that works for you. You shouldn't need to add any js-includes yourself to make this work. /Eric
Posted: 5 years ago
Updated: 5 years ago
Posted: 20 Nov 2015 8:20 EST Updated: 9 Dec 2015 21:14 EST
I think I understand your setup now, you are embedding a section in your HTML with a button coupled to an onclick event and notice actions. Have you attempted to trace the click to see what is seen? Also, when you click on F12 debugger and select the link in the form coupled to the link on the page do you see any onclick events in the code?
I have a similar scenario, we have a group of sub-sections on a single main-section , now user need the ability to see the data which populates on main-section in HTML format by opening it on other window.
After going through your approach, i want to display window on click of a button-->Action-->Open URL in Window.
I stuck on this : Main Section is in my own Work- Class, want to display Button in same Work- Class, Which class should i use to create HTML rule to pass it for "Show-HTML" method ?
i have already create HTML rule in my own Work- Class but Show-HTML method unable to find instance. please suggest me
If you still want to use HTML rule in work-class create an activity in work- class and configure the activity as parameter for Open URL in Window action. On clicking button, please run the tracer and view the pxObjClass of Step Page .