Jump to content

alfr

uniGUI Subscriber
  • Posts

    132
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by alfr

  1. Hi, 

    For system reasons the time value when change a ttime field by using the TUniDbDateTimePicker need to be hh:59 instead of the default values in the listbox hh:00, hh:15, hh:30, hh:45. How is it possible with js-code to replace the default listvalues with i . e "00:59","01:59","02:59"......"23:59"?

     

    image.png.0fc276d0e48c34007f44669879ca7f87.png

    UniGui Professional version 1.70.0.1489


  2. Hi, 

    Still a newbie when it comes to javascript and ClientEvents... (Would appreciate some help from Serzod/DD or somebody else)

    I've a form with a lot of TUniPanels (created dynamically with InsertControl. Layout=Table). On the panels are many tUniCheckboxes placed. As there are so many checkboxes I would like to change the background color on the parent TD when the checkbox is checked and cleared when the checkbox is not checked. See example where I've manually set one TD to background-color lightskyblue.

    How can this be done with javascript and ClientEvents? (I suppose I need to add a javascript function that is called onchange or onchangevalue, but I'm not able to get the parentNode correctly etc..) There are also other functions that dynamically checks/unchecks the checkboxes, so important that the ClientEvent not only responds on onclick, but also when the other functions checks/unchecks.

    image.thumb.png.40dfd5ad742c72407d38f60352af73ac.png

    image.thumb.png.a308fba53209211f5c365b0d7ac26e08.png

    Unigui version uni-1.70.0.1489 (desktop).

     

  3. Hi

    when running flexcel from a dll there is a procedure you first need to load. Don’t remember the name and is away from computer but ive Done a post here some time ago so you should be able to find it here or also more info at flexcel website

  4. Found the solution - so post it here as well if somebody else is getting the same problem.... A special init is necessary if calling the 3rd part from a dll. Simplest is just to call the DllInit before using it and DllShutDown whe done. 

     

    procedure CreateReport;
    begin
       FlexCelDllInit;
       try
          //Code that uses FlexCel
       finally
          FlexCelDllShutDown;
       end;
    end;
  5. Hi, 

     

    I use a 3rd part tool from TMS Software - called Flexcel for creating excel files. It in general works well.

     

    However a part of it is also for creating a pdf-file out of the excel-file. This works well as long as I run the application as an exe-file on my development pc, but when instead run it as an dll on iis, I get an access violation in ntdll.dll.

     

    Anybody having any clue what might causing this kind of exception in IIS/ntdll.dll but not as an exe? 

     

    Access violation at address 77EADE33 in module 'ntdll.dll'. Write of address 00000014

  6. If possible I'd try to get user to open browser developer tools and view the network part there for getting more information what is loaded and possible errors. 

     

    Ask the user to try if it works with another browser to see if it's related to the user's browser.

     

    Agree with above that it can be related to spyware/other plug in or browser problem - or perhaps some firewall content inspection restricting traffic.

  7. Hi, 

     

    Just create a private variable in the form i.e

     

    bm:TBookmark;

     

     

    To record the current position you just assign the bookmark from the TADOQuery linked to the Tdatasource / Datasource for the unidbgrid. i.e

     

    bm:=rst.Bookmark;

     

    To set the correct cursor position afterwards is then just the opposite - below also with an additional validation.

     

    if rst.BookmarkValid(bm) then rst.Bookmark:=bm;
  8. post-5530-0-06656800-1518109365_thumb.jpg

     

    Hi, 

     

    I also get a similar error - "Ajax Error - autNumber is not a function". This happens as soon as I add a a TUniDBFormattedNumberEdit component to the form (design time) and runs the application and .showmodal on the form.

     

    I can see the file autoNumeric-1.9.35.js being loaded from the server, so this is not the problem. 

     

    Does anybody have any advise how this can be fixed?

     

    Regards Alf

     

    Ps. UniGui is Fantastic!!

     

    :rolleyes:

  9. Hi, 

     

    I hope somebody can help me with a problem when running the UniGui Wizards in Delphi 10.1 Berlin Update 2.

     

    In general everything seems to work well regarding UniGui. I've been able to run many of the various examples locally. But now when I myself would like to start a new UniGui Project and therefore selects New -> Other -> UniGui for Delphi -> Application Wizard, and selects Standalone Server, I first get an info message saying:

     

    ---------------------------
    Confirm
    ---------------------------
    Unit "ServerModule.pas" references the "Visual Component Library" framework, but the project currently has no framework assigned. Do you want to enable the "Visual Component Library" framework for this project?
     
    (Not enabling the proper framework may require unit scoping, ambiguities, and linkage to framework binaries to be handled manually)
    ---------------------------
    Yes   No   Cancel   
    ---------------------------
     
    If I selects Yes or No, I then get an error message saying:
     
    ---------------------------
    Error
    ---------------------------
    Access violation at address 501578DC in module 'rtl240.bpl'. Read of address 00000000.
    ---------------------------
    OK   Details <<   
    ---------------------------
    [501578DC]{rtl240.bpl  } System.Classes.TStrings.GetValue (Line 6437, "System.Classes.pas" + 1) + $5
    [5015CA41]{rtl240.bpl  } System.Classes.TResourceStream.Initialize (Line 9152, "System.Classes.pas" + 5) + $F
    [5005FF2D]{rtl240.bpl  } System.@AfterConstruction (Line 17839, "System.pas" + 2) + $5
    [500601B8]{rtl240.bpl  } System.TMonitor.Destroy (Line 18102, "System.pas" + 0) + $0
    [5005F839]{rtl240.bpl  } System.TObject.CleanupInstance (Line 16698, "System.pas" + 37) + $0
    [5005A1A8]{rtl240.bpl  } System.@FreeMem (Line 4662, "System.pas" + 20) + $0
    [5005F618]{rtl240.bpl  } System.TObject.FreeInstance (Line 16461, "System.pas" + 2) + $2
    [5005FF0A]{rtl240.bpl  } System.@ClassDestroy (Line 17833, "System.pas" + 0) + $2
    [5015CA7D]{rtl240.bpl  } System.Classes.TResourceStream.Destroy (Line 9160, "System.Classes.pas" + 4) + $6
    [5005F79C]{rtl240.bpl  } System.TObject.Free (Line 16529, "System.pas" + 1) + $4
    [2EAA3630]{uniGUI24dcl.bpl} Uniguiexpertsrc.GetExpertSource + $A8
    [5005FF2D]{rtl240.bpl  } System.@AfterConstruction (Line 17839, "System.pas" + 2) + $5
    [2EAA438B]{uniGUI24dcl.bpl} Uniguiformfile.TFormCreatorFile + $2CF
    [2EAA47D5]{uniGUI24dcl.bpl} Uniguiformfile.TFormCreatorFile.GetSource + $4D
    [208D3530]{coreide240.bpl} IDEServices.TModuleCreator.GetSource (Line 1562, "IDEServices.pas" + 1) + $4
    [20712984]{coreide240.bpl} SourceModule.TSourceModule.Create (Line 398, "SourceModule.pas" + 2) + $4
    [208D50B3]{coreide240.bpl} IDEServices.TIDEServices.DoCreateModule (Line 2116, "IDEServices.pas" + 21) + $15
    [208D754B]{coreide240.bpl} IDEServices.TIDEServices.CreateModule (Line 2849, "IDEServices.pas" + 5) + $3
    [2EAAB55B]{uniGUI24dcl.bpl} Uniguiprojectexpert.TUniGUIProjectWizard.Execute + $2FF
    [206B7A4B]{coreide240.bpl} Gallery.TGalleryExpert.SetIDString (Line 826, "Gallery.pas" + 14) + $44
    [20525942]{coreide240.bpl} GalleryTypes.TGalleryItem.DoSelect (Line 188, "GalleryTypes.pas" + 5) + $6
    [206B2BE0]{coreide240.bpl} GalBrow.BrowseNewDialog (Line 344, "GalBrow.pas" + 23) + $4
    [206B2AE6]{coreide240.bpl} GalBrow.AddIcons (Line 304, "GalBrow.pas" + 55) + $8D
    [206B77F8]{coreide240.bpl} Gallery.LoadGallery (Line 727, "Gallery.pas" + 33) + $32
    [0041F10B]{bds.exe     } AppMain.TAppBuilder.FileNew (Line 2634, "AppMain.pas" + 1) + $2
    [5017009F]{rtl240.bpl  } System.Classes.TBasicAction.Execute (Line 16683, "System.Classes.pas" + 3) + $7
    [50A8CD86]{vcl240.bpl  } Vcl.ActnList.TCustomAction.Execute (Line 260, "Vcl.ActnList.pas" + 19) + $35
    [5016FF0B]{rtl240.bpl  } System.Classes.TBasicActionLink.Execute (Line 16594, "System.Classes.pas" + 2) + $7
    [21AC5815]{vclactnband240.bpl} Vcl.ActnMenus.TCustomActionMenuBar.ExecAction (Line 1078, "Vcl.ActnMenus.pas" + 6) + $D
    [21AC70C0]{vclactnband240.bpl} Vcl.ActnMenus.TCustomActionMenuBar.TrackMenu (Line 1844, "Vcl.ActnMenus.pas" + 19) + $15
    [21ACAAE6]{vclactnband240.bpl} Vcl.ActnMenus.TCustomActionMainMenuBar.TrackMenu (Line 3638, "Vcl.ActnMenus.pas" + 5) + $3
    [21AC53C0]{vclactnband240.bpl} Vcl.ActnMenus.TCustomActionMenuBar.CMItemClicked (Line 956, "Vcl.ActnMenus.pas" + 2) + $11
    [21AC53C9]{vclactnband240.bpl} Vcl.ActnMenus.TCustomActionMenuBar.CMItemClicked (Line 957, "Vcl.ActnMenus.pas" + 3) + $4
    [50AA3B32]{vcl240.bpl  } Vcl.Controls.TControl.WndProc (Line 7313, "Vcl.Controls.pas" + 91) + $6
    [50AA867D]{vcl240.bpl  } Vcl.Controls.TWinControl.WndProc (Line 10143, "Vcl.Controls.pas" + 158) + $6
    [21AC71D6]{vclactnband240.bpl} Vcl.ActnMenus.TCustomActionMenuBar.WndProc (Line 1883, "Vcl.ActnMenus.pas" + 25) + $4
    [50AA7C9C]{vcl240.bpl  } Vcl.Controls.TWinControl.MainWndProc (Line 9850, "Vcl.Controls.pas" + 3) + $6
    [50170DFC]{rtl240.bpl  } System.Classes.StdWndProc (Line 17187, "System.Classes.pas" + 8) + $0
    [2150942B]{vclide240.bpl} IDEVirtualTrees.TVirtualTreeHintWindow.IsHintMsg (Line 7067, "IDEVirtualTrees.pas" + 7) + $13
    [50BEEDE7]{vcl240.bpl  } Vcl.Forms.TApplication.ProcessMessage (Line 10534, "Vcl.Forms.pas" + 23) + $1
    [50BEEE2A]{vcl240.bpl  } Vcl.Forms.TApplication.HandleMessage (Line 10564, "Vcl.Forms.pas" + 1) + $4
    [50BEF15D]{vcl240.bpl  } Vcl.Forms.TApplication.Run (Line 10702, "Vcl.Forms.pas" + 26) + $3
     
    I'm then able to compile and run the project, but when starting a websession I of course get the message that "Application.Mainform" not found.
     
    I get a similar error message when trying to add a mainform or a "free form" through the Wizard. (However am I able to use the Wizard to add a frame.)
     
    What can cause this error? I've already uninstalled and re-installed UniGui with the same results. I've also checked the library path links for UniGui files and they also are ok.
     
    Can there be some kind of error in the UniGui Wizard for 10.1 Berlin version?
     
    Regards Alf
     
     
×
×
  • Create New...