Skip to main content

Hello,


I’m trying to create a custom button on the Account page, non-skuid page, that will open a related page in edit mode.



I have created a visualforce redirect page with this markup:


<page standardcontroller="CEPdat__c" extensions="skuid.Redirects" showheader="false" sidebar="false" readonly doctype="html-5.0" action="%7B!IF(canUseSkuid,'',redirect)%7D" title="Edit {!CEPdat__c.Name}"> <page page="CEPred"></page> </page>

my custom object’s api name is:

CEPdat__c


Any ideas of what the syntax would be for the Custom Button?


I tried this syntax but it didn’t work:


/{CEPdat\_\_c.Id}/e?retURL=%2F{Account.Id}%3Fcore.apexpages.devmode.url%3D1%26nooverride%3D1%26sfdc.override%3D1

nikrouges,

One option is to try using the url of the Skuid page to redirect straight to that page. For example, if the Skuid Page is called AccountDetailPage then the url for the button would be /apex/skuid__ui?page=AccountDetailPage.  You can add parameters to the url by using the Insert Merge Field option right above the textbox where you enter the url.

Thanks!
Amy


Amy, 

I’ve tried this syntax, but when the button is pressed, the skuid page renders but no information is populated into the data fields: 


/apex/skuid__ui?page=CEPred&amp;id={!CEPdat__c.Id}<br>

nikrouges,

When you go to the Skuid page do you see the CEPdat Id in the url? I’m sure it is, but on your Skuid page is the appropriate model(s) looking to the url page id to get their Id? Were you able to insert the Id of CEPdat through the Insert Merge Field option? I’m not sure if you can pass the Id of an unrelated object from the Account page (though maybe I don’t know enough and CEPdat is related to Account).

Thanks!
Amy


Reply