Unable to select search attribute unless it's tagged as setting #118
-
|
I want to be able to search from inventory section of the portal on an attribute setup in the shell-definition.yaml but it seems that unless I tag the attribute as a "setting" the attribute does not appear in the search options. This attribute should not be able to be altered by users but needs to be searchable. ow do I achieve this? Setting it to [configuration, search_filter] does not work. Comdate Support (qsportal@comdate.com.au) - 06/19/2018 12:59 AM
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
|
Hi, Indeed the "Setting" tag is required in order to expose an attribute and its values in the search. The reason behind it is that some attributes or administrative and shouldn't be exposed in search while others should be used by users to find the right resource. In shells the default definition of attribute tags is done in the standard and can be altered in the shell-definition.yaml file when customizing the shell. See the section "Adding or modifying attributes in a shell's root or sub-model" in this page in our dev-guide. In short, just add the attribute you want to alter under "properties" and define the tags you want it to have. Do note that attributes which are associated with the family level and not the shell level can't be altered as changing them will affect other shells. You can see which attributes are tagged with the family level in the standards documentation. I hope this answers your question. Alona. Alona Getzler (Alona.G) - 06/21/2018 06:27 AM
|
Beta Was this translation helpful? Give feedback.
-
|
You can also add "Admin Only" to the attribute rules - this will keep the attribute available to the users (since it also has the Setting) but will prevent them from changing the values. Yaniv Yaniv Kalsky (Yaniv.K) - 06/21/2018 07:39 AM
|
Beta Was this translation helpful? Give feedback.
-
|
I tried to add the attribute but recieved this error Code generation failed with code 500 and error {"Message":"Error: The Shell package is invalid: Unsupported value of tag 'admin_only'"} Comdate Support (qsportal@comdate.com.au) - 06/21/2018 11:21 AM
|
Beta Was this translation helpful? Give feedback.
-
|
Also, trying to find a list of all the tags that can be used but not able to. Can you provide a link to a list. Comdate Support (qsportal@comdate.com.au) - 06/21/2018 11:55 AM
|
Beta Was this translation helpful? Give feedback.
-
|
You can find the list of all the tags in the dev guide. In this case, you'll have to use "readonly_to_users" in your shell. Yaniv Yaniv Kalsky (Yaniv.K) - 06/22/2018 04:48 AM
|
Beta Was this translation helpful? Give feedback.
-
|
OK, thanks that worked. Comdate Support (qsportal@comdate.com.au) - 06/25/2018 03:21 AM
|
Beta Was this translation helpful? Give feedback.
Hi qsportal@comdate.com.au,
You can also add "Admin Only" to the attribute rules - this will keep the attribute available to the users (since it also has the Setting) but will prevent them from changing the values.
Yaniv
Yaniv Kalsky (Yaniv.K) - 06/21/2018 07:39 AM
· 3743 ·