should this syntax work? | eknelson | 2010-07-26 15:57 |
Status: Closed | ||
Hi Ben, Adam is the expert on web part insertion, but he's partly offline this week. In the mean time, I have a partial answer for you. There's no guarantee that the wiki web part insertion syntax accepts the same parameters as the LABKEY.WebPart API. That may be the source of your bug. At present, the schemaName/queryName/containerPath combo is not doc'ed as being a valid set of paramters for wiki web part insertion. Instead, the docs (https://www.labkey.org/wiki/home/Documentation/page.view?name=webPartConfig) recommend using webPartContainer. From the doc page: webPartContainer - - The ID of the container where the wiki pages live. If this param is not supplied, the current container is used. You can obtain a container's ID by using the containerId.view action in the admin controller. For example, to obtain the container ID for the Documentation folder on labkey.org, go to the following URL: https://www.labkey.org/admin/home/Documentation/containerId.view . The container ID appears as a hex string, in this case: aa644cac-12e8-102a-a590-d104f9cdb538. If this param is not supplied, the current container is used. Thanks, Elizabeth |
||