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

Prevent user from entering data in an updateable field. (WEB)

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

  • Prevent user from entering data in an updateable field. (WEB)

    Detail view is editble
    Update/edit are lookup from a product list.

    >In properties:
    >>Name/ description /cost / amount are updatable

    >on page:
    >>selecting a Name fills in Name /description /cost and amount.
    >>User plugs in a qty.

    So far so good....

    How can I prevent a user from changing cost and amount?

    When Name/ qty /cost / amount are updatable - it fills and updates fine
    Kill updatable on either field and, they don't update (no surprise)

    I have tried every field setting in the properties and cannot find the correct "switch".....assuming one exists!
    David Shaw
    Manager of Media Services and User Support
    Cleveland Museum of Art
    Cleveland, Ohio

  • #2
    Re: Prevent user from entering data in an updateable field. (WEB)

    There is nothing in Alpha to prevent this from happening. The fields have to be editable in order to allow the values to be brought over from the source table. However, you can resolve the issue. There is an HTML property named READONLY. I have to dig up how I implemented this, and test if it works in both IE and Firefox, but essentially you append the READONLY property to the Input tag associated with the fields you don't want edited.

    Google HTML READONLY for review, and I'll find my code later today.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

    Comment


    • #3
      Re: Prevent user from entering data in an updateable field. (WEB)

      I don't know if this helps or not, but in the detail view fields, I changed the field type of cost to 'label' and that made it so it couldn't be updated. Is it a dialog or grid?

      just tested on a dialog and I see your dilemma. please disregard my post.
      Last edited by eboughey1; 12-10-2008, 12:49 PM.
      Up and coming Alphaholic ;)

      Comment


      • #4
        Re: Prevent user from entering data in an updateable field. (WEB)

        It is a grid (with detail)

        if you do that though, a lookup will not populate that (those) fields.

        The scheme is to lookup an employee (or client on other pages) and have it fill in further details like department and phone etc.

        I appreciate that reply, and I noticed a new post with a similar question.

        For the time being, I changed the color scheme of the textbox so it "blends in", hoping that, during tests, no one will try to change the data.

        I have a new issue crop up, so I will be - yup - new post.

        Dave
        David Shaw
        Manager of Media Services and User Support
        Cleveland Museum of Art
        Cleveland, Ohio

        Comment


        • #5
          Re: Prevent user from entering data in an updateable field. (WEB)

          Did you try the READONLY method I suggested?
          Steve Wood
          Join the ALPHA DEVELOPERS NETWORK
          There is no Cloud. It's just someone else's computer.
          Web - Mobile - Hosting - Products - Frameworks - Developer Resources
          AlphaToGo | IADN (100% Alpha Anywhere Websites)

          Comment


          • #6
            Re: Prevent user from entering data in an updateable field. (WEB)

            Steve - I'm sorry no I have not has a free moment since you passsed along that suggestion. I will certainly post my results (or lack of) when i can do an honest experiment.

            Right now, I am trying to figure out how a project that was working (see "process" post) now fails to add the ID to the grid detail or DBF - The other entries do (verified by desktop view) but not the auto entered ID. [DO NOT REPLY HERE]



            Thanks, I'll keep you posted (via post!)
            David Shaw
            Manager of Media Services and User Support
            Cleveland Museum of Art
            Cleveland, Ohio

            Comment


            • #7
              Re: Prevent user from entering data in an updateable field. (WEB)

              The HTML READONLY method works great when using IE but does not work with Firefox or Google Chrome. I'm hoping there is a method that works with those browsers.

              Comment


              • #8
                Re: Prevent user from entering data in an updateable field. (WEB)

                Hi,

                I now have this requirement too.

                I have a textbox with a lookup. The lookup auto-populates textbox 1 (visible) and textbox2 (hidden). When a user types in the details in textbox1, textbox2 does not automatically get completed. So i think the best thing to do is disable manual input for textbox1. The other alternative is to get textbox2 to auto populate after manual input, if thats possible.

                Can anyone please explain how i would implement this method (sample code preferable) or any other workable method.

                Thanks,

                Denis

                Comment


                • #9
                  Re: Prevent user from entering data in an updateable field. (WEB)

                  OK this works.

                  you have a grid you are looking up.

                  you have a grid you are populating based in the lookup of the above grid.

                  you are adding records and or editing record in this grid on a successful lookup.

                  so

                  just make the grid as normal using text box

                  make a calculated fileld called "look" make it = "" in the Query(DBF) component type.

                  you will need a blank field in your data table you can call this look as well and it need only be 1 character.

                  'look' will be the field you use to base your lookup on, so place it in the added field column in the detail view. This should also be a text box 1 char in length.

                  do the normal lookup definition and lookup window information.

                  this is where you need to include 'look' (variable) and have it use the sourcefield we made in the table called look. (it really does nothing but a field used as the basis of the lookup must be updated).

                  Don't include the qty field in the above.

                  Now check everything works.


                  It will still let you change all fields, confirm this works.

                  Now the trick, just set all the selected fields except look and qty to label.

                  It will now work. And you will not be able to enter data over the data.

                  Peter

                  PS: it seems there is a dfference between editable and updatable.
                  Last edited by peteconway; 04-23-2009, 08:51 PM. Reason: update
                  Insanity: doing the same thing over and over again and expecting different results.
                  Albert Einstein, (attributed)
                  US (German-born) physicist (1879 - 1955)

                  Comment


                  • #10
                    Re: Prevent user from entering data in an updateable field. (WEB)

                    Peter,

                    Thats great thanks.

                    Now how would i achieve the same for a textbox field with a lookup in a dialog?

                    Thanks,

                    Denis

                    Comment

                    Working...
                    X