Question

2
Replies
715
Views
SowjanyaLaxmiG2267 Member since 2017 34 posts
Infosys
Posted: August 9, 2018
Last activity: August 9, 2018
Closed

Passing current page of a pagelist to an activity triggered from on change event in a custom control

Hi All,

I was looking for way to pass the current page of a pagelist to an activity triggered from on On change event in a custom control in pega.

The below is the code placed in custom control which would be referred to a field in Repeat grid.

<input type="text" value='<p:r n="$this-value"/>' name='<p:r n="$this-name"/>' onChange="test('<%=tools.getActive().getPageValue().getName()%>')" />

<Script>
function test(s){

var oSafeUrl = new SafeURL("className.ActivityName",getReqURI());

oSafeUrl.put("pzPrimaryPageName",s);
pega.util.Connect.asyncRequest('GET',oSafeUrl.toURL());

}

</Script>

***Edited by Moderator Marissa to update platform capability tags***

please let me know the changes to be done to achieve this.

Low-Code App Development User Interface
Moderation Team has archived post
Share this page LinkedIn