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

Need to figure out the best way to create the tables to handle this.

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

    Need to figure out the best way to create the tables to handle this.

    First let me thank all you Alphaholics in advance.

    I am creating an application for garment decorators to use when giving quotes and creating invoices. Pricing in the garment decorating industry is very complex as each job may have a multitude of variables that will be different from previous jobs. Besides the garment price based on quantity, sizes, style and color we also have to figure the decorating price and that is usually based on quantity, print locations and amount of print colors. The method normally used is what we call a pricing matrix.

    My first attempt at this has resulted in minor success. I am trying not to create a table with 400+ fields in it so my idea was to create a primary table that contained 3 fields. One of those fields would link that table to the child table using a one to many as my thinking is the primary table can have many records from the child table. Then the child table would contain the information for each price break point and print color counts. It works, sort of and before I spend countless hours trying to figure out the best way to do �auto-increases� and allow them to create new pricing matrix�s with empty field data so they can create custom pricing, I need to figure out if I am even going about this correctly.

    These are examples of some pricing matrix�s in other programs (they where created using FIlemaker Pro).





    Any suggestions oh wise ones? I know I will have a lot more questions later so thanks again to all here.

    #2
    Re: Need to figure out the best way to create the tables to handle this.

    Hi Preston,

    The matrix is a price chart only. The real work is done when creating the Order, the prices are arrived at by the user first selecting from a lookup, the garment and then entering the quantity, the final value changes by the choice of options.
    Regards
    Keith Hubert
    Alpha Guild Member
    London.
    KHDB Management Systems
    Skype = keith.hubert


    For your day-to-day Needs, you Need an Alpha Database!

    Comment


      #3
      Re: Need to figure out the best way to create the tables to handle this.

      Originally posted by Keith Hubert View Post
      Hi Preston,

      The matrix is a price chart only. The real work is done when creating the Order, the prices are arrived at by the user first selecting from a lookup, the garment and then entering the quantity, the final value changes by the choice of options.
      Thanks for the reply Keith.

      Correct to some extent. When creating a quote or invoice the user selects a garment style number with the correct color and size group. This auto populates the line item of the quote form with the base information. The the user keys in the quantity amount for each garment size on that line item. The application then adds them up and applies a default markup to them. The user then keys in the amount of colors to be printed and the locations of the print/s. I have most of it working to this point but it is also at this point that the application needs to take the garment total count and print color count, look at the info in the pricing chart that is correct for the customer type and calculate the final price based on all of that. I understand that I will still need to figure out how to make the program do all of that correctly on its own based on the information from the order entry form.

      Garment decorators are a strange brew and want their interaction with a program to be as simple as possible without the need to select a 100 things each time just to get a price. They want to setup the pricing matrix once for each customer type and then have the program come up with the correct pricing based on quantity, sizes, print colors and print locations. I may make a video of some existing programs in action to clarify the flow I will be trying to achieve.

      The thing I am trying to figure out right now is would it be better to put all that price break and print color pricing in one table making the table have around 400 fields or would it be better to continue on trying to make a primary table linked to 30 records in a child table? The one big table seems to be the easiest to pull data from and to create new pricing matrix's with but I am afraid a table that large will slow the application down.

      I am a complete newb when it comes to Alpha and databases so I am trying to wrap my head around all of this. I have bought all the books and use the demo videos as well. I used to write applications with turbo pascal 20 years ago but database programming and design is a bit different.

      Comment


        #4
        Re: Need to figure out the best way to create the tables to handle this.

        Hi Preston,

        Each element of a garment would have to be entered ie Garment, quantity, sizes, print colors and print locations. From your matrix, it seems there would be a choice of 12 colours. All of this can can be done but will require a certain amount of xbasic code to automate the end result. I would be pleased to help you as much as possible.
        Regards
        Keith Hubert
        Alpha Guild Member
        London.
        KHDB Management Systems
        Skype = keith.hubert


        For your day-to-day Needs, you Need an Alpha Database!

        Comment


          #5
          Re: Need to figure out the best way to create the tables to handle this.

          Originally posted by Keith Hubert View Post
          Hi Preston,

          Each element of a garment would have to be entered ie Garment, quantity, sizes, print colors and print locations. From your matrix, it seems there would be a choice of 12 colours. All of this can can be done but will require a certain amount of xbasic code to automate the end result. I would be pleased to help you as much as possible.
          Thank you very much Keith.

          I went ahead and just created one table with a ton of fields. The one I am creating has 14 different price break points for the first and second location for a total of 28 break points and then there is a choice of up to 14 colors. I am now working on figuring out how to code some buttons that will allow the user to increase the price per color across each break point by an amount specified in another field. 28 break points so there will be 28 buttons for this. It will need to look and the value in the first color field for that break point, get the increase by amount from another field or variable and then apply that to the remaining 13 colors for that break point. So if the increase amount was $0.50 and the first color in that break point was set at $3.00 then clicking the auto-increase button would need to set color 2 at $3.50, color 3 at $4.00, color 4 at $4.50 and so on.

          Comment

          Working...
          X