Jump to content

zilav

uniGUI Subscriber
  • Posts

    573
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by zilav

  1. It is used by ClientDataset and you can embed it in your unigui app with "Uses MidasLib". Works fine for me for several months.
  2. Unlike Javascript we don't have promises on server side, so "callback hell" is the only option for now unless UniGUI will add a similar feature or you want to fiddle with js on client side yourself.
  3. Should not matter, because this is a simple html link.
  4. UniLabel.TextConversion := html UniLabel.Caption := '<a href="url/to/your.pdf" target="_new">Touch Me</a>'
  5. At least put something like Sleep(100) in while loop. But it is indeed a bad practice. I recommend to put the code you want to execute after a dialog in a separate function/method and call it within callback, that way you'll still get access to all the properties of a parent form/frame without cluttering the callback code itself.
  6. I don't recommend to execute anything from within a web process, that can fail under a heavy load. Instead create a separate service that will monitor designated directory for changes or scan it every few seconds, catch up appearance of report files and handle them. Even better create a web service to accept report files, and unigui will send generated reports there. And even more better just to have a printing web service that will accept only parameters for printing and generate/print reports itself, while unigui will be only connecting to it and sending required params. That's the ideal solution.
  7. Like this one? http://forums.unigui.com/index.php?/topic/2019-loading-unicanvas-and-native-canvas-to-db/
  8. Put mask on Button2. I mean even if you are calling Click() of another button, this is still happening inside an event of some other control, and almost all events in uniGUI controls can me masked.
  9. Imagine Internet were any site can dictate the size of browser on your desktop... No, what you want is impossible.
  10. You were reading from and writing to the same field STARTDATUM Create a new field of calculated type and save your changes there, don't forget to assign it to dbgrid column.
  11. FInally! Never liked those obscure internal Delphi versions.
  12. UniGUI, and I mean ExtJS here, is too heavy for a general purpose web site.
  13. View the source of the page <meta name="generator" content="Joomla! - Open Source Content Management" />
  14. This for CSS, put into ServerModule.CustomCSS http://css3buttongenerator.com/ This for the link UniLabel1.TextConversion := txtHTML; UniLabel1.Caption := '<a class="btn" href="http://address.com" target="_new">Click</a>';
  15. Use some css to make html links to appear as a button, then put the usual <a href> code in TUniLabel.Caption
  16. Yep join them and group in UniDBGrid by TERMINNAME field. Or just go with traditional Master-Detail in separate grids.
  17. Upload image on server and perform processing with http://imaginglib.sourceforge.net/as needed.
  18. zilav

    tunidbgrid scroll

    TUniDBGrid.WebOptions.KeyNavigation
  19. I have FormatSettings.DecimalSeparator = ',' but UniDBGrid insists on displaying float field values using dot '.' to separate decimals. What should I put into UniDBGrid.WebOptions.DefaultFloatFormat to make it use comma? Obvious values like '0,0' doesn't change anything.
  20. Create a new calculated field, put link to the file there in OnCalcFields DataSet.FieldByName('download').AsString := '<a href="' + UniMainModule.GetUrlFileServer+'/?'+UniMainModule.getParameterCurrentFile + '">Download</a>' User will see an ordinary link in this cell which he can click.
  21. "window.open" is blocked in a lot of browsers, it is very unreliable in the modern web from my experience of dealing with users and their systems. That's why I prefer to show them a link which they click to open a new tab, this always works regardless of browser and device.
  22. Generate HTML code and write it into a temporary file inside ServerModule.LocalCache folder so UniGui will clear it out when session closes. Make sure to generate unique name if user are going to print several times during session. Then show user a link to the file with "target=_blank" parameter so it would open in a new browser tab. After that user can print html page himself, or you can insert javascript code inside generated html to call printing dialog automatically.
  23. I suggest you to use some js component that supports viewing text with line numbers and has method to focus on specific line, or scroll it into the view. You can code that yourself, but I'm pretty sure this is already available so no point in reinventing the wheel.
  24. If you enclose your text in cells using similar style <span style="word-wrap: break-word; white-space: pre-line;">some text</span> the browser itself will calculate the height. At least it works for DBGrid, nevert tried with StringGrid. However you can edit cells directly in dbgrid, so TClientDataSet + UniDBGrid might be a better option for you instead of StringGrid.
×
×
  • Create New...