Jump to content

cdtj

Members
  • Content Count

    671
  • Joined

  • Days Won

    34

cdtj last won the day on November 15 2019

cdtj had the most liked content!

Community Reputation

36 Excellent

About cdtj

  • Rank
    Level 7 Contributor
  • Birthday 01/01/1970

Contact Methods

  • Website URL
    https://www.upwork.com/o/profiles/users/_~01b6c18f9463fc81f5/
  • Skype
    cdtj71

Profile Information

  • Location
    pdm_halt
  • Interests
    customization on demand, check link in profile

Recent Profile Visitors

2,236 profile views
  1. // i hope that codeRol is defined if ((type == "R") && (active == 1) && (codeRol == "SOLSERRED")) { if (status == "OP") { if (is_null(zGrupo_Inicial) || is_empty(zGrupo_Inicial)) { send_wait(0, this, "call_attr", "zGrupo_Inicial", "set_val", group.id, "SURE_SET"); logf(SIGNIFICANT, "%s > successfully set campo zGrupo_Inicial", persistent_id); } else { logf(SIGNIFICANT, "%s > campo zGrupo_Inicial lleno", persistent_id); } } else if (status == "RE") { send_wait(0, this, "call_attr", "group", "set_val", zGrupo_Inicial, "SURE_SET"); logf(SIGNIFICANT, "%s > successfully set campo zGrupo_Inicial", persistent_id); } }
  2. hi, there is no way to pass array as argument, but you can create an object and pass it. how to was posted by daniel on ca.community which is unreachable for me. regarding to your name, are you from CIS? and if yes, are any companies still using ca sdm?
  3. this might be caused because you have more than one SET.customer called input (like in other form which is used to create parent/child object), try to define main form in jquery selector, ex: // not sure that main_form is a name, it can be an id, then use "#main_from" instead. jq("[name='main_form'][name='SET.customer']").val(); or check other inputs to confirm that problem is in wrong selection: // check jquery .each syntax if this fails jq("[name='SET.customer']").each(function(a, b) { alert(a + ":" + b.name + " @ " + b.value); });
  4. hi, just fetch the customer after the button has been clicked. You can use jquery (which is already included in sdm), code could be: alert("pdmqa:" + jq("[pdmqa='customer']").val()); alert("SET.customer:" + jq("[name='SET.customer']").val());
  5. hi Utku! check this one: https://community.broadcom.com/communities/community-home/digestviewer/viewthread?MID=765706 you need to apply refresh parent on close thing described in 10'th post in linked thread. regards.
  6. hi, ticket distribution is based on QREL called workload, default query is "assignee = ? AND active = 1" which means all active ticket on selected assignee. you can modify it in NX_ROOT/bopcfg/majic/cnt.spl (or cnt.maj or base.maj), I can't really remember in which one. so, you need to find workload attr in NX_ROOT/bopcfg/majic folder and modify it, for example to "assignee = ? AND active =1 AND resolve_date is NULL" which means count only unresolved tickets. regards, Timur
  7. hi, this one should help: https://community.broadcom.com/communities/community-home/digestviewer/viewthread?MID=751297
  8. hi - you need to get the name of modification date attribute, this command should help: bop_sinfo -a wf | find "DATE" - call sync_fetch to get tasks list; example: - task by task compare modification date between fetched records; OR - using bop_sinfo get list of all domsets and maybe there is already presented sorted order by mod date, so you can use to it get the latest record.
  9. just swap priority get and display macros: <PDM_MACRO name=lswrite text="var zPriEnum = @{list.priority.enum:0}"> // this one gets current priority <PDM_MACRO name=lscol attr=priority fmtfunc=zPriClr // this one displays it
  10. hi, this is not spel related but form customization, you need to define extraurl with search criteria eg: QBE.EQ.location_attr=$args.owning_resource more about extra urls could be found in administration guide: https://ftpdocs.broadcom.com/cadocs/0/CA Service Desk Manager 12 9-ENU/Bookshelf_Files/HTML/CA_SDM_Web_Screen_Painter_Help_ENU/dtldropdown.html
  11. Hi cdtj!

    Can you help me with a requirement on CA servicedesk please  ?

    I require to display a fields   when someone create a Change Order   and use a certain category then when these fields are displayed shows a checkbox to select yes or no and when the users select Yes displays a field in blank.

     

    Sorry about my english i still learning the lenguage  

     

  12. and one more tip, using bop_cmd could save a lot of time debuging spel code
  13. hi, you need to specify return type, eg: string z_echo(string input) { return input; } void z_echo_call() { printf(z_echo("hello")); // output: hello }
  14. hi you need to add fmtfunc to your priority lscol and add additional lswrite to fetch priority enum. there would be something like this: <PDM_MACRO name=lscol attr=priority fmtfunc=zPriClr> <PDM_MACRO name=lswrite text="var zPriEnum = @{list.priority.enum:0}"> function zPriClr(val) { function zGetPriClr(enumVal) { switch (enumVal) { case 1: return "red"; case 2: return "blue"; case 3: return "green"; default: return "black"; } } rs.data("<span style='color:" + zGetPriClr(zPriEnum) + "'>" + val + "</span>"); }
  15. Hi folks, I have packed my favorite spel functions into one lib which I called "zspel". Everyone can download it here: https://github.com/cdtj/zspel It provides utilities to quick search and update objects via spel in only few lines of code. Personally, I rewrote most of my old code using followed functions and my code shortened up to 70%.
×
×
  • Create New...