picyka
-
Posts
1079 -
Joined
-
Last visited
-
Days Won
34
Content Type
Profiles
Forums
Events
Posts posted by picyka
-
-
15 minutes ago, eduardosuruagy said:
Is there a way to set a countdown timer starting at 5 minutes? And when he finishes, can I get his finish?
TrayClock (on the client side) - Components and Code Samples - uniGUI Discussion Forums
- 1
-
From the tests I did, I understood that errors can happen at times. ActionClick for example,
if the user clicks on an action, and there is no mask there, for some reason there may be a delay in processing,
if the user changes the grid lines the error will also occur. There in the example,
I put a Sleep(1000) just to simulate a delay in loading the data. I don't know how to solve this,
but I believe that the filter event mask should be activated when the filter is selected, blocking the grid so the user cannot do anything. -
Version: 1.95.0.1583
Demo: C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Touch\DBListGrid
UnimDBListGrid1->Options->dgDontShowSelected = True
Error when compiling: Cannot read properties of undefined (reading 'selectRecs')
Note: Mobile. -
19 minutos atrás, andyhill disse:
Eu nunca uso SLEEP, em vez disso uso ajaxrequest com atraso.
...
UniSession.AddJS('Ext.defer(function() {ajaxRequest(MainForm.window, ''_SetFilter_'', [])}, 300);');
...procedimento TMainForm.UniFormAjaxEvent(Remetente: TComponent; EventName: cadeia de caracteres; Params: TUniStrings);
começarse SameText('_SetFilter_', EventName) então comece
...
I believe that no one should use SLEEP there anyway, it was just a way to simulate a delay when loading the data.
-
Perhaps the grid mask would have to be activated in the OnColumnFilter event, and not just when loading the data.
-
I'll help you simulate the error very easily.
procedure TMainForm.UniDBGrid1ColumnFilter(Sender: TUniDBGrid; const Column: TUniDBGridColumn; const Value: Variant); begin if Column.FieldName = 'LOG_UF' then begin CDCadastro.Filtered := False; if Value <> '' then begin var lFiltro := ''; if VarToStr(Value).Contains(';') then lFiltro := 'SC' else lFiltro := VarToStr(Value); Sleep(1000); CDCadastro.Filter := 'LOG_UF=' + QuotedStr(lFiltro); CDCadastro.Filtered := True; end; end; end;
Sleep(1000);
In my production system, the error occurs more easily than in the demo, because there is a small delay in loading the data. so I put a Sleep(1000); After selecting the SC value, click very quickly on more than one line.
@Farshad Mohajeri -
-
Component: UniDBGridServicos (TUniDBGrid) Parent: UniFrameCadFornecedor0 LastAjaxEvent: actionclick Class: Exception Message: TUniCustomDBGrid.MoveToRow(): Unexpected Row number: 2, 3 Version: 1573
-
Test = 1555
production = 1573 -
5 minutes ago, Farshad Mohajeri said:
Hi,
Is this the latest uniGUI build ?
In production I use version 73, this test is version 55.
-
-
Master @Farshad Mohajeri, I hope I can help you.
-
This was another test case here on the forum, I just used it to advance the example. My additional code was just the UniCheckComboBox1 and the filter event on the grid.
Error.zip is a video, you need to select the SC filter and click on the column, this is all very quick. -
Well, the first message I can simulate on my system, the second I never managed to do, I already received a print from the user, but these are very random cases.
1) Basically there I have a grid that can be searched by columns, in the last column, I have a UniCheckComboBox, where the user can select one or more values.
Error image attached, I can even try to do a test case later. -
I would like to ask for help, is there any way to improve my code so that these errors no longer occur?
Message: TUniCustomDBGrid.MoveToRow(): Unexpected Row number: 0, 4
Message: Grid is in dirty state. No more updates can be applied.
@Farshad Mohajeri
Thank you for any tip. -
On 4/18/2024 at 5:11 PM, Luciano França said:
I have several settings that I save in my database such as font sizes, colors, etc.
How could I give an update on
"CustomCSS" because I realize that it is only loaded when creating the "TUniServerModule"Unit ServerModule; public { Public declarations } Procedure UpdateCSS; End; Procedure TUniServerModule.UpdateCSS; Begin With Self.customCSS Do Begin Add('.x-myfield-focus { '); Add(' border-color: #7eadd9; '); Add(' background-color: #FFFFE1; '); Add(' color: #FF0000; '); Add(' background-image: none; '); Add(' } '); End; End; //============================================================================================================ Unit Main; procedure TMainForm.UniFormCreate(Sender: TObject); begin UniServerModule.UpdateCSS; UniEdit2.JSInterface.JSConfig('focusCls', ['myfield-focus']); UniComboBox1.JSInterface.JSConfig('focusCls', ['myfield-focus']); end;
UniSession.AddJS('Ext.util.CSS.updateRule(''.x-myfield-focus'', ''background-color'', ''#162d3f'')');
-
Well, I believe you can use variables in CSS, and when logging into the system, set the value for these variables, or use the suggested solution
ex: UniSession.AddJS('Ext.util.CSS.updateRule(''.x-btn-default-small'', ''background-color'', ''#162d3f'')');
-
Did anyone have a solution?
-
How did your html look, can you paste it here?
-
With the help of master @Sherzod I managed it, here is an example
Stay here, thank you very much.- 1
-
To access the screens you need to login
-
I did not understand your question.
-
CloudFlare
-
Only errors.
in General
Posted
Very good news, thank you.