Pass a parameter to a ui builder page from UI action?

conanlloyd
Giga Guru

I have built a basic UI Builder page with a simple list of requested items on it.  I have a Client State Parameter on it called appID that is used in the filter for the list.

 

What I want to do is put a ui action on the standard form for a CI that, when clicked, will open the UI Builder page and pass the current record's sys_id to that parameter so the page will always filter for the CI where the Ui action was clicked.

 

I have the page working and I have a very basic Ui action working that launches the page in a separate window, I'm just not sure how to pass that parameter.  Any help out there?

 

Ui action script:

 

function showArcReviews() {
    var url = '/now/demo/architecture-reviews';
    g_navigation.openPopup(url);
    return false;
}

 

Here is an example of a UI action opening a filtered list view in a new window, I just want the UI builder page instead as I can control read/write and appearance better.

function showArcReviews() {
    var url = '/sc_req_item_list.do?sysparm_query=cat_item%3Decd9ec911b524590677dca20604bcb1c%5Evariables.f07c10b01b5f4510821c9867bc4bcb00%3D' + g_form.getUniqueValue();
    g_navigation.openPopup(url);
    return false;
}

 

2 REPLIES 2

veronikalac
Tera Contributor

Hello did you find the solution please ?

Not as of yet, we went in a different direction and I never got an answer to this.