Question
Last activity: 5 Oct 2016 3:31 EDT
"Post Value" Action in the "Actions" tab is throwing a JS Error
I have configured a "Post Value" Action in the Actions tab on-click of a Link control. When I click on the Link, it throws "NullPointerException in SafeURL.put(key,value){}, {undefined}" JS Error as an alert pop-up. I am not able to see any events in the tracer. Can somebody help me troubleshoot this issue? Thanks in advance.
***Message was edited by: Lochan to add Category; User still needing assistance. Adding #helpme tag***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Northbridge
CA
Hi Giridhar,
The link element didn't have a "value" attribute and when we use "PostAction" on an element, it expects the element to have a value and thus it throws "NullPointerException".
This seems expected to me. The same exception will be thrown if a "PostValue" is configured on a button, link, icon etc.
May I know the purpose in using "PostValue" on a Link??
Hi Shruthi,
Actually, I am invoking a "Set Value" before using the "Post Value" action hoping that the value that is set will be posted. Now, I got the clarity. However, when I replace "Set Value" with a Data Transform, the value is being posted in the Clipboard without "Post Value". But, when I use a visible expression with "Run Visibility on Client" checkbox selected, on click of the link, I am able to see the layout which satisifies that condition. However, as this link is configured on my left panel of Harness, I am not able to see the sections configured with the same visibility conditions present in center panel of the harness. I have also tried using "Refresh other Section" thus referring to center panel Section but no luck. Can somebody help me on this? Thanks in advance.
BlueRose Technologies
AU
Following the above question, there is a discussion as follows. https://mesh.pega.com/thread/62511?sr=inbox&ru=13134 Can somebody respond to this query? Thanks in advance.
BlueRose Technologies
AU
Can anyone respond to the above discussion please? Thanks in advance.
Pegasystems Inc.
IN
Hi Giridhar,
On click of link present in left panel ,a property is set with some value(Post Value/Data Transform) and it will display a section in center panel based on that property(run visiblity condition at client) in same click event.
Is this what you want to achieve?
BlueRose Technologies
AU
Hi Shibani,
Yeah. You got it right. Also, the link is present on the Accordion Layout.
Pegasystems Inc.
IN
Hi Giridhar,
Can you please share configuration snapshots for the link click actions and section, layout visibility condition.
BlueRose Technologies
AU
Hi Shibani,
PFA doc containing screenshots for the configuration snapshots.
BlueRose Technologies
AU
Hi All,
Can anyone shed some light on this? Thanks in advance.
Pegasystems Inc.
IN
Hi Giridhar,
Add data transform name in refresh other section data transform option and test the case.
And update the outcome.
Pegasystems Inc.
IN
Hi,
Also in the section include, remove embedded section , keep only simple control like text input or label , observe the behavior.
As per the attached snapshot, section has layouts, section emebedded inside it, not sure those also have visibility condition set or not.
BlueRose Technologies
AU
Hi Shibani,
Thanks for your reply.
I have tried referring a data transform in the action "Refresh-other section" but no luck. I have selected all the event types and rulesets in the tracer along with activities and data transforms but still couldn't see any events in the tracer. I have also used a simple dynamic layout and referred a button control inside that. On-click of this button, I have configured "Refresh-other section" but still no luck. Also, there are no visibility conditions on the accordion layout. Any other ways to work this out? Thanks in advance.
Pegasystems Inc.
IN
Hi Giridhar,
Activities and data transforms are not traced in Tracer?
Can you open Developer Tool(press F12 key ) in browser, go to network tab and click a button with refresh section configured.Observer reloadsection activity url is coming ornot.
BlueRose Technologies
AU
Hi Shibani,
Yes, the Activities and Data transform referred in "Refresh-other Section" are not traced in the Tracer. However, other actions like "Set Data transform", "Show Menu" are being traced. And, yes, same is the case with network events in developer tools. I could not see any network event for "Refresh-other Section" in developer tool as well. However, "Refresh-this section" is working fine and I am able to see the events in the tracer and developer tool.
I have also tried running the script as suggested in the PDN article https://collaborate.pega.com/question/refresh-current-harnessrefresh-other-section-not-working-pega-72 but no luck. The script is invoked successfully with right section name passed but I cannot see any changes in the end user screen.
Could you please confirm if "Refresh-other section" in Pega-7 is working fine or if there are any hot fixes for the same? Thanks in advance.
BlueRose Technologies
AU
Hi All,
Can somebody shed some light on this? Thanks in advance.
Pegasystems Inc.
US
Giridhar,
If I understand correctly, you're trying to update a property, then cause a section to refresh when that property is updated?
If that is correct, are the property and the section in the same thread context? If not, I believe what you're seeing is an issue with the changes not being tracked between threads.
What version of Pega are you using? I believe there may be a work around for this in Pega 7.1.8 and later where you can cause an AJAX change tracker to link the two threads.
SmartRules
NL
Hi All,
I am encountering this same issue. Refresh other section is not working. Using 7.2.1. Any eta on a possible fix?
In my case I have 2 situations where I'd like to refresh other section:
- At the click of a button I want to run a search activity and then refresh another section to display the search results in a grid.
- At a click on a grid row I run a data transform that copies the corresponding details into a temporary page and refresh another section to display the details.