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

Write conflicts

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

    Write conflicts

    I have a simple application for capturing online entries to an awards scheme.

    It is based around gridlinker with a child grid that has an updateable detail part.

    But whenever changes are made to a record I get an error message saying that another user is updating the fields with changes.

    I have no idea what could be causing this, can anyone make a suggestion? It has to go live tomorrow and I'm starting to panic!!!

    A sample of the application can be view on the following url:

    http://nhmedia.alphafiveonline.com/HomeNH48s2Media.a5w

    The structure is as follows
    Gridlinker
    Parent - Table of companies
    Child - View comprising Table of Categories & Answers + Table of Questions

    The gridlinker is filtered using the following expression
    if eval_valid("pgrid.session.username") then
    dbf.filter = "Company= " + quote(pgrid.session.username)
    end if

    Would this in anyway inhibit the updating process?

    Any help would be really appreciated!

    #2
    I went to your site, but you must have changed your design because I don't find any grid linker or detail pages. Still have a problem?
    Steve Wood
    See my profile on IADN

    Comment


      #3
      hi David

      i was having the exact same problem
      last week
      try this
      pack the table and then rebuild the indexes
      it worked for me

      hth
      regards
      martin
      regards

      martin
      www.jollygreenthumb.com

      Comment


        #4
        Martin, I tried your suggestion. No change I'm afraid. Any field that is updated returns an error. (See attached jpeg)

        Steve, the design is the same it just may not be apparent.
        The company name at the head of the page is a single field grid that forms the parent (it is also the field on which the grid linker is filters so companies can't see each others' entries),

        The list of categories below is the child grid, again just showing a few fields (category, deadline)

        When the hyperlink is pressed, it opens a detail view of the child grid with question and answer fields visible.

        Comment


          #5
          The error you are seeing in not actually an error, but a notification created by "Optimistic Record Locking". It indicates that the data on the server for that particular record changed after the page was created and sent to the client. Optimistic Record Locking saves a copy of the data on a page as it existed when the page was requested from the server. When you submit the page, that data is checked against the data now on the server. If they don't match, you get the message you see.

          Comment


            #6
            That's all great, but how do I get rid of it because seeing those error messages leaves me feeling anything but optimistic! I really don't understand why the message is coming up. The dummy copy of the data in my page should not show any variances to that stored in the database, because no one else is able to access the underlying database stored at alphaonline. So why is this happening please?
            Last edited by cellboy; 04-05-2006, 03:18 PM.

            Comment


              #7
              Without knowing how you have configured the layouts and the underlying data, there is really no way to determine why you are getting the conflict. However, for some reason the data on the server does not match the data that was retrieved when the page was requested.

              Can you provide more detail on the actual configuration of the components in the construction and how the parent and child are linked? You mention that the child has a detail section. Normally, a child in a grid linker will only be a grid containing a single record, typically a columnar grid.

              Comment


                #8
                The first item � the Company title - is based on a tabular grid component called CompanyParent, displaying just one field, company name. CompanyParent is based on an underlying table called MastCompany, which contains unique company names. CompanyParent is set to show 1 row only and has no new record rows, there is no navigation to prevent users viewing other companies� details.

                The items in the list at the foot of the page are contained in a tabular grid component, CoCategories. CompanyParent is linked to this component by the field Company in a one to many relationship. The CoCategories component is based on a view of two tables: Co_Cats and Questions. (The relationship between these two tables is based on a field called Category, and is an inverted one to many link (ie value is unique in Questions).)

                The detail view of CoCategories is updatedable and is linked on the category field. The grid table is hidden when the detail component is viewed, and vice versa.

                I have chosen this arrangement because I thought it would guarantee security and prevent companies peeking at their rivals submissions. I don�t know much about using variables, but it was set up with a login page creating a session variable around the user name which then filtered the parent grid.

                The bottom line is that only fields in the detail view are changed. No one else is accessing the database, and there is no possibility of the underlying record changing between the time it is called by the server and values are returned when the form is submitted again.

                Comment


                  #9
                  I realise there is a lot to take in in that last post, but I would appreciate a steer. Seems to me this is another Alpha bug...

                  Comment


                    #10
                    I think its hard for 'us' to get our heads around it, even though you have explained it well. Its the sort of thing that if we actually had it in front of us, it might make sense. I keep thinking, I just would not do it this way. But I don't want to steer you away from your design.

                    I started down the path of a tabbed grid for a project, but opted for a design where each page was independant. You don't have to "link" the pages to secure them, or even to tie them together. You need to have a consistent filter method to isolate data.

                    If I were designing your application, I'd have an initial A5W page filtered by the customer ID. It would have a NAV component with links to the other pages. Those pages would also be filtered on the customer ID. That design may be off because I don't fully understand your app, but it seems to fit.
                    Steve Wood
                    See my profile on IADN

                    Comment


                      #11
                      I like your clean design approach.
                      The first page shows 3 award categories with deadline dates of 04/19/2006.
                      I clicked through each link to the submit page. There the date is shown in a different format: 19/04/2006.
                      I think the single field grid was a great idea.

                      Comment


                        #12
                        Thanks Rich, having more control over the design was one of the reasons I did it this way. The other was not knowing a lot about variables and filtering, I thought this would be an easy and bullet proof way of stopping companies peeking at each others' stuff. I'm told it's not a very good approach however, so I wouldn't copy it!

                        Comment


                          #13
                          Just to clarify, since I made the comment below, I don't know that it is or is not a good design. I have not looked at it in the Alpha enviroment. It's up to whoever is developing the application to work that out. It does seem convoluted, but I can't really tell. I mentioned that I had started down a path similar construction and bailed out in favor of what I described below. But I can't recall exactly why. Jerry and I spoke about it off line and think it is somehow "saving the record twice" during the same Submit, and that this might be causing the write error. But that is a cursory evalution at a distance, without benefit of the application in hand, and with hardly any time to spare!
                          Steve Wood
                          See my profile on IADN

                          Comment

                          Working...
                          X