-
Posts
22118 -
Joined
-
Last visited
-
Days Won
781
Content Type
Profiles
Forums
Events
Everything posted by Sherzod
-
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.
-
Hello, Where is this form coming from? It doesn’t seem to be from there...
-
Hello, If I understood correctly, one possible approach would be to create an HTTP endpoint in uniGUI (for example using UniServerModule → OnHTTPCommand), and then call it from the Delphi application using TIdHTTP with POST/GET requests and multipart upload for file transfer...
- 1 reply
-
- 1
-
-
Hello, Which build? How can we reproduce this issue?
-
Hello, Your implementation looks correct. However, if columns were created before you introduced the Scalable property, they may still be instances of the base TUniDBDesktopGridColumn. Try removing all columns and adding them again. New columns should be created as TUniDbGridExColumn and the Scalable property should appear...
-
The post I mentioned above (which you can’t see) doesn’t actually answer your question. Could you please clarify which property you want to add and what you need it for?
-
OK, I can see that you are a subscriber, but the forum doesn’t seem to recognize you as one, so you might not be able to see all the available features. We’ll check this. In the meantime, could you clarify what exactly you wanted to ask?
-
Hello, I don’t see that you have adjusted your email settings.
-
Hello, The link works. Possible reason why it doesn't open for you:
-
This post may help you:
-
Try this approach too:
-
Hello, Which theme?
-
In fact, the reason you want the “real client path” (like C:\Users\...\Downloads\...) is because you want to use it in a PowerShell script to copy the file to another server. However, a web application (including UniGUI) cannot access the user’s real local file path or run PowerShell on the client PC. This is restricted by browser security. The browser only allows you to select a file and upload it, but it does not expose the original folder path. That’s why UniGUI gives you only the server-side temporary path (cache folder) after upload, and this is expected behavior. The only alternatives are: Upload the file to the server (UniGUI cache or your custom folder) and then copy/transfer it from the server to another server (PowerShell can be executed on the server side). Use a separate installed client-side solution, for example: a desktop application/agent, a Windows service, or a browser extension, which can access the local file system and execute PowerShell locally. So the correct workflow for UniGUI is: Client selects file → Upload to server → Work with the server file path → Copy/Transfer
