Alpha Video Training
Results 1 to 6 of 6

Thread: Disappearing Data In Set

  1. #1
    "Certified" Alphaholic Phil Rolf's Avatar
    Real Name
    Philip Rolf
    Join Date
    Apr 2000
    Location
    Kentucky
    Posts
    1,539

    Default Disappearing Data In Set

    I have form that is made up of a set (Invoice -> Acctsrec)
    The acctsrec data is on a tabbed object along with some data from the Invoice table. What happens is this:
    The invoice data has already been saved. After the order has shipped I go back to the tabbed object to enter the acctsrec data. The tab order sequences through about 6 acctsrec fields, then I go to a field (inv_status) that is from the Invoice table. When I tab to the to the inv_status field on the form ALL of the acctsrec data disappears. To correct the problem, when I get to the sixth acctsrec field I do an F9 to save, then I can tab to the inv_status field without any problems. Any ideas why this is happening? I thought the purpose of the SET was to have the availability to mix table data. Am I out in left field.....?

    Thank

  2. #2
    "Certified" Alphaholic forskare's Avatar
    Real Name
    Ken Nordin
    Join Date
    Apr 2000
    Location
    Walker, MN
    Posts
    7,545

    Default RE: Disappearing Data In Set

    Philip,

    Check you indexes on each table. Could be that one of the is set to record number.

    kenn

  3. #3
    "Certified" Alphaholic
    Real Name
    Tom Cone Jr
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    23,310

    Default RE: Disappearing Data In Set

    Philip, is the inv_status field involved in the link definition of your set? It sounds to me as though something in your form, or perhaps in a field rule, is causing a new Invoice record to begin, severing the link to the Acctsrec record that was on screen.

    When you form is based on a set, and the record pointer in the parent table moves, the record pointer in the related child table moves automatically. If you add a new parent table record, it's likely that there are no matching child table records yet, so the child table fields become blank.

    In my own work I try very hard never to do data entry using a form based on a set. I'll use such a form (read-only) to navigate... but then I'll use buttons to open subsidiary forms based on one table at a time to do my data entry. why? I got tired of the battle for control over the interface in the set based form. There just seemed to be too many ways for my users to do things out of order. I prefer keeping it simple. One thing at a time.

    -- tom

  4. #4
    "Certified" Alphaholic Phil Rolf's Avatar
    Real Name
    Philip Rolf
    Join Date
    Apr 2000
    Location
    Kentucky
    Posts
    1,539

    Default RE: Disappearing Data In Set

    All the indexes are correct

    "is the inv_status field involved in the link definition of your set" NO

    "field rule, is causing a new Invoice record to begin," a new invoice record is not created, the inv_status is a simple logical field connected to nothing, it is for informational purpose only.

    "there are no matching child table records yet" The invoice table is the Parent table and the acctsrec is a child tied directly to the invoice table, there is no other table between the invoice and acctsrec table. The relationship is one to one. So the acctsrec info is the only info related to the invoice number.

    "I'll use buttons to open subsidiary forms" this is the concept that I used in A4. The A5 accounting system allows the operators to stay on one form and can do 98% of their work. Saves much time by having not to run around to all the tables for the entry of data. Although there are buttons to get to all the individual tables if the operators have to.

  5. #5
    Former Alpha Employee JerryBrightbill's Avatar
    Real Name
    Jerry Brightbill
    Join Date
    Apr 2000
    Posts
    5,172

    Default RE: Disappearing Data In Set

    Philip,
    Do you use a resynch() command anywhere when you save the parent? I had a similar problem on one app that operated like an invoice app. I used resynch() when the parent was saved. For some reason, the child records would display from a different record. I switched to using refresh() on the fields on the form and the problem disappeared.

    Jerry

  6. #6
    "Certified" Alphaholic
    Real Name
    Tom Cone Jr
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    23,310

    Default RE: Disappearing Data In Set

    Philip,

    Check the events which fire as the user tabs out of the last acctsrec field and enters the inv_status field. It sure seems like the invoice table record pointer is moving. The events to check may be present in several different places:

    1) table field rules (acctsrec)

    2) table field rules (invoices)

    3) form level

    4) form field level

    -- tom

Similar Threads

  1. My data is disappearing
    By Susan Schlueter in forum Alpha Five Version 6
    Replies: 2
    Last Post: 05-17-2005, 10:32 AM
  2. Disappearing Data
    By Paul DeLosa in forum Alpha Five Version 5
    Replies: 4
    Last Post: 10-14-2004, 02:31 AM
  3. DATA DISAPPEARING
    By LEGRAN in forum Alpha Five Version 6
    Replies: 5
    Last Post: 08-02-2004, 04:51 PM
  4. Disappearing Data
    By fairviewcomputing in forum Alpha Five Version 4
    Replies: 8
    Last Post: 06-19-2002, 06:29 AM
  5. Disappearing data in set
    By David Johnson in forum Alpha Five Version 4
    Replies: 6
    Last Post: 04-20-2001, 07:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •