-
Posts
22015 -
Joined
-
Last visited
-
Days Won
772
Sherzod last won the day on February 12
Sherzod had the most liked content!
About Sherzod

Contact Methods
-
Website URL
https://t.me/uniguidevelopers - https://www.youtube.com/@uniguidevelopers
Profile Information
-
Gender
Male
-
Location
uniGUI )
Sherzod's Achievements
Advanced Member (4/4)
2.5k
Reputation
-
Hello, Try adding TFDStanStorageXMLLink to the DataModule. Also try setting ServerModule.AutoCoInitialize = True.
-
Hello, Why do you need to hide just that button? Please keep in mind that if the component has a width larger than the space allocated for it on the form, some inner elements may start to appear outside of its bounds. Because of that, it might be easier to simply hide the entire toolbar instead.
-
Hello, You are getting this error because image is declared as const. When the HTML/script is loaded again, the same variable is declared a second time, which causes: “Identifier 'image' has already been declared”. Try using var (or avoid redeclaring it) so it can be reassigned on reload.
-
Hello, You can try searching the forum — there have been similar questions and solutions before. For example, maybe this one?:
-
Вы можете отправить запрос с этой почты через портал поддержки, указав, на какую почту и на чьё имя нужно переоформить лицензию. Мы проверим информацию и постараемся помочь с переносом.
-
Hello, Sorry for the late reply. The core problem is focus loss during editing. When another grid is refreshed by a timer, an Ajax-driven DOM/layout update occurs. This may cause the active editor field to lose focus. ExtJS treats this blur as a normal end of editing and closes the editor. Yes, it is possible to try to find workaround solutions. However, it is important to clearly identify the real root cause of the editor being closed — whether it is a legitimate focus change caused by user interaction, or a focus loss triggered indirectly by a DOM/layout update during an automatic refresh. From an architectural point of view, the correct approach is not to force the editor to stay open, but to avoid triggering UI updates (timers, dataset reloads, store loads) while a cell is being edited.
-
Если я правильно понял Вас, Вы хотите, чтобы при запуске сервера как службы, страница монитора ресурсов (/server) вообще не отображалась? Если да, то можно перехватить этот URL в обработчике OnHTTPCommand и скрыть его, когда приложение работает в режиме службы. Например: procedure TUniServerModule.UniGUIServerModuleHTTPCommand( ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo; var Handled: Boolean); begin if SameText(ARequestInfo.Document, '/server') then begin if IsService then begin AResponseInfo.ResponseNo := 404; Handled := True; end; end; end; В этом случае, если сервер запущен как Windows Service, страница /server будет недоступна.
-
Hello, One possible approach is to use widgets, for example TUniButtonWidget. You can place a TUniFileUploadButton on the form (not inside a UniHiddenPanel). Just set its Visible property to False. Then, inside the widget’s Click event, you can trigger the file dialog programmatically: procedure TMainForm.UniButtonWidget1Click(Sender: TObject); begin UniFileUploadButton1.JSInterface.JSCall('fileInputEl.dom.click', []); end;
-
Добрый! https://www.unigui.com/doc/online_help/api/uniGUIServer_TUniGUIServerLimits_MaxSessions.html https://www.unigui.com/doc/online_help/api/uniGUIServer_TUniServerOption.html
-
"Actually, need to add a field to VCL column which is not open source yet"
-
1. CustomCSS -> .roundBtn .x-btn.x-form-file-btn { border-radius: 10px; } 2. procedure TMainForm.UniFormCreate(Sender: TObject); begin // UniFileUploadButton1.JSInterface.JSConfig('cls', ['roundBtn']); end;
-
You can analyze the approaches used in this post and try to apply them to your case. I don’t mean to copy it exactly for your specific situation, but the techniques used there may help you understand the core idea:
-
Could you be more specific — do you want to wait for the user’s response, or what? And please provide the full sequence of steps — the algorithm/workflow for your case.
-
1. procedure TMainForm.UniFormCreate(Sender: TObject); begin UniFileUploadButton1.JSInterface.JSAddListener('click', 'function(me){ajaxRequest(me, "_click", {})}'); end; 2. procedure TMainForm.UniFileUploadButton1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = '_click' then begin // end; end;
-
You can use TUniFileUploadButton instead of TUniFileUpload, if I understood you correctly.
