Results 1 to 10 of 10

Thread: That old devil callled Edit

  1. #1
    Senior Member
    Join Date
    Jan 2014
    Posts
    369

    That old devil callled Edit

    Hi Guys

    We want to put all pages of an appp in to edit mode following an add so data can be completed. Pressing add or edit on the actionbar does not do that - only the current page goes into edtmode if fullpageedit is .T.

    We obviouly don't want pages always to be in editmode unless we are adding/editing

    We can put pages in to editmode programatically but how do we test for edit status in js as we move from page to page? How can we test if save has been pressed on the action bar or do we need to do this programatically too?

    Is there a way for all pages in an app to be in editmode/not in editmode at once?

    We would like to make this simple if possible.

    Thanks in advance


    Simon

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Simon,

    Pages are independent and have their own actionbar. They contain sections typically bound to data and have their state maintained as you navigate back and forward between them. There are various attributes which affect how they maintain their view of data.

    The ability to perform CRUD operations on the sections of a page is controlled by clicking icons in the action bar of a page (the normal way) or programmatically.

    If you want to enter a lot of data you should be using a tabview section in one page not multiple pages. Think of these pages as web pages in a browser. This tabbed UI is common in web apps.
    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

  3. #3
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Aha !!

  4. #4
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Thanks Barry

    Rewritten using js tabview section and the record pointer is now stable - thank you.

    Page / section Editmode still only puts the first tab in the section to editmode so looks like we will still have to do each tab in the section separately.

    We have tried :

    Lianja.showDocument("pageagecustomer?action=editmode");
    Lianja.showDocument("section:sectioncustomer?actio n=editmode"); both only put 1st tab in to edit mode


    Lianja.showDocument("section:tabcustomer?action=ed itmode"); works but needs calling for each section


    Biggest problem is we are still having the same refresh & save issues though. We must have missed something fundamental and have spent 1/2 day trying to sort this one issue without success.

    When we make changes by manually typing in, we can save via actionbar save as you would expect.

    However when fields are updated in the tab section in code :

    Lianja.getElementByID("pagecustomer.tabcustomer.tx tadl3").text = addrDetails.adl3; works fine - display updated


    How do we then save it?

    If we press on the actionbar :

    refresh - it reverts
    save - it reverts
    update - it reverts
    Toggle edit mode - it reverts

    So we cannot easily save ANY data changed via code, only what is typed in. Your example_pclookup app exhibits the same behaviour. Data is unsaveable.

    Do we have to commit the data before saving in some way?

    So, how do we save data changed via functions? If we are having these issues, surely others must have had them too.

    Thanks

    Simon

  5. #5
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    If you are having issues with the pre-release version which we have given you access to please submit tickets as we can't debug your app on the forums.

    Package it up as an lpk and attach to your ticket so it can be investigated.

    Also provide details of whether you are you are referring to desktop or web app.
    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

  6. #6
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Also, have you checked the page as full page edit?
    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

  7. #7
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Hi Barry and thanks for the reply

    This is being run/tested on desktop at the moment but we are writing it to be a mobile app on an iPad once all done.

    We appreciate that you cannot debug an app on the forums and we only post here when we have researched extensively and run out of options or hair to pull out !!

    Will submit a ticket. What is an lpk file?

    Does the example_pclookup behave differently for you?

    Cheers

    Simon

  8. #8
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Full page edit .T.
    Refresh when activated .T.

    Thanks

    Simon

  9. #9
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Lianja packages are fundamental to app distribution as they are cross platform.

    https://www.lianja.com/doc/index.php...ackage_Manager

    I would also recommend browsing through the online documentation at your leisure.
    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

  10. #10
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Hi Barry

    Sent by email

    Thanks in advance

    Simon

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