Jump to content

ana.rodrigues

uniGUI Subscriber
  • Posts

    21
  • Joined

  • Last visited

Posts posted by ana.rodrigues

  1. 3 hours ago, Sherzod said:

    Hello,

    You can use this approach:

    // open
    procedure TMainForm.UniButton1Click(Sender: TObject);
    begin
      //UniSession.BrowserWindow(...);
      UniSession.AddJS('if (typeof _win != "undefined") {_win.close()}; _win = window.open("https://example.org")');
    end;
    
    // close
    procedure TMainForm.UniButton2Click(Sender: TObject);
    begin
      UniSession.AddJS('_win.close()');
    end;

     

    Thank you,

    It works!

    • Thanks 1
  2. Hi,

    I have the same message appearing.

    The line of code that seems to trigger this is:

    FDMemTable1.CopyDataSet(FDStoredProc1, [coStructure, coRestart, coAppend]);

    I have a UniDBGrid associated with FDMemTable1.

    I cleared the cache under \cache directory and still not solved.

    My version of unigui is uni-1.90.0.1563, and my version of RADStudio is Delphi 11 Version 28.0.45591.0253 .

    Please help, this error did not show up before.

    Can i at least, hide the ajax errors that appear?

    Thanks in advance

    _clrcell_not_defined.jpg

  3. Hi,

    I have unigui version:1.90.0 build 1555 and windows 10. It never happened on win 7.0.

    My unigui web application, sometimes, shutdown abnormally. The error does not appear in the logs. The application is running, and when I use a session of the application, it freezes at some point and the unigui server itself shutdowns. Have you been aware of this bug? Is there any way to know why the application shuts down? Even if i place code in the UniServerModule.OnException or UniServerModule.Destroy events, i can't catch any of this.

    If anyone has had this problem or know how to solve please, help me.

    Thanks in advance,

    Ana

     

  4. Hi,

    I just want to know if there is a way to sort a unitreeview, but only the parent nodes, that is, the level 0 of  a treenode.

    I am populating dynamically the items of a treeview, but i need them to be sorted alphabetically, after adding. 

    Can someone ever had this need of sorting a unitreeview and know how to do it?

    Thanks in advance.

    Ana

    • Upvote 1
  5. 32 minutes ago, Sherzod said:

    Hello,

    Can you please clarify your question?

    I have 10 items on my treemenu on the left side of my page window, and when i resize the browser, turnning it smaller in width and height, after that,

    only shows the first 7 items .

    Since other elements of my page resize against the browser width/height why this component don't resize as well? That is, after resizing, i would like to see all the elements in my treemenu vertically.... 

  6. On 9/26/2020 at 12:48 PM, Pep said:

    Can you try to use this approach?

    In UniServerModule.CustomCSS property 

    
    .txtPassword {
       -webkit-text-security:disc;
    }

    for more information about this: https://stackoverflow.com/questions/13822548/degrading-webkit-text-security

    In Login Form:

    edtPassword.ClietnEvents.UniEvents -> beforeInit:
     

    
    function beforeInit(sender, config)
    {
       config.cls = 'txtPassword';
       
       config.readOnly = true;
       config.listeners={
          focus: function(edt) {
             edt.setReadOnly(false);
          }
       }   
    }

    UniLoginFormCreate Event

    
    procedure TfrmLogin.UniLoginFormCreate(Sender: TObject);
    begin
      // Set edtPassword as Input Type = "password"
      edtPassword.PasswordChar := '*';
    
      UserAgent.Caption := 'User Agent: ' + UniSession.UserAgent;
      if UniSession.UserAgent <> EmptyStr then
      begin
        if (Pos('chrome', LowerCase(UniSession.UserAgent))> 0) then
        begin
          // Browser is chrome and it's comptaible with css property -webkit-text-security:disc;
          // so you can set edtPassword Input Type = "text"
          edtPassword.PasswordChar := #0;
        end;
      end;
    end;

    See demo app:

    DemoLogin.7z

    Thank you. It worked!

  7. 19 hours ago, Pep said:

    See this video (minute 33.10)  to remove autofill.

    Hi, thanks but i saw this video and does not explain how to remove the autofill. The author says that explanation is in another video, but he doesn't say which video has the explanation. Also, the rar file is damaged, don´t know if it has the source code or not.

  8. Hi,

    I am developing an unigui application, and i would like not show saved passwords or users from google chrome.

    I tried some solutions i read on forumns but none worked, such as 

    UniSession.AddJS('$("input").attr("autocomplete", "off");

    or

    function afterrender(sender, eOpts)
    {
          var me=sender.inputEl;      
        me.set({
            readonly: "readonly"
        });
        
        sender.addListener(
            'focus',
            function(sender, e, eOpts) {
                me.el.dom.removeAttribute('readonly');
            }
        );
    }

    How can i disable, saved passwords from appear, everytime i use an edit?

    Thanks in advance.

    • Like 1
    • Upvote 1
  9. Hi,

    I want my webapplication to restart. Aparently, It seems it does with UniApplication.Restart or ModalResult := mrOk, but then it shows the LoginForm, and when i try to hit the button again it doesn't do anything as if it has no event at all. That is, there wasn't really a restart, because something seems to get stuck.

    I have the lastet unigui Version:1.90.0 build 1531.

    How do i force an application to end? Because i want to re-enter my application in another session, and i can't without kill the application with taskmanager and run again.

    Thanks in advance.

    Ana

×
×
  • Create New...