CA Service Management

 View Only
  • 1.  Custom table & BREL on cr

    Posted Nov 06, 2015 08:57 AM

    I am trying to create a new table to record activities such as recording the LOGS but with many details, so I created a new table and tried to follow the procedure but the document ID will not for the new form.

     

    Sometimes I think it would be easier to use the alg and create a new type, is it possible?

     

    How can I get cr.id/persid on new form?

     

    How to create custom BREL/QREL/LREL attribute



  • 2.  Re: Custom table & BREL on cr

    Posted Nov 06, 2015 09:14 AM

    You should get it automaticaly if you will follow this document and if you will  create ner record from the related ticket. Anyway could you provide more information what is not working for you. I have used this document number of times and had no problems



  • 3.  Re: Custom table & BREL on cr

    Posted Nov 06, 2015 11:30 AM

    ok,following procedure...where I did a mistake?

     

    It's little different by cr (procedure is chg)

     

    • BREL

    1. Create custom table (zmytable)

     

    2. Create custom field on cr

    cr.zmyfield

    type:BREL

    brel table: zmytable

    advanced:

    cr DYNAMIC{ DOMSET MLIST_DYNAMIC;}

     

    3. HTMPL forms list and details,

     

    Modify detail_cr.htmpl:

        1.    Open detail_cr.htmpl for decided form group

        2.    Add new tab between startNotebook and endNotebook tabs:

    <PDM_MACRO name=TAB title="Additional table" height=600 id=ext_wfs src="OP=SEARCH+FACTORY=zmytable+QBE.EQ.call_req_id=$args.persisten_id">
    

      

    It was my procedure used on cr, but I cannot see buttons - create,search

     

    tks

     

     

     

     




  • 4.  Re: Custom table & BREL on cr
    Best Answer

    Posted Nov 06, 2015 02:27 PM

    Hi did you create list_zmytable and detail_zmytable forms? Inlist_zmytable you should specify that create new button should be created.

    var enableExtraBtn = true

    cfgExtraButton = new Array("Create New", "zCreateNew()", enableExtraBtn); 

    function zCreateNew()

      create_new('zmytable',0,0,0,'PRESET=crid:'+ahdframe.argCode,'INITFROM=frm002');

    crid is SREL attribute to cr in your custom table