Skip to main content

Hello Experts,

I want to navigate from an element which shows the assigned tasks to the subproject to which the task is connected. I have tried using, 

at first

page/ProjectScopeAndSchedule/SubProjectLevel?$filter=ProjectId eq $$PROJECT_ID]&$filter=SubProjectId eq $$SUB_PROJECT_ID]

and then

page/SubProjects/SubProjects?$filter=(startswith(ProjectId,$$PROJECT_ID]))&$filter=(startswith(SubProjectId,$$SUB_PROJECT_ID]))

 

However, in both scenarios, the system only sets the value for the subproject ID but not for the project ID in the target page. 
 

 

The latter part of the url is like this. 

page/ProjectScopeAndSchedule/SubProjectLevel;$filter=SubProjectId%20eq%20'002';path=0.1656053651.1188772997.671078522.1492810231.eyJmIjoiL1BhZ2UiLCJnIjoiUHJvamVjdFNjb3BlQW5kU2NoZWR1bGUiLCJpIjoiU3ViUHJvamVjdExldmVsIiwiYSI6InZpcnR1YWwtMSIsImIiOiIxNDkyODEwMjMxIiwiZSI6IlN1YiBQcm9qZWN0IFNjb3BlIGFuZCBTY2hlZHVsZSIsImgiOiJTdWJQcm9qZWN0SWQgZXEgJzAwMiciLCIkZmlsdGVyIjoiU3ViUHJvamVjdElkIGVxICcwMDInIiwiZCI6dHJ1ZSwiYyI6ZmFsc2V9;record=KFByb2plY3RJZD0nMTBFMDEwMDQnLFN1YlByb2plY3RJZD0nMDAyJyk%3D

 

The Project ID parameter is not included in this URL ☝🏼

 

Then tried with a minor adjustment in the above URL address in element designer. The adjustment was adding two spaces between filter,= and SubProjectId in the URL address. 

 

Then only the project id is set on the target page. 

The latter part of the URL is like this.

page/ProjectScopeAndSchedule/SubProjectLevel;$filter=ProjectId%20eq%20'TESTPROJ';$filter%20=%20SubProjectId%20eq%20'002';path=0.1656053651.1188772997.671078522.1492810231.eyJmIjoiL1BhZ2UiLCJnIjoiUHJvamVjdFNjb3BlQW5kU2NoZWR1bGUiLCJpIjoiU3ViUHJvamVjdExldmVsIiwiYSI6InZpcnR1YWwtMSIsImIiOiIxNDkyODEwMjMxIiwiZSI6IlN1YiBQcm9qZWN0IFNjb3BlIGFuZCBTY2hlZHVsZSIsImgiOiJQcm9qZWN0SWQgZXEgJ1ZBTk5JSkFEUDUnIiwiJGZpbHRlciI6IlByb2plY3RJZCBlcSAnVkFOTklKQURQNSciLCIkZmlsdGVyICI6IiBTdWJQcm9qZWN0SWQgZXEgJzAwMiciLCJkIjp0cnVlLCJjIjpmYWxzZX0%3D

 

The subproject parameter is also included in the URL but even though we have used ‘&’ in the URL address on element designer, there is no ‘and’ in the generated URL. 

 

How can we achieve applying both of these parameters on the targe page’s URL?

 

Your advices and tips are greatly appreciated. 

 

PS: Cloud version 24.1.3. Observed the same behavior in 23.2.2

 

Thank You. 

 

@NJAY  I don’t think you need to restate the keyword “filter” or use the ampersand “&”

something like this:
page/ProjectScopeAndSchedule/SubProjectLevel?$filter=ProjectId eq $rPROJECT_ID] AND SubProjectId eq $rSUB_PROJECT_ID]
 


@NJAY  I don’t think you need to restate the keyword “filter” or use the ampersand “&”

something like this:
page/ProjectScopeAndSchedule/SubProjectLevel?$filter=ProjectId eq $rPROJECT_ID] AND SubProjectId eq $rSUB_PROJECT_ID]
 

Hi Phil, 

Thank you for this reply . However this leads to a server error with the message ‘The URL is malformed’. Then I tried using ‘and’ and now it works. 

 

So the correct URL is

page/ProjectScopeAndSchedule/SubProjectLevel?$filter=ProjectId eq $ePROJECT_ID] and SubProjectId eq $ISUB_PROJECT_ID]

 

I will mark this as the best answer to avoid confusions for future readers. However thank you for the help. 🙂

 

Kind Regards,


Reply