Jump to content

fraxzi

uniGUI Subscriber
  • Posts

    237
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by fraxzi

  1. 7 minutes ago, Luciano França said:

    I think unigui lacks nothing in terms of components and functionality I see what is needed is stability and bug fixing in Unigui. 

    Advanced (DB)Lookups, with management of displayed fields and key fields (not displayed), and being able to display multiple columns in the popup. This makes managing related archives in forms much easier. Now is really limited and creates difficulties.
     

      I don't understand your difficulty because with only 9 months of use I managed to create features similar to these

    I don't see the need to have something ready, just think a little outside the box that there are ways to do this.

    Hi Luciano,

    It is so welcome if you can share sample code.

    Thanks.

  2. 10 hours ago, Abaksoft said:

    Hello,

    Did you follow step by step the guide :

    http://www.unigui.com/doc/online_help/websockets--ssl.htm

     

    Hi @Abaksoft,

     

    Good day!

    No i didn't but I read the documentation. 

    The subject web app is HyperServer on IIS.. it works but the added websocket functionmality works only on development environment not in web environment where IIS manage the Hyperserver.dll => webapp.exe.

     

    Any suggestion where should I start?

    Thanks.

  3. Hi Everyone,

     

    I have .1568 and using Hyperserver in IIS 10 and Websocket.. the app uses 16416 port.

    in my local pc everything worked fine.. I received websocket broadcast.. BUT in https environment (IIS) the thing is not working at all... (chrome browser, other browser not working too)

    What Am I missing??

    Please Somebody help me on this.

    • Like 1
  4. code hard but eat well..

    code hard but take lots of fluids .. 

    code hard but take lots of rest ..

    code hard but engage in sports ..

    work life balance .. it's unigui.

     

    • Like 1
  5. Hello @Sherzod,

    I tried this:

    ...
         if Self.Components[i].ClassType = TUniDBDateTimePicker then
            with TUniDBDateTimePicker(Self.Components[i]) do
              if ClearButton then
                with JSInterface do
                  begin                      
                    JSAddListener('afterrender', 'function(cmp){cmp.getTrigger("clear").hide()}');
                    JSAddListener('focus', 'function(cmp){if (cmp.getValue()!="") cmp.getTrigger("clear").show()}');
                    JSAddListener('blur', 'function(cmp){cmp.getTrigger("clear").hide()}');
                    JSAddListener('dirtychange', 'function(cmp){cmp.getTrigger("clear").hide()}'); //<--------
                  end;
    ...                                                                                                           

    But got this:

    image.png.06e22037ddd8683193d8c031c49cebaf.png

    I would like to implement "dirtychange" for the field with "ClearButton = True"

    is this possible with DateTimePicker?

    Thanks,

    Frances

     

     

     

  6. 17 hours ago, Sherzod said:

    Maybe you will try this solution?

    procedure TMainForm.UniButton1Click(Sender: TObject);
    begin
      UniFieldSet1.Collapsible := not UniFieldSet1.Collapsible;
    
      with UniFieldSet1 do
        if CheckboxToggle then
          if Collapsible then
          begin
            JSInterface.JSCall('checkboxCmp.show', []);
            JSInterface.JSCall('getEl().down(".x-fieldset-header-text").resumeEvent', ['click']);
          end
          else
          begin
            JSInterface.JSCall('checkboxCmp.hide', []);
            JSInterface.JSCall('getEl().down(".x-fieldset-header-text").suspendEvent', ['click']);
          end;
    
    end;

     

    Hi @Sherzod,

    The Guro strikes again!  ... you always amaze me (us).

    works perfectly.

    Thanks,

    Frances

    • Thanks 1
  7. 29 minutes ago, Sherzod said:

    Solution for both cases:

    function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
    {
        var delta=0;
        if (columns[0].xtype && columns[0].xtype == 'rownumberer') {
            delta = 1;
        }
        var widgetColIndx = 1; //Index without regard to rownumberer
        columns[widgetColIndx + delta].onWidgetAttach = function(column, widget, record) {
            widget.setDisabled(record.get(widgetColIndx) == "Blue Angelfish");
        };
    }

     

    You're the Man! @Sherzod,

     

    Works superbly! Thanks much,

    Frances

    • Thanks 1
  8. Hi @Sherzod,

    I confirmed that:

    function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
    {
        var widgetColIndx = 2;
        columns[widgetColIndx].onWidgetAttach = function(column, widget, record) {
            widget.setDisabled(record.get(widgetColIndx) != "0");
        }; 
    }

    Doesn't work if dgbrid.Options.dgRowNumbers := true ... works only of set to false..  I need the row number. What is the alternative?

    I tried widgetColindx = 3 with row number but it didn't work as well.

     

    Thanks,

    Frances

  9. Hi Sherzod,

    Based on the above

    if "Row.childNodes = 0" then
        ShowMessage('clicked');

    I want to click on the child node and do something.

    I do this:

    function cellclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts)
    {
        if (!record.hasChildNodes()) {
            ajaxRequest(sender, 'nodeclicked', {value: b}, false);
        }
    }

    and this:

    procedure TLogs.dbGridPrjsAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings);
    begin
      if EventName = 'nodeclicked' then
      begin
        ShowToast('node clicked!');
      end;
    end;

    but not working.. i know I did something not right.

     

     

×
×
  • Create New...