Hi ,
We want to traverse to Level 5 in the below specified hierarchy of the Folder structure depending upon an attribute value filled at run time in webreport.
Level 1-->
Level 2-->
Level 3-->
Level 4-->
Level 5-->
Level 6
We would need to create level 6 folder through the report. To achieve this we need the object id (item reference ) of level 5 folder. Is there a way to get the item reference dynamically to create level 6 folder . We have have a UserInput of Level 3 folder name in the form of attribute value.
We have made changes in Report of the Webreport and written the following Oscript code -
[LL_WEBREPORT_STARTSCRIPT NAME:test /]function String test(Dynamic c, List args)
List kmtypes = { "policy" , "procedure" , "training" , "control" }String kmtypeDynamic rootString path, msg
for kmtype in kmtypes root = OS.Root( kmtype ) path = OS.FileSpec( root )
return path
end
[LL_WEBREPORT_ENDSCRIPT /]
The above script gives an error may be the OS.Name and OS.FileSpec is not working during the runtime.
How to go about it using the WebReport?