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

Alpha Five lets you work with your data in ways that are familiar to you.

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

    Alpha Five lets you work with your data in ways that are familiar to you.

    In the Alpha Five Help File >Getting Started with Alpha Five >Introduction > Data Views and Entering Data�it reads.

    �Alpha Five lets you work with your data in ways that are familiar to you. You can easily design custom forms that look like the paper forms with which you currently work, and use them to enter and view your data.�

    I haven�t seen an example of a point and enter list to populate an items database. Can you imagine looking up with a lookup table, thirty or so products for each of ten customers and entering the quantity to populate the items ordered database each day. That works for Alpha Sports or Alpha Movies which is a sales oriented company.

    In the commercial bakery business the customer (a store) is given a pre printed form to enter quantities. The baker is provided with a pre-printed form to order supplies. In both cases a point and enter list would expedite data entry. How could this be accomplished? Where is the example? I can think of many uses for this type of entry.

    Dick

    #2
    Bakery example?

    Dick,

    Something like this (very crude).

    Mike W
    Mike W
    __________________________
    "I rebel in at least small things to express to the world that I have not completely surrendered"

    Comment


      #3
      No Mike. Like Alpha Sports invoice. Not a lookup for products sold but a product browse table showing all the products for sale. The user would enter the qty in the browse table.

      Dick

      Comment


        #4
        Dick,

        Without knowing your exact table/set structure:

        set: cust_orders
        table: customer, parent, cus_id linking field
        table: orders, child, one-to-many

        1) Top of the form, individual field objects displaying the customer information
        2) Embedded browse on orders table displaying current customer orders
        3) Button on form: Create new order

        In the button OnPush:

        1) Capture the cus_id value from the form
        2) Loop through products table capturing the data you need and create a new record in the orders table

        1) and 2) shown below:

        Code:
        dim shared v_curr_cus_id as C
        ' assign current field values to local variables
        v_curr_cus_id = UT(parentform:cus_id.value)    '<=========== pull cus_id from the form assuming cus_id is your linking field in your set
        
        
        'Pull all products to create new records in the orders table 
        
        dim t_source as P
        dim t_dest as P
        
        t_source = table.open("products")    
        query.description = "Discounts" 
        query.filter = ""
        query.options = "" 
        qry = t_source.query_create() 
        count = qry.records_get()
        
        t_source.fetch_first()
        while .NOT. t_source.fetch_eof()
            t_dest = table.get("orders")    
            t_dest.enter_begin(.t.)
            t_dest.Cus_id = v_curr_cus_id
            t_dest.Prod_id= t_source.Prod_id
            t_dest.Prod_desc = t_source.Prod_desc
            t_dest.enter_end(.t.)
            
            xbasic_wait_for_idle()
            
           t_source.fetch_next()   'fetch the next products record
        end while
        You would then need to have a field in your orders table to determine that this is a new order. Perhaps a logical field. Mark the logical field in step 2) when creating the new record in the orders table: t_dest.new_order = .t.

        Then to continue in the OnPush, set a filter to display only records in the orders table browse where the new_order = .t.

        The user can now enter the qty they want. Program your Save Changes button to delete any records where qty = "" and mark the new_order field as .f.

        Hope this at least gives you an idea of one way to accomplish your task :)

        Good luck
        Cheryl
        #1 Designs By Pagecrazy
        http://pagecrazy.com/

        Comment


          #5
          Browse as Entry Form

          Dick,

          Yes I think I understand conceptually what you are saying. However, a browse appears as a list but the rows all being different records, so one record would be one row and not be listed in vertical fashion. See if the example in this thread fulfills your concept. I am interested in building an example of Cheryl's process and see what that yields.

          http://msgboard.alphasoftware.com/al...ad.php?t=61996

          Mike W
          Mike W
          __________________________
          "I rebel in at least small things to express to the world that I have not completely surrendered"

          Comment


            #6
            Thank you very much for your reply. I will study this and learn. Hope it works. Thanks again.

            Dick

            Comment


              #7
              Mike,

              I used the example I gave in a one to one relationship for a client that wanted to populate a discount amount for various categories per client. I first prompted the user for a discount amount, then opened the category table, looped through it and assigned the discount amount supplied by the user to each category, assigned the customer id to it and then returned the results in an embedded browse. They could then edit the category discounts if needed.

              As I think about this more, this could be set as a one to one relationship based on the order id.

              In my button I would grab the customer id, loop through the products table and when creating the new record in the orders table and display only the records that match that order number in the browse. You can then edit those records for the qty amount and go through and delete the products that you do not need.

              Hope that makes sense.
              Cheryl
              #1 Designs By Pagecrazy
              http://pagecrazy.com/

              Comment


                #8
                Mozart

                Cheryl,

                Your description definitely helps me begin to form the picture of what you composed. Mozart could read the music on a page and from it hear the music. At my tenure with Xbasic, I read the scripts and it's more like a small squelch. I am very interested in what you wrote and am going to model it as soon as I get moment to visualize it . Hey, thanks for you insights!

                Mike W
                Mike W
                __________________________
                "I rebel in at least small things to express to the world that I have not completely surrendered"

                Comment


                  #9
                  Try this example

                  Hi Dick,

                  Hopefully the attached example will work. I think this is what you described. I created this for a property manager who sometimes needed a predefined check list. Other times he didn't need a check list. So when he needed the list he pressed the button and one appeared.

                  Alpha Five may not fully work the way you think it should, but it does do a lot of neat stuff. The catch is learning all of them. Used to be only 40 or so Genie's. Now there must be well over 400. So it becomes a little bit overwhelming.

                  Any way hope this helps.
                  Last edited by Dan Blank; 11-22-2006, 04:52 PM.
                  Dan

                  Dan Blank builds Databases
                  Skype: danblank

                  Comment


                    #10
                    Might need a Delete Operation

                    Dan,

                    Interesting approach. If this is an 'on-the-fly' list generator, you might need an upfront table delete operation, or you will be generating an ever growing table. Or a filter in the report for the last appended or for the choice of the list (invoice#?) desired.

                    Mike W
                    Mike W
                    __________________________
                    "I rebel in at least small things to express to the world that I have not completely surrendered"

                    Comment


                      #11
                      Hi Mike,

                      Maybe. Like a say I created it for a property manager. He has been using it for about 2 years and size is not a problem (yet). Only has a little over 3,500 records in the table.

                      Basically it all just depends on your needs and frequency. Then you work it all into the equation.

                      Have Fun,
                      Dan

                      Dan Blank builds Databases
                      Skype: danblank

                      Comment


                        #12
                        Thanks eveyone. Have more studying to do know.

                        Comment


                          #13
                          How can I copy Cheryl's reply to my computer and still be able to read it and how did she post the code in blue anyway?

                          Thanks

                          Dick

                          Comment


                            #14
                            Cut and paste

                            Dick,

                            You can simply highlight, cut and paste. I would paste it into an action script In-Line Basic Action so if you need other actions to add to it, then it will be in Action scripting and not XBasic scripting. You can always convert to Xbasic but you can't convert back to action scripting.

                            The Code highlight is in the menu panel of the Message reply. It is the # on the right side of the second line. Carry on...

                            Mike W
                            Mike W
                            __________________________
                            "I rebel in at least small things to express to the world that I have not completely surrendered"

                            Comment

                            Working...
                            X