@findfreeresource

Shandrik

Well-Known Member
Lotus team
30.12.2010
268
26
#1
Попросили допилить базу "Резервирования". Надо добавить в поиск ещё один параметр. Обнаружил, что поиск спрятан в недокументированной функции @FindFreeResource.

Keyarg:="CN=*/"+"O="+Site;
ResNameCheck:=@FindFreeResource(Keyarg;ResourceType;StartDateTime;EndDateTime;tmpCapacity;9999;[]);

Что там последним параметром? Какие вообще особенности работы с ней?
 
Последнее редактирование модератором:

savl

Well-Known Member
Lotus team
28.10.2011
2 126
163
#2
Все что нашел, параметр после 9999, наверное для служебных слов, но описания нет
n the form of the Designer Help:
Syntax
@ Find free resource ( 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".
 

Shandrik

Well-Known Member
Lotus team
30.12.2010
268
26
#3
> n the form of the Designer Help:

Это из хелпа что ли? Я не нашел.