MSS Personal actions How to Limit the reasons

 3 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
omer
New Member Send Private Message
Posts: 3
New Member

Hi

Does anyone know how to Limit the reasons that are displayed on the perosnal action page to a sub set?

I know they code are extratced by a DME call in paactionssdv.js

function GetPcodes(selectValue) {  if(pCodes.length && lastPcodeSelect==selectValue)   Perform(pCodes)  else  {    pCodes = new Array();   lastPcodeSelect = selectValue   var object   = new DMEObject(authUser.prodline,"PCODES")    object.out  = "JAVASCRIPT"    object.index = "pcoset1"    object.field = "code;description"    object.key = String(selectValue);    object.cond  = "Active";    //object.select = "CODE="+'JOB'    object.max = "600"    object.debug  = false;    //object.sortasc = "description"   DME(object,"jsreturn")  } }

Can i put somehting like //object.select = "CODE="+'JOB' to limit the code extracted.

Any help will be appreciated.

Deleted User
New Member Send Private Message
Posts: 0
New Member
Yes although the // stands for a comment so you would want to remove that. Also you might as well just put in "CODE=JOB" instead of "CODE="+'JOB'.
omer
New Member Send Private Message
Posts: 3
New Member
Thanks it works!!!; One more question I know you cant use "like" in object.select statement, is there a work around for that?
omer
New Member Send Private Message
Posts: 3
New Member
Oh i got it this works for me object.select = "CODE^~"+"A"