Mehmet Emin
uniGUI Subscriber-
Posts
229 -
Joined
-
Last visited
-
Days Won
6
Content Type
Profiles
Forums
Events
Everything posted by Mehmet Emin
-
TUnimDBGrid auto size column to available space
Mehmet Emin replied to Mehmet Emin's topic in uniGUI Mobile
Thank you. This solved my issue with mobile grid. -
I am using like this: UniSession.addJS('Ext.toast({message: "Hai cancellato il tuo appuntamento.", timeout: 2000});');
-
Pas2JS wrappers to access Ext JS properties and methods inside the ClientEvents would be a dream combination for uniGUI. Having a high level tool like uniGUI and coding those JavaScript events without a proper IDE code completion is a pain. If uniGUI finds some solution to this, will further strengthen its position in the market.
-
-
I have a TUnimDBGrid on top which fetch all its data from db at once. As I scroll the TUnimDBGrid I want to display one of the columns in the below TUnimMemo. Currently I have a TUnimDBMemo to handle this but it generates an ajax call at each scroll. How can I handle this all at "client" so that as I scroll the TUnimDBGrid I want to refresh content of TUnimMemo? Thanks in advance
-
How Can I auto size TUnimDBGrid column to available space or something like flex? I want my last column to fit available space. I could do it in the desktop components. But it's not possible in mobile. Thank you
-
Re uploaded.
-
Hi, This is a sample project with Google recaptcha v3 implementation in uniGUI. 1. Register your domain/hostname and get your site and secret keys at https://www.google.com/recaptcha/admin 2. In the server module set the constants: RECAPTCHA_SITE_KEY and RECAPTCHA_SECRET_KEY 3. Call Recaptcha3InitJSLibrary in UniGUIServerModuleBeforeInit 4. Call Recaptcha3Execute in UniFormAfterShow 5. You will need a hidden edit (TUniCustomEdit descendant) on the form in order to keep the recaptcha response and use it during site verification. recaptcha3_reupload.7z
-
Thank you, downloaded. There was some "deprecated" warnings but I cleaned them. I will have a look at the layouts/client alignments.
-
@mhmda Do you still have this example? Can you re-upload to thread? Thanks
-
[DOM] Input elements should have autocomplete attributes
Mehmet Emin replied to Mehmet Emin's topic in General
function afterCreate(sender) { var me = sender.inputElement; if (me) { me.dom.setAttribute('autocomplete', 'new-password'); } } OK I've found it in the forum -
[DOM] Input elements should have autocomplete attributes
Mehmet Emin replied to Mehmet Emin's topic in General
like this autocomplete="new-password" -
[DOM] Input elements should have autocomplete attributes
Mehmet Emin replied to Mehmet Emin's topic in General
https://stackoverflow.com/questions/50186223/autocomplete-new-password-and-making-them-confirm-it-via-entering-the-password-a#:~:text=Just use autocomplete%3D"new-,with the same value instantly. Google Chrome gives me a warning. I want to add an attribute to my element. -
How can I add autocomplete attributes to an input element? [DOM] Input elements should have autocomplete attributes (suggested: "new-password"): (More info: https://goo.gl/9p2vKq) <input tabindex="140" class="x-input-el" id="ext-element-40" type="password" name="O5E" placeholder="PIN" data-componentid="frmselectvisittypem_edtuserpin_0"> Thanks in advance
-
When I try to use "ext-modern.js" I get this error "Ext.Container is not a constructor" So I dont know what is its purpose. Is anyone using ext-modern.js?
-
What is the difference between these two? ext-modern.js is almost 60% smaller. But how to utilize it. uniGUI automatically references ext-modern-all.js in the generated html. Do we have a way to switch between these? Thanks
-
How can I receive database table updates periodically?
Mehmet Emin replied to literal's topic in General
I think its acceptable to query the database every second or millisecond as long as you obey the rules: You have the correct index on your table and you utilize this index in your query. Your sql only ask changes from previous query. Don't re-create and destroy at every call. Instead make sure you create it in the beginning and call it with changed parameters. Run this query on a thread. So you will run only one query for second/millisecond for the all sessions. Do not run it per UniSession on the UniMainModule. Let's say 100 people playing online. you call the query and find that there are 10 moves performed since your previous call. On the table you query you store the sessionid of the user who makes the move. You calculate the new state of the game per session id or game id. At this stage you query the UniServerModule module for the UniSession of the user(s). Your thread.execute ... if UniServerModule <> nil then begin if UniServerModule.SessionManager <> nil then begin if UniServerModule.SessionManager.Sessions.QuerySession(thesessionidfromdb) then begin LSession := UniServerModule.GetSession(thesessionidfromdb); UsersMainModule := TUniMainModule(LSession.UniApplication.UniMainModule); UsersMainModule.YourGameStateUpdated := True; end; end; .. So this way you query the database every second but not per session, only once per server. From here you have two options: You can have a tunitimer on the form to check UsersMainModule.YourGameStateUpdated Or better you have some websocket to update the user only if there is update. **Note that you may need some locking mecanism (lock.enter .leave) during access to YourGameStateUpdated -
[Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL> Should I be worried by this warning on mobile? (Chrome) It fills the console log wherever I touch on the form! Every form every touch. Seems that Google Chrome is complaining on ExtJS. Is there a newer version of uniGUI/ExtJS on the pipe to silence/fix these and other Chrome warnings about performance?
-
clipboard uniGUI DOES COPY TEXT TO CLIPBOARD
Mehmet Emin replied to Fred Montier's topic in Components and Code Samples
Thanks -
Configuring Linux Development Environment
Mehmet Emin replied to Farshad Mohajeri's topic in Linux64
Thank you for Linux support and documentation. Why don't you just add CDN support to new property like FrameworkFilesRoot="http://cdn.example.com/unigui"? These framework files are all static and does not have to be served by uniGUI. -
UniServerModule: New FrameworkFilesRoot property.
Mehmet Emin replied to Mehmet Emin's topic in General
I just found it's purpose in the newly published Linux documentation today. So my expectations for the "cdn support" for static framework files of uniGUI has failed. -
UnimmTabPanel TabBar is not invisible with version 1534
Mehmet Emin replied to robinhodemorais's topic in General
There is a workaround. I had the same problem few minutes ago. -
As I was searching the forum for an unrelated subject this morning I came across this comment by the uniGUI developer. I recommend it. I mean changing those max values depends on many factors. There is also a uniGUI stress test tool that you can test your app on load.
- 3 replies
-
- 1
-
- capacity
- number of visistors
-
(and 6 more)
Tagged with: