CA Service Management

 View Only
  • 1.  PDM_LIST and KD Issue

    Posted May 18, 2015 09:51 AM

    Hello everyone,

     

    I'm facing a problem with getting values via PDM_LIST from Knowledge Document table.

    For example this code where should be 2 search results:

    console.log('Here we start:');
    <PDM_LIST prefix=kd factory=KD where="$args.search_where_clause">
    console.log('$kd.id' + '$kd.MODIFY_DATE_INT_DATE');
    </PDM_LIST>
    console.log('Here we end;');
    

    returns this:

    Here we start:
    0 100
    0 100
    Here we end;
    

     

    I found a workaround solution, but it is quite dirty.

     

    I'm running 12.7 CP2,

    any ideas?

     

    Regards,

    cdtj



  • 2.  Re: PDM_LIST and KD Issue

    Posted Jun 03, 2015 04:51 PM

    Anyone have any help here?

     

    Thanks

     

    PDM_LIST and KD Issue

    This question is Not Answered.(Mark as assumed answered)

    Timur AlimovParticipant

     

    Hello everyone,

     

    I'm facing a problem with getting values via PDM_LIST from Knowledge Document table.

    For example this code where should be 2 search results:

     

    1. console.log('Here we start:'); 
    2. <PDM_LIST prefix=kd factory=KD where="$args.search_where_clause"> 
    3. console.log('$kd.id' + '$kd.MODIFY_DATE_INT_DATE'); 
    4. </PDM_LIST> 
    5. console.log('Here we end;'); 
    returns this:

     

     

    1. Here we start: 
    2. 0 100 
    3. 0 100 
    4. Here we end; 

     

    I found a workaround solution, but it is quite dirty.

     

    I'm running 12.7 CP2,

    any ideas?

     

    Regards,

    cdtj



  • 3.  Re: PDM_LIST and KD Issue

    Broadcom Employee
    Posted Jun 03, 2015 05:48 PM

    cdtj, I don't seem to be able to see the complete code poice here. Which file you modified? Can you post the file here? Thanks _Chi



  • 4.  Re: PDM_LIST and KD Issue

    Posted Jun 04, 2015 02:22 AM

    Hi,

    thank you for your reply,

    this code can be insterted in any *.htmpl form for any access type.

     

    In example I provided code was inserted into list_kd.htmpl,

    to use system generated where_clause.

     

    Regards,

    cdtj



  • 5.  Re: PDM_LIST and KD Issue

    Posted Jun 04, 2015 06:58 AM

    Hi,

    After

    <PDM_MACRO name=lsStart search_type=DISPLAY>

    try to insert the following line

    <PDM_MACRO name=lsWrite text="alert('@{list.id}' + ' ' + '@{list.MODIFY_DATE_INT_DATE}');">



  • 6.  Re: PDM_LIST and KD Issue

    Posted Jun 04, 2015 08:22 AM

    Hi,

    yeah this works but it generates default list table.

    at this moment I use this method and hiding table via js



  • 7.  Re: PDM_LIST and KD Issue

    Posted Jun 04, 2015 09:49 AM

    This one also will generate default list, but you will have possibility to filter it

     

    <PDM_LIST prefix=kdlist SOURCE=list> 

    if ($kdlist.id == 400308)

    {

    console.log('$kdlist.id' + ' ' + '$kdlist.MODIFY_DATE_INT_DATE'); 

    }

    </PDM_LIST>



  • 8.  Re: PDM_LIST and KD Issue

    Posted Jun 04, 2015 10:35 AM

    thanks for sharing this!

    haven't used it before, seems to be a good alternative to lsWrite.

     

    But in this situation still need to hide table via js...