CA Service Management

  • 1.  Additional search (list) filter

    Posted Aug 26, 2015 09:57 AM

    Hello team!

    I'm trying to create a shorter list of Request Activities but can't achieve it by myself,

    something goes wrong.

     

    I declared my alg tab on Request form as:

    <PDM_MACRO name=tab title="Act Log" height=300 id=alg src="OP=SEARCH+FACTORY=alg+QBE.EQ.call_req_id=$args.persistent_id+KEEP.short_view=1" tooltip="Activity Log">
    

     

    On list_alg I've placed this, between sfStart and sfEnd:

    <PDM_IF "$args.KEEP.short_view" == "1"> 
    document.write('<INPUT TYPE=hidden ID=ADDL_WHERE_HARDCODE NAME=ADDL_WHERE_HARDCODE VALUE="(type IN (\'CB\', \'ST\', \'INIT\')) AND (internal = 0 OR internal IS NULL)">'); 
    <PDM_ELSE>
    document.write('<INPUT TYPE=hidden ID=ADDL_WHERE_HARDCODE NAME=ADDL_WHERE_HARDCODE VALUE="(internal = 0 OR internal IS NULL)">');
    </PDM_IF>
    

     

    But extended search attributes applies only when I click "Search" button, when I wish it on list loads.

     

    Regards,

    cdtj



  • 2.  Re: Additional search (list) filter

    Posted Aug 27, 2015 05:10 AM

    I have similar configuration on my 14.1, but it is working properly. The only difference I see is that I have defined variable argType on detail form and I using it instead of KEEP on my tab list form, and I also using javascript if statement instead of PDM_IF

     

    if (ahdframe.argType == 'Yes')

    {

    document.write('<INPUT TYPE=hidden ID=ADDL_WHERE_HARDCODE NAME=ADDL_WHERE_HARDCODE VALUE="(.....

    }

    else

    {

    document.write('<INPUT TYPE=hidden ID=ADDL_WHERE_HARDCODE NAME=ADDL_WHERE_HARDCODE VALUE="(.....

    }



  • 3.  Re: Additional search (list) filter

    Posted Aug 27, 2015 05:23 AM

    hi Gutis,

    I think this may be caused due to factory,

    conditions like "KEEP.whereclause=id=12345" also didn't work in my environment.

     

    I've found workaround solution:

    published attribute in Activity Type table called z_short_view and used this URL to show activites:

    1. <PDM_MACRO name=tab title="Act Log" height=300 id=alg src="OP=SEARCH+FACTORY=alg+QBE.EQ.call_req_id=$args.persistent_id+QBE.EQ.type.z_short_view=1" tooltip="Activity Log"> 

    This aslo gives possibility to do any configurations from Admin interface.