Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 01/17/2019 in all areas

  1. 2 points
    for initial load of update_lrel_xxx form find this area in list_nr.htmpl: <PDM_IF "$args.KEEP.ForLrel" == "1"> document.write('<input type="hidden" name="HTMPL" value="update_lrel_nr.htmpl">'); and add document.write('<input type="hidden" name="KEEP.RowsPerPage" value="100">'); in update_lrel_xxx you can Change all links in loadActions() with this: jq("[id^=dx_]").each(function() { jq(this).attr("href", jq(this).attr("href") + "+KEEP.RowsPerPage=100"); }); regards, pacy
  2. 1 point
    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); });
  3. 1 point
    hi, this one should help: https://community.broadcom.com/communities/community-home/digestviewer/viewthread?MID=751297
  4. 1 point
    hi, check for msg_cat.js file.
  5. 1 point
    currently i'm out of business and cant test anything, but i'm pretty sure i called webservices using perl directly from sdm. you can use cmd to debug perl scripts pdm_perl <scriptname.pm> and i think that perl libs/binaries should be somewhere near pdm_perl file regarding that vbs example, it looks like bullshit (sorry), because: method have dot in it's name which is restricted; method declared without arguments and not even called within example, but it's passed as argument for .exe file which is not method name at all; send_wait called method with .exe is trying to pass some arguments which are not declared
  6. 1 point
    Hi, Spell (spl) or sdm itself can't be used to call webservices. But perl can and also perl scripts can be called via spel_srvr as regualr spel methods. This way is fun and pleasant to implement. Useful links: https://community.broadcom.com/enterprisesoftware/viewdocument/spel-how-to-execute-remote-referenc?CommunityKey=e2cd3188-49bc-4f38-88f1-74260f56fa66&tab=librarydocuments https://metacpan.org/pod/SOAP::WSDL (outer lib maybe not included in sdm perl package, also there should be other ways to call wsdl using perl) Also there is a "legal" way using CA PAM but didn't tried it. Regards
  7. 1 point
    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. 1 point
    On pressing F12, the error "Unrecognized expression" were related to below lines and removing these 2 lines, the functionality worked as intended. ahdframe.jq("[name=SET.assignee]").val(""); ahdframe.jq("[name=SET.group]").val(""); Thank you so much sir, on this customization code assistance. Have a great day!!
  9. 1 point
    Hi, you can't fetch data in survey this way, because survey isn't linket to ticket, try to use PDM_LIST macro to get tickets data: code will look like: <PDM_LIST prefix="list" factory="cr" where="persistent_id = '$ext_args.CNTXT_PERSID'"> var cr_ref_num = "$list.ref_num"; var cr_assignee = "$list.assignee.combo_name"; // etc... </PDM_LIST> alert(cr_ref_num); alert(cr_assignee);
  10. 1 point
    Thanks very much, you are correct. I added the line change.description=""; in the cr::site_call_to_change_mapping() method. Thanks again
  11. 1 point
    I had this problem on Windows Server 2008. this issue is related with permissions. You have to "run as administrator" the DOS command line program. Otherwise you will have this issue.
  12. 1 point
    Sorry for the delay in reply, I added the true as you suggested and it now works. Thanks for your help!!
  13. 1 point
    I get this as well, I do have the edit logic on the field but once you value the field after it barks at you you are not able to save/open the ticket. Any Idea why? <PDM_IF "$prop.form_name_3" == "edit"> function preSaveTrigger() { // Ensure that the Schedule Duration is something other than zero var sched_dur_value = document.main_form.elements["SET.sched_duration"].value; if (sched_dur_value == "00:00:00" || sched_dur_value == "00:0:00" || sched_dur_value == "") { alert("Please enter a value for Duration that is greater than zero"); return false; } } </PDM_IF>
  14. 1 point
    Hi Christoph. maybe this will help: ImgBtnCreate("btn001", "SDU", "window.open('http://www.servicedeskusers.com', 'MyWindow', 'width=300,height=400,left=100,top=200')", true, 0, "User Community for CA/Unicenter Service Desk");
  15. 0 points
    AWESOME!! That did it. Only thing is, should have been INT_DATE not INT_DAT. I saw another field referenced a similar way after I tried your suggestion and noticed the missing letter. Muchas Gracias!!!
  16. 0 points
    I'm not sure about Change Orders because we don't use them, but I created a new Incident and the open_date value was already populated prior to saving. I think you should be able to refer to it. MODIFY CHG PRE_VALIDATE z_needby_check() 123 FILTER(EVENT("UPDATE")); chg::z_needby_check( ... ) { if (need_by < open_date + 14400) { // 4 hours * 60 mins * 60 seconds = 14400 string z_needby_msg; z_needby_msg = format("Need By Date cannot be sooner than 4 hours after ticket creation"); set_error(1); set_return_data(z_needby_msg); return; }
  17. 0 points
    Try this: chg::zcheck_date(...) { logf(SIGNIFICANT,"in log"); string zsmg; string zmethod; [b]if(zstart_dt < (date) now())[/b] { zsmg=format(" The strat date cannot be before the current date"); set_error(1); set_return_data(zsmg); } return; }
×
×
  • Create New...