Results 1 to 5 of 5

Thread: Can I add a blank grid section to an application

  1. #1

    Can I add a blank grid section to an application

    Hi,

    I can't recall if this is possible.
    In a JavaScript application, I am trying to add a blank grid and then populate it later from an array using additems().

    I know this is not yet supported in custom sections, but I thought it may be possible in a standard section.

    Thanks.

    Herb

  2. #2
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185
    Here's what I did in on app:

    1) created a table with the required fields and also had a cSession field of C(26).
    2) in the UI, I added a property to a public var oApp of cSessionID
    3) this property was, on the INIT of the UI app, set to guid() (this was in VFP, but should work here)
    4) I then set a filter on the grid of: cSessionID = oapp.cSessionID -- which meant the grid was showing empty
    5) Then I could "create" records from anywhere, making certain to use oapp.cSessionID as the cSessionID of the table.

    The same could be done with a VT and a parameter for cSessionID of course.

    In the close of the database (assuming you don't close it in the UI), you can delete for cSessionID = oapp.cSessionID.

    hth,

    Hank

  3. #3
    Hi Hank,

    I have an odd requirement.
    The app has to be an executable, so electron looks perfect.
    It is a disconnected app that has no database and needs to be installed all over the globe as just an executable and some support files.
    All of the data is coming from already existing web services. So I am decoding json data with getUrl and json_decode.
    If it was a normal lianja desktop app or web app, I could build it in my sleep.

    I will try a temp table/cursor on init and see if I can get that to do what I want.

    Thanks.

    Herb

  4. #4
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185
    Hi Herb,

    until we get disconnected data (it's in the roadmap, currently for 4.1), that will not work. The cursor never exists on the mobile client: JSON record(s) are sent from the server, and updates are sent back by JSON.

    When we get disconnected data, it will be a piece of cake. The JSON sent and modified will exist in some form of local storage.

    Hank

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

    See this post.
    https://www.lianja.com/community/sho...7702#post17702

    Custom grids which can be loaded from an external web service are now implemented in 4.0.1
    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