CA Service Management

  • 1.  Editing list form and tab form - CA SDM

    Posted Nov 14, 2018 04:08 PM

    Hello everyone!

     

    I need some help with two situations...

     

    1) I have this line in list_***.htmpl form:

    <PDM_MACRO name=lsCol hdr="Ticket" attr="NroTicket" exportFmt="ShowLink" link=yes startrow="no">

     

    I need to call an .aspx page when I click on the link called "Ticket", in the list of records.

     

    I know how to do it with a button, but I can't resolve it with a "lsCol".

     

    2) I have this line in tab_***.htmpl form:

    <PDM_MACRO name=tabList btntitle="Cargar lista" height=300 src="OP=SEARCH+FACTORY=zTicket+QBE.EQ.cr=$args.persistent_id+KEEP.forTicketList=1">

     

    The list shows every record related or not to the ticket I'm positioned in. I's not filtering.

     

    Thanks in advance, 

     

    Regards!

     

    Ana KBS.



  • 2.  Re: Editing list form and tab form - CA SDM

    Posted Nov 15, 2018 02:04 AM

    Hi.
    Take a look at the lsCol parameter fmtfunc.
    The function you specify can create any kind of content as the value for this column for each row.
    Hence, you should be able to create a link or a button for this column.
    You will find examples in bobcfg/www/htmpl/......
    Hope this helps
    Regards
    .....Michael



  • 3.  Re: Editing list form and tab form - CA SDM

    Posted Nov 15, 2018 09:45 AM

    Hi Michael, thanks!

    I suppose the function I can call using "fmtfunc" option is javascript, right?.

    I've had some issues about CORS calling a page (aspx) or WS using a js function from SDM.

    I could do it using s buttton (popoupWithURL) in a detail_***.htmpl form, but I still have problems filtering the values in the list:

     

    If I'm positioned in request number 42, the list shows all the records of the table, I only have to see the record with "Ticket SDM"= 42, but I see the record 46 and 42

     

    This is the line I'm using in the tab form:

    <PDM_MACRO name=tabList btntitle="Cargar lista" height=300 src="OP=SEARCH+FACTORY=zSolicitud+QBE.EQ.cr=$args.persistent_id+KEEP.forTicketList=1">

     

    The table "zSolicitud" has the field "TicketSDM " SREL to call_req.

     

     

    Thanks in advance.

     

    Regards,

     

    Ana KBS.



  • 4.  Re: Editing list form and tab form - CA SDM

    Posted Nov 16, 2018 08:58 AM

    Hi Ana

    Yes, fmtfunc specifies a JavaScript function.

    for CORS requests the following article might help:

    https://www.html5rocks.com/en/tutorials/cors/

     

    Regarding your Tab:

    your tab is displaying a list containing zSolicitud records which fullfills the condition "cr=$args.persistent_id"

    while $args.persistent_id is the persistent_id value of the Request "42"

     

    You can check the content of the db with  the following commands on the server:

    to figure out the persistent_id of request42

    bop_odump domsrvr cr "ref_num='42'" persistent_id

    to get a list of zSolicitud records which are Point to request 42

    bop_odump domsrvr zSolicitud "cr='persistent_id of request 42'" cr.ref_num

    If this last command also diplays request 42 and 46, there is nothing wrong with the GUI tab, but maybe with your db content.

    Regards

    .........Michael

     

     

     



  • 5.  Re: Editing list form and tab form - CA SDM

    Posted Nov 16, 2018 10:03 AM

    Hi Michael, I could solve the situation about de JS function, using fmtfunc= CallSIS and the function is like this:

     

    function CallSIS(value) {
    rs.data("<a href=\"#\" onclick=\"popupWithURL('http://10.xx.xx.xx/***/***/?user=$args.cr.customer.userid&ticket=$args.cr.ref_num', '1', '1', '1');\">" + value + "</a>");
    }

     

    About the values of the list form I'm making some tests....we'll see.

     

    Thanks for your help

     

    Regards.

     

    Ana KBS.