Question

2
Replies
743
Views
Close popover
Sowjanya Laxmi Gadi (SowjanyaLaxmiG2267)
Infosys

Infosys
AU
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 Experience
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.