0

This should be simple, but I appear to be struggling to get it to work.

Quite simply I have a name column and an id (autoinc) column, I'd like to combine the two fields into one label control using Live Bindings.

I've set the custom control to

"%s (Self.Owner.FieldByName('ind_id').Text)"

But to no avail, I simply says 'Name 0' were 0 is supposed to be the field ID value.

Any idea as to what I'm doing wrong!?

Thanks in advance.

Steve Childs
  • 1,832
  • 2
  • 20
  • 26
  • 1
    You could always use a calculated field to combine the 2 fields – David A Aug 22 '14 at 22:52
  • Did you try without `Owner`: `%s (Self.FieldByName('ind_id').Text)`? – adlabac Aug 23 '14 at 07:56
  • Without owner just results in a 'FieldByName' not found error. A caculated field just seemed a bit OTT, although it would work, I thought LiveBindings was supposed to do this easily. – Steve Childs Aug 23 '14 at 12:08

1 Answers1

1

Try this: Self.DataSet.FieldByName('ind_id').Text

kanoyan
  • 33
  • 5