Project workspace hide the Resource option

Yasin Shaik11
Tera Contributor

Hi All,

 

Need help .!

We have installed the new project workspace plugin sn_pw. in that my client requirement is need to hide the Resource option from the Classic Planning console. as show in the below attached image. 

 

Thanks in advance. 🙂 

1 REPLY 1

Nootan Bhat
Kilo Sage

Hi @Yasin Shaik11,

These choice values are coming as result of data resource used in 'Project Workspace' in UI builder.

If you want to restrict the choice, you need to create your own client Script in UI builder, which will get the data from the data resource  'Project Workspace Get Data 1' and modify the data assign value to new Client State. Same Client state you can use in 'Split Button' of 'Planning' sub page. In drop down it is used as '@data.project_workspace_get_data_1.output.result.classicConsoleURLsJSON'.

You can create client script and get the data remove the Resource value.
In retrieved data it is defined something like this:

 

"classicConsoleURLsJSON": [
      {
        "id": "summary",
        "label": "Analytics"
      },
      {
        "id": "details",
        "label": "Details"
      },
      {
        "id": "planning",
        "label": "Planning"
      },
      {
        "id": "resources",
        "label": "Resources"
      },
      {
        "id": "financials",
        "label": "Financials"
      },
      {
        "id": "status_report",
        "label": "Status Report"
      }
    ]

 

 

Let me know if it helped.

 

Thanks

Nootan