Jump to content

Hayri ASLAN

Moderators
  • Posts

    1577
  • Joined

  • Last visited

  • Days Won

    134

Posts posted by Hayri ASLAN

  1. 6 hours ago, ale said:

    How to make the transition to other form more responsive and fast? 

    From main form I use buttonclick to move on uniform1 with "Uniform1.show;", but need 10 sec until uniform 1 appear. ( in form 1 there are some stringgrid and picture on a unipanel )

     Please help..

    Hello

    Which version and build are you using?

  2. 4 hours ago, LCSTech said:

    how to use google provider below with unimap?


    import { GoogleProvider } from 'leaflet-geosearch';
    const provider = new GoogleProvider({
      params: {
        key: '__YOUR_GOOGLE_KEY__',
      },
    });
    // add to leaflet
    import { GeoSearchControl } from 'leaflet-geosearch';
    map.addControl(
      new GeoSearchControl({
        provider,
      }),
    );

    Hello

    You can use below code.

    JSCode('const provider = new window.GeoSearch.GoogleProvider({params: {key: "apikey"}});');

  3. Merhaba

    Bu işin en kolay yolu yazıcı için bir servis yazmak

    Client yazdırmak istediğinde veritabanına bir kayıt ekler. Yazıcı servisi de belirli aralıklarda tabloyu kontol eder ve yazdırma işlemini gerçekleştirir

     

  4. 6 hours ago, likemike said:

    No problemunigui3.rar

    1. press "Open form" on Mainform -> 2. form opens and all works fine
    2. close the 2. form
    3. press "Open form" on Mainform again -> error

    Hello Mike,

    Please use below code.

    procedure TUnimForm1.UnimFormCreate(Sender: TObject);
    begin
      with UnimFileUploadButton1, JSInterface do
      begin
        JSCallGlobal('Ext.util.CSS.createStyleSheet', ['#'+JSId+' .x-inner-el{ '+
                                                                  ' background-color: #f5e971; '+
                                                                  ' border-color: #055af7; '+
                                                                  ' border-radius: 25px; '+
                                                                  ' border-width: bold; '+
                                                                  '}'+
                                                       '#'+JSId+' .x-text-el{ '+
                                                                  ' color: #525452; '+
                                                                  ' font-weight: #525452; '+
                                                                  '}'+
                                                       '#'+JSId+' .x-label-el{ '+
                                                                  ' display: none; '+
                                                                  '}'+
                                                       '#'+JSId+' .x-input-el{ '+
                                                                  ' display: none; '+
                                                                  '}'+
                                                       '#'+JSId+' .x-input-wrap-el{ '+
                                                                  ' border: none; '+
                                                                  '}'+
                                                       '#'+JSId+' .x-after-input-el{ '+
                                                                  ' width: 100%; '+
                                                                  '}'+
                                                       '#'+JSId+' .x-filetrigger{ '+
                                                                  ' width: 95%; '+
                                                                  ' margin-left: 1em; '+
                                                                  '}'+
                                                       '#'+JSId+' .x-button-action{ '+
                                                                  ' width: 100%; '+
                                                                  '}'
    
                                                                  ]);
      end;
    end;
    
    procedure TUnimForm1.UnimFormReady(Sender: TObject);
    begin
      with UnimForm1.UnimFileUploadButton1, JSInterface do begin
          JSAssign('element.dom.querySelector(".x-text-el").innerText', ['New media']);
      end;
    end;

     

    • Thanks 1
  5. 3 hours ago, likemike said:

    Sorry to disturb again, but this JS-assignments work the first time. The second time I get an AJAX-error.

    353247178_WhatsAppImage2022-04-01at17_00_00.jpeg.c7e49a550d2cfa2f7a1a5e3128fce3a4.jpeg

    The UnimFileUploadButton is placed on an extra form, which is closed and opened by the user.

    Should I clear the JS-assignments before assigning them?

    Thanks

     

    Hi

    Can you make a simple test case so I can work on it

  6. 17 hours ago, likemike said:

    Hello Hayri!

    This post is very helpful. 

    Can I set the background color und rounded edges too?

    Where can I find which elements are available and what are the possible settings?

    Regards

    Mike 

    Hello Mike

    Please add below lines to your code.

      with UnimFileUploadButton1, JSInterface do
      begin
        JSAssign('element.dom.querySelector(".x-label-el").style.display', ['none']);
        JSAssign('element.dom.querySelector(".x-input-el").style.display', ['none']);
        JSAssign('element.dom.querySelector(".x-input-wrap-el").style.border', ['none']);
        JSAssign('element.dom.querySelector(".x-after-input-el").style.width', ['100%']);
        JSAssign('element.dom.querySelector("#ext-field-trigger-file-1").style.width', ['100%']);
        JSAssign('element.dom.querySelector("#ext-filebutton-1").style.width', ['100%']);
        JSAssign('element.dom.querySelector(".x-text-el").innerText', ['Take a Picture']);
    
        JSAssign('element.dom.querySelector(".x-inner-el").style.backgroundColor', ['red']);
        JSAssign('element.dom.querySelector(".x-inner-el").style.borderColor', ['red']);
        JSAssign('element.dom.querySelector(".x-inner-el").style.borderRadius', ['25px']);
    
      end;

     

    • Like 1
  7. 9 hours ago, Point said:

    Hello,

    is there a way send message/signal to hyperserver service to restart unigui application base on spesific node.

    thanks

    Hello

    Can you explain what is the purpose of this? Hyperserver will restart unigui app if there is a timeout

  8. On 3/28/2022 at 3:40 AM, Franco Grech said:

    Thank you so much your work it's really nice.

    I'd like to ask that how can I use camera to record a new video. In my app I'm using the UniGUI mobile upload component where I already set the accept ('video') property. The mobile app every time wants to create photo.

    When I'm testing this function in Chrome browser, it works properly.

    Thank you for any help!

    Hello

    Can you make a simple test case so I can work on it

  9. 4 hours ago, d.bernaert said:

    Or the other build... 🙂 what build will that be 🙂 there are no builds...

    We recently published a build. 

    Currently we are actively working on websockets. If everything go well we will publish it in the next build but if something urgent come to table, we may defer it one build.

  10. 7 hours ago, VolkovVitalD said:

    Hello!

    I didn't find any information on the forum on the use of this technology.

    It would be great to call:
    UniSession.NotifyClient('Notifications from server');

     

    You can not interact with client without getting a request from the client. 

    To solve this we are implementing websockets. We will publish it in the next or the other build.

    • Like 1
  11. 1 hour ago, likemike said:

    Hi!

    I have a UnimURLFrame on my Loginform with a nice HTML-animation. 

    With an AjaxEvent I control the submit button to verify the login data.

    When the verifying is positive, I do a "ModalResult:=true;" and all works fine.

    But when the verifying of the login data is negative, the loginform reopens and shows something like that (after 3 times input of wrong data) :

     snap.jpg.82c5adf06e13f740926872db23ead8d9.jpg

    How can I avoid that?

    Regards

    Mike

    Hello

    Can you please create a test case?

  12. 21 minutes ago, bbm said:

    Hi,

    Is there a chance that a newer version can be used in the short term?

    I got the following information from our customer:

    Image1.thumb.jpg.35534ec2fc0a176df4471bc7a49f97e9.jpg

     

    This could mean a problem for the use of our software

    Best regards

    Are you using formatted input text in your project?

  13. 1 hour ago, bbm said:

    Hi,

    The file jquery-1.11.2.min.js is available in version 1.90.0.1551. A customer asked me whether this file could be replaced by a more recent version.

    Best regards

    Hello

    you can set ServerModule -> Options -> soDontLoadJQueryLib := True  and add latest jquery file to CustomFiles.

  14. 6 hours ago, mehmet07 said:

    Hello,
    I tried your demo and it works fine. When I add it to my own application, I get the message postAppMessage is not defined.
    My action steps:
    -I added the UniMobileX1 component to the form.
    -I added the postAppMessage function to the script property of the form.
    -One button UniMobileX1.ReadBarcode(true); i wrote your code

    You should add postappmessage to mainform

  15. 5 minutes ago, mehmet07 said:

    Merhaba Hayri bey,

    -https://www.b4x.com/b4a.html yuklemesini yaptim. B4A-Bridge uygulamasini da yukledim ve kendi ornegini calistirdim sorunsuz calisti.

    -Sizin bileseni yukledim. uygulamayi derledim. sorunsuz derlendi.

    Simdi sizin demo yu apk olarak nasil derleyebilirim? İşlem sıradaki işlem adımı nedir acaba?

    Teşekkür ederim

    Merhaba

    B4A klasoru icindeki uygulamayi acin, eger kutuphane hatasi verirse Libraries kismindaki dosyalari internal library bolumune kopyalayin. Gerekli parametreleri degistirip uygulamayi derlediginizde apk olucak.

     

    1- Make sure hello world app works.

    2- Add missing libraries that I provided to Internal libraries folder.

    3- Build B4A app and you will get an apk. Before building make sure you changed to parameters.

×
×
  • Create New...