picyka
uniGUI Subscriber-
Posts
1059 -
Joined
-
Last visited
-
Days Won
34
Content Type
Profiles
Forums
Events
Everything posted by picyka
-
Google Charts in uniGUI (new version with Print method)
picyka replied to Pep's topic in Components and Code Samples
Day of hunting for errors in the console, I came across this, does anyone have any tips? This occurs when opening the system. -
Solution: Self.CustomFiles.Add('https://maps.googleapis.com/maps/api/js?key=' + Self.KeyMaps + '&callback=gmNoop&libraries=geometry,places,visualization'); ServerModule.CustomMeta: <script> function gmNoop(){ console.log('GMap Callback'); }; </script>
-
-
TUniDBEdit Please publish the EmptyText property in this component.
-
User Interface: my solution for different "color-styles" ;-)
picyka replied to erich.wanker's topic in General
class procedure TThemeUtils.ConfigureCSS(Obj, Element, Value: String); begin UniSession.AddJS('Ext.util.CSS.updateRule(''' + Obj + ''', ''' + Element + ''', ''' + Value + ''')'); end; TThemeUtils.ConfigureCSS('.x-btn-default-small','background-color', '#353935'); An interesting tip. -
https://github.com/rareMaxim/Excel4Delphi
-
How would the code look?
-
The problem with these server side functions using the timer is that the unigui session doesn't die.
- 17 replies
-
OnFieldImage UnimDBListGrid event does not fire
picyka replied to Alexandre Storti's topic in General
Or, handle this in your JS code, if you don't have an image to load from the files folder... -
OnFieldImage UnimDBListGrid event does not fire
picyka replied to Alexandre Storti's topic in General
Maybe it could have a calculated field, and handle it in OnCalcFields -
OnFieldImage UnimDBListGrid event does not fire
picyka replied to Alexandre Storti's topic in General
Perhaps in the field's GetText, you would validate if the blob has no data, and would place its default image -
Solution: function beforeInit(sender, config) { config.viewConfig.deferEmptyText = false; config.emptyText = '<i class="fas fa-inbox"></i> Não há dados no momento.'; } procedure TUniDBGridHelper.ConfigureEmptyText; begin Self.ClientEvents.UniEvents.Values['beforeInit'] := 'function beforeInit(sender, config) ' + '{ ' + ' config.viewConfig.deferEmptyText = false; ' + ' config.emptyText = ''<i class="fas fa-inbox"></i> Não há dados no momento.''; ' + '}'; end; procedure TUniMainModule.UniGUIMainModuleNewComponent(AComponent: TComponent); begin if AComponent is TUniDBGrid then begin TUniDBGrid(AComponent).ConfigureEmptyText; end; end; Tks.
-
Event: UniGUIMainModuleNewComponent
-
I was trying to center on uniMainModule, would it be possible? Thanks Grid.zip
-
EmptyText is not visible with dataset close.
-
Integração com a Ntfy no Delphi. Ntfy é um serviço simples de… | by Samuel R. O. | Medium GitHub - hazzelnuts/ntfy-for-delphi: Biblioteca amigável para enviar e receber notificações instantâneas usando servidores ntfy.sh em Delphi
- 1 reply
-
- 3
-
try putting it on google drive.
-
MainModule event OnDestroy
-
I've been sick, with back pain, a lot of time sitting, a lot of stress.
-
I already worked in this format, when logging in, I made an insert, when logging out, I killed the record.
-
Perhaps you will need a table to store the data, in the mainModule's Ondestroy, you say that it is no longer active