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

A5 Interacting with Google calander

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

    A5 Interacting with Google calander

    Hi,

    Has anybody had any experience of using Google/apps, specifically the google calender part?

    I have a job management app written in A5 and I would like to have a button that allows the data to be published to a google calendar (under our google/apps setup)

    I have the url text to do this, here is an example.

    Code:
    "http://www.google.com/calendar/a/yourdomain.com/event?action=TEMPLATE&text=Test%20from%20QnJ&dates=20070101T090000Z/20070101T100000Z&details=This%20is%20a%20test%20push%20to%20the%20cal&location=R%26M&trp=false&sprop=www.yourdomain.com&sprop=name:Your%20Org%20Name%20Ltd\""
    Its not the smoothest process, the button fires up a browser pointing to a generated url (actually generating the url is the the plan, not implemented yet), the user logs in (logins automatic if he's done so already), and they are presented with a confirmation screen. What I can't find is a way to drop the event into a particular calander, for example I have set up a shared calender for Research Jobs and one for Other Job Types. At the moment, its purely under the users main cal. I suppose I could create a user for the Research Job Types and Other Job Types, but then the logon procedure would become messy (users having to use different logons depending on the type of job they want to create an event for). Unless there is a way to automatically pass the logon variables in the url?

    Also, have created an xdialog box that pops the calander up quite well, but would prefer for the browser to be directly embedded in a standard form, is that possible? We are also getting an error when opening the form through xdialogue, the error appears outside A5 as well, but if you open the link in IE6, it appears as an error in the status line as apposed to a pop up that stopes the site being rendered unless you give a confirmation to continue. Is it possible to get it to render in Firefox from xdialogue as the error doesnt appear in this browser, or is there a way in xdialogue for it to ignore the error?
    Chris Tanti
    Technical Support

    Nuance & Fathom Ltd - The data-driven marketing agency

    #2
    Re: A5 Interacting with Google calander

    Got this to now work, I can post to a specific shared Calendar by using the src= line taken from the calendar example (for including an inline cal on your website). I am not using the xdialogue method of opening the url, just the standard open url method, which is fine for our purposes.
    Chris Tanti
    Technical Support

    Nuance & Fathom Ltd - The data-driven marketing agency

    Comment


      #3
      Re: A5 Interacting with Google calander

      Hi Chris,

      I think you have an article for the next newsletter!
      Dan

      Dan Blank builds Databases
      Skype: danblank

      Comment


        #4
        Re: A5 Interacting with Google calander

        Yes Chris,

        I agree with Dan, sounds interesting

        Comment


          #5
          Re: A5 Interacting with Google calander

          Well, Not sure if Im up to that, and to be honest its not that well developed as yet (probably not worth an article as such), sorry! I will post an example, it should be possible to render the url on the fly by taking fields from your database, but remember you have to give a valid url for the free text (no spaces etc, use %20 etc)

          This example is for a standard calendar, not the hosted version, and doesnt specify a specific Cal

          Code:
          http://www.google.com/calendar/event?action=TEMPLATE&text=[COLOR="red"]This_Is_The_Description_Line[/COLOR]&dates=20061216T140000Z/20061216T150000Z&details=This_Is_The_Detail_Line&location=[COLOR="Red"]This_Is_The_Location_Of_Event[/COLOR]&trp=false&sprop=[COLOR="red"]WebsiteAddress[/COLOR]&sprop=name:[COLOR="red"]WebsiteName[/COLOR]
          Here is the hosted version, you can get the "src" and "pvttk" values in the calendar managent section (it will autogenerate an example for you to paste), these allow you to post directly to a specific shared cal in your hosted domain (so for example we could have a Research specific Cal, and then one for Print Specific)

          Code:
          http://www.google.com/calendar/a/yourdomain.com/event?action=TEMPLATE&src=xxxxxxxxxxxxxxxxx%40group.calendar.google.com&pvttk=xxxxxxxxxxxxxxxxxxxxxxxxxx&text=[COLOR="red"]This_Is_The_Description_Line[/COLOR]&dates=20061215T090000Z/20061215T100000Z&details=This_Is_The_Detail_Line&location=This_Is_The_Location_Of_Event&trp=false&sprop=www.yourdomain.com&sprop=name:company_name
          We originaly just wanted to investigate shared Calendars, without the expense of having to licence and maintain an MS Exchange Server.
          Then we thought it could be intersting if we could post job schedules etc on the sit as well. I know there is a google API that undoubtedly would allow you to do it in a much smoother more profesional way, but this quick and dirty method will do for the time being.

          If any one is interested check out www.google.com/apps

          Its far from perfect, it doesnt synch with outlook/PDA's (well not withought some additional utilities), isnt terribly smooth, but I imagine this will develop over time.

          I would be interested to know if its possible to bring data from the xml Calendar feed back into A5 (theres a potential for dates to be changed, on one or other systems, which could get messy)

          I know this could probably be done with A5 web app server, but Its a robust system (we don't have to manage the web server!) and as far as I am aware, it would be quite tricky getting the same functionality in A5.
          Chris Tanti
          Technical Support

          Nuance & Fathom Ltd - The data-driven marketing agency

          Comment


            #6
            Re: A5 Interacting with Google calander

            Originally posted by Chris.Tanti View Post
            I will post an example, it should be possible to render the url on the fly by taking fields from your database, but remember you have to give a valid url for the free text (no spaces etc, use %20 etc)
            Xbasic provides urlencode() for just this purpose.

            Lenny Forziati
            Vice President, Internet Products and Technical Services
            Alpha Software Corporation

            Comment


              #7
              Re: A5 Interacting with Google calander

              Thanks Lenny, much easier than the strtran method I was thinking Of.

              Wouldnt it be great if A5 had a built in Script to do this more cleanly... I suppose its out of the question for v8!?

              Heres a snippet of Java from the API documentation
              http://code.google.com/apis/gdata/calendar.html

              Do any of you think that the equiv could be recreated in xbasic?
              The existing method is OK, but could benefit from being a bit more transparent (ie. not having to be triggered by going to a website and then confirming the creation)


              Code:
              URL postUrl =
                new URL("http://www.google.com/calendar/feeds/default/private/full");
              EventEntry myEntry = new EventEntry();
              
              myEntry.setTitle(new PlainTextConstruct("Tennis with Beth"));
              myEntry.setContent(new PlainTextConstruct("Meet for a quick lesson."));
              
              Person author = new Person("Jo March", null, "[email protected]");
              myEntry.getAuthors().add(author);
              
              DateTime startTime = DateTime.parseDateTime("2006-04-17T15:00:00-08:00");
              DateTime endTime = DateTime.parseDateTime("2006-04-17T17:00:00-08:00");
              When eventTimes = new When();
              eventTimes.setStartTime(startTime);
              eventTimes.setEndTime(endTime);
              myEntry.addTime(eventTimes);
              
              CalendarService myService =
                new CalendarService("exampleCo-exampleApp-1");
              myService.setUserCredentials("[email protected]", "mypassword");
              
              // Send the request and receive the response:
              EventEntry insertedEntry = myService.insert(postUrl, myEntry);
              Chris Tanti
              Technical Support

              Nuance & Fathom Ltd - The data-driven marketing agency

              Comment


                #8
                Re: A5 Interacting with Google calander

                Chris - did you ever get anywhere with this? I have a client that wants to integrate Outlook - Alpha - Google Calendar. I think I could rewrite the API below (as an HTTP_POST), but want to know if you did anything, or you want to work with me on something like this.
                Steve Wood
                See my profile on IADN

                Comment


                  #9
                  Re: A5 Interacting with Google calander

                  Steve or Chris - have you or anyone else done anything further with this? I wonder if Ajax calls would make this easier now?

                  A web calendar or scheduler sure would be a GREAT utility. I am desperately looking for something like this. Any thoughts?

                  Comment


                    #10
                    Re: A5 Interacting with Google calander

                    See this post for the class on Ajax. The trainer has build a very nice calendar using Ajax and I am sure will include it in his training material.

                    http://msgboard.alphasoftware.com/al...ad.php?t=74136
                    Steve Wood
                    See my profile on IADN

                    Comment


                      #11
                      Re: A5 Interacting with Google calander

                      I signed up the first day and looking forward to taking it.

                      I know that you and I as well as others have discussed such a calendar utility - I hope he does have an Ajax calender/scheduler utility; this is something that many of us can benefit from as there are many applications for such a utility.

                      Thanks Steve!

                      Comment

                      Working...
                      X