The "Edit Page [URL]" requires a record id. How do you create custom link to the Edit Page from a Generic Page but still dynamically figure out the record id?
Since you can drag and drop the Edit Page using the page editor, there must be a way to get the record id.
Sorry I forgot an important info. I'm building portal pages. My problem is figuring out the ID of the record I want to edit on Generic Page which doesn't offer the tokens for any record not in scope.
Unfortunately, tokens for the Objects are not available for Generic Page only the tokens for the Portal Page. Here is the token for my Edit Page;
I need to provide the value for the &id.
Are you referring to the Portal's object edit page? If so, the token is available for use in the template helper once you create an object's edit page for the portal. For the ID, you need to specify what ID you need so that it will redirect to the records' edit page.
How do you find the correct ID to use? That's my issue. How does the "draggable" link component figure out the correct ID even inside a generic page?
The real question is: which record you want to edit? If you know the answer, you know ID.
How do you do that? In ASP programming, it allows you to maintain context variables. Remember that there are no tokens available for use.
You can check the ID of each record by displaying the record ID in the list view or view page of an object.
Unfortunately that approach will not work. I'm working on a portal page. I don't know beforehand which record I'll be dealing with.
Going back to my question, how does the selectable link component available in the Page Editor figure out the correct link to an edit page even when it's on a Generic page?
My Print Page is a Generic Page. You can see that you can drop an Edit Page link to it using the page editor. I want to mimic what the link does for some other reason. I know I can just use it, but I want to know some background how is this possible.