IBM Support

Assignment Manager Has No Values in Priority

Question & Answer


Question

Is it possible to set value preferences in priority?

Answer

Yes, you need to run the below scripts using a SQL tool. Create a back up of your database.

Steps to see the problem:

Go to Assignment Manager \Select Action \Set Preferences\Set Priority Preferences.

You will see an empty drop down window.

Script to run:


insert into pricalc
(findex, formula, selected, orgid, siteid, pricalcid)
select 0, 'NONE', 0, site.orgid, site.siteid, pricalcseq.nextval
from site
where not exists
(select findex,siteid from pricalc
where findex = 0 and siteid = site.siteid)
;
insert into pricalc
(findex, formula, selected, orgid, siteid, pricalcid)
select 1, 'PRIORITY', 1, site.orgid, site.siteid, pricalcseq.nextval
from site
where not exists
(select findex,siteid from pricalc
where findex = 1 and siteid = site.siteid)
;
insert into pricalc
(findex, formula, selected, orgid, siteid, pricalcid)
select 2, 'EQPRIORITY', 0, site.orgid, site.siteid, pricalcseq.nextval
from site
where not exists
(select findex,siteid from pricalc
where findex = 2 and siteid = site.siteid)
;
insert into pricalc
(findex, formula, selected, orgid, siteid, pricalcid)
select 3, 'PRIORITY + EQPRIORITY', 0, site.orgid, site.siteid,
pricalcseq.nextval
from site
where not exists
(select findex,siteid from pricalc
where findex = 3 and siteid = site.siteid)
;
insert into pricalc
(findex, formula, selected, orgid, siteid, pricalcid)
select 4, '2 * PRIORITY + EQPRIORITY', 0, site.orgid, site.siteid,
pricalcseq.nextval
from site
where not exists

[{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Component":"Assets","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0;7.1;7.1.1;7.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SSWT9A","label":"IBM Control Desk"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SSLKTY","label":"Maximo Asset Management for IT"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 June 2018

UID

swg21619331