Results 1 to 2 of 2

Thread: Canvas section - web

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    5

    Canvas section - web

    Hi
    I have a canvas section with 2 text boxes. Data is entered into field1. I use field1 change event.
    I want field2 to display field1 value , this works ok.
    Then I want to reset field1 to blank so I can enter the next value.
    The code runs fine when I run the form from Desktop. When run from web the field1 value does not get reset to blank. I added a line to change section caption just for testing.
    Same result - caption changes when run from desktop , nothing happens when run from web.
    Any advice will be most appreciated.


    function page1_section1_field1_changed()
    {
    var jsection=Lianja.getElementByID("page1.section1");
    var mtext=Lianja.getElementByID("page1.section1.field1 ");
    mdata=mtext.text;
    var mlastscan=Lianja.getElementByID("page1.section1.fi eld2");
    mlastscan.text = mdata;
    //Works ok on desktop & web
    mtext.text = "";
    jsection.caption=mdata;
    jsection.refresh();
    //desktop - field1 is reset to blank, section caption is set to mdata
    //web&phone -field1 value is not reset, section caption is not set to mdata
    };

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,684
    Hi Paudie,

    You donít say whether you have data bound this section.

    Try removing the refresh for this use case.
    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