Jump to content

d.bernaert

uniGUI Subscriber
  • Posts

    370
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by d.bernaert

  1. Hi, I get list index out of bounds when using mode umNameValue. This is only when doing the following: We display a list of companies in the unidblookupcombobox, we need to use mode umNameValue as we have multiple companies with the same name There are also triggers added to the component, to create a new company if the company does not yet exist When the user clicks the trigger and creates a new company, after creation we get the key back for the creation screen of the company We need to refresh the list of companies that is displayed, because a new one has been created in the entry screen (query refresh) We put the key value in the record the unidblookupcombobox is linked to We receive a message list index out of bounds and the key value is shown in the unidblookupcombobox instead of the referred data Does anybody have a solution for this? Thx, Bernaert Dominique
  2. It's more complex than that I think. I need some kind of service that will connect to Microsoft Graph for all accounts (several 100 users) in the different databases on the server and synchronize the internal agenda table in each database with the agenda of the different users. Dominique
  3. Hello, we have an internal calendar in our Unigui ERP application. We have the demand from customers that appointments they book in the calendar should be synced to their Outlook calendar. The other way around is also needed. The internal calendar shows appointments of the different users, so the synchronization should run on the background on the server somehow so that the embedded calendar is always up-to-date. Are there any solutions out there that can do this or has anybody created something like this? Thx, Dominique
  4. Hello, I have a question for the Unigui community. I'm facing a strange problem when generating reports on a VPS (Windows server 2016). I've created reports using Fastreport and using Flexcell and some reports seem to discard bold and underline only on the server when exporting the reports to pdf. Is there anybody out there that has experienced this already? Thx, Dominique
  5. I think I found the problem. This is due to 4K monitors I'm using I think, customer reports it's okay on a regular screen. Dominique
  6. It's a custom made theme by Gerhard. Dominique
  7. Hi, I specify that matchfieldwidth is false on a unidblookupcombobox. This gives the following result, the width is indeed not the same width of the field but lines are getting wrapped. Can this be prevented? Thx, Dominique
  8. Hello, I have the request of a customer to create a new appointment when double clicking on a time slot in unicalendarpanel. Would it be possible to detect a double click on a time slot? Thx, Dominique
  9. Hi, I was wondering if it would be possible to show a loading mask while a site is loading in a urlframe? I load a bug tracking portal in an url frame, but it takes some time, so I would like to show a loading mask while it is loading. Thx, Dominique
  10. Thx Farshad for the feedback. I would also like to make a suggestion. You have the option to make the triggers visible or not when the field is read-only but it would be nice if it would be visible to enable the triggers even if the field is read-only. I sometimes use a read-only edit to display a value but would like to use a trigger to let the user select a value from a pop-up form. Thx, Dominique
  11. Hi, I'm facing a few issues with the triggers. Problem 1: it does not scale the image. I have an image list with size 16x16. I put images in it with size 50 x 50 for sharpness. The trigger does not scale the images. but the grid does, see second screenshot. Problem 2: imagelist icons coming from font awesome in the list are not shown at all, that's the first reason why I was trying with custom images. Thx, Dominique
  12. Hi, I'm trying to display a message with UnisweetAlert that contains 3 lines that have to be each on a separate line like this: The customer name is Dominique. The total amount is .... I've tried adding a <br> tag after each line without any luck. I also tried adding \n after each line. Anybody has an idea? Thx, Dominique
  13. Hi, I'm looking for a solution to use svg images for menu items and for speedbuttons. Is there an easy way to use this or simply a way? Thx, Dominique
  14. Hi, I was wondering if it is possible to trap double click on a unicalendarpanel. Thx, Dominique
  15. Hi, I have a form with client alignment. It contains a containerpanel with 2 child containerpanels. The lay-out is border. The left child has region west and the right child has region center. I activated the split so that the left child can be resized and the right child is resized also. Now I would like to store the width of the left child so that the user can select the desired with by draggin the splitter and when he enters the module again the selected with is restored. How can I do this? Thx, Dominique
  16. Hello, I have for instance the following code when a field contains an error: if ... then begin EditField.Setfocus; SweetAlert.Show('Field is required'); Exit; end; The focus is not put on the field. How can this be forced? Thx, Dominique
  17. Strange behaviour of Firefox. For instance, hyperserver, I can login but I don't see the active sessions (list is empty).
  18. Hi Sherzod, yes, I think there was an update yesterday somewhere. Dominique
  19. Hi, I'm having something strange, since yesterday evening I'm getting an error in all my Unigui projects that are online but only in Firefox, not in Chrome or Edge. It's an ajax error: expected expression, got '<' <script type="text/javascript">var w=window;var dc=w.document;w.onbeforeunload=null;dc.open();dc.write("\x3Cscript type=\"text/javascript\"\x3E\n\x3C!--\nwindow.location = \"https://www.wavedesk.be\"\n//--\x3E\n\x3C/script\x3E\n");dc.close();</script>
  20. Hello, due to the large structure of the application each form is responsable for his own data handling. So, I have the following problem. If I want to edit a record and the record is locked by another user I have a problem. The code is the following currently: In the browse form I have the following code to edit a record: if (BasicBrowse.Active) and (not BasicBrowse.FieldByName('Id').isNull) then begin With BasicAddFrm do begin if Init_basic_modification(BasicBrowse.FieldByName('Id').AsInteger) then ShowModal(CallBackInsertUpdateBasicTable) else Close; end; end; As you can see this calls a function Init_basic_modification with the id of the record. This function will return true if the record can ben edited and false if the record is locked. So when the record is locked I don't want to display the update screen. This is the code of the function: function TBasicAddFrm.Init_basic_modification(Id: longint): boolean; begin LblTitle.Caption := MsgModifyItem; UniMainModule.Result_dbAction := 0; BasicTables_Edit.Close; BasicTables_Edit.SQL.Clear; BasicTables_Edit.SQL.Add('Select * from basictables where id=' + IntToStr(Id)); BasicTables_Edit.Open; Try BasicTables_Edit.Edit; Result := True; Except Result := False; BasicTables_Edit.Cancel; BasicTables_Edit.Close; ShowToast(MsgRecordLocked); End; end; Is there a way to get that done? I've tried with adding Ext.get(sender.id).el.setVisible(false); to afterlayout to hide form initialy which works. How can I make it visible depending on the result of the function? I know I could place the dataset on a datamodule and check there if there is a lock on the record but due to the structure of the application (separation of concern) that is not really an option. Thx, Dominique
  21. Okay, thx for the feedback Farshad. Grtz. Dominique
  22. Hello, I'm using Sweetalert for blocking modals which works fine. I would like to use it for non blocking modals also, so I need to to trap the OnConfirm. Would it be possible to have an inline procedure to handle the onconfirm? The reason I'm asking this is because I don't want to put a SweetAlert component on for every form where I have non-blocking modals but need the trap the onConfirm. MainForm.SweetAlert.Show('Book invoice?'), procedure(Button: TConfirmButton) begin end; Is that possible? Thx, Dominique
×
×
  • Create New...