https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    11/10/2019, 11:07 AM
    where as if you had "MagicTable extends ScrollView" then you can pull it bits (copy paste) from tableview as you want
  • b

    brainy-machine-50829

    11/10/2019, 11:08 AM
    Yeah, that's a very good idea.
  • b

    bright-gpu-74537

    11/10/2019, 11:08 AM
    but you get all the scrolling and virtualisation features anyway
  • b

    brainy-machine-50829

    11/10/2019, 11:09 AM
    Alright, thanks for the discussion. 🙂
  • b

    bright-gpu-74537

    11/10/2019, 11:09 AM
    no worries, lemme know if you decide to give it a go and if i can help in any way 🙂
  • b

    brainy-machine-50829

    11/10/2019, 11:09 AM
    If they bug me more about doing the stuff they want for the app. I'm half inclined to completely rewrite it. 😄
  • b

    bright-gpu-74537

    11/10/2019, 11:09 AM
    whats the app?
  • b

    brainy-machine-50829

    11/10/2019, 11:09 AM
    Handling customer orders. Very hard coded DB.
  • b

    brainy-machine-50829

    11/10/2019, 11:10 AM
    Basically each order (root level item) has basic order data, then rows of "items to search", each that has "items found" and each that has "distributor found" with price and such.
  • b

    bright-gpu-74537

    11/10/2019, 11:10 AM
    gotcha
  • b

    brainy-machine-50829

    11/10/2019, 11:11 AM
    So there's 3 levels of hierarchy. I made it for my parent's firm. They've been using google spreadsheet, but it was starting to be slow for them with 50k+ rows.
  • b

    brainy-machine-50829

    11/10/2019, 11:12 AM
    On top of that basic UI there's realtime multiuser editing, smart fulltext search and smart hinting based on context (like hinting item found for specific item searched, if certain order parameters fit).
  • b

    bright-gpu-74537

    11/10/2019, 11:12 AM
    right
  • b

    bright-gpu-74537

    11/10/2019, 11:13 AM
    its the MagicTable that i think its the main part that will take time, the rest seems like app sugar... and if the table is working the rest sounds like it might just fall into place
  • b

    bright-gpu-74537

    11/10/2019, 11:13 AM
    the more i think about it, the more im sure that a scrollview with a specialized "virtual layout" will do exactly what you want
  • b

    bright-gpu-74537

    11/10/2019, 11:14 AM
    wont be simple though, ofc, but i think all the bits are available to make it work
  • b

    brainy-machine-50829

    11/10/2019, 11:14 AM
    Yeah, it was like that. Once I had that working, the rest of UI was mostly a breeze.
  • b

    brainy-machine-50829

    11/10/2019, 11:14 AM
    The other big part of the app was the multiuser editing and DB syncing and a few stupid decisions along the way.
  • b

    brainy-machine-50829

    11/10/2019, 11:15 AM
    Like not realizing backups need to be realtime until production. 😄
  • b

    bright-gpu-74537

    11/10/2019, 11:15 AM
    🙂
  • b

    bright-gpu-74537

    11/10/2019, 11:15 AM
    dont you just lock the record when its being edited?
  • b

    brainy-machine-50829

    11/10/2019, 11:15 AM
    There's only single DB on the server, so there's no need for locking.
  • b

    brainy-machine-50829

    11/10/2019, 11:16 AM
    But it had to handle syncing the local data on each client, and their actions.
  • b

    brainy-machine-50829

    11/10/2019, 11:16 AM
    Stuff like someone editing a row while another user adding new row, then deleting a row, then undoing all that.
  • b

    bright-gpu-74537

    11/10/2019, 11:16 AM
    oh, so the client has a cache of the data?
  • b

    brainy-machine-50829

    11/10/2019, 11:16 AM
    Just what's visible, or well, loaded.
  • b

    brainy-machine-50829

    11/10/2019, 11:16 AM
    All changes are then synced in real-time.
  • b

    bright-gpu-74537

    11/10/2019, 11:17 AM
    right, yeah... i get it... you are looking at record A, someone else changes record A, you want to see an updated record A
  • b

    brainy-machine-50829

    11/10/2019, 11:17 AM
    It felt simple, but the syncing ended up being quite a pain when I started adding undo-redo.
  • b

    bright-gpu-74537

    11/10/2019, 11:17 AM
    no doubt
1...135136137...1687Latest