Stake Resource Scheduling
-
- New Member
- Posts: 23
- Joined: Mon Dec 08, 2008 8:56 pm
- Location: Boise, Idaho, USA
Stake Resource Scheduling
I have been working to better automate the loading of the Building Scheduling from the Stake Calendar for our stake. While we wait on the next generation of the LUWSs, I was wondering if anyone could provide ALL the available passed in parameters for scheduling a resource, i.e. all the parameters one can pass into
https://secure.lds.org/units/a/calendar/add/...html
https://secure.lds.org/units/a/admin/ca ... it/...html
Thus far I have been able to pass in the schedule date, begin_time, and end_time... I am then still forced to manually enter the Title (first line) and Description (details).
Here is an example link knowing that you will not be able to access it unless you are a member of my stake. But you could substitue
https://secure.lds.org/units/a/calendar/add/1,8226,986-1-1000-17258,00.html?date=Jan%2002%202009&monthIndex=1&ParentSiteId=506389&start_time=10:00%20AM&end_time=12:00%20PM
Parameters that work (that I have found thus far)
the 17258 is the resource # that specifies the resource being scheduled...will be different for your resource and may require other parameters before and after.
date - Assumes the begin and end date are the same (format: Mmm DD YYYY ... Jan 02 2009)
monthindex - Must be passed and should be the same month index as the date (format: # ... 1)
ParentSiteId - Must be the stake # in which the resrouce is being scheduled (format: ###### ... 506389)
start_time - Start time for the event (format HH:MM AM/PM ... 10:00 AM)
end_time - End time for the event (format HH:MM AM/PM ... 12:00 PM)
What I am looking for is the only 2 I am missing to allow for a correct and valid mechanism for loading or editing many events without feeling like I am trying to "work around" the system.:
title ... is not title, short_desc, desc, event ... tried all of these... if someone knows this I would be very graeful.
desc ... is not description, details ... tried these...
I am in not trying to hack the system as you are still required to login through the standard login screens to gain access to enter schedules into the resource calendars. But if you use a URL with the parameters correctly set it will automatically populate everything once you log into the LUWS. This just facilitates a very easy bulk load into the system using standard URLs and appropriate passed in params.
Up to this point I have been using iMacros for Firefox to bulk load the resource events. I was able to load all 400+ event across the 3 buildings for 2009 in a matter of 10 minutes this week after my Open Office macro compiled the iMacros iim macro in the correct format to populate all the parameters and submit the events into the calendar as I am the admin for the resources.
I would prefer to not use iMacros in the future and simply use a formatted URL...
Any additional help would be much appreciated.
https://secure.lds.org/units/a/calendar/add/...html
https://secure.lds.org/units/a/admin/ca ... it/...html
Thus far I have been able to pass in the schedule date, begin_time, and end_time... I am then still forced to manually enter the Title (first line) and Description (details).
Here is an example link knowing that you will not be able to access it unless you are a member of my stake. But you could substitue
https://secure.lds.org/units/a/calendar/add/1,8226,986-1-1000-17258,00.html?date=Jan%2002%202009&monthIndex=1&ParentSiteId=506389&start_time=10:00%20AM&end_time=12:00%20PM
Parameters that work (that I have found thus far)
the 17258 is the resource # that specifies the resource being scheduled...will be different for your resource and may require other parameters before and after.
date - Assumes the begin and end date are the same (format: Mmm DD YYYY ... Jan 02 2009)
monthindex - Must be passed and should be the same month index as the date (format: # ... 1)
ParentSiteId - Must be the stake # in which the resrouce is being scheduled (format: ###### ... 506389)
start_time - Start time for the event (format HH:MM AM/PM ... 10:00 AM)
end_time - End time for the event (format HH:MM AM/PM ... 12:00 PM)
What I am looking for is the only 2 I am missing to allow for a correct and valid mechanism for loading or editing many events without feeling like I am trying to "work around" the system.:
title ... is not title, short_desc, desc, event ... tried all of these... if someone knows this I would be very graeful.
desc ... is not description, details ... tried these...
I am in not trying to hack the system as you are still required to login through the standard login screens to gain access to enter schedules into the resource calendars. But if you use a URL with the parameters correctly set it will automatically populate everything once you log into the LUWS. This just facilitates a very easy bulk load into the system using standard URLs and appropriate passed in params.
Up to this point I have been using iMacros for Firefox to bulk load the resource events. I was able to load all 400+ event across the 3 buildings for 2009 in a matter of 10 minutes this week after my Open Office macro compiled the iMacros iim macro in the correct format to populate all the parameters and submit the events into the calendar as I am the admin for the resources.
I would prefer to not use iMacros in the future and simply use a formatted URL...
Any additional help would be much appreciated.
-
- Community Moderators
- Posts: 9858
- Joined: Mon Mar 17, 2008 12:30 am
- Location: USA, TX
By looking at the source you appeared to be close for the title. The title is short_descr. The details (desc) is body_long.tlrogers wrote:title ... is not title, short_desc, desc, event ... tried all of these... if someone knows this I would be very graeful.
desc ... is not description, details ... tried these...
Maybe this will help.
JD Lessley
Have you tried finding your answer on the ChurchofJesusChrist.org Help Center or Tech Wiki?
Have you tried finding your answer on the ChurchofJesusChrist.org Help Center or Tech Wiki?
-
- New Member
- Posts: 23
- Joined: Mon Dec 08, 2008 8:56 pm
- Location: Boise, Idaho, USA
Unfortunately, those are not the values you pass in. I've tried short_desc and body_long in the url and neither will populate the text boxes when the page resolves.jdlessley wrote:By looking at the source you appeared to be close for the title. The title is short_descr. The details (desc) is body_long.
Maybe this will help.
Must be something else ... if the pages even allow for the 2 values to be passed in.
- mkmurray
- Senior Member
- Posts: 3266
- Joined: Tue Jan 23, 2007 9:56 pm
- Location: Utah
- Contact:
Make sure that you tried short_descr and not short_desc.tlrogers wrote:Unfortunately, that is not the values you pass in. I've tried short_desc and body_long in the url and neither will populate the text boxes when the page resolves.
Must be something else ... if the pages even allow for the 2 values to be passed in.
Also, you may not be able to pass in those specific values by URL. You may have to post those values in the request. Basically, you would have to use a scripting or programming language to do that though.
- mkmurray
- Senior Member
- Posts: 3266
- Joined: Tue Jan 23, 2007 9:56 pm
- Location: Utah
- Contact:
-
- New Member
- Posts: 23
- Joined: Mon Dec 08, 2008 8:56 pm
- Location: Boise, Idaho, USA
-
- Community Moderators
- Posts: 11460
- Joined: Mon Mar 17, 2008 10:27 pm
- Location: US
Someone posted a whole lot of information in a thread on how to upload calendar items with a script. I cannot find the link, but it is out there. So much for the search function. Or for my brain. [grin]
Update: It was you, tlrogers. At this thread:
http://tech.lds.org/forum/showthread.ph ... rerid=2343
Was that something different than what you are asking here?
Befuddled minds do not think alike.
Update: It was you, tlrogers. At this thread:
http://tech.lds.org/forum/showthread.ph ... rerid=2343
Was that something different than what you are asking here?
Befuddled minds do not think alike.
- mkmurray
- Senior Member
- Posts: 3266
- Joined: Tue Jan 23, 2007 9:56 pm
- Location: Utah
- Contact:
I have written C# code in .NET that will log you into LUWS. Basically what I did was find the URL that the username and password are posted to in the form that is in the HTML source. You can simulate what the browser does programatically when you hit a Submit button.tlrogers wrote:Is there instructions on doing this somewhere on the site... submit the information automatically? Would be very interested if there are...
I'll post some psuedo code or genericized code or something when I get a chance in a few days.
-
- New Member
- Posts: 23
- Joined: Mon Dec 08, 2008 8:56 pm
- Location: Boise, Idaho, USA
That is what I did as a workaround. My thought was that I would provide the stake with a secondary site that in essence would only build the URL that would automatically add the calendar event and still require them to log in through the standard security login. With appropriate URL parameters no additional code would be necessary and my page would be simply html with ASP since no passwords would be required only pre-population of the pull-downs.lajackson wrote:Someone posted a whole lot of information in a thread on how to upload calendar items with a script. I cannot find the link, but it is out there. So much for the search function. Or for my brain. [grin]
Update: It was you, tlrogers. At this thread:
http://tech.lds.org/forum/showthread.ph ... rerid=2343
Was that something different than what you are asking here?
Befuddled minds do not think alike.
This would ensure that I as the admin for the resources would collect all the required information for the schedule and ensure that 90% of all entries use the standard template.
-
- New Member
- Posts: 23
- Joined: Mon Dec 08, 2008 8:56 pm
- Location: Boise, Idaho, USA
Some pseudo code would be great but I think this is more involvement than what I would like to use. Historically I have been big on macros and forms for previous callings. While they dramtically simplified the maintenance of all aspects of each previous calling they haven't been very clean to hand down to the next individual.mkmurray wrote:I have written C# code in .NET that will log you into LUWS. Basically what I did was find the URL that the username and password are posted to in the form that is in the HTML source. You can simulate what the browser does programatically when you hit a Submit button.
I'll post some psuedo code or genericized code or something when I get a chance in a few days.
Something that is simply using links to the standard pages for scheduling building and plain html and javascript would be simpler to hand to the next individuals called to this position when and if that time comes.
Still, Would appreciate any pseudo code you could provide.