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

Thread: How to use javascript objects system.record and system.oldrecord

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Location
    France
    Posts
    16

    Default How to use javascript objects system.record and system.oldrecord

    In a script, I need to make reference to a field (change form) in the current record and in the previous record(equivalent of the $file0 in the format control).
    I found objects javascript system.record and system.olrecord. How do they work and how to make reference to my field in these two objects?
    Thank you for your help.
    Regards.

  2. #2

    Default

    the record and oldrecord objects replace $file and $file0. so you can actually use record and oldrecord the same way you would use $file or any other file object in JS. Check the trigger 'contextAction.post.update' for an example.

  3. #3
    Junior Member
    Join Date
    Sep 2009
    Location
    France
    Posts
    16

    Default

    Great !! Thanks for your reply :-))
    FI, this trigger exists on SM 7.11 and not on 7.02 (the version I'm working on).

  4. #4

    Default

    in that case check one of the globallists triggers for examples
    GB

+ 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