Jump to content

skafy

uniGUI Subscriber
  • Posts

    216
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by skafy

  1. OK. If you have node it is presentet as single entity. There is no + sign on left side of the node (for node expendsion), image in only for one node. If you fill that node with subnodes (chilldrens) then + sign is presented with this node (where we just add subnodes) and picture changes to "folder".

     

    So is it possible that you have this plus sign and folder image if there is no subnodes in the node. only one node, without childrens that is presentet as parent node.

  2. We did. If you mean to integrate TMS Workflow Studio it is better to create your own workflow (create your own database with logics. This is what we did)

  3. No

     

    Ok, So I've added records to DBComboBox like so:

      FDQuery1.Open;
      ShowMessage(FDQuery1.RecordCount.ToString);
      while not FDQuery1.Eof do
      begin
        UniDBComboBox1.Items.Add(FDQuery1.FieldByName('NAME').AsString);
    
        FDQuery1.Next;
      end;
      FDQuery1.Close;

    ShowMessage print 35, whitch shows that query returned data.

     

    Still no DownArrow at right site of the control.

  4. DataSource connected

    DataField selected

    ReadOnly - NO

    Items sould get filled automaticly when query become active?

     

    If I treat DBCombo as usual ComboBox and filled it staticly like so:

      dbcombo:= TUniDBComboBox.Create(Self);
      dbcombo.ReadOnly:= False;
      dbcombo.Enabled:= True;
      dbcombo.Items.Add('ad');
      dbcombo.Items.Add('aad');

    I also don't see down arrow at the right site of the control.

  5. Hi,

     

    I'm trying to create dbComboBox on the fly, but having a problem with proper display.

     

    Here is my code. Also have FDConnection, FDQuery & DataSource all connected correctly

    dbcombo:= TUniDBComboBox.Create(Self);
    dbcombo.Align:= alTop;
    dbcombo.AlignWithMargins:= True;

    Now when I run the program there is Combobox without down arrow (where would I click to select a value from dropdown list). DBCombobox is presented as UniEdit. I'm missing drop arrow.

     

     

  6. Hi,

     

    Could you please tell me how to fill column of unimdbgrid with selected values. In mobile version there doesn't seem to work if I do the folowing:

    gridDelilnik.Columns[2].Editor:= unimSelect; //unimSelect is TUnimSelect with filled Items property

    OR

    gridDelilnik.Columns[2].PickList:= unimSelect.Items; //unimSelect is TUnimSelect with filled Items property

    What is the correct way to fill grid columns with wanted values from code. It seems I cannot access Column EditorItems from code.

  7. Hi,

     

    I'm having trouble with Popupmenu in IE. When I call TuniPopup.Popup(X, Y) inside procedure TniDBGrid1CellContextClick(Column: TUniDBGridColumn; X, Y: Integer) I get X & Y value of 0. So popup menu shows in top left corner in IE. in Firefox this is OK and popup show as expected.

     

    Best regards.

     

     

    post-3774-0-80499800-1505289732_thumb.gif

  8. DD this solution works. Thank you.

     

    Hi,

     

     

    Sorry for the delay,

     

    Can you try this approach for now ?!:

    procedure TMainForm.UniFormCreate(Sender: TObject);
    var
      DataSource: TDataSource;
      DataSet: TClientDataSet;
    begin
      with UniDBGrid1 do
        JSInterface.JSAddListener('reconfigure', JSControl.JSFunction('me', 'if (me.getPlugin("uniGridEditor")) me.getPlugin("uniGridEditor").editor=null'));
    
      try
        DataSet:= TClientDataSet.Create(Application);
        DataSet.FieldDefs.Add('ID', ftInteger, 0, False);
        DataSet.FieldDefs.Add('ID2', ftInteger, 0, False);
        DataSet.FieldDefs.Add('ID3', ftInteger, 0, False);
        ...

    Best regards,

×
×
  • Create New...