Results 1 to 4 of 4

Thread: Canvas section - ActiveControl

  1. #1

    Canvas section - ActiveControl

    When I attempt to capture the ActiveControl for a canvas section using Lianja.GetElementByID("clientlist.section1").activ econtrol, I get the following error:

    **** Lianja error ****
    ?Lianja.GetElementByID("clientlist.section1").acti vecontrol
    ^
    Property/Variable 'ACTIVECONTROL' not found
    Called from procedure - clientlist_section1_cmddebug_cli at line 44

    From the docs, the property appears to be read-write.

    What am I doing wrong?

    Thanks,
    Scott

  2. #2
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135
    Hi Scott,

    Try this tip:
    Code:
    lcActiveControl = Lianja.ActivePage.ActiveSection.ActiveControl
    loControl = Lianja.getelementbyid(lcActiveControl)
    ? loControl.type
    loControl.name = "myOwnVerySpecialName"
    .ActiveControl is an object.

    http://www.lianja.com/community/show...ull=1#post1156

    Also: http://www.lianja.com/community/show...ll=1#post11634

    Josip
    Last edited by josipradnik; 2016-12-05 at 16:18.

  3. #3
    Hi Josip -

    Thanks for the idea. Unfortunately, it throws the same error.

    **** Lianja error ****
    lcActiveControl = Lianja.ActivePage.ActiveSection.ActiveControl
    ^
    Property/Variable 'ACTIVECONTROL' not found

    Lianja.ActivePage and Lianja.ActivePage.ActiveSection are both accessible, however.

    Thanks,
    Scott

  4. #4
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    Hi Scott,

    Attention ..
    I do not know if it's your case, but there are also I fell ..

    if you have 2 sections, the section that answers Activesection, it is to highlight the blue .. not one in which there is a formfield with focus.

    see the imageName:  2016-12-06 07_29_25-Lianja App Builder v3.1.1 [martinelli_articoli] - UTF-8 - cogema - Licensed .png
Views: 81
Size:  20.2 KB

    I've the focus on "Codice articolo" formfield
    but if I type in the console:
    ? lianja.activepage.activesection.caption

    I get:
    Elenco articoli Cogema

    sorry for my english
    Ciao
    Fabio

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