Skip to main content

Row action on a table is "Redirect to URL’ with a url of:


/apex/skuid\_\_ui?page={{PurposePage}}&id={{Id}} 

Here’s the data in the table’s model for the row:


Here’s the url that’s opening:

/apex/skuid__ui? page= &id=a0R1a000001fyuSEAQ


PurposePage is a ui-only text field that I’m populating with a custom field renderer on Interaction_Purpose__c;


Does the merge syntax for the action process when the table renders, instead of when the action is clicked?


This may be related to: https://community.skuid.com/t/mass-action-redirect-to-url-not-processing-merge-syntax-9ak…

Matt~

What happens when you remove the {{ }} around the page name so it’s /apex/skuid__ui?page=PurposePage&id={{Id}}?

Thanks!
Karen


Karen, That would work if the name of the page was “PurposePage”, but the name of the page is the value of the PurposePage ui-only field on the row. Without the braces, I will just be redirected to a nonnexistant page called PurposePage, correct?


Matt. If you add the UI Only field into the table do you get data? 

Also,  if you inspect the row actions in the table,  you should be able to see what the URL value is set on for the button.  What do you see there?

I’m pretty sure this URL is constructed at table build time,  rather than when the button is clicked. 

I am also curious to know when the merge syntax in the action button gets processed. 



I was able to solve it by calling .render() on the table after the values were set. Which seems to mean that the merge syntax is processed when the table is rendered, not when the row action is clicked.

Any chance we can get that changed?


Matt~

Glad you were able to figure it out! I will change this to an idea under consideration for the devs to see if that can be changed. 

Thanks!
Karen