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

calendars and weekdays

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

    calendars and weekdays

    Have a form which is based on data view. The table containing the relevant data has a date field called "SupplyDate". I need to build a structured grid like layout which,
    1. Has a coloum layout of each day of the week with day of week as "column title" containing a "counted records" value of the records for each appropiate day. Beneath this grid a "previous week" and "next week" button which allows a timeline navigation by weeks, each "onclick" event refreshing showing the relevant values in the grid like layout.
    2. The embedded browse shows all records for the chosen date where the default value is DATE(). Double click on a particular day from the grid like layout redefines the filter of the embedded browse.
    Can anyone give any help on this type of problem?
    �There is nothing like a dream to create the future.�
    But then again:
    Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

    #2
    Re: calendars and weekdays

    Originally posted by christobal View Post
    Have a form which is based on data view. The table containing the relevant data has a date field called "SupplyDate". I need to build a structured grid like layout which,
    1. Has a coloum layout of each day of the week with day of week as "column title" containing a "counted records" value of the records for each appropiate day. Beneath this grid a "previous week" and "next week" button which allows a timeline navigation by weeks, each "onclick" event refreshing showing the relevant values in the grid like layout.
    2. The embedded browse shows all records for the chosen date where the default value is DATE(). Double click on a particular day from the grid like layout redefines the filter of the embedded browse.
    Can anyone give any help on this type of problem?
    What part are you having trouble with?
    There can be only one.

    Comment


      #3
      Re: calendars and weekdays

      The grid like layout and relevant functions
      �There is nothing like a dream to create the future.�
      But then again:
      Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

      Comment


        #4
        Re: calendars and weekdays

        Chris, I'm not sure this will help, but have you investigated the calendar add on in the Alpha Five online store? Portions of what you would need to do from scratch may already have been done. Can't say for sure cause I haven't spent any time with the add on, personally. -- tom

        Comment


          #5
          Re: calendars and weekdays

          The calendar add on does not help in this situation. Using a variable called startdate I can extract the day name from the "Date()" value i.e

          startdate = date_format(date(),"WEEKDAY")
          I have a table called weekdays which contains a column for each day of the week with a record type set to 'D'.
          In the form I have a browse layout of the weekday table which oninit can be populated with set 'Value" properties of fields.
          How can I interpolate the startdate value as date ('Monday') to the appropriate column and set the remaining values of the weekdays i.e Sunday, Tuesday etc with the calculated values in relation to Date()
          Sunday = Date()-1 , Tuesday = Date()+1.
          This of course is always calculated in relation to the relevant 'Date()' value when using the form.
          Last edited by christobal; 12-24-2006, 03:39 AM.
          �There is nothing like a dream to create the future.�
          But then again:
          Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

          Comment


            #6
            Re: calendars and weekdays

            Chris,

            Couldn't you use the cdow() function to get the day of the week?? I maybe not fully understanding what you are trying to do but seems like you could (late nights are many times not so good to be asking or giving suggestions! almost 3 am here!).

            Mike
            Mike
            __________________________________________
            It is only when we forget all our learning that we begin to know.
            It's not what you look at that matters, it's what you see.
            Henry David Thoreau
            __________________________________________



            Comment


              #7
              Re: calendars and weekdays

              .
              Last edited by G Gabriel; 05-11-2007, 05:17 AM.

              Comment


                #8
                Re: calendars and weekdays

                Gabriel as your name implies you are a real God send. This is exactly what I needed (and I got it Xmas morning here). Thanks a bunch and all the best for the festive season.
                �There is nothing like a dream to create the future.�
                But then again:
                Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

                Comment


                  #9
                  Re: calendars and weekdays

                  The day of the week does not reflect the day name of the date used in the calculated field.Today the 25/12/2006 is a Monday.
                  How can I populate the fields in accordance.
                  �There is nothing like a dream to create the future.�
                  But then again:
                  Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

                  Comment


                    #10
                    Re: calendars and weekdays

                    Originally posted by christobal View Post
                    The day of the week does not reflect the day name of the date used in the calculated field.Today the 25/12/2006 is a Monday.
                    How can I populate the fields in accordance.
                    Not really sure what you mean by the above. Could you be a bit more specific, ie actually name fields etc.

                    In the mean time I expanded Gabriel's example a bit.

                    EDIT. Added a multi state button representing the days of the week
                    Last edited by Tim Kiebert; 12-25-2006, 09:21 AM. Reason: Added to the sample.
                    Tim Kiebert
                    Eagle Creek Citrus
                    A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

                    Comment


                      #11
                      Re: calendars and weekdays

                      Originally posted by christobal View Post
                      The day of the week does not reflect the day name of the date used in the calculated field.Today the 25/12/2006 is a Monday.
                      How can I populate the fields in accordance.
                      Is this what you are looking for?

                      ?cdow( date() )
                      = "Monday"

                      If so, may I suggest you download the free A5v5 Help file from my website. (It's near the bottom of the page.) It includes all A5v5 functions and many of the newer A5v6 functions that apply to the desktop even though the descriptive text, which is 3 years old, doesn't mention the newer updates. The thing that is really nice about it is that the keywords were specifically selected to be relative to the function and include synonyms so it's easier to find functions when you don't know what the function is.

                      For example, searching on "day" returns 6 choices:
                      Add_bus_days
                      Bus_days_between
                      CDOW
                      DAY
                      DMY
                      DOW
                      versus 80 choices with A5's built-in Help file which includes topics like "Making Statements Conditional". (Yes, the word "day" does appear in the text of that help item but it isn't really relevent as a keyword for the topic. However, that's the best an automated keyword selection method can do.)

                      Comment


                        #12
                        Re: calendars and weekdays

                        using Tim's approach how can I use the multi-state button with a common function for the;
                        "parentform:tables:reservation.filter_expression = "SupplyDate=" +s_quote(var->vdate+vdaynum)
                        parentform:tables:reservation.query()"
                        Each button on push event invokes a new query. How can I minimize this process as the database contains 3000 rows?
                        �There is nothing like a dream to create the future.�
                        But then again:
                        Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

                        Comment


                          #13
                          Re: calendars and weekdays

                          Originally posted by christobal View Post
                          using Tim's approach how can I use the multi-state button with a common function for the;
                          "parentform:tables:reservation.filter_expression = "SupplyDate=" +s_quote(var->vdate+vdaynum)
                          parentform:tables:reservation.query()"
                          Each button on push event invokes a new query. How can I minimize this process as the database contains 3000 rows?
                          Queries run more quickly when you can take advantage of LQO, presuming by "minimize this process" you mean minimize the time the process takes.
                          There can be only one.

                          Comment


                            #14
                            Re: calendars and weekdays

                            Have updated table to include real data with regards the Date field. Any pointers on how to reduce the number of repetitive queries used by the different buttons. I need to browse the results in a fluid manner without all the background updates running.
                            �There is nothing like a dream to create the future.�
                            But then again:
                            Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

                            Comment


                              #15
                              Re: calendars and weekdays

                              It is not the query on the buttons that is the bottle neck but the calcs for the record count.
                              Change the expression in the caclculated fields to use dbcount instead of Tablecount. This uses the index instead of querying the table.
                              Code:
                              sun = dbcount("week","Date",var->vdate)
                              mon = dbcount("week","Date",var->vdate+1)
                              tue = dbcount("week","Date",var->vdate+2)
                              wed = dbcount("week","Date",var->vdate+3)
                              thu = dbcount("week","Date",var->vdate+4)
                              fri = dbcount("week","Date",var->vdate+5)
                              sat = dbcount("week","Date",var->vdate+6)
                              You may have missed that I edited and added a multistate button to my previous example. This zip is updated with your data and the multistate button and form opens to current week.
                              Tim Kiebert
                              Eagle Creek Citrus
                              A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

                              Comment

                              Working...
                              X