Question

3
Replies
544
Views
Close popover
Pravin Agarkar (PravinAgarkar)
Infosys
Pravin Agarkar
Infosys
AU
PravinAgarkar Member since 2015 3 posts
Infosys
Posted: February 3, 2020
Last activity: February 5, 2020
Closed

Calling an activity from web-login HTML rule.

Hi,

I want to call Rule-File-Binary.DownloadFile OOTB activity on click of hyperlink/button in web-login HTML rule. basically I want to download a binary file by clicking on hyperlink/button on login portal by sending a static param value (pzInskey of selected binary file).

I tried some of the options from old pdn posts, it is not working for me -

<a href="" onClick= myFunction() >Download Link</a>

OR

<button onClick="myFunction()">Download Link</button>

<script>
function myFunction()
{
oSafeURL =null;
var oSafeUrl = new SafeURL("Class.Activity",getReqURI());
oSafeUrl.put("Paramater Name","Paramater Value");
var strResponse = httpRequestAsynch(oSafeUrl.toURL(),"post");
}
</script>

above solutions are not working for me.

Please help me on this.

Thanks,

Pravin

Pega Platform Low-Code App Development Enterprise Application Development Dev/Designer Studio Data Integration Java and Activities 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.