Jump to content

cdtj

Members
  • Content count

    636
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by cdtj

  1. So you can directly ask Daniel, hope he'll help you. He's a friendly guy Another place to contact him: https://communities.ca.com/people/daniel-bighelini
  2. hi, have seen an example in SDU Brasil: https://www.facebook.com/groups/usuariossdmbrasil/permalink/1950265271671044/
  3. hi have you checked log for errors? I had something similiar when rest services wont start without any reason so i redeployed them using pdm_rest_util -deploy command found here: https://comm.support.ca.com/kb/while-trying-to-deploy-the-service-desk-manager-rest-api-an-error-is-received-the-system-is-out-of-resources/kb000019810
  4. cdtj

    Show Filter button

    Hi, check button option for sfStart macro: https://support.ca.com/cadocs/0/CA Service Desk Manager 12 9-ENU/Bookshelf_Files/HTML/CA_SDM_Web_Screen_Painter_Help_ENU/index.htm?toc.htm?sfstart.html Regards.
  5. hi, try to add +HTMPL=z_detail_called.htmpl to your url. regards.
  6. hi, try this one: function zAlgPopup(aty, htmpl) { var alg_url = window.cfgCgi + "?SID=" + window.cfgSID + "+FID=" + window.fid_generator() + "+FACTORY=cr" + "+PERSID=" + window.argPersistentID + "+OP=UPDATE+ACTIVITY_LOG_TYPE=" + aty; if (typeof(htmpl) == "string") { alg_url += "+HTMPL=" + htmpl; } popupActivityWithURL(alg_url); } <PDM_MACRO name=button Caption="Log Comment" Func="zAlgPopup('LOG', 'detail_alg_edit.htmpl')" hotkey_name="LOG[G]" ID="LOG"> button should located between dtlForm and dtlStart.
  7. cdtj

    URGENT !! Blank Notification Issue!!

    if youre triggering notification from Activity you should access fields through related object, eg: @{call_req_id.description} (or change_id, or issue_id) but if youre triggering from Event, it populating notification directly from itself, so you can access attributes directly: @{description} @{summary}, etc.
  8. cdtj

    Cab Approval

    you need to know: - spel basics; - vanilla javascript, jquery basics. I have list of tasks like Approval, Implementation, User testing, etc. Then I have registered trigger for that tasks, once task switch status from WAIT to PEND, trigger fires some activity to change chg's status. Whole logic contains ~2000 lines of spel and js code.
  9. cdtj

    Cab Approval

    hi, in our env we have implemented behaviour when Change's status can't be changed manually and depends by current tasks. So chg will not go furthur until all tasks for specified status will be completed. Regards, cdtj
  10. sound like a huge security issue and would be better if CA fix it globally, could you open a CA Support ticket about this? ca sdm uses javascript to generate inputs, so you can manually modify form generating script (detail_form.js or something like that) and replace unwanted tags with spaces using RegEx.
  11. you can redefine create button using sfStart pdm_macro: https://docops.ca.com/ca-service-management/14-1/en/building/building-ca-service-desk-manager/using-the-web-screen-painter-wsp/pdm-macro-definitions#PDMMacroDefinitions-sfStartas I remember you need to pass own javascript function as extraCreateURL, ex: <PDM_MACRO name=sfStart extraCreateURL="zCreateBREL"> function zCreateBREL() { create_new('z_table', <few attrs like window height/width>, 'PRESET=z_chg:$args.KEEP.chg_id'); } Its a good practice to use KEEP array to pass through id from main form to tab: <PDM_MACRO NAME=tab SRC="OP=SEARCH+FACTORY=z_table+KEEP.chg_id=$args.id...<some_other_params>">
  12. yeah, arrays in spel are very limited
  13. hi, ref_num can be update on insert (new ticket creation) only. If you share your code and error message I can review it. Regards, cdtj
  14. might be obvious but do have repository that marked as default? (Admin tab > Attachments > Repos)
  15. Hi, have you tried to escalate backslashes (c:\\path\\file) or use forward slashes? Regards, cdtj
  16. oh, if I misunderstood you and you want to predefine chg on your custom form you can use PRESET functionallity: // in URL: +PRESET=<attr_name>:<rel_attr> // example, where 12345 is id and z_chg is your attr name: +PRESET=z_chg:12345 // or if you want to predefine chg using chg_ref_num, where 54321 is ref num: +PRESET_REL=z_chg:chg.id:chg_ref_num:54321
  17. hi, there is out-of-the-box thing called notification method, more information could be found here: https://docops.ca.com/ca-service-management/14-1/en/administering/configuring-ca-service-desk-manager/how-to-configure-notifications https://docops.ca.com/ca-service-management/14-1/en/building/building-ca-service-desk-manager/modify-notification-methods#ModifyNotificationMethods-TheNotificationProcess
  18. change means chg (Change Order), feels like there should be nothing special and simple dtlLookup macro without any other params should trigger autocompletion. <PDM_MACRO name=dtlLookup hdr="Change Order" attr="chg">
  19. Hi, chg's outer key is id (type integer), so you need to fill it with change id, and then refer as: <change_attribute>.chg_ref_num How do you creating an entry in your custom table? Regards, cdtj
  20. check browser console (hotkey F12) for errors
  21. hi, i think you can avoid spell in this scenario, you can simply define zbgt_summary_check on form level. if you're creating activity (alg) using OP=UPDATE+FACTORY=cr (used in transfer, status change, escalate, etc) you can specify attr as: docWriteln('<input name="SET.zbgt_summary_check" id="zbgt_summary_check" value="${args.zbgt_summary_check}">'); and if you're using OP=CREATE_NEW+FACTORY=alg like it used in log comment, code will be: docWriteln('<input name="SET.call_req_id.zbgt_summary_check" id="zbgt_summary_check" value="${args.call_req_id.zbgt_summary_check}">'); js part: function preSaveTrigger() { if (someErrorStatement) { alert("some error message"); return false; } else { alert("DEBUG: Setting 400001 to zbgt_summary_check"); jq("#zbgt_summary_check").val(400001); return true; } } preSaveTrigger triggers when user click Save button. Regards, cdtj
  22. Hi, please share your trigger (mod file) too. If you're using POST_/PRE_VALIDATE on change factory, try to use POST_CI then. Regards, cdtj
  23. sorry for necroposting, I had the same error which was ignored for years and now I figured out the rootcause. incorrect references in notification templates can cause this error too.
  24. hi, you can try to use format function, example: format("chg.chg_ref_num IN '%s' AND nr.zkpi IN '1'", chg_num); Regards, cdtj
  25. hi, as far as i know you can specify any existing attribute as part of xml file and then upload it using grload, example: <ci> <some other attrs>.......</some other attrs> <resource_contact>cnt:UUID_HERE</resource_contact> </ci> or if this will not work, try to use text_api to map attrs: https://docops.ca.com/ca-service-management/14-1/en/reference/ca-service-desk-manager-reference-commands/technical-reference/ca-sdm-text-api-interface Regards, cdtj
×