xsouldeath
Programmer
I've found the syntax of the function @FindFreeResource, and I'm trying to get it to return within LotusScript
Description of function
--------------------------------------------------
Syntax
@ Findfreeresource ( key , resource type , start datetime ;
EndDateTime ; capacity ; results )
Parameter
T
Text. If, in canonical form whether you wish to receive from all the
resources of a site (Site) or only in certain categories of results. "CN
=* / O = Berlin" is looking for all the resources of the site "Berlin",
"CN =* / OU = Projector / O = Berlin" only searches the category of
resources "Beamer" the location "Berlin".
Resource Type
Text. "1" is looking for spaces, "2" in resources.
StartDateTime
Time / date. Beginning of the desired reservation.
EndDateTime
Time / date. End of the desired reservation.
Capacity
Sets number at room reservation ( resource-type "1") set the minimum required capacity.
Results
Number Specifies the maximum number of hits, which may return the function.
Return Value
Resource name
Text or text list. The names of the criteria according to resources found in canonical form. If more results displayed as a connected set will, as resources are the preferred whose capacity is closer to the capacity lie.
If no relevant resources found with the criteria it is evaluated to an empty string "back".
---------------------------------------------------
My source code would be the following in an "Agent", which I then call on button click for now... Once I have the name of an available room I can book a meeting with this room I guess...
dim ResNameCheck as Variant
ResNameCheck = Evaluate({@FindFreeResource("CN=*/O=Toronto";"1";"1/17/2011 10:15:00 AM";"1/17/2011 10:45:00 AM";1;30)})
Messagebox ResNameCheck
'Messagebox ResNameCheck(0)
'Messagebox ResNameCheck(1)
the resNameCheck would be used to let you use the Lotus Formula in LotusScript.. the 1st parameter looks in the location Toronto
the 2nd parameter, specifies its a room
the 3rd parameter specifies start time "1/17/2011 10:15:00 AM"
the 4th parameter specifies the end datetime "1/17/2011 10:45:00 AM"
the 5th parameter specifies minimum capacity of 1
the 6th parameter specifies maximum number of results of 30.
Can anyone test this function out and let me know a working syntax?
Description of function
--------------------------------------------------
Syntax
@ Findfreeresource ( key , resource type , start datetime ;
EndDateTime ; capacity ; results )
Parameter
T
Text. If, in canonical form whether you wish to receive from all the
resources of a site (Site) or only in certain categories of results. "CN
=* / O = Berlin" is looking for all the resources of the site "Berlin",
"CN =* / OU = Projector / O = Berlin" only searches the category of
resources "Beamer" the location "Berlin".
Resource Type
Text. "1" is looking for spaces, "2" in resources.
StartDateTime
Time / date. Beginning of the desired reservation.
EndDateTime
Time / date. End of the desired reservation.
Capacity
Sets number at room reservation ( resource-type "1") set the minimum required capacity.
Results
Number Specifies the maximum number of hits, which may return the function.
Return Value
Resource name
Text or text list. The names of the criteria according to resources found in canonical form. If more results displayed as a connected set will, as resources are the preferred whose capacity is closer to the capacity lie.
If no relevant resources found with the criteria it is evaluated to an empty string "back".
---------------------------------------------------
My source code would be the following in an "Agent", which I then call on button click for now... Once I have the name of an available room I can book a meeting with this room I guess...
dim ResNameCheck as Variant
ResNameCheck = Evaluate({@FindFreeResource("CN=*/O=Toronto";"1";"1/17/2011 10:15:00 AM";"1/17/2011 10:45:00 AM";1;30)})
Messagebox ResNameCheck
'Messagebox ResNameCheck(0)
'Messagebox ResNameCheck(1)
the resNameCheck would be used to let you use the Lotus Formula in LotusScript.. the 1st parameter looks in the location Toronto
the 2nd parameter, specifies its a room
the 3rd parameter specifies start time "1/17/2011 10:15:00 AM"
the 4th parameter specifies the end datetime "1/17/2011 10:45:00 AM"
the 5th parameter specifies minimum capacity of 1
the 6th parameter specifies maximum number of results of 30.
Can anyone test this function out and let me know a working syntax?