- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2015 06:39 PM
Hi Team - I am having an issue which I think is a quick fix but I am unable to find it
Scenario:
- Incident has come in but should be demand.
- On the incident ticket the user selects UI Action "Create Demand"
- This creates the demand as expected (code below which I took and modified from our "Create Change" UI Action) and fills the Demand (u_demand) field on the related records TAB.
However it fills the field with the short description and not the number
It should then fill on the Demand ticket the Incident Number in u_incident.
Any assistance would be appreciated as this is occurring for all UI Actions relating to this table
Cheers
Andrew Dunn
var demand = new GlideRecord("dmn_demand");
demand.short_description = current.short_description;
demand.description = current.description;
demand.cmdb_ci = current.cmdb_ci;
demand.priority = current.priority;
demand.assignment_group = current.assignment_group;
var sysID = demand.insert();
current.u_demand = sysID;
var mySysID = current.update();
gs.addInfoMessage("Demand " + demand.number + " created");
action.setRedirectURL(demand);
action.setReturnURL(current);
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2015 10:20 PM
Thanks Deepak - a great suggestion. I did check the dictionary and the number field was selected to 'Display'
This however gave me an idea and I checked 'Short_description' and there was a dictionary override for the dmn_demand table. I went into this and removed the tick from "Override display value" and this solved my problem.
Thanks for that
Appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2015 09:10 PM
Go to the demand table, right click on number field.
Select personalize dictionary. Check 'Display' is true for this field.
Currently, display = true might have been selected for 'short descriptino' field on the demand table.
That is why it is being shown up on reference table as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2015 10:20 PM
Thanks Deepak - a great suggestion. I did check the dictionary and the number field was selected to 'Display'
This however gave me an idea and I checked 'Short_description' and there was a dictionary override for the dmn_demand table. I went into this and removed the tick from "Override display value" and this solved my problem.
Thanks for that
Appreciated