Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to query a record sys_id in client script portal widget.

Reddy
Kilo Sage

Hello All,

find_real_file.png

 

I'm attempting to use the same HTML href URL in the client script for the Confirm button. However, I am unable to obtain the record sys id.

HTML link for RITM0022516 is 

 <a ng-href="?id=approval&table=sysapproval_approver&sys_id={{::approval.sys_id}}" id="approval_task_{{::approval.sys_id}}"title="{{data.ViewApprovalPageMsg}}">{{::approval.task.number}}</a></span><br>

 

client script URL for Confrim button:

c.openPopUp = function() {
var url = "?id=approval&table=sysapproval_approver&sys_id="+$scope.data.approval.sys_id;
var popup = window.open (url, "popup", "width=900, height=600");
}

 

Thanks,

Reddy

13 REPLIES 13

Musab Rasheed
Tera Sage

Hi,

Sys_id won't work in Client script, try using something like this.

var sysid = g_form.getUniqueValue();

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hello Rasheed,

 

Tried, but it's not working.

SanjivMeher
Mega Patron
Mega Patron

instead of $scope, can you use c.data.approval.sys_id


Please mark this response as correct or helpful if it assisted you with your question.

Thank you, Sanjiv for your reply.

 

Tried, but no luck.