custom short description

osvaldo2
Kilo Contributor

Hi All,

I have a question, I am trying to get the task short description change based on what is selected when the from is submitted.

On the form I have two variables: a reference variable named "Application" and a select box variable named "Request". I also have the short description variable on the form. Each of the variables have the following options when selected:

Application     Request

Prod                         Change

Test                           Job Edit

Dev                             General Support

I need to have the variables be the following when selected : Prod = PD, Test = Test, Dev = DV, Change = CH, Job Edit = JE, and General Support = GS so that in turn the

the short description on the task be changed to the following:

RITMXXXX+application+request+whatever was entered on the short description:

In other words if on the form I choose Prod and Change and have the short description "making change" then the actual wording on the short description box on the task would be: RITMXXXPDCH making change.

I thought about doing a client catalog script with the following but I am lost on how to get the rest to work as I want too. Any ideas on what is the best way to accomplish this?

10 REPLIES 10

Hi,



I was able to get the short description to display RITM0030227undefinedundefined testtset.



The only thing not showing are the values on the abvrmap?


The name I was refering to was the variable name:



variable_name.png



Also to see if the problem is with the map you could try to just the current.variables.application and current.variables.request without the map to see if your getting the expected value inside the map.


yeah the variable   name was Short_Description. I took off the map..I got the request to display:



RITM0030229a55201566f72c20057d09edf8d3ee4d0PT test



I need to look into the application because as I mentioned, those are not listed as choices so I cant add the acronym as a value. Those are referencing another


find_real_file.png


Simply build your abvrMap_app using these sys_id.



For example: 'a55201566f72c20057d09edf8d3ee4d0' : 'PD'


i tried the map by sysid but it is still given undefined. the application is referencing the following:find_real_file.png


should it be best to change it to the following:


var shortDesc = current.number + abvrMap_app[current.variables.u_application_attributes] + [current.variables.Request_Type] + ' ' + current.variables.Short_Description;  


current.u_short_description = shortDesc;