Micro Focus / HPE / HP Service Manager 5
2019., július 25.,
400 szó, elolvasásához kb.:
2 perc kell
|
_flex
|
[How to guides, tips and tricks / útmutatók, tippek és trükkök]
#micro focus #hpe #hp #service manager #sm #how to
Table of contents
Tricky Comfill buttons
// getAssignments( affectedItem ) 201907 _flex
function getAssignments( affectedItem ) {
vars['$mak.assignment.list'] = new Array();
if( affectedItem == null ) {
return;
}
var fFile = new SCFile( "assignment", SCFILE_READONLY );
var query = 'active=true and level>=20 and level<=30 and index("' + affectedItem + '", supported.szakrendszerek ) > 0';
// var query = 'supported.szakrendszerek="' + vars["$L.file"]["affected.item"] + '"'
var rc = fFile.doSelect( query );
while ( rc == RC_SUCCESS) {
vars['$mak.assignment.list'] = system.functions.insert( vars['$mak.assignment.list'], 0, 1, fFile.name );
rc = fFile.getNext();
}
}
// getAssignees( assignment ) 201907 _flex
function getAssignees( assignment ) {
vars['$mak.assignee.name.list'] = new Array();
if( assignment == null ) {
return;
}
var fFile = new SCFile( "assignment", SCFILE_READONLY );
var query = 'name="' + assignment + '"';
// var query = 'supported.szakrendszerek="' + vars["$L.file"]["affected.item"] + '"'
var rc = fFile.doSelect( query );
if ( rc == RC_SUCCESS) {
vars['$mak.assignee.name.list'] = fFile.operators;
}
}