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

edit variables

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

    edit variables

    Hi Phorum,

    In a form for a 1 to many set, I have a button to set defaults for 4 variables in an embedded browse from the child table. How can I edit those values for the case where the user makes a typo. I posted this earlier but did not mention that the fields were variables. There are 2 other fields in there that are not variables and they can be edited normally.

    ed

    #2
    RE: edit variables

    You can put a variable field on a form, just like you put a normal field. Then, you can edit it on the form.

    Comment


      #3
      RE: edit variables

      Keep in mind though, that putting variables on forms as "fields" can also cause forms to crash, for some inexplicable reason - especially if their values are "blank" when the form loads, and especially if date fields. I had one problem form that had several vaiables on it that I used to write info to a file when they exited the form. The fix was to write the record first and then use the form to actually "edit" the record.

      It is also in some inexplicable way related to certain HP and NEC printer drivers.
      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


        #4
        RE: edit variables

        >>It is also in some inexplicable way related to certain HP and NEC printer drivers.
        Peter
        AlphaBase Solutions, LLC

        [email protected]
        https://www.alphabasesolutions.com


        Comment


          #5
          RE: edit variables

          Martin,

          "The fix was to write the record first and then use the form to actually "edit" the record."

          I would be grateful if you could describe in detail what you did here as it may shed light on one of my own "inexplicable errors."

          Thanks very much,
          Bill
          Bill Hanigsberg

          Comment


            #6
            RE: edit variables

            Martin,

            I would like to hear more about your approach. I have a number of crashes, and they all happen when changing forms; specifically going to a form I use to set variables prior to printing.

            I have started setting the variables, with "best guesses" as place holders to see if it helps, based on your suggestion. I'm optimistic because so far, no crashes - but it is early.

            thanks

            Tom

            Comment


              #7
              RE: edit variables

              Hi Tom,

              I didn't do anything fancy (mostly because I don't know how), I set 4 variables in a form with ASK variables. So far so good, who knows what may happen next though.

              Ed

              Comment


                #8
                RE: edit variables

                Well, on my client's main form ("master form") i had a button "Enter new Payments" - this would load a form that had an embedded browse of "charges with an amount due" with the filter for the form set to [customer_number=var->cnum].
                Cnum is an application wide global variable for what customer I may be working with.

                the client would (tab order 1) enter a date(variable used as a field) then a (tab order 2) payment amount (variable used as a field, payment method(same) and payment source(same).

                Then he would either let the form automatically apply the payment to amounts due for specific items, or manually enter the amounts paid in each appropriate browse column.

                When saved, the code would create a new "payment history" record and "payments distributions" records for specific items.

                This is a complicated, highly screened, and automated form that I spent about 8 weeks developing, with a lot of code on the form and in field rules. I am very pleased with it.

                But the problem I ran into was that it would crash on certain computers - specifically ones with HP G55 & G85 printers, but not on HP R60 and other printers. Jim Chapman also reported similar problems with certain NEC printers.

                I tried forever to get it to work - but only this one form would crash - and so badly, you often had to reboot to recover.

                The client told me, "Hell, Martin, don't waste time solving HP's mistakes - we'll buy new printers. How many hours of your time would that cost, anyway!!" But I felt that if I didn't find a fix, it would bite me somewhere else, so I secretly persevered. I had too much time in that form to discard it.

                I noticed that if I edited the payment, more or less the same form, it worked great.

                So - on the "master form" when they "enter a new payment" I write a new "payments history" record, with logical defaults for what were the "form variables", and when they are entering the new payment they are actually editing a sort of blank payment. And when they save it they are changing values and writing new records for distributions.

                God only knows why this works - but it does.

                I learned a lot about working with browses when entering or editing data. To get the cursor to move where you want to move to, I have in field rules code done a lot with code like this:


                for a particular field, like carrierapply(when making payments for insurancecarriers)
                onwrotefield
                if is_object("payments") ' the form we are talking about
                sys_send_keys("{down}")
                end if

                this causes it to go down one row in the same column(carrierdue) since you would never split a payment between client and carrier. It makes for a professional and speedy entry form, in my opinion - otherwise the cursor moves to the first field in the next row and you have to either enter enter enter enter or tab tab tab tab to get over to where you need to be.

                hope this helps somebody!




                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


                  #9
                  RE: edit variables

                  Martin:

                  Thanks very much for the clearly written description. If I take you correctly, the moral is that you had difficulty (although not always) when the user input was entered into a form control bound to a variable but when you wrote around it so the user entered data into a control based on an actual field the problems went away.

                  If that's what you're saying, I've had the same problem. And this summer is when I am going to bite the bullet and slay it. Thanks for sharing your experience.

                  Bill
                  Bill Hanigsberg

                  Comment


                    #10
                    RE: edit variables

                    Thank You - That was helpful.

                    Tom

                    Comment


                      #11
                      RE: edit variables

                      Let me add, Martin, that like yours, my form is enmeshed in a web of other events, rules and processes so it seems likely that it is some interaction of all these elements that is causing us difficulty.

                      Bill
                      Bill Hanigsberg

                      Comment


                        #12
                        RE: edit variables

                        Hi Guys,

                        I got around the problem by adding a button to the form where the typo was that takes me back to the form where i set the ask variable
                        ed

                        Comment

                        Working...
                        X