F
L
E
I
S
C
H
M
A
N
N


Micro Focus / HPE / HP Service Manager 5

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;
	}

}

Nincs jog fenntartva -= FLEISCHMANN =- No rights reserved