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

Thread: $variable value in Javascript.

  1. #1
    Member
    Join Date
    Feb 2008
    Location
    India
    Posts
    32

    Default $variable value in Javascript.

    Hi All,

    I am defining a $ variable in the form designer for the field value. I need to call that $variable in Javascript.
    Suppose i am using $abc and it is in file:cm3r

    how can i call in JS
    javascript:
    //Initialize file variable
    //table: cm3r
    var filevar=newSCFile( "cm3r" );
    filevar.(i need to call that $abc variable here);

    How can i do it? Can i call the $variable in JS directly.

    Please help me.

  2. #2
    Senior Member fid509's Avatar
    Join Date
    Feb 2002
    Location
    Brussels
    Posts
    381

    Default

    You can reference a SC variable with the JS statement
    system.vars.$abc

    if there are dots inside the SC variable they must be replaced by _

    system.vars.$lo_ucapex

    you can also reference for example $file as a vatiable

    system.vars.$file.problem_status (get the problem.status value in IM for example)

  3. #3
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,272

    Default

    Or

    system.vars["$file"]["problem.status"]
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  4. #4
    Senior Member glg's Avatar
    Join Date
    Aug 2004
    Location
    Chicago, IL, USA
    Posts
    714

    Default

    filevar.$abc doesn't make any sense though. A variable wouldn't be a part of a newly instantiated cm3r record.

+ 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