Jump to content

bbosnjak

uniGUI Subscriber
  • Posts

    58
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by bbosnjak

  1. Thank you for your reply. I realized that this was the problem. The question is whether the problem can be solved in version 10.2.2 or whether a new uniGUI compilation will appear.

     

    Marco Cantu's blog indicates this is an Embarcadero/Delphi 10.2.2 problem, not a Unigui problem. Other products are being affected besides Unigui.

     

    I think we need to wait for Embarcadero to release a hotfix to fix the problem across the board for all venders. And it sounds like we might see it sometime next week...

     

    That's how I read the situation anyway =)

     

    Sent from my SM-P900 using Tapatalk

  2. Here's an idea.

     

    If you want a desktop login/create form, then just create desktop versions (Login.dfm and NewAccount.dfm). If the framework doesn't find a Loginm.dfm it'll show the Login.dfm on both desktop and mobile.

     

    After successful login, the framework will automatically chose Main.dfm for desktop and Mainm.dfm for mobile, do here create both a desktop and a mobile version of Main.

     

    Given you likely want different sets of forms/features/workflows between desktop and mobile, from Main you would only show "fPage" forms, and from Mainm you would only show "fmPage" forms. Here you're in complete control of whether you next display a mobile or desktop form.

     

    As for the mobile Mainm, if using layouts doesn't allow for phone/tablet/landscape/portrait layouts, you can use Mainm as a container and within Mainm decide which form/control you want to load into it. Or in Mainm immediately show a phone vs tablet form modally (so that Mainm is never really visible, it's always another form that the user actually sees.

     

    Perhaps create a simple proof-of-concept project (empty forms with just a label to identify it and a button to do the next action) to test out these ideas and see how it works.

     

    Sent from my SM-P900 using Tapatalk

  3. I think that the most important think that you must understand in developing webapp using unigui (extjs) is the 'layouts', here a basic screen shots to give you an overview how to start with.

     

    If I want that my mainform looks like this:

     

    project from here: http://3msoft.net/mhmd/layouts_1.rar

     

    0.png

     

    I don't think that this is impossible or hard to achieve such design, if you look closely you could divide the dashboard to:

     

     

     

     

    Keep in mind this:

    if the parent layout is 'vbox' then for the children set width: '100%'
    if the parent layout is 'hbox' then for the children set height: '100%'
    
    flex: means the percent of width/height (depending in parent layout, if parent layout is 'vbox' then flex means height else means width
    flex=1 it will take the entire width/height unless there is another child with flex value <> 0 
    flex=1 for more than one child means all children will have the same percentage of width/height
    flex=1 for two, means first one will take 50% and second will take 50%
    flex=1 for three, means first,second, 3d will take 33% of with/height
    flex=0 the width/height will be the same as in design view 
    
    4.png

     

     

    5.png

     

     

    6.png

     

    7.png

     

    8.png

     

    9.png

     

    10.png

     

    12.png

     

    11.png

    This is super super super helpful! I love the concise summary and the detailed screenshots to illustrate each step and result.

     

    Sent from my SM-P900 using Tapatalk

    • Upvote 3
  4. My understanding (from the online UniGui documentation) is that the ServerModule exists for all sessions while the MainModule is created separately for each session.

     

    So if you put a database connection in MainModule, it will be specific to one user and session.

     

    I may be wrong, but I think a database connection in ServerModule is not recommended.

     

    Sent from my SM-P900 using Tapatalk

  5. I've used virtual machines in the past to encapsulate a full working development environment where recreating that dev environment is difficult or impossible. As long as the virtual machine is kept backed up and cared for, development can continue for decades.

     

    Indeed, I still occcasionally need to maintain an app from 1997 updated as far as Delphi 5 that uses something like 20 third party libraries. Already by 2007 it was impossible to update the Delphi version because most of the third parties had disappeared.

     

    Yet after 20 years, I can still add new features and maintain the app, thanks to the preservation offered by the virtual machine.

     

    So, a suggestion for anyone facing the disappearance of a third party developer tool is to quickly set up a virtual machine and get everything licensed in that machine. Then you won't need to worry and you can continue to maintain that old app for 10+ years after it should have "died."

     

    Sent from my SM-P900 using Tapatalk

  6. Hi,

     

    Why does setting Key to 13 in "Next" in NavigateKeys work on a form, but not for "KeySubmit"?

     

    With the former, pressing ENTER moves me between fields, but with the latter, the "Default = true" button's event handler is not invoked.

     

    Likewise for KeyCancel (Key = 27, i.e., Escape, which doesn't activate the Cancel = true button).

  7. If you can't find help here, you can try to find help for the Indy components being used. For example, the following post may have some clues to help: http://stackoverflow.com/questions/17348345/how-can-i-create-install-a-ssl-cert-for-a-standalone-datasnap-rest-server-on-loc. It mentions a utility for generating CRT files locally and for processing what you get back from a provider like GoDaddy.

     

    Sent from my SM-P900 using Tapatalk

  8. I'm using TMS Software Aurelius with UniGui.  

     

    When the user clicks the Refresh icon at the bottom of the TUniDBGrid, I need to be able to handle this to flush the Aurelius ObjectManager so that it refreshes the data from the database instead of its internal cache (this is so that changes made in other sessions are picked up).

     

    The TAureliusDataSet component has a BeforeRefresh event, but it doesn't fire when the user clicks the Refresh button.

     

    I can't find any event on the TUniDBGrid itself, or the ClientEvents that correspond to the click of Refresh button.

     

    What's the magic required to trigger an Ajax event when the user clicks the Refresh button?

×
×
  • Create New...