Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 7 of 7

Thread: Message : Assignment operator found

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Location
    Montreal, Canada
    Posts
    8

    Default Message : Assignment operator found

    Hello.

    Have anyone encountered the following message when calling a process from a javascript

    " Assignment operator found while evaluating a condition! (se.external.action,start) "

    The process is calling a script (script.execute) and call the rad routine : calendar.calc.fc

    I have looked in the se.external.action rad application .. did not found any messages !!

    How can I get ride off this message ... I do not want my users to see this each time they use the function !!!

  2. #2
    Senior Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    930

    Default

    This issue seems to be a single "=" (equal sign) in stead of a double "==" for an evaluate statement (like for ()). Most likely in an if () statement in you javascript.

  3. #3
    Junior Member
    Join Date
    Feb 2006
    Location
    Montreal, Canada
    Posts
    8

    Default

    Nop !!! I have checked that ...
    here is the code that calls my Process using state action :

    function EscalationAutoTime (iRecord, iLevel)
    /************************************************** *********************
    Calculation automatic escalation date/time
    defined in escalationdef files
    ************************************************** *********************/
    {
    var cxobjectname ="cxAlert.EscalationAutoTime"
    var cxprefix="SL: "+ cxobjectname +" - ";
    var info=system.library.cxTrace.GetDebugSL ( cxobjectname );// 0 - $G.cxdebug; 1 - $G.cxoutput; 2 - $L.debug

    var cxdebug = info[0];
    var cxoutput = info[1];
    var ldebug = info[2];

    if (cxdebug || ldebug) print (cxprefix+"Input javascript -- key="+iRecord.number+" -- escalation level="+iLevel);
    var RetVal =null;
    var vFileName =system.functions.filename(iRecord);
    if ( vFileName =="probsummary" )
    {
    var fProbsummary =newSCFile("probsummary");
    fProbsummary = iRecord;
    fProbsummary.job_name = iLevel;

    rc
    =fProbsummary.doAction("cxcalcalert");
    if (cxdebug || ldebug) print (cxprefix+" -- Calc Alert time="+fProbsummary.backup_time+" rc="+rc);
    if (fProbsummary.backup_time !=null)
    var RetVal =newDate(fProbsummary.backup_time);
    if (cxdebug || ldebug) print (cxprefix+"RetVal = "+RetVal+" -- key="+iRecord.number+" -- escalation level="+iLevel);
    }
    return RetVal;
    }

  4. #4
    Senior Member
    Join Date
    Apr 2006
    Location
    United States
    Posts
    178

    Default

    its likely because you are running your javascript from a condition field....

  5. #5
    Junior Member
    Join Date
    Feb 2006
    Location
    Montreal, Canada
    Posts
    8

    Default

    you are right ....
    I am running the javascript from a condition

    how do I turn off this message ....
    by the way ... the results is ok !!

  6. #6
    Senior Member
    Join Date
    Apr 2006
    Location
    United States
    Posts
    178

    Default

    dont run it from the condition field...that's the only way i figured out how to remove it...

  7. #7
    Senior Member
    Join Date
    Apr 2006
    Location
    Poland
    Posts
    680

    Default

    One option - yu may use callrad.

    Second - I have no access to SM now so maybe I am wrong, but I think
    doAction("xxxxx")

    would help. xxx is the displayaction defined in displayscreen.

    regards
    Artur
    Last edited by Artur; 2009-09-10 at 22:36.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts