Jump to content

rtalmeida

Members
  • Posts

    176
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by rtalmeida

  1. I need to consider in UniDBGrid1ColumnSummary only the selected rows in an unidbgrid that is with the property dgMultiSelect = True and dgCheckSelect = True, how can I do?

  2. ---------------------------
    Debugger Exception Notification
    ---------------------------
    Project rtacontabil.exe raised exception class EAssertionFailed with message 'Worker is not assigned. (H:\Framework\uniGUI\Source\Core\uniGUIApplication.pas, line 1114)'.
    ---------------------------
    Break   Continue   Help   
    ---------------------------
     

  3. I'm creating unidbgrid and it's partially working, I'm not able to set the Filtering.editor property to below the code I'm doing.

     

        Grade.Columns.Clear;
        Grade.Columns.BeginUpdate;
        tmpCons.first;
        while not tmpCons.eof do
        begin
            with Grade do
            begin
                with Columns.Add do
                begin
                  FieldName     := tmpCons.fieldbyname('campo').asstring;
                  Title.Caption := tmpCons.fieldbyname('titulo').asstring;
                  Width         := tmpCons.fieldbyname('tamanho').asinteger;
                  Font.Charset  := ANSI_CHARSET;
                  Font.Name     := 'Verdana';
                  DisplayMemo   := True;
                  Sortable      := True;
                  if tmpCons.fieldbyname('tipo').asstring = 'TUniEdit' then
                  begin
                    with TUniEdit.Create(Self) as TUniEdit do
                    begin
                       Left   := 10;
                       Top    := 10;
                       Parent := UniHiddenPanel1;
                       Text   := '';
                       Name   := 'Edit'+tmpCons.fieldbyname('campo').asstring;
                    end;
                    Filtering.Enabled := True;
                    Filtering.editor  := TUniEdit(FindComponent('Edit'+tmpCons.fieldbyname('campo').asstring));
                  end;
                end;
            end;
            tmpCons.next;
        end;
        Grade.Columns.EndUpdate;
     

     

    what am I doing wrong?

     

     

  4. Hello, I'm having difficulty when I use a datasource that is linked to another form, whenever I close the project and then when I reopen, the datasource binding disappears, what am I doing wrong? Attached an example the datasource of UniForm1 is bound to the dataset of the MainForm.

    ligacao.zip

×
×
  • Create New...