CA Service Management

 View Only
  • 1.  pdm_list syntax error

    Posted Oct 26, 2017 12:04 PM

    Hi, I have the next PDM_LIST query in the menu bar htmpl, 

     

    var horario_festivos_colombia = "";

    I used this
    var query2 = "2074287";  // refnum example 

    and this

    var query2 = w.argRefNum;  //  example 

     

    in


    <PDM_LIST PREFIX=request WHERE = '"ref_num = '" + query2 + "'"' FACTORY=cr>
    horario_festivos_colombia = "$request.category;
    </PDM_LIST>
    alert (horario_festivos_colombia); //Blank
    alert (w.argID);   //It works

     

    but It does not work

     

    This is the error

     

    ERROR        where.y                908 Parse error at : "( "ref_num = ) AND ( tenant IS NULL OR tenant = U'5308026B553B9E4F878EE71B9A9F379D' )" (syntax error)

     

    Thanks for any suggestion



  • 2.  Re: pdm_list syntax error

    Posted Oct 26, 2017 12:28 PM

    Hi

    PDM_list is generated by the preprocessor (before the page is loaded) and therefore you can't use any javascript variable there.

    as you can see in the error there is nothing after the equal sign in your query because the pdm_list was generated prior your query2 either exist.

    you will need to pass something that is already known like $args.ref_num directly in your pdm_list vs js variable

    Hope this help

    /J



  • 3.  Re: pdm_list syntax error

    Posted Oct 26, 2017 12:33 PM

    Ok, but this var is exist already  w.argID and does not work



  • 4.  Re: pdm_list syntax error
    Best Answer

    Posted Oct 26, 2017 01:31 PM

    No this var (javscript then client side) don't exist at the time the pdm_list is executed (Server Side) and definitively not in your query2

    This is exactly your problem.

    Hope this clarify

     

    /J



  • 5.  Re: pdm_list syntax error

    Posted Nov 01, 2017 02:55 PM

    walxarus - do you still need assistance on this one?



  • 6.  Re: pdm_list syntax error

    Posted Nov 01, 2017 04:04 PM

    Thanks for the help! now it is clear to me

     

    Cordialmente

     

    WALTER XAVIER BERMUDEZ TAMAYO

    Analista de Servicios GITI Nivel 2

    walter.bermudez@arus.com.co <walter.bermudez@arus.com.co>

    Telefax (4) 444 6100 - Ext. 1158

    Calle 19 No. 43G - 169 piso 7, Ed. Torres del Río - Medellín, Colombia

     

    La información adjunta es exclusiva para la(s) persona(s) a la cual(es) se

    dirige este mensaje, puede contener información confidencial y/o material

    privilegiado. Cualquier revisión, retransmisión, diseminación o uso del

    mismo, así como cualquier acción que se tome respecto a la información aquí

    contenida, por personas o entidades diferentes al propósito original de la

    misma, es ilegal. Si usted recibe este mensaje por error, por favor

    notifíquenos y elimine este material de su computador. Este mensaje y sus

    anexos han sido sometidos a programas antivirus, por lo cual consideramos

    se encuentra libre de virus o cualquier anomalía que pueda afectar a

    terceros; sin embargo, el destinatario debe verificar con sus propias

    protecciones que no estén afectados por virus u otros defectos, en cuyo

    caso, el remitente no asume responsabilidad alguna por el recibo,

    transmisión y uso de este material.

     

    2017-11-01 13:55 GMT-05:00 Jon Israel <

    communityadmin@communities-mail.ca.com>:

     

    CA Communities <https://communities.ca.com/?et=notification.mention>

    You have been mentioned

     

    by Jon Israel

    <https://communities.ca.com/people/Jon_Israel?et=notification.mention> *in

    Re: pdm_list syntax error in CA Communities* - View Jon Israel's

    reference to you

    <https://communities.ca.com/message/242019510-re-pdmlist-syntax-error?commentID=242019510&et=notification.mention#comment-242019510>

     



  • 7.  Re: pdm_list syntax error

    Posted Nov 01, 2017 04:12 PM

    Thanks walxarus!  Can you mark the reply that helped you the most as "correct"...

    Regards,

    Jon