uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Recurring event increments

Knowledge Base Lobby : uReserve Support Conference : General Questions
Nov-23-17 10:49 PM EST
Original Message
Recurring event increments
Author Kyle Baker on 07-18-2001 at 17:41 (EST)
Some of my users have asked if there is an easy way to modify the choices in the drop-down menu for recurring events. For instance, you have a choice of 3,5,7,10,14 days, etc, but what if you want the event to occur for four days? If it's a quick fix in PERL, let me know. If not, perhaps add the request to your future features list...

Thanks,
Kyle Baker
Webmaster
LA County Office of AIDS Programs and Policy
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Recurring event increments Bill Weiner, 2001-07-19 07:00:36 (1)
            RE: Recurring event increments Kyle Baker, 2001-07-19 15:07:18 (2)

Messages In This Discussion
         1. RE: Recurring event increments
        Author Bill Weiner on 07-19-2001 at 07:00 (EST)

That change wouldn't be totally straight forward, but if you're comfortable with Perl, you should be able to make the changes. Just make a backup of the working script first... just in case.

Anyway, you would first need to locate the "create_add_reserve_form" subroutine by doing a search on "sub create_add_reserve_form". In that subroutine, you should be able to see where each recurring event gets mapped to a "VALUE" of 1 - 16:

print " < OPTION VALUE="1" > Single Event < /OPTION > ";
print " < OPTION VALUE="2" > Daily Event For The Next 3 Days < /OPTION > ";
print " < OPTION VALUE="3" > Daily Event For The Next 5 Days < /OPTION > ";
print " < OPTION VALUE="4" > Daily Event For The Next 7 Days < /OPTION > ";
print " < OPTION VALUE="5" > Daily Event For The Next 10 Days < /OPTION > ";
print " < OPTION VALUE="6" > Daily Event For The Next 14 Days < /OPTION > ";
print " < OPTION VALUE="7" > Weekly Event For The Next 4 Weeks < /OPTION > ";
print " < OPTION VALUE="8" > Weekly Event For The Next 6 Weeks < /OPTION > ";
print " < OPTION VALUE="9" > Weekly Event For The Next 8 Weeks < /OPTION > ";
print " < OPTION VALUE="10" > Weekly Event For The Next 10 Weeks < /OPTION > ";
print " < OPTION VALUE="11" > Weekly Event For The Next 12 Weeks < /OPTION > ";
print " < OPTION VALUE="12" > Bi-weekly Event For The Next 4 Weeks < /OPTION > ";
print " < OPTION VALUE="13" > Bi-weekly Event For The Next 6 Weeks < /OPTION > ";
print " < OPTION VALUE="14" > Bi-weekly Event For The Next 8 Weeks < /OPTION > ";
print " < OPTION VALUE="15" > Bi-weekly Event For The Next 10 Weeks < /OPTION > ";
print " < OPTION VALUE="16" > Bi-weekly Event For The Next 12 Weeks < /OPTION > ";


You would want to edit the desired label accordingly


And as for actually getting the recurring event to be applied properly, you would need to locate the "reserve_resource" subroutine by doing a search on "sub reserve_resource". In that subroutine, you would need to adjust the $increment and $iterations variables based on the $res_field7 value.


As an example, if you wanted to change the "5 Day Event" to a "4 Day Event", you would first change the "Daily Event For The Next 5 Days" label in the "create_add_reserve_form" subroutine to "Daily Event For The Next 4 Days". And since the that event is mapped to a value of "3", you would then modify the "reserve_resource" subroutine to change the lines:

elsif ($res_field7 == 3)
{
$iterations = 5;
}


To these lines:


elsif ($res_field7 == 3)
{
$iterations = 4;
}
TABLE OF CONTENTS
                 2. RE: Recurring event increments
                Author Kyle Baker on 07-19-2001 at 15:07 (EST)
Exactly! Thanks so much for your prompt reply; I nailed it right away with your instructions.

> That change wouldn't be totally straight
>forward, but if you're comfortable with
>Perl, you should be able to
>make the changes
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.