Jump to content

thiago23oliveira

Members
  • Content Count

    31
  • Joined

  • Last visited

Community Reputation

0 Neutral

About thiago23oliveira

  • Rank
    Level 3 Contributor

Contact Methods

  • Website URL
    https://www.linkedin.com/in/thiago-23-oliveira
  • ICQ
    0

Profile Information

  • Gender
    Male
  • Location
    Rio de Janeiro

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. This way here works: function zIncident_validation(value) { console.log("value: " + value + ", current ztype2: " + jq("[pdmqa=ztype2]").val()); // Change ztype2 to your attr name switch (value) { case "400338": jq("[pdmqa=ztype2]").val("INCIDENT"); break; default: jq("[pdmqa=ztype2]").val("REQUEST"); } } Thank you so much for your help @cdtj
  2. g/. send @ jquery-1.9.0.min.js:3 :8080/CAisd/pdmweb.exe?SID=1631936641+FID=430611102+OP=UPDATE+FACTORY=cr+SET.id=1335752+SET.tenant=F36DF13B416F2B448384F55AD8EAF841+KEEP.POPUP_NAME=USD1562695973656+KEEP.use_role=1:651 value: 400338, current ztype2: REQUEST :8080/CAisd/pdmweb.exe?SID=1631936641+FID=1787192312+OP=UPDATE+FACTORY=cr+SET.id=1335752+SET.tenant=F36DF13B416F2B448384F55AD8EAF841+KEEP.POPUP_NAME=USD1562695973656+KEEP.use_role=1:651 value: 400338, current ztype2: REQUEST :8080/CAisd/pdmweb.exe?SID=1631936641+FID=1787192312+OP=UPDATE+FACTORY=cr+SET.id=1335752+SET.tenant=F36DF13B416F2B448384F55AD8EAF841+KEEP.POPUP_NAME=USD1562695973656+KEEP.use_role=1:651 value: 400057, current ztype2: REQUEST :8080/CAisd/pdmweb.exe?SID=1631936641+FID=1787192312+OP=UPDATE+FACTORY=cr+SET.id=1335752+SET.tenant=F36DF13B416F2B448384F55AD8EAF841+KEEP.POPUP_NAME=USD1562695973656+KEEP.use_role=1:651 value: 400338, current ztype2: REQUEST :8080/CAisd/pdmweb.exe?SID=1631936641+FID=1692206314+OP=UPDATE+FACTORY=cr+SET.id=1335752+SET.tenant=F36DF13B416F2B448384F55AD8EAF841+KEEP.POPUP_NAME=USD1562695973656+KEEP.use_role=1:651 value: 400338, current ztype2: REQUEST :8080/CAisd/pdmweb.exe?SID=1631936641+FID=266538564+OP=UPDATE+FACTORY=cr+SET.id=1335752+SET.tenant=F36DF13B416F2B448384F55AD8EAF841+KEEP.POPUP_NAME=USD1562695973656+KEEP.use_role=1:651 value: 400338, current ztype2: REQUEST pdmweb.exe?SID=1631936641+FID=819547142+OP=UPDATE+FACTORY=cr+SET.id=1335752+SET.tenant=F36DF13B416F2B448384F55AD8EAF841+KEEP.POPUP_NAME=USD1562695973656+KEEP.use_role=1:651 value: 400338, current ztype2: REQUEST pdmweb.exe?SID=1631936641+FID=819547142+OP=UPDATE+FACTORY=cr+SET.id=1335752+SET.tenant=F36DF13B416F2B448384F55AD8EAF841+KEEP.POPUP_NAME=USD1562695973656+KEEP.use_role=1:651 value: , current ztype2: REQUEST pdmweb.exe?SID=1631936641+FID=819547142+OP=UPDATE+FACTORY=cr+SET.id=1335752+SET.tenant=F36DF13B416F2B448384F55AD8EAF841+KEEP.POPUP_NAME=USD1562695973656+KEEP.use_role=1:651 value: 400338, current ztype2: REQUEST
  3. I did this change, take a look at the result: <select id="df_3_1" pdmqa="resolution_code" tabindex="100" onfocus="return detailFocus(this);" onblur="return detailBlur(this);" onchange="zIncident_validation(this.value);" title="Código de resolução" name="SET.resolution_code" class=""> <option value="">&lt;vazio&gt; </option><option value="400052">Atualização </option><option value="400388">Checagem rotineira </option><option value="400389">Conceder acesso </option><option value="400117">Configuração </option><option value="400391">Criar / Alterar / Excluir E-mail </option><option value="400390">Criar / Alterar usuário </option><option value="400323">Criar/Gerar Relatório </option><option value="400065">Emprestimo de equipamento </option><option value="400325">Excluir Acesso </option><option value="400331">Falha de Infra </option><option value="400330">Falha de sistema </option><option value="400054">Instalação </option><option value="400053">Orientação </option><option value="400051">Remanejamento </option><option value="400392">Reset de senha </option><option value="400337">Restauração de arquivos </option><option value="400057">Substituição de equipamento </option><option value="400338">Verificar falhas </option></select>
  4. Hi @cdtj I change to this code, but doesn't work. function zIncident_test(value) { // Change ztype2 to your attr name switch (value) { case "400338": jq("[pdmqa=ztype2]").val("I"); break; default: jq("[pdmqa=ztype2]").val("R"); } } <PDM_MACRO name=dtlDropdown hdr="Código de resolução" attr=resolution_code evt="onchange='zIncident_test(this.value);'">
  5. Hi my friends, I'm trying to set a value of one field based on another field, if the analyst set a determinated value to one field, I need to set automatically the value of another. I've created this function, but it isn't working yet. What I'm doing wrong? function zIncident_test(value) { var ztype2 = document.main_form.elements["SET.ztype2"]; if (value == "400338" ) { // set the value to field ztype2 ztype2=='I'; } else { ztype2=='R'; } } ################################################# <PDM_MACRO name=dtlDropdown hdr="Código de resolução" attr=resolution_code evt="onchange='zIncident_test(this.value);'">
  6. This document will show how to create new hiersel, hierload and new factories to table rootcause (rc). On this example I'm using the rootcause categorys to request and incidents on detail_in.htmpl. 1º) Create 2 new columns on table rootcause (z_cr_flag and z_in_flag - INTEGER); 2º) Create 2 new factorys with .mod files just like below: <After install this files, you must restart the CA SDM services> File: rc_cr.mod OBJECT rc { FACTORY rc_cr{ RESTRICT "z_cr_flag = 1 " { z_cr_flag=1}; STANDARD_LISTS { MLIST OFF; RLIST OFF; SORT_BY "sym"; }; REL_ATTR persistent_id; COMMON_NAME sym; }; }; File: rc_in.mod OBJECT rc { FACTORY rc_cr{ RESTRICT "z_in_flag = 1 " { z_in_flag=1}; STANDARD_LISTS { MLIST OFF; RLIST OFF; SORT_BY "sym"; }; REL_ATTR persistent_id; COMMON_NAME sym; }; }; 3º) Create new files: hiersel_rc_cr.htmpl and hierload_rc_cr.htmpl ||| hiersel_rc_in.htmpl and hierload_rc_in.htmpl <You can copy the default files of rc -- hiersel_rc.htmpl and hierload_rc.htmpl -- this files could be located at $NXROOT\bopcfg\www\htmpl\default > After copy the files and rename them, put the new files at $NXROOT\site\mods\www\htmpl\default You must change the factory on each one of them, effectly the change must be applied on this part of the code: hiersel_rc_cr.htmpl and hierload_rc_cr.htmpl <PDM_LIST PREFIX=list FACTORY=rc_cr WHERE="${args.KEEP.HierWc:}" hiersel_rc_in.htmpl and hierload_rc_in.htmpl <PDM_LIST PREFIX=list FACTORY=rc_in WHERE="${args.KEEP.HierWc:}" 4º) On detail_in.htmpl you must add the follow code to separate each factories: <PDM_IF "$args.zType2" == "I"> <PDM_MACRO name=dtlHier hdr="Categoria de fechamento" attr=rootcause factory=rc_in autofill="no"> <PDM_ELIF "$args.zType2" == "R"> <PDM_MACRO name=dtlHier hdr="Categoria de fechamento" attr=rootcause factory=rc_cr autofill="no"> </PDM_IF> zType2 is the attribute that controls the type of the ticket (Incident or Request). all_files.zip
  7. Hi my friends, At these days I have a need to force all the analysts to register the solution in all tickets that he's working with. So I made this customization below, maybe this should help someone. _____________________________________________________________________________________________ 1. Create a file "zcr_force_soln.spl" (put on $NXROOT/site/mods/majic) cr::zcr_force_soln(...){ send_wait( 0, this, "get_attr_vals",1,"soln_log.length"); if (msg_error()) { logf(ERROR, "Erro no campo soln_log.length de %s %s - %s", type, ref_num, msg[0]); return; } int zsoln_length; zsoln_length = msg[3]; if (zsoln_length == 0) { string zmsg; zmsg=format("Preencha a 'Solução' antes de mudar este %s para fechado.", type.sym); set_error(1); set_return_data(zmsg); } } 2. Open WSP > Schema Designer - Search for table CR > Advanced > Site defined trigger PRE_VALIDATE zcr_force_soln() 111 FILTER(status{-> 'RE'}); At this case, the solution is mandatory to status "Resolved" 3. Save and publish; 4. Restart the CA SDM services;
  8. Hi my friends, I am trying to create a function that only brings the information of the tickets with the maximum of the date and disregard the other values with inferior dates. Just like the print screen attached. I'm trying to use the follow function: =Máx([Last Mod Date]) But it doesn't work fine. Can anyone help me? Thanks guys.
  9. Hi guys, In the request form there is the Create incident button. I would like to take some of the request information, such as customer, category, assignee, group, summary and description to the new incident. To do this I have created a few presets in the "Create Incident" button settings, and created the form to handle summary and description information. But when I click to Create the new incident from the request, the summary and the request information is not copied to the new incident. I'm putting the codes below: What's is wrong guys? =(
  10. To do this, I've created a topic on CA Communities: https://communities.ca.com/docs/DOC-231179890-how-to-skip-request-workflow-task-automatically
  11. Hi guys, Consider this scenario: I have a request category with 3 classic workflow task attached: Request category Task 10 If the status of this task is APP then the task 20 and 30 most be skipped. If the status of this task is APP2 then the task 20 most be Pending and the task 30 most be Waiting. Task 20 Task 30 So to do this I've followed this steps: 1) Put the file upd_val.spl in the folder $NXROOT/site/mods/majic; 2) Recycle spel_srvr or restart the ca sdm services; 3) Create an action macro using this code: macro::upd_val("cr_wf", format("cr = '%s' AND sequence IN (20, 30)", cr.persistent_id), // search over other tasks in the same parent request with seq 20, 30 1, 0, // delays "status", "SKIP" // new status ); 4) Add this action macro to the status on task 10 that most be completed to skip the task 20 and 30; Reference: https://communities.ca.com/docs/DOC-231155346 by @cdtj upd_val.spl
  12. Hi Mynhardt, Do you have the action macro to execute this action? =) I have the same scenario on my enviroment.
  13. Hi guys, I have this scenario on my enviroment: On the task 1, if the status is APP then the two next tasks should be canceled or skipped. If the status on the 1st task is APP2 then the next task should be pending and the third one should be waiting. How can I create a action macro to this behavior? (Object = Request Workflow Task).
  14. Hi guys, I have this scenario on my enviroment: On the task 1, if the status is APP then the two next tasks should be canceled or skipped. If the status on the 1st task is APP2 then the next task should be pending and the third one should be waiting. How can I create a action macro to this behavior? (Object = Request Workflow Task).
  15. Hi guys, I have this scenario on my enviroment: On the task 1, if the status is APP then the two next tasks should be canceled. If the status on the 1st task is APP2 then the next task should be pending. How can I create a action macro to this behavior? (Object = Request Workflow Task).
×
×
  • Create New...