Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Can Application module link open record in popup modal?

Adrian S_owi_sk
Tera Contributor

Hi Everyone,

I am on Zurich and I have two questions regarding Application module links in Application Navigator:

  1. Is it possible to set module link type t existing record and to open this record in popup/modal (similar to preview modal but with option to edit record). I just don't want record to be opened in same window or new tab. Instead I want to keep current page in background and display record in popup modal in the middle of the page.
  2. is it also possible for Module link to run client or servers script from argument? What I am trying to achieve is that clicking Module link will directly update specific record without displaying it. Click on module link should change field value and save changes. I know I can select Link Type "Script" but there is confirmation page for these scripts asking if you want to run the script.

    Thank you.


1 ACCEPTED SOLUTION

Shaqeel
Mega Sage

Hi @Adrian S_owi_sk 

 

1. There is no out of the box module link type that opens a record form in a modal dialog.

2. Module type script intentionally shows a confirmation for safety. Removing that confirmation from a script type module is not supported and is a security risk. However, you can achieve a silent server side update via a controlled endpoint and then redirect.

 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

View solution in original post

4 REPLIES 4

Shaqeel
Mega Sage

Hi @Adrian S_owi_sk 

 

1. There is no out of the box module link type that opens a record form in a modal dialog.

2. Module type script intentionally shows a confirmation for safety. Removing that confirmation from a script type module is not supported and is a security risk. However, you can achieve a silent server side update via a controlled endpoint and then redirect.

 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Hi,

Thank you for you reply, can you elaborate on point 2? Controlled endpoint? Like an url with arguments?

Best Regards,
Adrian

Hi @Adrian S_owi_sk 

You can use Scripted REST API(server side)+URL module.

 

Create a Scripted REST API

(e.g., PATCH /x_your_scope/update-ticket) that:

 

Validates the caller (ACLs, roles, API keys/JWT if needed).
Performs the update on the target record (GlideRecord).
Returns JSON (or a 302 redirect).

 

Create a Module of type URL pointing to a platform page that invokes this API (via a short Processor or UI Page), or call the API directly if users are authenticated and cookies are valid.

 

 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Hi,

Ok thank you for explaining this. I will test solution and decide if this is worth implementing.

Br,
Adrian