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

"unique" field rule problem.

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

    "unique" field rule problem.

    I�m in process of converting a A5v3 database to A5v5. The database is a set containing several tables. The �Header� and �To_buy� tables contain the most critical information. Header has a field based on the requisition number (Req_numb), which must be unique. The forms used have an embedded browse linked by the requisition number field. I didn�t notice this before when I was beta testing � but then I was the only one making entries and it was not apparent. Now I�m at the point where more than one individual is making entries and the risk of duplicate records has occurred several times.

    The Header has 3444 records and the To_buy has 6679 records. I don�t know if the problem is with the number of records in the database or if something else is going on.

    When I enter a duplicate Req_numb to the header and save -- the records in the To_buy table with that Req_numb are aligned with the current Req_numb.

    I�ve ran the re-evaluate field rules option, both in the system record number order and on an index based on Req_numb with a known duplicate requisition number. In the record number order the status indicated 3444 records processed and 3442 records marked. Running in the Req_numb order � the status indicated the same results. When looking at the table I don�t see that any of the records have been marked. (I�m assuming that the marked records will have the block in the extreme left marked as in the v3 deleted record.). I also ran a filter query (.t. and Marked()) which yielded no records.

    I also have A5v4. This morning I transferred the A5v3 files into a test directory and experienced the same problem.

    The criticality is that the database tracks fund expenditures. The database also tracks sources and delivery information.

    Please help.

    Thank you,


    R. Bowman

    #2
    RE:

    Try Operations, mark duplicate records then do a query and show only marked records.

    Hope this helps

    Russ

    Comment


      #3
      RE:

      Is the application networked? If so where is the data? May I presume that referential integrity enabled.

      Bill
      Bill Hanigsberg

      Comment


        #4
        RE:

        I have seen this type of problem and just wanted to link the message.

        Comment


          #5
          RE:

          I did my initial change from v3 to v5 on my computer and local server using v4.5. Upon receiving v5 I opened the server version with the v5.

          This morning I tested v4.5 "unique" field rule only on my computer.

          I have referential integrity "cascade changes/deletes" in my set. Is there another area that I need to address referential integrity?

          Thanks


          Bob

          Comment


            #6
            RE:

            For Russ

            I ran the operations as suggested. At least now I know what a marked record looks like for sure.

            Thanks

            Bob

            Comment


              #7
              RE:

              Robert,
              Which table has the duplicate records?
              Bill
              Bill Hanigsberg

              Comment


                #8
                RE:

                It's in the header.dbf. I've been using v3 to run this application since 1996 -- without a problem.

                Thanks

                Bob

                Comment


                  #9
                  RE:

                  Bob,

                  It may be time to post a sample.

                  Meanwhile, what happens if you try to create a new header using a header number which you know already exists? Does the field rule trigger an error message?

                  If no, something is wrong with the field rule for sure.

                  If yes, then what exactly are the network and multiuser conditions which permit the duplicate to be entered?

                  Bill
                  Bill Hanigsberg

                  Comment


                    #10
                    RE:

                    Bill, I have an installation where the field rule sometimes allows duplicate records, even though the rule is set for the value of the field to be unique. I can't create the problem on my own network, but it does happen on the clients'. The workstation being used is win98se on a Win 2000 server. The server is using NTFS. I suspect there are network problems, i.e. cards, cable, etc., but don't really know.

                    Comment


                      #11
                      RE:

                      I don't get the error message. My only alert is that it brings in the browse from previous entry (actually the browse records loose their association with the original header record).

                      I plan on transfering records and application to a temp directory and zapping the temp dbf's to see if it clears the problem.

                      I'll let you know.

                      Thanks

                      Bob

                      Comment


                        #12
                        RE:

                        John / Bill

                        I have not tried v5 on my computer -- only on a local server. However, I get the same problem using v4.5 for this application on my computer.

                        Bob

                        Comment


                          #13
                          RE:

                          The rule is not being enforced. Have you tried deleting and reentering it?

                          Bill
                          Bill Hanigsberg

                          Comment


                            #14
                            RE:

                            If that last post was to me, Yes, I have. Out of around 900 records entered each week, there are usually 3-6 that are duplicated. Of course, the user entering the data is working from individual, unique invoices and should not be entering them a second time anyway, but it certainly is making "idiot-proofing" this app a challenge. When I go remote on their system, and try entering dupicates, I cannot. Since I am always in the system after hours, it seems logical to me that it has something to do with network traffic during business hours. Thanks for the reply Bill. Any other takers?

                            Comment


                              #15
                              RE:

                              John / Bill

                              I think I've discovered the cause. Inorder to know which requistion numbers have been used I had the field as a lookup -- based on previous values. This worked with v3.

                              To get around it I've established a dbf with one field (req_numb). I wrote a script that runs an append operation. It works with the exception that I get a notice asking me if it's ok to append records. I tried to make the script run silently -- but the run silent option selected it will will not append the field.

                              Is there anyway that I can automatically append with out having the message appear on the screen?

                              Thanks for your help.

                              Bob

                              Comment

                              Working...
                              X