CA Service Management

 View Only
  • 1.  PDM_LIST using for HTML

    Posted Feb 09, 2016 08:11 AM

    Hello,

     

    I using PDM_LIST code for only groups member for Service Desk in detail_in.htmpl. But The code is not solution for html.

    I want to use for <td> tag between code.The following code is giving the error.

    How can I do this ? Could you help about this ?

     

     

    if (false // to prevent || operator as a first literal in command, add this "non-sense" literal (false) to if condition

    <PDM_LIST PREFIX="list" FACTORY="grpmem" WHERE="member = U'$cst.id'">@

    || '$list.group' == "45A6DCC4F5D77F49BAAB8D744C962130"

    </PDM_LIST>

    ) {

    <td valign="top" align="left">

    <input  type="button" value="&lt;--&gt;" id="thisBtn" onclick="addSelected();">

    </td><td valign="top" align="left">

    <SELECT title="Etkilenen Sistemler" class=" " name="sel1" MULTIPLE SIZE=10>

    <OPTION VALUE="A">A

    <OPTION VALUE="B">B

    <OPTION VALUE="C">C

    <OPTION VALUE="D">D

    </SELECT>

    </td>

    }

     

    Regards

    Ozge



  • 2.  Re: PDM_LIST using for HTML

    Posted Feb 09, 2016 09:33 AM

    You're mixing JavaScript code with HTML code, and your code should be betweek the PDM_LIST tags if you want to 'loop' through the values that PDM_List produces.



  • 3.  Re: PDM_LIST using for HTML

    Posted Feb 09, 2016 10:08 AM

    Hi,

     

    I want to write the code for only certain group members to see.

    I'm using to PDM_LIST command for in <script>tag.

    But This code is located outside of the <script>tag.

    So, Is it possible to write the constraint in a different way for the group members ?

     

    ---------I use the command---------------------

      if (false // to prevent || operator as a first literal in command, add this "non-sense" literal (false) to if condition

      <PDM_LIST PREFIX="list" FACTORY="grpmem" WHERE="member = U'$cst.id'">

      || '$list.group' == "45A6DCC4F5D77F49BAAB8D744C962130"

      </PDM_LIST>

      ) {

    ***********

      }

     

    ---------------Constraint does not accept the code----------------

    <td valign="top" align="left">

    <input  type="button" value="&lt;--&gt;" id="thisBtn" onclick="addSelected();">

    </td><td valign="top" align="left">

    <SELECT title="Etkilenen Sistemler" class=" " name="sel1" MULTIPLE SIZE=10>

    <OPTION VALUE="A">A

    <OPTION VALUE="B">B

    <OPTION VALUE="C">C

    <OPTION VALUE="D">D

    </SELECT>

    </td>



  • 4.  Re: PDM_LIST using for HTML

    Posted Feb 09, 2016 11:00 AM

    The way I see it, you should organize your code like this:

    <PDM_LIST "....>

    // Code to run if the list return something, including HTML code if needed.

    </PDM_LIST>

    Check the generated page source - with Chrome/Firefox developer tools to see what the PDM_IF produced.