UI Action to display document template in related list of Incident

Mayur Patil2
Tera Expert

Hello developers,

 

I need to create a UI Action button on form. When I clicked , it should display a list of records from Document Table(ds_document). I am not sure which is the best way to do this.

 

Can someone guide me on the recommended approach?

 

Thank you 

 

Regards,

Mayur Patil

5 REPLIES 5

svirkar420
Tera Expert

Hi @Mayur Patil2 , Create a UI action and allow it to be shown on the form view from list control by checking the form button box. Next, In the UI action button script create a variable to store the required links. For this use case it would be ds_document. Copy the URL store it to the variable and use setRedirect action to redirect it to that tables record.

var URL = ds_document URL.

action.setRedirectURL(URL);

 

If this solution helped you Please Mark this solution as accepted and helpful as it will be helpful for other users and readers as well.
Best Regards.
Saurabh V.