Clarity

 View Only

 New UX: Internal id as parameter in channel

Jump to  Best Answer
Thiago Pimenta's profile image
Thiago Pimenta posted Mar 15, 2021 07:04 PM
Hello,

I need to call pages of the classic version in any object channel using the internal id as a parameter, but I found only $ {internalID} that was only for Project.

Does anyone know a way to make for other objects? Like idea for example.

Thanks in advance
Thiago Pimenta's profile image
Thiago Pimenta  Best Answer
I found, the correct parameter is ${_internalId}
Will Lloyd's profile image
Will Lloyd
I was wondering if you're building a channel to a Jaspersoft Report, or some other object.

I am attempting to build a channel to a report, but the Jaspersoft example provided on Clarity: Configure Blueprints for Custom Investments and Custom Objects (broadcom.com) under example #3 yields an error, saying that that the URL parameter is invalid.

https://clarityserver.ca.com/reportservice/flow.html?_flowId=viewReportFlow&reportUnit= %2Fca_ppm%2Freports%2Fproject_management%2FCSK_PRJ_ProjectStatusSummary &standAlone=true&ParentFolderUri=/ca_ppm/reports/project_management &populateProject=1&projectKey_1=${_internalID}

When I update the 'clarityserver.ca.com' reference with our Clarity instance url and remove the line breaks, the following error is displayed.​
When I use only the first three lines in the Channel URL, the code executes correctly, and the proper Jaspersoft report launches, but it's waiting for the Project ID. So, the issue seems to be centered around that last line of code.

Have you tried this before and have you had success?

Thanks,
Will
Thiago Pimenta's profile image
Thiago Pimenta
@Will Lloyd,

​I think I understand your problem. To solve it I believe that it is necessary to configure a tab on the Project page classic version by calling the jasper report and within the channel you call the tab on the classic Project page.

another option would be to test the parameter in your url without the "_" in the beginning: ${internalID}, I found conflicting information on some pages about it ..
Divya Agarwal's profile image
Divya Agarwal
We are building a channel to a query based portlet and trying to pass Custom Investment Internal ID as a parameter to Channel URL.
We are facing similar issue as mentioned in this thread. 

We have a query based portlet where we tried both below parameters:
1. object.id = @WHERE:PARAM:USER_DEF:integer:id@
2. object.id = @WHERE:PARAM:XML:INTEGER:/data/id/@value@

We then created link parameters under portlet page.

We are now trying to create channel taht passes this parameter dynamically based on the instance it is being accessed from.
Following are the formats of channel URLs we tried, but nothing worked for us.

../../../../niku/nu#action:portlet_page_id&puiFullscreen=on&puiHidePPMTabs=on&APT_CUST_5280773=${internalID}

../../../../niku/nu#action:portlet_page_id&puiFullscreen=on&puiHidePPMTabs=on&APT_CUST_5280773=5xxxx

../../../../niku/nu#action:portlet_page_id&puiFullscreen=on&puiHidePPMTabs=on&param_id=5xxxx

../../../../niku/nu#action:portlet_page_id&puiFullscreen=on&puiHidePPMTabs=on&param_id=${code}

../../../../niku/nu#action:portlet_page_id&puiFullscreen=on&puiHidePPMTabs=on&APT_CUST_5280773=${_internalID}

../../../../niku/nu#action:portlet_page_id&puiFullscreen=on&puiHidePPMTabs=on&param_id=${_internalId}

Please suggest if there is way to achieve context parameter passing for custom investment channels.

Thanks
Divya
Divya Agarwal's profile image
Divya Agarwal
We are building a channel to a query based portlet and trying to pass Custom Investment Internal ID as a prameter to Channel URL.

We have a query based portlet where we tried both below parameters:
1. object.id = @WHERE:PARAM:USER_DEF:integer:id@
2. object.id = @WHERE:PARAM:XML:INTEGER:/data/id/@value@

We then created link parameters under portlet page.

We are now trying to create channel taht passes this parameter dynamically based on the instance it is being accessed from.
Following are the formats of channel URLs we tried, but nothing worked for us.

../../../../niku/nu#action:portlet_page_id&puiFullscreen=on&puiHidePPMTabs=on&APT_CUST_5280773=${internalID}

../../../../niku/nu#action:portlet_page_id&puiFullscreen=on&puiHidePPMTabs=on&APT_CUST_5280773=5xxxx

../../../../niku/nu#action:portlet_page_id&puiFullscreen=on&puiHidePPMTabs=on&param_id=5xxxx

../../../../niku/nu#action:portlet_page_id&puiFullscreen=on&puiHidePPMTabs=on&param_id=${code}

../../../../niku/nu#action:portlet_page_id&puiFullscreen=on&puiHidePPMTabs=on&APT_CUST_5280773=${_internalID}

../../../../niku/nu#action:portlet_page_id&puiFullscreen=on&puiHidePPMTabs=on&param_id=${_internalId}

Please suggest if there is way to achieve context parameter passing for custom investment channels.

Thanks
Divya