Jump to content

cristianotestai

uniGUI Subscriber
  • Posts

    374
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by cristianotestai

  1. On 1/11/2024 at 8:49 PM, Marlon Nardi said:

    Olá Cristiano, eu também utilizo algo parecido com o que você precisa, eu utilizo para armazenar os anexos de cada cliente em meu gerenciador financeiro https://www.financeiro.app. Para este caso eu estou utilizando o S3 da Amazon, o custo é irrissório, se voce for usar a S3 deles.

    Estou usando o plano de 0,0036 USD por GB 

    Para isso eu uso a biblioteca nativa do Delphi Data.Cloud.AmazonAPI.pas

    Porém caso sua necessidade seja realmente com o google drive eu ainda não fiz nenhuma integração com a API deles.

    Oi Marlon, poderia ser na Amazon sim. Você teria exemplo para poder me mostrar como você faz no seu sistema utilizando a API e componente do Delphi?  Iria me ajudar bastante, pois necessito incluir essa funcionalidade de anexos e links no meu sistema também. Muito obrigado.

  2. Olá Marlon!

    No seu pacote de componentes existe já algo para integração com google drive? No meu sistema preciso adicionar links e anexos, mas gostaria de centralizar essas informações no ambiente na nuvem do google, para nao armazenar localmente, então penso em criar uma tabela que possuirá o id dos links e anexos que gostaria de armazenar por exemplo no cadastro de clientes, e esses links e anexos gostaria de incluir fazendo upload do google drive (quando já existir arquivo no drive) e também incluir um arquivo no drive pela aplicacao, onde ao incluir receber o id do arquivo e armazenar na tabela do banco para referenciar. E depois na consulta do cliente poder selecionar os arquivos e visualizar diretamente da aplicação.
    Tem algo nesse sentido já?

  3. 11 minutes ago, Farshad Mohajeri said:

    Does this cause any problem running your application?

    Yes Farshad,

    In the production environment, when you generate a print or pdf file on the server, it gets stuck and you need to restart the application.
    In my local development environment this does not occur, it correctly generates the print or the .pdf file.
    I have noticed this log at the time i perform the file generation. For some reason the server is not allowed to generate the file that should be temporarily stored in the IIS Cache Folder.

    I really need to solve this, it is a vital function for my system that is already in use.

    Thanks for your help.

  4. Hi,

    An error is occurring in the Log's file when i try in my production environment (IIS 7) to generate a file that it is temporarily stored in the Cache Folder.

    MbWebServer.dll: 0000022C: 15:45:37 [HandleFileRequest [179.155.220.224]]: Access denied:.
    MbWebServer.dll: 0000022C: 15:45:37 [HandleFileRequest [179.155.220.224]]: Access denied:.
    MbWebServer.dll: 0000022C: 15:45:38 [HandleFileRequest [179.155.220.224]]: Access denied:.
    MbWebServer.dll: 0000022C: 15:45:39 [HandleFileRequest [179.155.220.224]]: Access denied:.
    MbWebServer.dll: 00000C28: 15:48:31 [HandleFileRequest [179.155.220.224]]: Access denied:.
    MbWebServer.dll: 00000C28: 15:48:31 [HandleFileRequest [179.155.220.224]]: Access denied:.
    MbWebServer.dll: 00000C28: 15:48:32 [HandleFileRequest [179.155.220.224]]: Access denied:.
    MbWebServer.dll: 00000C28: 15:48:32 [HandleFileRequest [179.155.220.224]]: Access denied:.

    For years it was working properly and I did not change any permissions or config in IIS.

    Any idea?

  5. Hello,

     

     In my table I have a status field, where it can be 0(open), 1(close) and 2(canceled). For each status i would like to display in UniDbGrid an icon originated according to CSS class below, using FontAwesome.

     How can i handle the column in UniDbgrid to receive the associated content?

     

    / * CSS Image FontAwesome * /

    .x-status-open:: before {

        content: "";

    }

     

    .x-status-open {

       font-family: FontAwesome! important;

       font-size: 14px!

       color: # 717171! important;

       padding: 2px 5px;

      -webkit-padding-before: 3px;

    }

     

    .x-status-close:: before {

        content: "";

    }

     

    .x-status-close {

       font-family: FontAwesome! important;

       font-size: 14px!

       color: # 717171! important;

       padding: 2px 5px;

      -webkit-padding-before: 3px;

    }

     

     

    .x-status-canceled:: before {

        content: "";

    }

     

    .x-status-canceled {

       font-family: FontAwesome! important;

       font-size: 14px!

       color: # 717171! important;

       padding: 2px 5px;

      -webkit-padding-before: 3px;

    }

     

    Thanks!

     

    Cristiano Testai

    Brazil

  6. Olá,

     

    Alguém já realizou integração com MailChimp e gostaria de realizar um trabalho no meu projeto? Possuo uma aplicação web (CRM). O que eu preciso seria o seguinte:

     

    1) No CRM existem os Contatos, com Nome, Email, Telefone, Empresa, Segmento, etc.
    No MailChimp gostaria de criar as campanhas de Marketing segmentadas conforme os Contatos do CRM.
    No CRM eu pretendo visualizar as Campanhas criadas no MailChimp e poder informar ao MailChimp para disparar os emails ou criar no MailChimp regras para envios dos emails.
    2) No CRM eu tenho as ultimas vendas dos Clientes, sendo que eu gostaria de por exemplo disparar no MailChimp emails pré elaborados para os Clientes que não compram nos ultimos 30 ou 60 dias por exemplo.
     
    Obrigado,
     
    Cristiano
     
     

     

     

  7. Hi,

     

    I just tried to convert Delphi code to JS code, try  this:

    function change(sender, newValue, oldValue, eOpts)
    {
        var me = sender;
        var indx = me.store.indexOf(me.findRecord(me.valueField || me.displayField, me.getValue()));
    
        MainForm.UniEdit1.setReadOnly(indx == 0);
        MainForm.UniImage1.setVisible(!MainForm.UniEdit1.readOnly);
    
        switch (indx) {
            case 1:
                MainForm.UniImage1.setElProp("title", me.getValue(), 2);
                break;
    
            case 2:
                MainForm.UniImage1.setElProp("title", me.getValue(), 2);
        };
    
        if (MainForm.UniEdit1.readOnly == false) {
            Ext.defer(function() {
                MainForm.UniEdit1.focus();
            }, 100);
        };
    
    }

    Best regards,

     

     Thanks Delphi Developer!  This work!

     

     Best Regards,

     

     Cristiano

  8. Hi,

     

    UniComboBox -> ClientEvents -> ExtEvents -> function change :

    function change(sender, newValue, oldValue, eOpts)
    {
    
    
    }

    Best regards,

     
    Hi Delphi Developer,
     
    I tried to use the change function as you indicated and just to test:
     
    function change(sender, newValue, oldValue, eOpts)

    {

      fmTaskEdit.edRegName.focus();

    }
     
    But not work. Besides setting the focus i also need when changing the item in the ComboBox in clientside script:
     
    to set ReadOnly property of a UniEdit;
    to set Visible property of a UniImage;
    to set Hint property of a UniImage;
     
    Could you help?
     
    Thanks!
  9. Hello!

     

    I did a simple test case attached with 1 UniComboBox, 1 UniEdit and 1 UniImage, where in the change of the selected item in the Combo, it makes simple changes in the properties of the components.

     

    How to accomplish this in clientside? Which UniComboBox event to use?

     

    Thank you for your help.

    ComboBox.rar

  10.  

    Hello,

    It should be working.

     

    Try create and use another unrestricted Key (it will need some minutes in order to apply the changes).

    Double check that the libraries are enabled (you will need at least Google Maps JavaScript API and Google Places API Web Service ).

     

    In the constructor of TUniGMap.Create there is a url defintion, something like :

    url := 'http://maps.googleapis.com/maps/api/js?key=' + MyGoogleAPIKey + '&libraries=geometry,places&sensor=false';)
    

    try to remove the 'places' to see what will happen.

     

     

    Please see the compiler directive DEBUG and make sure that you place the correct API Key into the correct section.

    In most cases you will use the same API Key in DEBUG and RELEASE

    {$IFDEF DEBUG}
      MyGoogleAPIKey = 'xxxxxxx';
    {$ELSE}
      MyGoogleAPIKey = 'xxxxxxx';
    {$ENDIF}
    
    

     

     Hello Lema!

     

    Now all work! What happened is that i had activated the Google WebServices API, to be used via REST, but for uniGMap, which uses Javascript must be enabled the Google Places JavaScript API, as you said in your answer.

     
    Thanks again for your great work.
     
    Best Regards,
     
    Cristiano
  11. Did you enable the "Google Places API Web Service" in your Google console?

     

    Also , what is the state of your API Key restriction ?

    For debug purposes you can use an unrestricted key to see what happens.

     

    Yes, API Enabled in Console and my API Key is unretricted Key.

     

    Testing on the URL directly from the browse shows the results. The key is active and valid.

  12. Hi Lema,

     

    I'm try debugging Places API Demo. uniGMap last version.

     
    I'm setting my API Key in MyGoogleAPIKey constant but the map does not show, error occurs (see attached image).
    I have already Rebuild in the package and the API Key is correct, because testing on the URL directly from the browse shows the results.
     
    If i do not inform an API Key, the map is shown, but when performing the search of the places, an Access Denied occurs because an API Key was not informed.
     
    Any idea?
     
    Thanks!
     
    Cristiano

     

    post-17-0-52318500-1486515337_thumb.png

  13. 1) Correct.

     

    2) Client side Sencha Touch components are specifically designed for HTML5 and touch environment, so they can be used with finger.

     

      Hi Farshad,

     

      In uniGui Web we use and customize with CSS to define the design of the application. In uniGui mobile, is it similar or are there differences to customize the design?

     

      Thanks.

  14. Hello!

     

    I already have good experience with UniGui for Web, but in mobile I am starting now and I have a simple question:

     

    1 - Unigui Mobile has the same fundamentals and behaviors of UniGui Web? UniGui is 100% Server Side and Statefull also for mobile applications?

     

    2 - What are the differences behind the framework for the mobile apps?

     

    Thanks,

     

    Best Regards,

     

    Cristiano Testai

    Brazil

×
×
  • Create New...