Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Data entry inhibited on form based on a set

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Data entry inhibited on form based on a set

    I'm wondering if Alpha Five V11 is more restrictive than V1 in the following situation.

    I have an invoice application with the invoice header record as the parent, 1 to 1 with the customer record, and 1 to many with the invoice line items.

    The customer number has a validation field rule which forces it to be unique. This is a lookup field in the set and the customer fields fill the invoice header. This should be irrelevant but the invoice number is an autoincrement field.

    The invoice form seems to work fine in most regards, but if I change any existing invoice header field and then either advance to the next record or explicitly save the record I get an error "Customer ID Must be Unique". That message can only come from the Customer table's validation field rule on Customer No. The Invoice set's field rule for that field shows the same validation rule. I honestly do not know whether that field rule exists separately in both the Customer table and the Invoice set or whether Alpha Five simply shows it when you look at the set's field rules.

    This problem does not exist in A5 V1.

    I don't know why A5 would think that a duplicate customer record is being created when the fields of the set are saved. The invoice form uses a different customer no. field from the one in the customer file, though of course they have the same value.

    From what little I've just told you, can you suggest any possible culprits, especially something in the definitions that V1 would forgive and V11 not so forgiving.

    I wanted to get this question posted first but I'm now going to explore whether the Customer table's field rule truly exists twice, once in the Customer table and again in the Invoice set. If it doesn't need to be in the set, I'll remove it. It would seem to me that it's sufficient to have the field rule only in the Customer table to protect it there, because if the user tried to add a duplicate record it would happen outside the set as a direct update to the lookup table.

    I hope this is sufficient information for you to give me a couple problem areas to investigate.

    Thanks so much ... Sam

    #2
    Re: Data entry inhibited on form based on a set

    Sam, when you view or edit field rules in a set you are actually working on the underlying table.
    The set simply provides linkages.
    Your set as described for invoicing is a pretty standard simple format.
    I'm trying to picture why you get the error. No explanation comes to mind.
    If you send yours or make a simple example database with a few records to illustrate you will get some valuable advice here.

    Comment


      #3
      Re: Data entry inhibited on form based on a set

      I have an invoice application with the invoice header record as the parent, 1 to 1 with the customer record, and 1 to many with the invoice line items.
      Your description is exactly what is the basis for the AlphaSports sample database (minus the link from invoice line items to products and from products to vendors). You might take a look at that and see how yours differs.
      There can be only one.

      Comment


        #4
        Re: Data entry inhibited on form based on a set

        Thanks for the explanation of the field rules, Ray.

        I'll have to give some thought as to packaging small subsets of my database. Is this correct: I duplicate the important elements like the set and it 4 tables, and the form. Skinny them down. There should be around 5 files per table, yes, and fewer for the set. Then zip them all together and upload that with my post. About right?

        Thanks for the suggestion, Ray.

        Comment


          #5
          Re: Data entry inhibited on form based on a set

          Good idea, Stan, I'll try to do that Tuesday.

          Comment


            #6
            Re: Data entry inhibited on form based on a set

            This sample application had no integrity at all built into it Stan. The customer no. was not even a required field, let alone validity checking for uniqueness. Hardly any fields had field rules specified other than the lookups.

            Very disappointing, couldn't learn a thing from it.

            I did have some fun though changing the autoincrementing customer number from "00000061" to "abc", and then to "" which orphaned the invoice.

            That was enough fun for one night, however.
            Last edited by sgerber; 08-28-2012, 12:15 AM. Reason: Misspelling

            Comment


              #7
              Re: Data entry inhibited on form based on a set

              Couple of points Sam.
              1) In a commecrial application, you shouldn't change a header record once it's saved as that is the root for all audit trail functions.
              2) The design of the set is important. See attached, which also has a lookup based on the customer table and a browse showing all invoices.
              Attached Files
              See our Hybrid Option here;
              https://hybridapps.example-software.com/


              Apologies to anyone I haven't managed to upset yet.
              You are held in a queue and I will get to you soon.

              Comment


                #8
                Re: Data entry inhibited on form based on a set

                Sam,

                Why include the customer table in your data entry set? Most would consider it a mistake, since a change to a customer field value (while entering an invoice transaction) would ripple through all transactions for that customer. A common misconception is that it's necessary to link the lookup table into the set in order to use a table lookup field rule. That's wrong. It's not necessary for the customer table to be linked into the set in order to define and use a table lookup field rule in the invoice header table. In my own work I'll often include the customer table in a set that will be used for reporting, but not for sets being used to support data entry forms. So, I ask again. Why is the customer table part of your data entry set for an invoice?

                Comment


                  #9
                  Re: Data entry inhibited on form based on a set

                  Tom, thanks for writing. I think you've made a very important point that I need to explore with you a bit.

                  I agree (I think) that the Customer table does not have to be defined as part of the Invoice set. It's only being used by the Lookup rule in the Invoice Header, in order to pull the customer information into the header. For this reason I will probably remove it..

                  However, I want to take exception to your statement:
                  a change to a customer field value (while entering an invoice transaction) would ripple through all transactions for that customer.
                  For one thing we're not entering directly into the Customer table on the invoice form. We're entering into a field value in the Header record which should only affect the current invoice. Secondly, if we actually were entering into the Customer table directly (because it's part of the set and assuming we defined the form field as CUSTOMER->FIELDNAME) I still do not see that it will ripple into all the previous invoices. I agree it would if we addressed each of the previous invoices, one at a time, and used the lookup field to download the current Customer record into that invoice.

                  I need you, Tom, to agree that in our scenario Alpha Five is not going to ripple any customer changes into all previous invoice headers for that customer. This seems especially true because of Referential Integrity. The Invoice set makes the Invoice Header parent to the Customer, one to one. Within the confines of this set, the Customer record cannot address the other invoices.

                  Tom, I'm nervously awaiting your response.

                  Thanks so much for adding to this discussion ... Sam

                  Comment


                    #10
                    Re: Data entry inhibited on form based on a set

                    After further investigation, the title of this thread "Data entry inhibited on form based on a set " is no longer accurate.

                    The problem also affects the Customer record directly, having nothing to do with the set. I'm going to enter a new thread for this called something like "Data edits prevented by Validation Field Rule".

                    Thanks to all you who so far contributed to this thread.

                    Best ... Sam Gerber

                    Comment


                      #11
                      Re: Data entry inhibited on form based on a set

                      Sam, you haven't shown us the database, so forgive me for making the wrong assumptions regarding your design.

                      Since your data entry form is based on a set, I assumed you had fields from the Customer table in the layout. Any change to a field in the customer table would appear in all other form displays that are based on the same set. i.e. if the Lastname field from the customer table was present in the set based form, and you changed the spelling of the lastname in a single invoice transaction, the same change would appear in all other forms and reports containing the lastname field from the customer table. this effect is the "ripple" I was referencing. Naturally, if you're retrieving the lastname from the customer table and storing it in the invoice header table, this kind of "ripple" will not occur in this situation.

                      -- tom

                      Comment


                        #12
                        Re: Data entry inhibited on form based on a set

                        Watta relief, Tom. I'm very sorry I wasn't clear that our Invoice Set only had fields entered into the Invoice Header record.

                        15 years ago Tom I was an ace with A5. The application was for my son who owns a store. I haven't touched A5 since then and my skill level ... shall we say ... isn't quite current. As a result I've got a learning curve with A11 that's quite a bit steeper than I had hoped. Fortunately, as was true 15 years ago, the Alpha Five community is very supportive of its brethren and the support I receive here is the best in the country.

                        In case you were curious, I've picked up A5 again because computers that run 16bit code are going the way of the dinosaur. If my son needed a new computer with WIN7 64bit (and that's all they issue these days) Version 1 won't run unless I implement the "XP Box". That's a good solution since it's all Microsoft and they supply XP with no activation required. Then I just read that WIN8 dropped "XP Mode". I thought "this is crap, I'm gonna try to bring A5 into the 21st century".

                        You Alphaholics may see quite a bit of me until I complete this project. Don't let me scare you away.

                        Regards ... Sam

                        Comment


                          #13
                          Re: Data entry inhibited on form based on a set

                          Understood.

                          You might want to get acquainted with the "Zip" utility built into the tools menu of the Alpha Five control panel. Can be used to quickly zip the entire database for backup, or for posting here. If your data files are large you may want to delete much of the data and work with a smaller "version" as you complete the development work in vers 11.

                          Also, you might want to get acquainted with the file upload (attachment) facility of this message board. To get there isn't immediately obvious. You must begin a reply, then choose the "Go Advanced" button, then scroll down to "manage attachments". Then you browse to the desired file, and upload it, then, finally, you submit your reply.

                          -- tom

                          Comment


                            #14
                            Re: Data entry inhibited on form based on a set

                            Thanks for the usability tips. I'm hoping I don't have to submit my databases to receive assistance. It's one thing to pare down their size, but there are fields that my son (who runs a store and uses the application) wouldn't want the world to see, like credit card information, addresses of real people, their phone numbers, etc. To accommodate him I may not have enough info left to test with.

                            We'll see ... Sam

                            Comment


                              #15
                              Re: Data entry inhibited on form based on a set

                              Yes, maintaining the privacy of real data is vital. But the task is not as daunting as it may seem. If you delete all but a handful of records you can easily "sanitize" the remaining records in most cases.

                              Comment

                              Working...
                              X