-
Posts
137 -
Joined
-
Last visited
-
Days Won
1
Fábio Matte last won the day on December 15 2019
Fábio Matte had the most liked content!
Profile Information
-
Gender
Male
Contact Methods
-
Skype
matriz.fabio
Recent Profile Visitors
Fábio Matte's Achievements

Active Member (3/4)
8
Reputation
-
Is Perfectly .
-
How to set Filtering.Editor in UniDBGrid dynamically? [ Solved ]
Fábio Matte replied to Fábio Matte's topic in General
Code: for i := 0 to Self.dbGridSQL_Resultado.Columns.Count - 1 do begin if (Self.dbGridSQL_Resultado.Columns[i].Filtering.Enabled) and (Self.dbGridSQL_Resultado.Columns[i].Filtering.Editor <> nil) then begin if Self.dbGridSQL_Resultado.Columns[i].Filtering.Editor is TUniEdit then TUniEdit(Self.dbGridSQL_Resultado.Columns[i].Filtering.Editor).Clear else if Self.dbGridSQL_Resultado.Columns[i].Filtering.Editor is TUniCheckComboBox then TUniCheckComboBox(Self.dbGridSQL_Resultado.Columns[i].Filtering.Editor).ClearSelection else if Self.dbGridSQL_Resultado.Columns[i].Filtering.Editor is TUniDateTimePicker then TUniDateTimePicker(Self.dbGridSQL_Resultado.Columns[i].Filtering.Editor).Text := ''; end; -
How to set Filtering.Editor in UniDBGrid dynamically? [ Solved ]
Fábio Matte replied to Fábio Matte's topic in General
Thank you friend, it worked perfect, it came out better than I expected. -
How to set Filtering.Editor in UniDBGrid dynamically? [ Solved ]
Fábio Matte replied to Fábio Matte's topic in General
In fact, it's the way you suggested it to me, but I'm still wrong. I do this by clicking on a Button, TUniButton. -
How to set Filtering.Editor in UniDBGrid dynamically? [ Solved ]
Fábio Matte replied to Fábio Matte's topic in General
But at what point would I put this? Because I would need to pass in my column 0, a filter, according to what I type in UniEdit. FGrid.Columns.Items[0].Filtering.Editor := UniEdit; But that doesn't work, it gives the same error returned in the error image I posted. -
Hi, I'm trying to put the Filtering.Editor option on dynamically created columns in a UniDBGrid, but it doesn't work at all, in all the ways I try, I get the message "Argument out of range" when running. Here is the code I used to apply the filter: dbGridSQL_Resultado.Columns.Clear; if optControl = 1 then begin with dbGridSQL_Resultado do begin DataSource := dsFDMemTable; Columns.Items[0].Filtering.Editor := TUniEdit(Self.FindComponent('UniEdit1').Name); Columns.Items[0].Filtering.Enabled := True; end; end; Image Error:
-
Excellent resource, it worked here for me, it was a lot of show.
-
Load Code into ClientEvents> UniEvents [ SOLVED ]
Fábio Matte replied to Fábio Matte's topic in General
Good morning, I ended up managing to put it like this: lstInventario.ClientEvents.UniEvents.Values['beforeInit'] := myJSScript.Lines.Text; I store what I need inside a memo, and from there I carry it where I need it. Thanks. -
Fábio Matte started following Load Code into ClientEvents> UniEvents [ SOLVED ]
-
Load Code into ClientEvents> UniEvents [ SOLVED ]
Fábio Matte replied to Fábio Matte's topic in General
So, I need to add the code mentioned above in Properties: ClientEvents> UniEvents [Ext.dataview.List> beforeInit] of the UnimDBListGrid Component at Runtime (See Image) and not at design time, because the way it is here, added to the project , you are not attending me the way I need to. -
How can I do to load the code below into a ClientEvents> UniEvents? function beforeInit(sender, config) { config.loadingText='Carregando...'; config.grouped=true; config.selectedCls=''; var descr = '<table style="width: 100%; border-collapse: collapse; border-style: none; height: 10px;" border="0"> ' + '<tbody> ' + '<tr style="height: 10px;"> ' + '<td style="width: 9.33229%; height: 10px;"> ' + '<table style="height: 100%; width: 100%; border-collapse: collapse; border-style: hidden;" border="0" cellspacing="0" cellpadding="0"> ' + '<tbody> ' + '<tr> ' + '<td style="width: 100%;"><div class="circle"><img style="border-style: none; display: block; margin-left: auto; margin-right: auto;" src="ArquivosCliente/{7}/{6}/Fotos/Bens/thumbmail/{1}.jpg" onerror="this.src="http://wps.singus.com.br/html/img/singuslogo.png" alt="" width="50" height="55" </></div></td> ' + '</tr> ' + '</tbody> ' + '</table> ' + '</td> ' + '<td style="width: 90.6677%; height: 10px;"> '+ '<table style="width: 100%; border-collapse: collapse; border-style: hidden;" border="0" cellspacing="0" cellpadding="0"> '+ '<tbody> '+ '<tr> ' + '<td style="width: 100%;"><span style="font-size: 9px; padding-left: 5px;"><span style="font-family: tahoma,geneva,sans-serif;"><span style="color: #0000ff;"><strong>'+ 'TIPO: {0}</strong></span></span></span></td> '+ '</tr> '+ '<tr> ' + '<td style="width: 90%;"><span style="font-size: 9px; padding-left: 5px;"><span style="font-family: tahoma,geneva,sans-serif;"><span style="color: #ff0000;"><strong>{3}</strong></span></span></span></td> '+ '</tr> '+ '<tr> ' + '<td style="width: 100%;"><span style="font-size: 9px; padding-left: 5px;"><span style="font-family: tahoma,geneva,sans-serif;"><span style="color: #003300;"><strong>CHAPA ATUAL: {1} | CHAPA ANT.: {2}</strong></span></span></span></td> '+ '</tr> '+ '</tbody> '+ '</table> ' + '</td> ' + '</tr> ' + '</tbody> '+ '</table>'; config.itemTpl = new Ext.XTemplate(descr); }
-
How to Hide LabelField and Edit of UnimFileUploadButton
Fábio Matte replied to molla2005b's topic in uniGUI Mobile
Thank you friend, It was even better using this code that you put here. It cost !!! -
How to customize the ExceptionTemplate and InvalidSessionTemplate?
Fábio Matte replied to Fábio Matte's topic in General
This is the HTML I use in the Error templates: <!DOCTYPE html> <html lang="pt-br"> <head> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900|RobotoDraft:400,100,300,500,700,900'> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'> <link rel="stylesheet" href="www/css/estilos.css" type="text/css"> <title class="msgerro">Patrimonio Web [Encerrado]</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <div class="wrapper"> <div class="titulo"> <img src="www/img/singuslogo_p.png" alt="Patrimonio Web" title="Patrimonio Web" width="350" height="150"/> <h1>Patrimonio Web</h1><span><a href=''>Sistema de Avaliação de Bens e Controle de Patrimonio</a></span> </div> <div class="msgerro"><p>[###message###]</p></div> <div class="reiniciarapp"><p><a href="[###url###]">Reiniciar Aplicação</a></p></div> </div> <footer> <div class="statusbar"> <div class="statusbarcentro"><span><a href="http://www.meusite.com.br" target="_blank">www.meusite.com.br</a></span></div> </div> </footer> </body> </html> -
How to customize the ExceptionTemplate and InvalidSessionTemplate?
Fábio Matte replied to Fábio Matte's topic in General
I'm using the same HTML in ServerModule and MainModule, even so it didn't work.