Results 1 to 2 of 2

Thread: change of gadget controlsource

  1. #1
    Senior Member
    Join Date
    Oct 2012
    Posts
    130

    change of gadget controlsource

    is it possible to change the control source of the grid gadget runtime? If so, what is the usual way to do this?
    If not, is it possible to reset (re-initialize) or replace a gadget in a working section?

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,030
    Try this.

    Code:
    oGridGadget = lianja.get("mypage.section.gridgadget")
    oGridGadget.clear()
    oGridGadget.setattr("controlSource", "tablename")
    In the next build 5.5.2 you can get an object reference to the underlying grid in the gadget (desktop only) like this:

    oGrid = Lianja.get("customers.section1.field2").grid

    just as you can in a section:


    oGrid = Lianja.get("customers.mygridsection").grid
    Last edited by barrymavin; 2020-11-17 at 21:07.
    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

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