Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 11 JUN 1999 08:16:03AM Thuan and Keyvan wrote:

How to send data from native table to edit table?

We have read some of the previous articles on this forum about how to send data to edit tables instead of popup table

but there are no concrete examples.

We have tried the following codes without success.

The datafields in the native table(addressbook) in our example are not multivalue.

Please heeeeeeeeeeeeeeeeeeeelp! Thanks

      $Insert Logical
   Done=FALSE$
   Open "addressbook" To address_table Then
      Select address_table
         Loop
      ReadNext ID Then
       displaydata=READ_ROW(addressbook, ID, 0)
       rt=send_message(edittable,INSERT,1,displaydata)
           End Else Done=TRUE$
         Until Done Repeat

At 11 JUN 1999 11:15AM Terry Evans wrote:

If the edittable is empty why not load an array with the data then the control.

$Insert Logical

Done=FALSE$

Open "addressbook" To address_table Then

Select address_table

array='

Loop

ReadNext ID Then

displaydata=READ_ROW(addressbook, ID, 0)

array=displaydata; * appends data to array

*-array=insert(array, 1, 0, 0, displaydata); * prepends data

*-rt=send_message(edittable,INSERT,1,displaydata)

End Else Done=TRUE$

Until Done Repeat

Set_Property(edittable, 'ARRAY', array)


At 23 JUN 1999 02:37PM Cameron Revelation wrote:

Thuan and Keyvan,

In most cases, this is done automatically by binding the edit table to fields of a record. If the data that you want to display is only going to come from one record at a time from a particular table, you do not have to do any coding to make this work. See the "Database Association" portion of the Edit Table properties.

Cameron Purdy

Revelation Software

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/7d6f710ce9610e638525678d0043635e.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1