Can you add User Preferences to the User menu / Preferences for a custom app

Gary Fawcett1
Tera Guru

Hi,

System Apps like CSM etc, have a user preferene menu items under workspace (see image)

When the user switches to a custom app, this option is gone.  Guessing you have to enable it for any custom applications that need it?

But unable to locate any documention on how to do this?

Has anyone worked this out?

Thanks...Gary Fawcett

Work Space Pref.jpg

1 ACCEPTED SOLUTION

lauri457
Tera Sage

You have to set the ux page property "chrome_header" in the app to have the userPrefsEnabled property as true

{
    "privatePage": {
        "userPrefsEnabled": true, //<-- this one
        "searchEnabled": false,
        "currentScreenLinkConfiguration": {},
        "globalTools": {
            "collapsingMenuId": 0,
            "primaryItems": [],
            "secondaryItems": []
        }
    },
    "publicPage": {
        "menuEnabled": false,
        "searchEnabled": false,
        "logoRoute": {},
        "actionButtons": []
    }
}

 There's also a prop called chrome_preferences which looks related, but didn't test

[
  "workspace.showRibbon",
  "workspace.wrapListText",
  "workspace.notifications.showPopups",
  "workspace.notifications.showBadgeCount",
  "rowcount",
  "ts.match",
  "glide.ui.accessibility",
  "glide.ui.report.accessibility.patterns",
  "glide.ui.date_format",
  "list_export.deliveryType",
  "list_export.orientationType",
  "list_export.fileType"
]

Edit: not sure chrome_preferences even actually binds to anything, chrome_header for example can be found in the workspace app shell composition.

View solution in original post

6 REPLIES 6

lauri457
Tera Sage

You have to set the ux page property "chrome_header" in the app to have the userPrefsEnabled property as true

{
    "privatePage": {
        "userPrefsEnabled": true, //<-- this one
        "searchEnabled": false,
        "currentScreenLinkConfiguration": {},
        "globalTools": {
            "collapsingMenuId": 0,
            "primaryItems": [],
            "secondaryItems": []
        }
    },
    "publicPage": {
        "menuEnabled": false,
        "searchEnabled": false,
        "logoRoute": {},
        "actionButtons": []
    }
}

 There's also a prop called chrome_preferences which looks related, but didn't test

[
  "workspace.showRibbon",
  "workspace.wrapListText",
  "workspace.notifications.showPopups",
  "workspace.notifications.showBadgeCount",
  "rowcount",
  "ts.match",
  "glide.ui.accessibility",
  "glide.ui.report.accessibility.patterns",
  "glide.ui.date_format",
  "list_export.deliveryType",
  "list_export.orientationType",
  "list_export.fileType"
]

Edit: not sure chrome_preferences even actually binds to anything, chrome_header for example can be found in the workspace app shell composition.

Thanks so much, this worked for me...Thanks...Gary