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

Embedded Browses on Tabbed Form

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

    Embedded Browses on Tabbed Form

    I have a form with a Tabbed object on a Order Input Form and I want to show a different browse on each tab, no problem. Each Browse has a slightly different layout according to the product to be entered, again no problem. But, and there is always a but, the table lookup list has got to have a different filter for each product. That is first Tab = Bread, second tab = Meat etc. The lookup is based on a table containing all the products in Product_ID index/order. I could split this table by product and/or have a different Items table for each type of product, but the order report must contain all the products. I am sure I am not the first, so can anyone help please?
    Regards
    Ron


    The reward for work well done is more work!

    #2
    Re: Embedded Browses on Tabbed Form

    You don't need to split the table.
    1-Create a global variable to take the value you want (Bread, Meat..etc.)
    2-A script will assign this value to that variable based on which tab is clicked
    3-Use this variable in the lookup filter.

    Comment


      #3
      Re: Embedded Browses on Tabbed Form

      Here is a mock code:
      Code:
      select
      case tab1.tab_get()=1
      global_variable_name="Bread"
      ...
      end select
      tab1 is the name of the tab object
      Put the code on the onTabChange event

      Comment


        #4
        Re: Embedded Browses on Tabbed Form

        Sounds good, can you give a small example for the slow of mind. Arrh, you have already done that. What does the lookup filter look like?
        Regards
        Ron


        The reward for work well done is more work!

        Comment


          #5
          Re: Embedded Browses on Tabbed Form

          My Lookup is in the Field Rules, a table lookup with a filter. I need a different filter for each product under each tab.
          Regards
          Ron


          The reward for work well done is more work!

          Comment


            #6
            Re: Embedded Browses on Tabbed Form

            No. The filter would say: field1=var->your_global_variable
            Field1 would be the field holding the category, whether it's bread, meat..etc.

            Comment


              #7
              Re: Embedded Browses on Tabbed Form

              Ron, please excuse my butting in but I have been thinking about the Tabbed Form over dinner.
              On course you can do it tis way but should you?
              I'm a huge fan of Tabs. Some of the Forms I have running have up to 10 Tabs, and they work as GG has suggested.
              My experience as a Butcher, (true - Shopman/Cutter for 5 years), is that I want to know what the product cost me and what the margin is etc.
              I have developed a few apps by now, and gotten so excited with my design prowess sometimes that the client switched off.
              Tabs are greate when used with a long and complex record for display purposes.
              When you get into slicing and dicing (no pun intended) a single Table it might be easier for the user to see "CHEESE FORM" or "MEAT FORM".
              Anyway, it's your trainset.
              Have you Prototyped in front of the customer?
              Have a good day, unless you had other plans.
              See our Hybrid Option here;
              https://hybridapps.example-software.com/


              Apologies to anyone I haven't managed to upset yet.
              You are held in a queue and I will get to you soon.

              Comment


                #8
                Re: Embedded Browses on Tabbed Form

                The Lookup browse is within the Field Rules of the Table. If I want to show you the Field Rules of the table what file do I upload?
                Regards
                Ron


                The reward for work well done is more work!

                Comment


                  #9
                  Re: Embedded Browses on Tabbed Form

                  Zip the whole database and post it here using the Go Advanced file upload.
                  Strip out all the blood and offal though.
                  See our Hybrid Option here;
                  https://hybridapps.example-software.com/


                  Apologies to anyone I haven't managed to upset yet.
                  You are held in a queue and I will get to you soon.

                  Comment


                    #10
                    Re: Embedded Browses on Tabbed Form

                    Thanks Ted
                    I designed the original input/order forms the way he does it at the moment. It took me hours and I am so glad I do not have to earn a living doing this. Ten years ago I earned a marvellous living doing just this, but that was for large companies where we agreed the specification before hand. This is on a one to one basis and the project is 'evolving'. I have now completely redesigned the order so that there is a browse with a drop down pick list based on a Product Table. Obviously the pick list for Bread has a different range of Product ID's from Meat. I have put each product on a tab but the Items Order table contains the lookup on the Product ID. The drop list needs to show a different range of products per category i.e. Bread, Meat, Dry Goods etc. I do not understand what Mr Gabriel means. I have no doubt he is right but ..... I am now doing what you advocate; building a table for each product, I will then amalgamate them into one temporary table so that I can produce the Customer Orders report. I think this is the long way round.Regards
                    Ron
                    Regards
                    Ron


                    The reward for work well done is more work!

                    Comment


                      #11
                      Re: Embedded Browses on Tabbed Form

                      That's a kind offer, but I must learn.
                      Regards
                      Ron


                      The reward for work well done is more work!

                      Comment


                        #12
                        Re: Embedded Browses on Tabbed Form

                        Originally posted by Ron Cooper View Post
                        The Lookup browse is within the Field Rules of the Table. If I want to show you the Field Rules of the table what file do I upload?
                        It wasn't an offer Ron, it was an answer to your question.

                        I didn't advocate a Table specific to a Product either Ron. I suggested a Form which displays specific Products.
                        Please see an alternative attached, which allows selection of Product throught a Button, and a ClickThrough to another form which could have the ordering information.

                        One thing is certain, whatever you design, the User will ask for changes.
                        In my experience, giving them something to work with in the sure knowledge that you will need to do additional development works quickest.
                        Just make sure that there is a Housekeeping routine which backs up the data and keeping the different versions so you can get it back.
                        Attached Files
                        See our Hybrid Option here;
                        https://hybridapps.example-software.com/


                        Apologies to anyone I haven't managed to upset yet.
                        You are held in a queue and I will get to you soon.

                        Comment


                          #13
                          Re: Embedded Browses on Tabbed Form

                          How do I make the lookup filter under the field rules of the Order_Items table, field Product_ID conditional on the active tab on the Orders Form. I am currently bodging it by creating a seperate table for each order item category i.e Meat, Bread, Deli etc. I am sure there must be a neater way? Attached is the DB
                          Regards
                          Ron


                          The reward for work well done is more work!

                          Comment


                            #14
                            Re: Embedded Browses on Tabbed Form

                            Not that I think it is a good idea to base a field rule filter on something external like which tab is active. I also don't see the relationship between the active tab and which items should be filtered for.......

                            You can set a global variable for the ontabchange event of the tabbed object to derive the tab text (Loaves, Meat, etc.)

                            Code:
                            dim global act_tab as C
                            qx = tabbed1.Tab_Get()
                            act_tab = Tabbed1.Tabs.Sheet[qx].Text
                            This variable would then be available to use in the filter of the lookup.
                            There can be only one.

                            Comment


                              #15
                              Re: Embedded Browses on Tabbed Form

                              I'm away 4 a week Ron, so can't look at it.
                              Suggest you consider a separate Lookup Table with just the products in it.
                              See our Hybrid Option here;
                              https://hybridapps.example-software.com/


                              Apologies to anyone I haven't managed to upset yet.
                              You are held in a queue and I will get to you soon.

                              Comment

                              Working...
                              X