Problem with Wiki page

LabKey Support Forum (Inactive)
Problem with Wiki page Jon (LabKey DevOps)  2015-06-15 21:50
Status: Closed
 
Hi Saravanan,

So I looked over your VariantSelection.html file and it looks like there was a slight error in the code.

It looks like the partConfig: was missing in the code in the bottom section of the query. So instead of:

                name: 'popup_redirect',

It should actually be:

                partConfig: {name: 'popup_redirect'},

Reference: https://www.labkey.org/download/clientapi_docs/javascript-api/symbols/LABKEY.WebPart.html

Also, the last line that has "initiateRedirect(mainURL);" actually has no reference in the rest of the code, so you will need to define it.

Otherwise, just make the change to partConfig and you should see it display correctly.

Regards,

Jon