Results 1 to 9 of 9

Thread: Tools: the currently selected object

  1. #1
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,955

    Tools: the currently selected object

    For some tools (builders), we need to know the Currently Selected Object.

    a) how can I know the currently selected AppBuilder section (Apps, Data, etc.)?

    b) how can I know, or get an object reference to, the currently selected object? E.g., on a Page, the currently selected control? On a report, the name of the report? Etc. I can get a reference to ActivePage, but there seems to be nothing futher down the line. CurrentControl would be great to have.

    tia,

    Hank

  2. #2
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,268
    Currently:

    cResult = Lianja.database
    cResult = Lianja.application
    oResult = Lianja.editor
    cResult = Lianja.activePage

    As of beta9.

    cResult = Lianja.activePage.activeSection
    cResult = Lianja.activePage.activeSection.activeControl

    Note that these return character strings so you must then use Lianja.getElementByID( result ) to get an object reference.

  3. #3
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,955
    That is beeyooteefull!

  4. #4
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,881
    and there will be just a few examples for all? :-)

  5. #5
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,268
    Yes we will blog it. Beta9 has many improvements. We are listening. :)

  6. #6
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,268
    Also we have new videos coming organized into categories.

    Beginner Tutorials

    Intermediate Tutorials

    Advanced Tutorials

    and...

    Community Submitted tutorials
    (anyone can submit these in their own native language and we will make them available in the video channels)

    We have been updating the videos which is why they are unavailable at the moment.

  7. #7
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,881
    we look forward to ...

  8. #8
    Junior Member
    Join Date
    Feb 2012
    Location
    Italy
    Posts
    25
    This is very good !

  9. #9
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,955
    Quote Originally Posted by phabio View Post
    and there will be just a few examples for all? :-)
    Probably all you need is what was put into the revised Lianja Object Model blog entry: http://www.lianja.com/resources/blog...a-object-model

    lcActiveControl = Lianja.ActivePage.ActiveSection.ActiveControl
    loActiveControl = Lianja.getelementbyid(lcActiveControl)
    ? loControl.type
    loControl.name = "myOwnVerySpecialName"

    hth,

    Hank
    Last edited by HankFay; 2012-06-01 at 12:00. Reason: type0

Tags for this Thread

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