Adding fields to RecordViewPanel at runtime

Comments

8 comments

  • Max

    Is there any kind of documentation for the FirePower-Components besides the overview?

    1
    Comment actions Permalink
  • Roy Woll

    This seems to work for me.

    var item: TwwRecordViewItem;
    begin
      wwrecordviewpanel1.SelectedFields.Clear;
      item:= TwwRecordViewItem.Create(self);
      item.FieldName:= 'Customer No';
      item.Title:= 'Customer No';
      item.Width:= 80;
      wwrecordviewpanel1.SelectedFields.Add(item);

      item:= TwwRecordViewItem.Create(self);
      item.FieldName:= 'First Name';
      item.Title:= 'First Name';
      item.Width:= 80;
      wwrecordviewpanel1.SelectedFields.Add(item);

      wwrecordviewpanel1.RecreateControls;

    0
    Comment actions Permalink
  • Max

    Thank you, that has worked.
    I thought i had already tried that.

    Do you have some kind of Documentation for the FirePower-Components like there is for InfoPower?

    0
    Comment actions Permalink
  • Roy Woll

    You can click on Help | 3rd Party Help | FirePower to bring up the help file.

    0
    Comment actions Permalink
  • Max

    OK, thank you.

    With this approach i have another problem only on iOS.

    I get an Access Violation when the underlying DataSet is changed.

    i tried clearing the fields and setting the BindSource to nil before changing the DataSet but that doesn´t work either.

     

    When i set the Bindingsenabled to false before changing the Datasource, i get an AccesViolation when setting it to true again.

    0
    Comment actions Permalink
  • Roy Woll

    We will need a simple project that reproduces the problem. This will help us find the cause of the problem. You can email it to support@woll2woll.com

    0
    Comment actions Permalink
  • Max

    I have sent one.

    1
    Comment actions Permalink
  • Max

    Did you already have a chance to look at the problem?

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk