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

Allow Changes on one Column possible?

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

    Allow Changes on one Column possible?

    Hello,

    I was wondering if it was possible to allow changes, on only one column of a browse (from a button script)? I have a set that I want to view and alter in different ways. I want to open the set and have the parent table as part of the form but have the child tables as part embedded browses. But if I have already entered a record that may have many child table entries for each parent level record, I want to be able to push a button that will only allow changes for specific columns of a specified embedded browse (child table).
    For example;
    I have client John Smith who has submitted various samples for testing at a the lab. In this case John Smith's personal data will be stored in an address book. The Adress Book has a One to many relationship with the Submission Book which stores data the reference number for the submissions, the date, progress, what types of tests have been ordered etc... and is related to the Client Book by a client number.

    These 2 books will form the data for the overall form which summarises the information for this particular submission, (in actually fact, I have the submission book as the parent and a one to one relationship with the Address Book). The various test types and information associated with them are what make up the information for the child tables and the embedded browses. When a submission is submitted, John Smith's client number is associated with the submission book, the submissin book uses the submission number to associate this record with data in the test tables. Information that may be stored in the test tables are, Sample name, weight, various memo comments, test complete (logical), along with the actual numerical results i.e. concentration per gram of substance X. All records are entered at the time of submission except the test tables wont contain any results until the test is complete.

    When the lab tech's enter their results I want this form to be Modal and require a button to be pushed to enter the results in each embedded browse. But I don't want them to be able to alter the original data (well not in this form!), so I only want to allow changes on particular columns and not be able to enter or delete records.

    What I can't determine is how to specifically address and enable changes for those columns of the embedded browses only. I expect to have one button per browse for each of these forms.

    The information contained is quite important and so the ability to alter an entire record needs to be tightly controlled.

    Does anyone know how to enable this (or have an alternative solution)?

    #2
    RE: Allow Changes on one Column possible?

    every column in a browse has a property - readonly that can be set to .t or .f

    if the browse is initially read/write for all columns, then your button would have to make all but one readonly=.t.

    enclosed is an image - to be reached from the explorer from within alpha
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    [email protected]

    ____________________
    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

    Comment


      #3
      RE: Allow Changes on one Column possible?

      My advice would be to keep the entire browse read-only but to have an OnRowDblClick event that the uses the .active() method identify the column and activate an xdialog where the data is entered and from which it is saved.

      Finian
      Finian

      Comment


        #4
        RE: Allow Changes on one Column possible?

        I tried Martin's solution first of all, where I had a button that could be pushed to enter the results for that particular browse using the code;

        topparent:Bulk_browse:N__epg_.Field.Readonly = .f.
        topparent:Bulk_browse:S__epg_.Field.Readonly = .f.
        topparent:Bulk_browse:Comments.Field.Readonly = .f.

        where the Bulk_browse is the title of the browse, followed by fields etc.., I couple this with a few object hides and an object activate to get the focus on the column S__epg_ (the coloumn title is actually S (epg) and I suspect the use of '(' is bad practice, but I don't seem to be able to call the object one thing and display another), the actually field name is simply S, the same goes for N.

        Setting "readonly" to .f. allowed me access to enter the details for each record, which worked fine. So I decided I'd have one button to enter and one to save so I could turn the readonly back on. This proved to be a problem in itself. I turned the readonly back on with;

        topparent:Bulk_browse:N__epg_.Field.Readonly = .t.
        topparent:Bulk_browse:S__epg_.Field.Readonly = .t.
        topparent:Bulk_browse:Comments.Field.Readonly = .t.

        Unfortunately even if had various "save record" and "commit" type scripts preceding this (for both the form and the browse object), turning the readonly properties on some how managed to make the data revert to original data before it was altered. I was under the opinion that once the data was commited that this would not be possible? Sometimes it would revert only one or two of the fields and some times the whole lot. It seemed very buggy any way.

        I haven't tried Finian's method yet, but it looks like it may be the only stable method of doing so. I should be able to just open the Xdialog box under the same query for this shouldn't I? Is there an easy way to make this Xdialog box simply fetch the next record of that particular child table in the set, whilst still restricted by the original filter of the form so it is still under the same submission number (ie. a next button).
        Should a client have many samples for the one submission and test type, opening and closing an Xdialog for each sample could become quite tiresome. I haven't had much luck in the past when writing scripts to navigate and alter records in the child table of a set. i.e. would I need two pointers, one for the "set" and one for the "table" to do the changes? Or will this be taken care of in the Xdialog generation? I'll give it a try tonight anyway.

        Comment

        Working...
        X