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

Set Design

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

    Set Design

    I have been banging my head against the desk on this one and would love some input.

    Parent Set Trip Information with field Trip_Number

    Child Set one to many. Expenses for that trip with
    linking Trip_number and currency and receipt amount

    I used to have the currency link to a one to one link with a currency data base to store the exchange rates. This way you would only have to change the excange rate in one place and have it change all of the detail expense items in the trip. However when entering a new trip (parent record) and changing the exchange rates. This, of course changed the exchange rates in the previous trip (do not want to do that).

    I have tried numerous other things and wondered if anybody had any ideas on an easy way to do this.

    My goal is to be able to change one exchange rate in any of the detail records and have them change instantly throughout the trip but not carry over to any other trip(parent).

    Thank You

    #2
    RE: Set Design

    John

    This is a situation where you may want to keep the exchange rate in the child table or the parent table, since the rate is subject to change and you want to record the exchange rate at the point in time that the transactions were made.
    Al Buchholz
    Bookwood Systems, LTD
    Weekly QReportBuilder Webinars Thursday 1 pm CST

    Occam's Razor - KISS
    Normalize till it hurts - De-normalize till it works.
    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
    When we triage a problem it is much easier to read sample systems than to read a mind.
    "Make it as simple as possible, but not simpler."
    Albert Einstein

    http://www.iadn.com/images/media/iadn_member.png

    Comment


      #3
      RE: Set Design

      I have thought of this, however in one expense report their can be say 40 line items in one currency which means the user would have to input the rate 40 times in the embedded browse. Also there can be 6 differnt currencies in the report as well none are ever the same?

      I tried a child based on a combo of the tripnumber and type of currency, which seems to work except the data input is strange. If there is already a child record that indicates the exchange rate then a new record is entered using that type of currency the exchange rate stays blank unill the record is saved and it picks up the child association. I have tried various refresh commands but to no avail. Any other notions?

      Comment


        #4
        RE: Set Design

        John,

        What about having your exchange rate field in the parent table with a 'OnChange' event that updates the child records?

        That would allow you to change the rate "on the fly" and update the expenses for that trip.

        Hope this helps,

        Scott

        Comment


          #5
          RE: Set Design

          Well Problem is this. There can be any of 30 diferent currencies in the child records. Hard to code that in the parent for all possibilities.

          Comment


            #6
            RE: Set Design

            John,

            Do I understand that a single trip could be to more than one(1) country and therefor different exchange rates? And each trip be a single record.
            efs

            Comment


              #7
              RE: Set Design

              Yes each trip is a single record with a one to many link and multiple expenses, i.e. breakfast and each can be in a different currency.

              Comment


                #8
                RE: Set Design

                John,

                Based on what you just stated, my guess would be you need to treat each child record independant as far as currency types. I suppose you could have a field in the child table that would have the converted currency total for that ticket. Say you want to convert everything to US currency. You would set your child record currency type field, enter the amount in that currency and then have the result in a seperate field which stores the converted US dollar amounts. You could then use that field to give you a group total for the trip. If you need to change mutiple records all at once I would think a post or update operation would do the job. I hope that makes some sense to you, its late here and I might just be babbling ...lol

                Scott

                Comment


                  #9
                  RE: Set Design

                  "My goal is to be able to change one exchange rate in any of the detail records and have them change instantly throughout the trip but not carry over to any other trip(parent). "

                  This sounds like a case for using a filtered update operation. Prompt user for trip_number, and new exchange rate, let the op change all values for any record that matches trip_number. If you do this from the data entry form itself you wouldn't need to prompt the user for the trip_number, the script could read it right off the form.

                  -- tom

                  Comment


                    #10
                    RE: Set Design

                    Hi

                    "My goal is to be able to change one exchange rate in any of the detail records and have them change instantly throughout the trip but not carry over to any other trip(parent). "

                    An exchange rate is date dependend?

                    date 1, currency a, rate 1.1
                    date 2, currency a, rate 1.0
                    date 3, currency a, rate 1.3

                    In the child table, why not using a relation on exchange date+currency to the currency database so that the date+currency determines which exchange rate is used for calculation.

                    In this case I'm assuming that every change in exchange rate creates a new record for the given currency.

                    Marcel
                    Marcel

                    I hear and I forget. I see and I remember. I do and I understand.
                    ---- Confusius ----

                    Comment


                      #11
                      RE: Set Design

                      John,

                      Do I understand that in a given country that the exchange rate will also change as a function of the date?
                      efs

                      Comment


                        #12
                        RE: Set Design

                        Marcel:

                        I agree with this approach. a separate table containing the daily rates must be established and update each day. The date, currency and rate would be the only entries.

                        Each child record would read this table and calculate the correct rate. The currency table will become grow with time. You would have consider dropping records at some point.

                        You will need logic to default to not altering prior calcuations in the child records if the currency table entry has been removed. Ideally, the trip records and the currency table records would be removed at the same time. Accounting purposes or other legal considerations.

                        I hope this helps.

                        bob adler

                        Comment


                          #13
                          RE: Set Design

                          John,

                          While this is not necessary, one design approach would be to have three tables instead of two - the trip table, the "leg" (or subtrip) table and the expense table. While a trip can involve more than one currency, a "leg" would be restricted to one currency. That way you could indicate the currency in the leg record.

                          This is just a consideration for organizing it so that currency would be defined at the highest level.

                          Steve

                          Comment

                          Working...
                          X