Jump to content

robinhodemorais

uniGUI Subscriber
  • Posts

    166
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by robinhodemorais

  1. I set up that way ... but giving error

    Access violation at address 007E2DE8 in module 'Project1.exe'. Read of address 00000064

    procedure TUniServerModule.UniGUIServerModuleHTTPDocument (
       const Document: string; const InParams: TStrings;
       ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo;
       var Handled: Boolean);
    begin
        if ARequestInfo.URI = '/test' then
          begin
             MainForm.WebForm.JSInterface.JSCode ('ajaxRequest (MainForm.window, "message", ["edit = teste"]);');
    
           end;
    
    end;

     

  2. Oops, I'm sorry, I was forming the idea better, come on, I'm receiving information through the UniGUIServerModuleHTTPDocument and when I receive this information, my idea now is different from this ajax event in the main form, so use the same idea, so the main form doesn't have JSInterface, how to do?

  3. 1 hour ago, Sherzod said:
    
    procedure TUniForm1.UniBitBtn1Click(Sender: TObject);
    begin
      (Sender as TUniBitBtn).JSInterface.JSCode('ajaxRequest(MainForm.window, "message", ["edit='+ UniEdit1.Text +'"]);');
    end;

     

    perfect, just one more detail, can i apply this code in a procedure?
    not push the button, but a trigger procedure?

  4. I am using IdHTTPServer to receive an external data, it is working correctly, but it is displaying the data in a memo and this data does not show any memo, if you click on any memo and press enter the loading or data correctly, try an update on the memo , but it didn't work ... is there anything you can do?

    did it this way in the CommandGet of idhttpserver

     

                 Stream := ARequestInfo.PostStream;
                 if assigned(Stream) then
                    begin
                      Stream.Position := 0;
                      post := ReadStringFromStream(Stream);
                      jsonObj := TJSONObject.ParseJSONValue(TEncoding.ASCII.GetBytes(post),0) as TJSONObject;
    
                      mLog.Lines.Add(DateTimeToStr(now));
                      mLog.Lines.Add(DateTimeToStr(now)+' Conectado ?' + jsonObj.GetValue('conectado').Value );
    
                    end;

     

  5.  

    Hello, can I get a screen to fire an ajaxevent to another screen?

    For example user A is on the frmProcessos screen, I want to click on a button to fire an ajaxevent on the MainForm screen or another specific screen, example frmProcessosAndamento, is there such a possibility? if so, how?

  6. 41 minutes ago, Tokay said:

    Infelizmente, não é uma boa estrutura fazer algo real no Delphi + UniGUI. O Lazarus possui um bom LCL que é totalmente compatível com a estrutura VCL em todas as plataformas, e todo o código pode ser movido para o Lazarus com o mínimo de correções. Mas no Delphi você não tem VCL no Linux. Você tem apenas FMX, que ainda não possui a classe TBitmap e todas as APIs, se totalmente incompatível com o vcl. Sobre todo o código deve ser reescrito. No caso de milhões de linhas, é um grande desafio. A versão do Lazarus UniGUI também não está disponível no momento.

    Também tento usar o CrossVCL. Parece bom substituto para o VCL e possui as classes VCL mais comuns no Linux (não é gratuito, mas ok, não é um grande problema). Mas o UniGUI não pôde ser compilado no momento com o CrossVCL porque parte dos módulos não é de código aberto e o compilador retorna um erro de que os módulos do unigui não puderam ser compilados com cursos alterados.

    E eu não sei o que fazer a seguir. Ainda esperando por agora.

    strongly disagree

  7.  

    How to automatically add or size an unimdbgrid column, try this code below, but it is giving an error

     

    unimdbgrid1.JSInterface.JSCode(#1'.columnManager.columns.forEach(function(col){col.autoSize()});');

     

  8. In ServerModule in CustomMeta, place the code

      <meta name = "theme-color" content = "# e83237">

    so that the entire status bar of the cell phone is the configured color, but will be used when you type something in edit mode, it will lose this setting, see no video ... attached or an example of how the same situation occurs.

     

    DemoMobile.rar

    meta.gif

  9. perfect, I made some adjustments according to my standard and it worked correctly ...

    function beforeInit(sender, config)
    {
      config.altFormats="dmY|d/m/Y|j/n/Y|j/n/y|j/m/y|d/m/y|j/m/Y|d/n/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|d-m-Y|j-n|j/n";
    }

    however, I have to do this for each datetimepicker I have on the system, can I do it in a way that replicates for everyone?

  10. I realized that by default in the unidatetimepicker when you type the day it completes with the month and current year, when you type the day and month it fills the year, this without having to inform the bar, however for the brazil pattern when you type the day and month it does not fill in correctly, for example, if you type 0806 and type tab, it fills 08/06/2020, how do I make it fill correctly according to the Brazilian standard?

    datetimerpicker.gif

    DateFormat is configured this way: dd / MM / yyyy

×
×
  • Create New...