Jump to content

chefdackel

uniGUI Subscriber
  • Posts

    183
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by chefdackel

  1. How to set visibility of the badgetext by code? Explanation:

     

    I want to show the recordcount of a db table with the badgetext. As long as the recordcount is "0" I don`t want to show the badgetext, if the recordcount is not "0" I want to show the badgetext (by code):

     

    if dbtable.recordcount =0 then

      [badgetext.visible=false]

    else

      [badgetext.visible=true]

     

    brfc

     

  2. Hi chefdackel !

     

    I will try..

     

    Best regards.

     

    great, for UniGUI it may look like this, here for the TabControl (thanks to Photoshop), more usable for most of us would be a PageControl?

     

    post-254-0-36201900-1420476577_thumb.jpg

     

    ...there is few space for the badgetext. With UniTabControl and UniPageControl, even when putting some blanks at the end of the caption for a tab, the caption is trimmed from the blanks. Maybe there will be a need to change the caption of tabs in runtime, so f.e. "Tab1" if there is no value for the badgetext (and the badgetext is not shown at all), and f.e. "Tab1..." if there is a value for the badgetext. Only an idea. 

     

    brfc

  3. Yes, it is possible.

    Of course you need access to your DNS entries in order to add a new record.

     

    and to get all functions running with one and only domain name. So you can host "mydomain.com" at provider A as a classic website (www.) and as domain for your mail, but also create a subdomain ("subdomain1.mydomain.com") and point that subdomain to provider B (111.222.333.444), where you host your VPS. Thats also important if you want to use SSL with your domain, get a wildcard certificate for your domain and run the secured UniGUI applications on "subdomain1.mydomain.com". So you even can change the VPS where you host your UniGUI applications very easily: change the DNS entries of the subdomain and you are done. 

     

    brfc

    • Upvote 1
  4. I have a strange problem after installing 3P components for UniGUI. They are installed, they are displayed in the Delphi component palette. So for 32 bit development everything is ok. After switching to the 64bit platform in Delphi the components are disabled (grayed) and can`t be selected to put on a form. Workaround: switching to 32bit, placing the components on the UniGUI form, switching to 64bit and then compile the project. But thats a bit annoying. It seems to be a design time issue, not a compiling issue.

     

    I have this effect with the UniSpecialComponents, but also other 3P components for UniGUI. Any 64bit developers here? Perhaps anyone knows this effect, any hints are welcome. 

     

    brfc

  5. when upload file,

    the function "compareMem" run Error.

     

    iis6.1 + windows Server2008R2 64bit

     

    yes, just as I remarked some posts above. I think I have a solution, just to check it next week and then I post it here.

     

    brfc

  6. Bundle is 50 USD

    UniExMap is 100 USD

     

    congratulation for dropping the price for the bundle to 50 USD.

     

    Two questions:

     

    1. Are the toggle buttons fixed size or can I change width and height of the toggle buttons?

    2. I think the toggle buttons are not data aware, that would be a great enhancement (with boolean and integer field types, so true/false or 1/0).

     

    brfc

  7. Hello,

     

    i bookmarked a link: http://prime.fmsoft.net/userv/userv.dll to get the newest Beta-Release ..

    but now i get:  404 - File or directory not found.

     

     

    How can i download 0.98 ? .. i didn´t find the Files .. just the Trial-Edition  

     

    On http://forums.unigui.com/index.php?/topic/3553-customer-area-web-application/?p=16637 .. i just find "Beta mode Customer Portal is no longer online" ...

     

     

    ThanX for help

    Erich

     

    after ordering UniGUI you get the URL for the customer portal. Just checked the customer portal for downloading .1111, everything is online.

     

    brfc

  8. Yes, i thouth that too and begun to work.

     

    I create a web service and use it for exporting reports to pdf, then showing in browser. Everythings works as it has to be.

     

    But, Images not working?

     

    FastReport, exports bu i don't know why images does not included or couldn't displayed. I have a strange problem with images too with another module doh. My banner images displayed when i run my project from local, but when i make a

    dll and put it under a web server, images does not displayed!

     

    Maybe, they are related.

     

    Do you have any idea why those images couldn't displayed?

     

    Best

     

    I really do not use FastReport, but check if the images are integrated into the report using absolute paths, so this path may change when you deploy to the webserver?

     

    brfc

  9. Hi,

     

    I searched forum but can't find anything, if there is sorry for a repeat. When uploading takes too much time users thought it's locked-crashed etc. and refresh page and try again most of the time.

     

    It will be very good to show a progress while uploading.

     

    Best

     

    because uploading in UniGui is limited in some essential functions (restrict to defined filename extensions, restrict uploading of files larger than xxx xB before (!) uploading, showing progress of uploading and others) try this one:

     

    http://forums.unigui.com/index.php?/topic/4305-uniguifineuploader/

     

    I had problems with the delphi processing code from ganzqui with larger files (AV), maybe you can manage it with some other delphi processing code. 

     

    So you are right: an upload component integrated in UniGui with all the bells and whistles is a candidate to be on top of the todo-list. 

     

    brfc

  10. For 10, I prefer to put the list grid and other controls on a panel. When showing detail frame I make this panel invisible and show detail on top of it, when closing detail frame I make list visible again. Less queries opened, reduced delay and immediate update of changed fields in the list (if using Post on the same dataset as in list). Good for mfPage full screen applications to use all the available browser space instead of messing with forms and their size.

     

    thank you for pointing to this alternative, maybe I did it too complicated. 

     

    So all logic is implemented in the MainForm of UniGUI, where you have two (2) panels as parents of the list and detail frames? As far as I see the ApplicationForms are instances of the MainModule which deals with the different sessions, and the MainForm is also an ApplicationForm. Ok, its not the same but something similar my approach, only that I use different Application forms and in the form only one (1) panel as the same parent for the list and detail frame.

     

    That takes me back to my point (10) of the initial post, that we don't have to deal with threads and sessions, and components and variables in the list/detail frames when modelling programs this way, all this session shielding stuff is managed by the UniMainModule?  

     

    brfc

  11. Starting a new project with UniGui I want to be sure to understand the main aspects of GUI design with UniGUI. Please correct me if there is something wrong with these statements or if there is general better design of some facts. Thank you!

     

    ==========================

    1. If possible avoid the use of free forms - because they are not framework controlled and the use of variables, (unigui-)controls etc. in these forms are not thread safe.

    ==========================

    2. When using an unigui wizzard created application form, the framework controls the thread safe use of variables, (unigui-)controls etc which are part of this application form. So when defining a "myvar"variable in the public part of the application form class, this variable can be accessed around the session which creates the application form, and no further attention has to be turned on shielding it from other sessions.   

    =========================

    3. Not every third party control which is used in application forms is automatically thread safe - if the control itself is not designed in this matter, there may be problems when using them in an internet application. An example may be printing tools/controls.
     

    ==========================

    4. Because application forms are instances of UniMainModule, every session which creates this form has its own instance of the form, f.e.:   

    function Form_Upload1: TForm_Upload1;
    begin
      Result := TForm_Upload1(UniMainModule.GetFormInstance(TForm_Upload1));
    end;
     

    ==========================

    5. Data access components are to be placed in UniMainModule or a Datamodule which is created with the UniGui wizzard, so this Datamodule has also to be an instance of UniMainModule.
     

    ==========================

    6. For data access its ok to put the grid, the query and the datasource on an application form, only the database connection component itself has to placed on the UniMainModule or UniMainmodule controlled Datamodule.
     

    ==========================

    7. Application forms never have to be created manually. As soon as something on the application form is accessed UniGui will create the form. So when I want to init some data access on the application form its ok to build a procedure "OpenData" in the application form (assuming query and datsource are on the application form). When calling myAppForm.OpenData f.e. from the MainForm the application form will be created from UniGui and can be shown with myAppForm.show:

    procedure TmyAppForm.OpenData
    begin
      Query1.open;
      Query2.open;
      Query3.open;
    end;

    The best place to clean up data access then is in the OnClose event of the application form:

    procedure TmyAppForm.OnClose
    begin
      Query1.close;
      Query2.close;
      Query3.close;
    end;
     

    ==========================

    8. When closing the application form with myAppForm.close the form and the ressources are freed UniGui controlled.
     

    ==========================

    9. It is ok to use some kind of "global variables" as long they are defined in the UniMainModule. So every session has its own set of these (session-)global variables.   
    ==========================

    10. I have a GUI model where in the mainform there are the buttons "customer" and "product". When I click on the "customer"-button, an application form is created. On this application form I have a panel which is the parent of different frames. When first displayed there is a "list"-frame created with a grid which lists the customers. When I want to edit a specific record, I close the "list"-frame and create a "detail"-frame where the detail data can be edited. After posting the data the "detail"-frame is closed and the "list"-frame is created again. Data access components grid, query and datasource for the grid are on the "list"-frame, data access components query and datasource for the data edit components are on the "detail"-frame. They use the same data connection component on the Datamodule. On every creation of a frame I open the queries, when closing a frame I close the queries. The question is: because of using frames (with the panel parent on an application form) and the described data access, is this model still recommended and thread safe?        
     

    brfc

     

    • Upvote 3
  12. unigui+fineuploader+plupload.flash.swf

     

    Very nice and fun to play with, thank you. One problem:

     

    If I use the fineuploader part of the demo I get an access violation on bigger files. Small files do work. can`t say exactly the limit, but I had no luck with files (JPG, BMP, PNG) above approx. 500kB. With the attached PNG example file I get an AV. Seems to be a problem in the compare function of the delphi code, I can´t figure out what exactly is the problem with this function. 

     

    post-254-0-40840900-1413311006_thumb.png

     

    brfc

  13. Follow

     

    Nizam I think we are possibly after the same thing over here.  It looks like something I want to do as well.  I make use of a third party SMS service, and once a Client of mine has send an sms to my allocated number, the third party simply takes that message and URL Relay it to the URL I provide to them (now this URL is my UNIGUI application, running as ISAPI DLL).

     

    It must then just get the parameters and insert it into one of my databases, no UI will be presented to the third party relaying the information into my URL.

     

    Is this the same you are trying to accomplish?

     

    Regards

    Marius

     

    FM explained something about the payment system he uses for ordering UniGUI, maybe you can get some ideas here:

     

    http://forums.unigui.com/index.php?/topic/4527-technics-of-web-payement/?p=22500

     

    brfc

×
×
  • Create New...