CA Service Management

Expand all | Collapse all

Is it possible to launch the profile browser via a URL so that it populates the contact infomation based on multiple parameters (e.g. last_name and first_name)?

  • 1.  Is it possible to launch the profile browser via a URL so that it populates the contact infomation based on multiple parameters (e.g. last_name and first_name)?

    Broadcom Employee
    Posted Nov 01, 2017 11:21 PM

    Hi All

     

    Service Desk 14.1

     

    Is it possible to launch the profile browser via a URL so that it populates the contact information based on multiple parameters (e.g. last_name and first_name)

     

    You can certainly do it by passing a single parameter - e.g.

    http://server:8080/CAisd/pdmweb.exe?OP=DISPLAY_FORM+HTMPL=profile_browser.htmpl+PERSID=cnt:last_name:ServiceDesk+KEEP.POPUP_NAME=USD1509523377193+prop.role_menubar=menubar_sd.htmpl

     

    Is there a way to pass multiple parameters in the URL? - something like PERSID=cnt:last_name:ServiceDesk&cnt:first_name:Fred

     

    I've tried a few different variations on the above but haven't been able to get it it work.

     

    Anyone have any ideas?

    Thanks,
    Gordon.



  • 2.  Re: Is it possible to launch the profile browser via a URL so that it populates the contact infomation based on multiple parameters (e.g. last_name and first_name)?
    Best Answer

    Posted Nov 02, 2017 01:23 AM

    Hi,

    somewhere in techdocs i saw workaround, which can be implemented in this way:

     

    - search for contact using OP=SEARCH, you specify multiple params concatenated as "SQL AND" using OP variables: Supported Server Operations - CA Service Management - 14.1 - CA Technologies Documentation 

    ex: +QBE.EQ.last_name=Smith+QBE.EQ.first_name=John

    - pass some trigger flag: +KEEP.zForProfile=1

    - on list_cnt add lswrite depending on that flag which will rediredct you to profile tab, something like this:

    <PDM_IF "$args.KEEP.zForProfile" == "1">
    <PDM_MACRO name=lsWrite text="profile_browser('@{list.persistent_id}',void(0),void(0),'');">
    </PDM_IF>

    - here is a way to open profile browser (OP=JUST_GRONK_IT): URL for the "user profil", if profile_browser function willn't work.

     

    Regards,

    cdtj



  • 3.  Re: Is it possible to launch the profile browser via a URL so that it populates the contact infomation based on multiple parameters (e.g. last_name and first_name)?

    Posted Nov 03, 2017 11:19 AM

    Remembered little addition for multiple search results, using previous zForProfile flag you can separate combo_name attr to regular with link=yes param and fmtfunc one, fmtfunc will also trigger profile_browser.

    function zOpenProfile(var) {
         rs.data("<a href=\"#\" onclick=\"profile_browser(" + z_persid + ",void(0),void(0),'');\">" + var + "</a>");
    }
    <PDM_IF "$args.KEEP.zForProfile" == "1">
         <PDM_MACRO name=lsWrite text="var z_perisd = '@{list.persistent_id}';">
         <PDM_MACRO name=lsCol hdr="Name" attr=combo_name exportFmt="ShowLink" startrow="no" fmtfunc=zOpenProfile>
         zOpenProfile
    <PDM_ELSE>
         <PDM_MACRO name=lsCol hdr="Name" attr=combo_name exportFmt="ShowLink" link=yes startrow="no">
    </PDM_IF>


    Regards, cdtj