Results 1 to 4 of 4

Thread: Table Closes When Returning to Original Page

  1. #1
    Senior Member
    Join Date
    Jan 2016
    Posts
    160

    Table Closes When Returning to Original Page

    I have an app with two pages, when I switch to the second page, my data is synced with the first page as it should be. However, when I return to the first page using a command button, the table I am using is closed and I have to reopen it manually or add a use field in my activate delegate, but when I do this, it defaults to the first record. I looked through my code and cannot find where the table is closing. Is there a delegate that will keep the table open on my first page so when I return to it, it is still on the same record? Just trying to determine if it is a coding error or lack of understanding of Lianja.

  2. #2
    Hi Rdd,

    That sounds unusual.
    In the section attributes on your first page, can you check if the database and tablename are showing up correctly.

    Herb

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,161
    Blog Entries
    22
    What type of sections are page1 and page2?

    Are you closing the table anywhere in a delegate? If you are you should not be.

    Are you querying a table which is bound to a section? If you are you need to wrap that code in:

    SAVE DATASESSION
    ...
    RESTORE DATASESSION

    Which will maintain the context of the open cursors.
    Last edited by barrymavin; 2016-02-29 at 22:09.
    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

  4. #4
    Senior Member
    Join Date
    Jan 2016
    Posts
    160
    I now just have canvas sections on both pages, but you got me looking at a section where I had an unneeded select command for a database that was already in use. Problem solved.

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