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

Inverting Table Info

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

    Inverting Table Info

    Say I have the following table:

    Wash Car Go Shopping Go to Movies

    Mary 7/7/2005 7/2/2005 7/3/2005
    Jane 7/3/2005 7/3/2005 7/8/2005
    Bob 7/9/2005 7/8/2005 7/6/2005

    And I want the convert all this info into the following list or table (by way of a Report or something):

    7/2/2005 Go Shopping (Mary)
    7/3/2005 Wash Car (Jane)
    7/3/2005 Go to Movies (Mary)
    7/3/2005 Go Shopping (Jane)
    7/6/2005 Go to Movies (Bob)
    7/7/2005 Wash Car (Mary)
    7/8/2005 Go to Movies (Jane)
    7/8/2005 Go Shopping (Bob)
    7/9/2005 Wash Car (Bob)

    Is there a simple way to do this? Seems like it would be a standard relational database thing to do, but I can't figure out how in AF6. TIA

    #2
    RE: Inverting Table Info

    H.:
    You have not provided the fields these values are stored in. Assuming the dates, all these dates, are stored in the same field, you need to create an index or a query based on that field and sort it whichever way you want.

    In fact, you could do better than that. If you are designing a report, you could break it down by the date, then by the person by using groups so you would end up with a report that says:
    1/1/05:
    Mary:
    1-Pretend to cook breakfast
    2-Take the only family car and go Shopping
    3-Shop some more
    Jack:
    1-Clean the dishes, put out the garbage
    2-Find where is Mary
    3-Cancel all your credit cards before it's too late
    1/2/05:
    Mary:
    1-Run off to Albaquerque
    2-Call the police
    and so on..

    Or you could break it up by the person then the date:
    Mary:
    1/1/05:
    1-Pretend to cook breakfast
    2-Take the only family car and go Shopping
    3-Shop some more
    1/2/05:
    1-Run off to Albaquerque
    2-Call the police
    Jack:
    1/1/05:
    1-Find Mary
    2-File for divorece

    Gabe

    Comment


      #3
      RE: Inverting Table Info

      Oh-- Each date is in its own field. And each person is in its own field. And each activity is in its own field. They are in a table with 4 columns and 3 rows. (All my spacing came out weird because of the way the message board handles text).

      I think I understand what you're saying about groups, but that's not what I'm aiming to do. I'm aiming specifically for all the dates to end up being in a column on the left and, if it makes for sense, for the activities to be in the next column to the right and persons in the next column to the right of that.

      Comment


        #4
        RE: Inverting Table Info

        H.:
        "" Oh-- Each date is in its own field.
        What is your table structure??
        What fields do you have?

        ""I'm aiming specifically for all the dates to end up being in a column on the left and, if it makes for sense, for the activities to be in the next column to the right and persons in the next column to the right of that.""

        That would be a browse table..
        Gabe

        Comment


          #5
          RE: Inverting Table Info

          Oh - The structure looks like this:

          Wash_Car Date 8
          Go_Shopping Date 8
          Go_to Movies Date 8


          And each name (Mary, Jane, Joe) is a just a new Record in a Form.

          Comment


            #6
            RE: Inverting Table Info

            I would restructure this to look like:(these are the fields of the table)
            Person C 20
            Activity C 20
            Date D

            For activity either through a lookup or other means allow only those activities you want to allow.

            You can then sort on person or date or activity. This could be done most easily with 3 indices.

            In this format you will find it a lot easier to extract the information that you want.

            Russ

            Comment


              #7
              RE: Inverting Table Info

              Hmmm ... OK - I experimented with fields the way you suggested, and yes, it will give me the output I was looking for --- but from here, what if I want to make a chart like the one I started out with in my original question:

              _________Wash Car_____Go Shopping___Go to Movies

              Mary____ 7/7/2005_____ 7/2/2005______ 7/3/2005
              Jane_____7/3/2005______7/3/2005_______7/8/2005
              Bob______7/9/2005______7/8/2005_______7/6/2005

              How would I set up a Report to do that?

              Comment


                #8
                RE: Inverting Table Info

                Crosstab person and activity, choose the date field to summarize.
                There can be only one.

                Comment


                  #9
                  RE: Inverting Table Info

                  Sorry -- I'm a newb, if you can't tell...

                  Step by step please ...

                  Do you mean use the Quick Report Genie, choose Summary, move my 3 fields into the "Fields" column, and select Group and group Person and Activity?

                  (I tried that, and it gave an odd result.)

                  Comment


                    #10
                    RE: Inverting Table Info

                    Operations tab, new, crosstab operation

                    see design screenshot attached
                    There can be only one.

                    Comment


                      #11
                      RE: Inverting Table Info

                      Then the results

                      see attched screenshot
                      There can be only one.

                      Comment


                        #12
                        RE: Inverting Table Info

                        Sorry, then you design your report to be based on the resulting table created by the crosstab operation.
                        There can be only one.

                        Comment


                          #13
                          RE: Inverting Table Info

                          Hey -- That works!

                          Thank you very much!

                          Comment

                          Working...
                          X