- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2017 01:36 PM
I have a reference field in my catalog item that looks up servers in our cmdb_ci_hardware table.
I have two other questions that I want to ask based on the class of the server they select
I created a UI Policy and dotwalk to the class field
The issue is that as soon as a populate the build type with "Copy of an Existing Server" the Storage size windows field shows up on the form.
It doesn't even wait for me to select the server to know what the cpr_server_name.Class even is.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2017 02:03 PM
Hi Kevin,
Apparently UI policy doesn't work with dot walking
| Conditions | The conditions which, if fulfilled, cause the UI policy to be applied. Conditions are built with the condition builder. To set conditions using a script, use a client script instead. Conditions are only rechecked if a user manually changes a field on a form. If the change is made by a UI action, context menu action, or through the list editor, it is not evaluated. In UI11, the field must be on the form to be checked by a UI policy. To test the value of a field but hide it from users, add the field to the form and use UI policies to hide it. This requirement also prevents dot-walked fields from being used as conditions. |
HEre is the link Create a UI policy
Please mark the answer has helpful or correct based on the impact on the question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2017 09:15 AM
Hi Kevin,
There is another way to do this, instead of doing dot walking, since you are using cmdb_ci_hardware, can't you directly use class. It is available at the cmdb_ci_hardware level and it is same as the server class.
Please mark the answer has helpful or correct based on the impact on the question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2017 09:22 AM
Not sure what you mean... that's what I did. see my first screenshot. My variable "cpr_server_name" is referencing the cmdb_ci_hardware table as you state.
I select 'Show related fields"
then I select "cpr_server_name => Server Fields".
Then i select "Class".
This isn't working even though it's letting me select the class. (see my first screenshot)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2017 08:17 AM
no you don't have to do show related fields, you simply type class and it would be there
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2017 08:27 AM
But that field has nothing to do with the 'class' of the variable I created related to the CMDB CI table (CMDB ci classes). That is an entirely different set of classes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2017 08:35 AM
try this link, replace your_instance by the your instance's name. Does it give you the windows servers?
