Passing a Row-Attribute from a Grid via URL to other Page

LabKey Support Forum (Inactive)
Passing a Row-Attribute from a Grid via URL to other Page Aleks  2016-11-11 02:52
Status: Closed
 
Hallo Everyone,

My question is how can I pass a specific attribute of a specific list to another Wiki-Page by clicking on the related edit-button?
I created a Wiki-Part which replaces the standard edit-form of a list. I modified the edit button via the XML-Metadata of this list so it redirects to the Wiki-Part:

<tables xmlns="http://labkey.org/data/xml">
   <table tableName="List-Name" tableDbType="TABLE">
                <updateUrl>/wiki/page.view?name=Wiki-Part-Name"</updateUrl>
   </table>
</tables>

What I want to do now is to pass to the Wiki-Part the Key/ID-Attribute of a specific row of this list when I click on the edit-button of this row. My first naive approach was to change the XML Metadata like this:

<updateUrl>/wiki/page.view?name=Wiki-Part-Name&amp;ID=${ID}"</updateUrl>

But then the redirected URL contains this value: ID=%24{ID}"

Thank you,
Aleks
 
 
Jon (LabKey DevOps) responded:  2016-11-22 20:28
Hi Aleks,

The problem is that you need to remove that quotation mark at the end. That is throwing everything off and it's encoding the URL.

If you remove it, it will display the value correctly.

Regards,

Jon