Jump to content

heromo80

uniGUI Subscriber
  • Posts

    59
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by heromo80

  1. Hello Delphi Developer, 

     

    It worked fine!

     

    Thanks. 

     

     

    Hello,

     

     

    Can you try this approach?:

    function treeMenu.afterCreate(sender)
    {
        sender.el.setStyle('overflow-y', 'auto');
    }
  2. Hello,

     

    Sorry, can you clarify your question?

     

    Hello,
     
    the scroll is not activated to navigate through all the nodes without having to collapse the previous node.
     
    Scrolling works well with a unitreeview when it expands completely.
     
    Thank you
     
    post-353-0-37801500-1529524510_thumb.jpgpost-353-0-59189500-1529524578_thumb.jpgpost-353-0-73964600-1529524591_thumb.jpg
  3. Hello,

    Is it possible that a treemenu has the default scroll activated when expanding a node?

    This when the nodes that are at the bottom are hidden and the treemenu is embedded in a panel

     

    Thanks for your help

  4. Hi,
     
    In the app1 where the user is authenticated, a string is formed with the user parameters, database, random control code is encrypted and passed as a parameter for the app2. in the app2 it is received and the application can only load if the parameters are valid in front of a common database that verifies that the control id is valid. You could also use the sessionID of the app1, which would have greater security by ensuring only once the use of the parameter step to the app2.
    The important thing is that once validated the controlID or sessionID is marked as used so that they can not reload the previously formed url.
    This applies when you need to have a control system for many databases and users and it is required to have the unigui 24x7 application and be able to have a basic load balancing. It is the practical way that I found and it has worked for several years.

     

    • Upvote 2
  5. Hi,

     

    That's the same thing I do for load balancing. In the application 1 where the user is authenticated I have a table with the Urls of the application 2 (main) with addresses to the servers and a field that activate / deactivate the URL, with this I can massively update the application 2 rotating between servers without have to get the users out. I apply for each user an Url depending on the active server (to minimize the download of the js, css, images, etc of ExtRoot and UniRoot), that's why it's important to have a CDN, since if you left the urls randomly every session the user had to download these previous files and it was delayed or the user had to try the load several times.
     
    Best regard

    post-353-0-74110500-1509463169_thumb.jpg

    post-353-0-85114500-1509463386_thumb.jpg

  6. Hi,

    We use a load balancing strategy with multiple IIS servers with multiple deployed pools and applications. Each user is assigned a final application. Each application on average has 8-10 users and concurrently can reach 3-5 users.

    With this we have distributed a low load of cpu and memory. During hard work hours 400-500 users can be connected. The main application of unigui has more than 500 forms.

    One of the properties we miss and hope it will be implemented is the CDN route to host files extjs, unigui and other js libraries. This topic is discussed here http://forums.unigui.com/index.php?/topic/4297-extjs-unigui-cdn/?p=20971

     

    Thank you

     

    post-353-0-13219800-1504718461_thumb.jpg

    post-353-0-23732900-1504718473_thumb.jpg

    post-353-0-04434700-1504718481_thumb.jpg

    • Upvote 2
  7. Hi,

     

    Any idea if this can be implemented,

     

    thanks

     

     

     

    http://en.wikipedia.org/wiki/Content_delivery_network

     

    The Extjs, UNIGui Js, touch Js other JS files, image files, video files and other static resource files saved on the CDN server
    1) WEB improve service response, because CDN optimization based ISP
    2) while reducing bandwidth web services, because CDN assign data streams to a different CDN service node
     
    将Extjs、UNIGui Js、touch Js 等其他JS文件、图片文件、视频文件等静态资源文件保存在CDN服务器上
    1)提高WEB服务响应,因为CDN会根据ISP优化
    2)同时降低web服务的带宽,因为CDN将数据流分配到不同CDN服务节点

     

    例如:
    For example:

     

    在现有

    In the existing

     
    UniServerModule.ExtRoot = D: \ ext-4.2.2.1144 \
    UniServerModule.UniRoot = D: \ uni-0.99.0.1159,
    UniServerModule.TouchRoot = D: \ touch-2.4.1 \
    UniServerModule.UniMobileRoot = D: \ unim-0.99.0.1159 \
     
    基础上增加

    Based on the increase

     
    UniServerModule.ExtRootUrl = http: //*.yourdomain.com/ext-4.2.2.1144/
    UniServerModule.UniRootUrl = http: //*.yourdomain.com/uni-0.99.0.1159/
    UniServerModule.TouchRootUrl = http: //*.yourdomain.com/touch-2.4.1/
    UniServerModule.UniMobileRootUrl = http: //*.yourdomain.com/unim-0.99.0.1159/
     
    打开网页生成如下代码:

    Open the Web page to generate the following code:

     
    <Link rel = stylesheet href = "/ uni-0.99.0.1159 / css / uni-ext.css" />
    <Link rel = stylesheet href = "/ ext-4.2.2.1144 / resources / css / ext-all.css" />
    <Script src = "/ ext-4.2.2.1144 / ext-all.js"> </ script>
    <Script src = "/ uni-0.99.0.1159 / ext-unicommon-min.js"> </ script>
    <Script src = "/ uni-0.99.0.1159 / ext-sync-min.js"> </ script>
    <Script src = "/ ext-4.2.2.1144 / locale / ext-lang-zh.js"> </ script>
    <Script type = "text / javascript">
     
    /{这里指向CDN服务URL 也就是UniServerModule.ExtRootUrl

    // URL CDN service point here is UniServerModule.ExtRootUrl

    Ext.Loader.setConfig ({enabled: true, paths: {"Ext.uni": "/ uni-0.99.0.1159 /"}});
     
    </ Script>
     
    <Script src = "/ uni-0.99.0.1159 / AlwaysOnTop.js"> </ script>
    <Script src = "/ uni-0.99.0.1159 / ClearButton / ClearButton.js"> </ script>
    <Link rel = stylesheet href = "/ uni-0.99.0.1159 / ClearButton / ClearButton.css" />
    <Link rel = stylesheet href = "/ uni-0.99.0.1159 / css / uni-xtheme-common.css" />
    <Link rel = stylesheet href = "/ uni-0.99.0.1159 / css / uni-xtheme.css" />
    <Script src = "/ uni-0.99.0.1159 / ext-unigui-min.js"> </ script>

     

     

     

    not cache  & first load unigui

     

    CDN VS no cdn

    cdn not cache first load unigui

     

     

    no cdn no cache first load unigu

     

  8. Hi,

     

    the application works ok if I run it as an exe. When I run it as a service, the number and currency symbol's changed, moreover when I pass characters to a query does not work. I load the same service at Win 7 and works ok.

     

    Of cource I cave checked the Region settings at control panel.

     

    Does anyone has an idea?

     

    Thanks for your time

     

    Hi, you can try...

     

    post-353-0-26729500-1436358731_thumb.png

    • Upvote 3
  9. dear agmoro7622 

     

    we can create and send to xls or csv to user. 

    it is possible

     

    Hi,

     

    it is true that you can create xls third component, but not CreateOleObject ('Excel.Application') in ISAPI mode.

     

    I have the same problem and yet discard CreateOleObject.
     
    Regards
  10. I usually use calculated fields...

     

    procedure TUniMainModule.dtFamiliaCalcFields(DataSet: TDataSet);
    begin
      dtFamilianombre.AsString := '<p class="x-p-infofam">' + dtFamiliafamilia.AsString + '</p>';
    end;
    

    and css...

     

    .x-p-infofam {
    word-wrap: break-word;
    white-space: pre-line;
    padding: 2 5 2 5;}
    

     

    • Upvote 1
  11. procedure TFormAccountInlog.UniBitBtn_SaveClick(Sender: TObject);
    begin
     if Length(UniEdit_InlogUserName.text)=0 then begin
        ShowMessage('<br/><div align="center">Het invulllen van een gebruikersnaam is verplicht!' + '</div><br/>', procedure (res:integer) begin
          Abort;
          UniEdit_InlogUserName.SetFocus;
        end); 
     end;
    end;
    

     

    :)

  12. El método no aplica en el unidbgrid, esta en el dataset que se utiliza como persistencia a la grilla... cuando se selecciona un campo del Fields Editor del dataset esta el evento OnGetText en el cual puede jugar con las etiquetas html y el contenido a mostrar. También se puede utilizar campos calculados en el dataset estos se pueden construir incluyendo etiquetas html. :)

     

    Saludos

    • Upvote 1
  13. Se puede hacer todo lo que quiera dentro de una celda de un tunidbgrid, en el metodo OnGetText del campo se incluye codigo html

     

    procedure TMainForm.dtOrderspicurlGetText(Sender: TField; var Text: string;
     DisplayText: Boolean);
    begin
     if Length(Sender.AsString)>0  then
     begin
       text := '<img src="' + Sender.AsString + '" />';
     end else Text := '';
    end;

     

    O con un campo calculado incluyendo etiquetas html... :)

     

    Un ejemplo:

     

×
×
  • Create New...