Want to get rid of Google Ads, click here.
  • Section Widget

  • Recent Article Comments Widget

    jmbetty

    I added the variable reset and that cleared up that part of the issue. I'm still getting the... Go to last post

    Kill User Sessions without being SysAdmin

    jmbetty on 2010-08-19
    Jacob.Heubner

    As far as your edit goes, I saw that too. I apparently don't reset the host array in... Go to last post

    Kill User Sessions without being SysAdmin

    Jacob.Heubner on 2010-08-19
  • How to conditionally load a file in the background using JavaScript

    Following JavaScript can be used to load a file based on conditions.

    1: Save this code in a JavaScript library called JSlib (or whatever you choose just remember to change references)
    Code:
     
    function loadFileFromSchedule(schedule)
    { 
    var rteReturnValue = new SCDatum(); var rteNames = new SCDatum(); rteNames.push("record"); var rteValues = new SCDatum(); rteValues.setType(8); rteValues=system.functions.insert(rteValues, 0, 1, schedule); system.functions.rtecall("callrad",
    rteReturnValue, "bgload", //RAD app name rteNames, rteValues, false); //false to run in same thread, true to run in new thread
    return true;
    }
    2:
    Code:
    if (true)
    {
    system.library.JSlib.loadFileFromSchedule(vars["$L.schedule"]);
    }
    To use this do following:
    • Goto database manager
    • Rigth click and select Import/Load
    • Select the file to load (remember must be on a path accessible to the server)
    • Click LoadBG
    • Choose the parameters for the schedule, make sure it in future
    • Click LoadBG to make the schedule
    • Via database manager find the schedule record
    • Remove bgload from the field Application
    • In javascript paste code 2
    • Save the schedule

    NOTE: The bgload application in pre SM 7.10 has a bug that cause it not to work so if you are running SC 6.x or SM 7.0.x then you need to load the application from a 7.10 server.
  • Google search

    Google
     
  • Support ServiceCenter Resources - Make a donation

    Acceptance Mark