Jump to content

cristianotestai

uniGUI Subscriber
  • Posts

    381
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by cristianotestai

  1.  
     Hi All,
     
     I have a UniDBGrid that displays records from a simple list of customers, with Name, Email and Phone columns.
     I want this grid, have a column(collapible) before the Name, content with symbol "+", which, when clicked on it, appears   below another grid(detail) containing the information of the location of the customer, with the columns City, State and Country.  If the User click again (symbol "-"), the detail grid disappears, because it must be colapisible.
     
    I know that currently in UniGui, this feature does not exist but is very similar to the example of the Grouping, only need to show the columns of City, State and Country in a grid below, which should appear when the user selects the indicated column with the "+" symbol. 

     

    Attached I show an image with the feature that need to have.

     

    It would be possible to do this in some way? Any Idea?
     
    Thanks,
     
    Cristiano 
    Brazil
     

     

    post-17-0-59135500-1411834276_thumb.jpg

    • Upvote 1
  2. Hi Farshad,
     
    The appearance of the EXT JS 5 is awesome! It seems there was a significant improvement in design (CSS with Crisp Theme and resources) of the framework. 
     
    The link below shows an example: 
     
    Farshad, there any idea of time to support EXT JS 5?
     
    Thanks.
    • Upvote 1
  3.  Hi Oliver!

     

     Seconds after I post, I remember that I needed to reference the form and component related the "sender", and it worked correctly, Thanks!

     

    Bellow the code:

     

     Text := '<span style="text-decoration: underline; color: #004891; cursor: pointer" ' +
       ' onclick="ajaxRequest(fmAccount.btSearch, '+QuotedStr('search')+');">Edit</span>';
  4. Use a text like this:

     

    <span onclick="alert(123)">Edit</span>
    

    Instead of "alert(123)" you must use "ajaxRequest(...)"

     

    Hi Oliver, 
     
    I tried using ajaxRequest, but without success. 
     
    My code is in the OnGetText TField event, located in MainModule, as follows: 
     
    procedure TMainModule.cdsAccounteditGetText(Sender: TField;
      var Text: string; DisplayText: Boolean);
    begin
      Text := '<span style="text-decoration: underline; color: #004891; cursor: pointer" ' +
       ' onclick="ajaxRequest(sender, '+QuotedStr('search')+');">Edit</span>';
    end;

     

     
    How do I capture the ajaxRequest? In theory, not have OnAjaxEvent for this text. 
     
    Thanks for your help.
  5. Hello,

    In a UniDBGrid, I have a field that content is a plain text (String).
    How can I set up an event "click" for performing a ajaxRequest this text?

    The attached image shows an example where the text "Edit" I need to perform a ajaxRequest to open another form.

    Anyone have any ideas?

     

    post-17-0-68232900-1405023430_thumb.png

  6.  

    Hello,

     

    i have a unipanel .. in the unipanel i have a uniLabel (Database record value)  and a uniImage  (image with a "delete" icon) ...

     

    MY CSS QUESTION:

    if the mouse is over the unipanel, the color of the unipanel should change from white to silver AND the image should be visible (and Clickable)

    if the mouse leaves the uniPanel, the color of the unipanel should be white and the uniImage should NOT be visible

     

    this runtime assigned functions are not a problem:

    if the user clicks on the panel, a showmessage should come

    if the user clicks on the image, a "will you delete.."-message should come

     

    AND A DELPHI QUESTION:

    i also have a problem with my tests: if i click the image witch is in the uniPanel, both funktions are starting - so i see the uniPanel.onClick AND the uniImage.onClick message ????

     

    i am not good with javascript and css - can someone please help me with this "liitle" problem ?

    ThanX

    Erich

     

     

     

     

     

    i think - if i create every effect in ClientEvents/ ExtEvenst or UniEvents (mouseEnter, MouseLeave..)  - the performance is very slow - i think, a class name for the Panel and the definition in ServerModule / Custom CSS is the right solution ?

     

    All the uniPanels are created at runtime ..i define a class name since now in this way:

    function OnAfterCreate(sender)
    {
       sender.cls = 'css-class-name';
    }

     

     

     

     

     

     

     

    the image Visible/ not visible function i made with delphi - this function would be cool as a CSS Style thing:

    (every UniPanel has a unique TAG value )

     

    procedure Tdata_ver.my_UniPanelMouseEnter(
      Sender: TObject);
      var i:Integer;
    begin
    i:=(sender as TUniPanel).tag;
    (FindComponent('loeschimage'+inttostr(i)) as TUniImage).Visible:=true;
    end;
    
    
    procedure Tdata_ver.my_UniPanelMouseLeave(
      Sender: TObject);
    var i:Integer;
    begin
    i:=(sender as TUniPanel).tag;
    (FindComponent('loeschimage'+inttostr(i)) as TUniImage).Visible:=false;
    end;

     

     Hi, Just a tip:

     

    This type of manipulation interface should be implemented by client scripting: ClientEvents.
     
    All code implemented in class procedures are performed on the server side because UniGui is 100% server side, which may cause some delay when many iterations are performed by the user.
     
    Best Regards,
     
    Cristiano Testai
  7. [Exec Error] The command ""\unigui\hpp_fix.exe" "C:\Users\Public\Documents\RAD Studio\11.0\hpp\ext.hpp"" exited with code 3.

     

    My Library Path:

     

    C:\Users\Public\Documents\FMSoft\Framework\uniGUI;

    C:\Users\Public\Documents\FMSoft\Framework\uniGUI\Dcu\Delphi2014;

    C:\Users\Public\Documents\FMSoft\Framework\uniGUI\ExtPascal;

    C:\Users\Public\Documents\FMSoft\Framework\uniTools;

    C:\Users\Public\Documents\FMSoft\Framework\uniTools\Dcu\Delphi2014

     

    What can be wrong or missing?

     

    Thanks

     

     

  8. You can customize that message in ServerModule.

     

     Up..

     

     Hi Farshad,

     

     As I said I would not have that window Ajax Error, not simply change the text of the message. It would be much better and more elegant, have for example the default message as the image attached, in the format Page and not in a window with an empty message box informing an Ajax Error, which in fact is not a Ajax Error.

    post-17-0-53828900-1367717918_thumb.jpg

    • Upvote 1
  9. Hello Farshad,

     

    When there fall internet connection user, occurs Ajax Error window: Server is not available, try later(or other custom text message in this window).

    Has as these types of cases or even when the server is not available, show the standard screen browse (mfPage format) as attached?

    Does not make sense have this little window Ajax Error reporting something, which in this case is not correct, because the server is working, and the user's Internet connection is not available.

     

    Thanks!

    post-17-0-37768300-1367610362_thumb.jpg

  10. hi

     

    For my applications the user needs to create a account. When the account is created

    he receives a mail with a unique generated code like : -194539324982423641254025935501407370742

     

    Now the user has to login and when it's the first time he has to paste the code

    into a edit field to test if it's the right code.

     

    But...like the most forums i would like to have a url with this code and when the

    user clicks the link in his mail the account must be set to active.

     

    How can this be done and how/where to check if this code belong to

    the right user

     

    Regards Peter

     

     

     

    Hi Peter,
     
     
    Below I show the procedures that I use in my project, where for example
    I sent an email to activate your user account on the site.
     
    1: I saved a key (TGUID) to identify the user token in the Users table in a field called Token.
     
    2: We send the activation email account to the User, the body of the email I add the reference to the link as below:
     
    To activate your account click on the link: '<a href="http://myapp.com/?et=AU&t=' + sToken +'">' +
    'http://myapp.com/?et=AU&t=' + sToken + '</a>';
     
    Where the parameter et = AU reports that the type of email is User Activation, the parameter t contains the Token(through sToken variable) of the User that was saved in the database.
     
    When the User clicks on the link will load the application and in the OnShow(MainForm) event I do check if there are parameters to be validated:
     
    TfmHome.UniFormShow procedure (Sender: TObject);
    begin
       if (UniApplication.Parameters.Values ​​['t'] = 'AU') then / /Checks if the parameter t (emailtype) exists and is for user activation(AU).
       begin
         //Validates Token (checks whether the content parameter t)
         if (UniApplication.Parameters.Values ​​['t'] <>'') then
         begin
           //Now with the GetTokenInfo function below, I check if the value of the parameter t is valid. The GetTokenInfo receives the token sent and validates the information in the database.
           if dmSessionModule.SystemObj.GetTokenInfo (UniApplication.Parameters.Values ​​['t']) = True then
           begin
               //Here I show the screen to the User confirm your user and password to activate the user.
               ...
               ... 
           end;
         end;
      end;
    end;
    • Upvote 2
  11.   Hi,

     

     The link in first post was broken, this is correct: http://takien.com/980/styling-scrollbar-to-look-like-facebook-scrollablearea-using-jscrollpane.php

     

     

     Farshad,
     
     With UniPanel for example, where i should start my selector so I can use the JScrollPane plugin as reports step 2 link?
     
    $ (function () {
      $ (. 'content-area'). JScrollPane ();  /*content-area is my UniPanel*/
    });
     
    Thanks for help.
  12. Hi,

     

    I need a help to use the plugin JScrollPane (styleable scrollbars with JQuery, http://jscrollpane.kelvinluck.com/)

     

    In this link http://takien.com/980/styling-scrollbar-to-look-like-facebook-scrollablearea-using-jscrollpane.php, exists the steps to use, but I could not get to work with UniGui, referring up to steps:

      2. Initialize JScrollPane to your selector, and

      3. Scrollbar Should be hidden if the mouse over on it.

     

    Personally, I'm wanting to use this custom scroll to UniScrollBox Component.

     

    Any example or idea to make this work?

     

    Thanks for help!...

     

    Cristiano
  13.  

    Hi Farshad,
     
    After some time studying some implementations for my project, I installed Delphi XE3 and updated version of UniGui to see what effects they might have with the update since it was moved to the extjs 4.1 where significant changes have occurred.
     
    I'll be posting some issues where this post are:
     
    1) I used the OnChange event(ClientEvents) for some processing on the client after leaving the field, but now, in the hour of content change event being triggered. Which event should I use it now  to be triggered at the exit of the field?
     
    2) In some fields(TUniEdit), I has used OnAfterrender event with the following code, but in release 0.90.0.976 does not work:
    function OnAfterrender(sender)
    {
      sender.getEl().setStyle('background-image', "url(../files/img/search.gif)");
    }
     
    Any change in this sintax?
     
    Best Regards,
     
    Cristiano Testai
    Brazil

     

    Any idea about changes in topic 2?

  14. Hi Farshad,

     

    After some time studying some implementations for my project, I installed Delphi XE3 and updated version of UniGui to see what effects they might have with the update since it was moved to the extjs 4.1 where significant changes have occurred.

     

    I'll be posting some issues where this post are:

     

    1) I used the OnChange event(ClientEvents) for some processing on the client after leaving the field, but now, in the hour of content change event being triggered. Which event should I use it now  to be triggered at the exit of the field?

     

    2) In some fields(TUniEdit), I has used OnAfterrender event with the following code, but in release 0.90.0.976 does not work:


    function OnAfterrender(sender)

    {

      sender.getEl().setStyle('background-image', "url(../files/img/search.gif)");

    }

     

    Any change in this sintax?

     

    Best Regards,

     

    Cristiano Testai

    Brazil

  15. In case with VCL, I will use the database events, when table has update, the database sends messages Event with the parameter target (get all the customers, and updated those with a matched parameter, such as the client's unique identifier)

     

    If such an application uses a n-tier architecture, as in my case, access to middleware, this way there is no problem, but when it starts HTTP protocol problem here because it is one-directional.

     

    I know there are various tricks to implement some model of bi-directional communication server to the client:

    long polling, commet, reverse ajax - (can be read on Wikipedia)

    and there is a new technology as part of the standard HTML5 -websockets which apparently does provide the mechanism of communication.

    Even there are components for Delphi. How to implement it with UniGui, I asked the question but unfortunately no answer it:

    http://forums.unigui...-server-client/

     

    I hope there will be people who still will clarify this important topic

     

    Hi,

     

    I work with chat in my project using a combination of Datasnap and UniGui.

    First, see the chat demo that comes with delphi using Datasnap.

     

    Then you need to adapt your need with Unigui to the client side.

     

    This week I'm very busy, but I'll try better detail as I do.

  16. Bom dia!

     

    Gostaria de saber se tem como utilizar arquivo CSS com o uniGui, em especial no uniMainMenu...

     

    Olá Vinicius, já havia comentado esta questao na lista nddv, mas coloco abaixo para todos do forum:

     

    Pelo que eu vi, o CSS atribuido ao Main Menu é o indicado através do arquivo

    tema do CSS (uni-xtheme-blue.css, utilizado por padrão).

    Eu não utilizo Main Menu no meu projeto, mas acho que por enquanto você

    precisará debugar pelo FireBug ou outro plugin para o browser, onde

    está a referencia no arquivo CSS e alterar diretamente no arquivo CSS para o

    estilo que vc pretende usar.

    Mas conforme o Farshad postou no

    forum(http://forums.unigui.com/index.php?/topic/1199-how-can-change-main-menu-font-to-tahoma/page__p__4114__hl__main+menu__fromsearch__1#entry4114),

    o sistema de Temas no ExtJS 4 mudou relacionado ao ExtJS 3, e com isso se vc

    criar um arquivo de tema pessoal(meutema.css), pode não funcionar.

     

    Particularmente eu ainda não fiz a atualização para o release 0.90 da

    UniGui -> ExtJS 4, pois ainda é recente e terão seguidos builds de melhorias

    e ajustes, mas em breve irei fazer...

     

    []'s

    Cristiano Testai

  17. Fala galera ... bom saber que agora tem um canal aqui pra nossa lingua ...

     

    Alguém tem alguma novidade sobre o projeto, pois na página principal não tem mais o link do forum e nem informação sobre versão e tal ..

     

    Abraço a todos

     

    Olá Flávio,

     

    O Farshad postou a situação atual do projeto, e do que será feito daqui por diante no tópico http://forums.unigui.com/index.php?/topic/2467-latest-status-in-development-and-future-of-unigui/page__pid__11243__st__20#entry11243

     

    Para mim foi positivo suas declarações e a principal questão será com o formato de licença da Sencha.

     

    Veja lá, abs.

  18. na vesão 0.89 a mascara esta funcionando com o exemplo que está disponibilizado UniEditFormat

    na versão 0,90 não funciona alguem sabe porque?

     

    Ainda não estou usando a 0.90, estou esperando ficar mais estável. Mas vi algo sobre alguns issues como estes sendo discutidos.

    Vc já fez o teste com o ultimo build?

     

    []'s

  19. I have a question:

    I know when will be released the version of uniGUI based on Ext JS 4?

    thanks advance.

     

    Hi,

     

    Current release 0.90 is based on ExtJS 4!!

     

    Regards,

     

    Cristiano Testai

×
×
  • Create New...