Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Do rules move to virtual tables

  1. #11
    Quote Originally Posted by barrymavin View Post
    They will only be refreshed in the UI if you issue a refresh() on the section or field.
    I see where I went wrong - I was typing the example into the console, but you cant have continuation lines there - must all be on one line.

    So now it is working - I can see it works by navigating thru the records.
    Now I want to issue a refresh() on the section or field. To do that, I put a button on the canvas with a click of:

    Lianja.getElementByID("section1").refresh()

    That presumably is incorrect, because it doesn't refresh the calculated field?

    If there is documentation for getElementByID, could you give me the link.

  2. #12
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,183
    Blog Entries
    22
    Try referencing the action control name rather than the section.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #13
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,183
    Blog Entries
    22
    Quote Originally Posted by cyrilbaskir View Post
    I see where I went wrong - I was typing the example into the console, but you cant have continuation lines there - must all be on one line.

    So now it is working - I can see it works by navigating thru the records.
    Now I want to issue a refresh() on the section or field. To do that, I put a button on the canvas with a click of:

    Lianja.getElementByID("section1").refresh()

    That presumably is incorrect, because it doesn't refresh the calculated field?

    If there is documentation for getElementByID, could you give me the link.
    http://www.lianja.com/resources/blog...a-object-model
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #14
    Quote Originally Posted by barrymavin View Post
    Try referencing the action control name rather than the section.
    OK thanks. I haven't been able to figure out yet if it does the CALCULATED only when you save, or immediately you change one of the fields.
    I will do some more tests later.

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
  •  
Journey into the Cloud
Join us