How to add Variable Editor to Configurable Workspace for a custom table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 04:53 AM
Hi, I'm trying to show the Variable Editor for a custom table extending Task.
So far, no luck... I am starting to think that variables are not supported in custom Configurable Workspaces? It is odd since that is a core system functionality, e.g. HR Agent Workspace displays a variable editor within record form.
What I did so far:
1. Created new scoped app with a table extending Task
2. Created a Record Producer with 3 sample variables (text, reference)
3. Created a basic Workspace in App Engine Studio.
when I try to show the record on the workspace form, it shows no variables.
I even tried creating a formatter and adding it to the form, this works for core UI but not for workspace.
Maybe there is some hidden setting that I have missed? I also cannot see any UIB Component relevant for variables...
Thanks for any pointers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
@JakeJake and @poorva1 The macro MUST start with com_glideapp_servicecatalog_veditor. Did you try making a copy of the com_glideapp_questionset_default_question_editor and naming it something like com_glideapp_servicecatalog_veditor_questionset or something like that? The workspace does a 'starts with' query whe pulling in the macro, whereas the form does an equals query. So, if you have a macro named 'com_glideapp_servicecatalog_veditor_questionset' that is in the global scope, then you have a UI Formatter that references that, you should be able to put the UI Formatter on the form and then it should show the macro on the workspace, too. If you are still having issues, could you please show a screenshot or maybe share an XML Export of both the UI Formatter and the UI Macro?
I just tested it and it worked. Here were my steps that I followed:
1) While in global scope, navigated to sys_ui_macro and search where name = com_glideapp_questionset_default_question_editor
2) In the name field, changed the name to com_glideapp_servicecatalog_veditor_questionset
3) Hit insert and stay to create the copy.
4) Created a new table that extended task called 'Test VEDITOR Table' [u_test_veditor_table]
5) Navigated to sys_ui_formatter.form to create a new formatter
6) Name: Custom Variable Editor; Formatter: com_glideapp_servicecatalog_veditor_questionset; Table: Test VEDITOR Table
7) Navigated to the new table's form, u_test_veditor_table.form, configured form layout, added the Custom Variable Editor to the bottom of the form.
😎 Navigated to sys_ux_list to create a new list to add this table to the list panel on an existing workspace (so I didn't have to create a new workspace for testing). Created new list for the new table
9) Created a new Record Producer with three questions for the new table
10) Created test record from the Record Producer
11) Navigated to the platform view, u_test_veditor_table.list, clicked on the record created from the RP and validated that the variables showed (See screenshot attached)
12) Finally, navigated to the workspace, in the left menu clicked on the Test VEDITOR Table list, then clicked on the test record to open the form view to confirm that the fields showed up (See screenshot attached).
One note, make sure that you are looking at records that were created from the Record Producer. If not, then the variable editor won't show up at all.
One note, if the variables are showing up as read only, but your user should have write access, check the UI Macro for the check for the property:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Thanks, @garyopela for such a detailed explanation.
I did try this, but the variable editor is still not visible on workspace.
The odd thing is, if I add the same variable editor in Core UI and workspace, the variable editor vanishes from Core UI as well.
If I remove it from the workspace view, it works fine in core UI.
But, still no variable editor on the workspace 😞
Thanks,
Poorva
