AnsweredAssumed Answered

pdm_list

Question asked by Johnny_2302 on Feb 24, 2016
Latest reply on Feb 24, 2016 by Michael Mueller

Hi Team,

 

Kindly let me know how to use 'like' keyword as well as 'and' keyword in the pdm_list command. I tried using the same as shown below, however m not getting any value

 

if( '$args.task' == 'R_APP_SCH_RM'  &&  '$args.iss.impacted_iss.length' > 0 )

{

var v_iss_open=0;

<PDM_LIST PREFIX=attisscheck FACTORY=lrel_impacted_iss_impacted_chg WHERE="iss='$args.iss.persistent_id'">

alert('$attisscheck.chg');

<PDM_LIST PREFIX=issdet FACTORY=chgalg WHERE="action_desc like 'GOLIVE' AND change_id='$attisscheck.chg'">

alert("$issdet.change_id");

alert('$issdet.change_id');

var sometext="$issdet.change_id";

sometext=sometext.toUpperCase();

alert(sometext);

if(sometext != "GOLIVE")

{

v_iss_open+=1;

}

</PDM_LIST>

</PDM_LIST>

if( v_iss_open > 0)

{

alert("Status of Change is not Go Live, kindly check");

return false;

}

}

 

Kindly let me know the syntax.

Outcomes