example HTML:
<div>
<a href="{{data.profile_url}}" class="h4 text-primary m-b-sm block">
<span class="ng-binding">Edit Profile</span>
<i class="fa fa-edit"></i>
</a>
</div>
[
var sURL='<portal>?id=<portal_page>&sys_id='+data.sysUserID+'&sysparm_aparameter=true';
data.profile_url = sURL;
]
example server script to catch the parameter:
//var sURL_editparam = gs.action.getGlideURI().getMap().get('sysparm_aparameter');//--would work, but below is neater
var sURL_editparam=$sp.getParameter("sysparm_aparameter");
if (sURL_editparam == 'true') {
gs.addInfoMessage('parameter passed);
}
Comments
Post a Comment