Results 1 to 2 of 2

Thread: Passing Grid value to other Page.

  1. #1
    Junior Member
    Join Date
    Nov 2015
    Posts
    4

    Passing Grid value to other Page.

    Hi,

    I found 2(two) weird issue when passing value (orderid) from Page1's Grid to Page2's Form.

    Issue# 1:
    For example if i click a ROW that have Order Id = 10250 on Page1's Grid,
    Page2's Form will display records for Order Id = 10251

    here is my code that i trigger to call Page2:

    var orders = Lianja.getCursor("orders");
    var orderid = orders.getData("orderid");

    Lianja.messagebox(orderid); // <- Just want to make sure it pickup from the correct selected row.

    Lianja.showDocument("page:Page2");
    Lianja.getElementByID("Page2.section1").filter = "orderid='orderid'"


    Issue# 2:
    On the same two page above.
    After viewing the data on Page2 ( i mean the wrong data as Issue#1), i go back to Page1 and select different Row, and repeat the process above (Issue#1), then Page2 will no longger displaying any data.
    Page2 display Error Message "Server Connection Lost" (see attachment)


    Do you guys have any idea why i get those two result?

    Thanks in advance for your attention.

    -Norzil-
    Attached Images Attached Images  

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,771
    Look at the example mobile apps in the header menu delegates and you will see how the pages are kept in sync.
    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

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