Skip to main content
Resonate KT logo

Resonate KT Knowledge Base

Go Search
Home
  
Resonate KT Knowledge Base > WebReports Discussion > Nodeaction create folder gives parent ID parameter specified  

WebReports Discussion

Modify settings and columns
Get help or share ideas and techniques for creating applications and reports with WebReports and WebReports Extenstions for Workflow.

To receive notifications when new posts are created, please choose the "Alert Me" option from the Actions menu below.  (Actions > Alert Me)
  
View: 
Post
Edited: 3/2/2010 4:43 AM
Picture Placeholder: gharte
gharte
Nodeaction create folder gives invalid parent ID parameter specified
Hi,
 
We have a query that returns a list of dataid's.
For each dataid we want to create a subfolder. We use the following tags:
 
[LL_REPTAG=dataid NODEACTION:CREATE:FOLDER:[LL_REPTAG=dataid /]:'[LL_REPTAG_&foldername /]':INHERITPERMS /]
 
Now the error message below appears:
 
* NODEACTION: Action: CREATE - Invalid parent ID parameter specified *:'Notifications':INHERITPERMS /]
 
If I put in a dataid directly it works fine:
[LL_REPTAG=dataid NODEACTION:CREATE:FOLDER:1234:'[LL_REPTAG_&foldername /]':INHERITPERMS /]
 
The query is pretty straightforward:
select dataid from dtree where ownerid = 1234
 
Any thoughts?
 
Rgds,
Gavin
Posted: 3/2/2010 11:53 AM
Picture Placeholder: syoo
syoo
Hi Gavin,
 
This appears to be a WebReport tag processing order issue in your code.  You are using a data tag [LL_REPTAG=dataid /] within another data tag which is causing a conflict.  We are aware of this issue and are hoping to fix this in the next major release of WebReports (code name Toscana).  However I can suggest a workaround in the mean time. 
 
In the row section of your WebReport put in the following code:
 
[LL_WEBREPORT_SUBWEBREPORT NODEID:[LL_REPTAG_$SWR /] PARM:folderId:'[LL_REPTAG=dataid /]' PARM:folderName:'[LL_REPTAG_&foldername /]' /]
Here we are calling a sub WebReport [LL_REPTAG_$SWR /] and passing the dataId and folder name to the sub WebReport.  Create a new sub WebReport and make sure you define a constant 'SWR' to link the two WebReports.  In your sub WebReport include the following code:
 
[LL_REPTAG_'abcdef' SETVAR:myVar /]
[LL_REPTAG_%myVar NODEACTION:CREATE:FOLDER:[LL_REPTAG_&folderId /]:'[LL_REPTAG_&folderName /]' /]
[LL_WEBREPORT_STARTROW /][LL_WEBREPORT_ENDROW /]  
 
Creating a folder using NODEACTION, the data in the main tag is ignored which is why we created a variable called 'myVar' and set it to anything.  We use the variable 'myVar' as the main tag because WR variables are processed after parameter tags.  The parameters &folderId and &folderName can now be used in the NODEACTION sub-tag as is. This should do the trick.
 
Please note when using NODEACTION:CREATE:FOLDER:<container>:<name> the <container> value should be to a valid folder Id in Livelink.  Using the Id of a document will cause the Create to fail.
 
Let me know if you have any questions or need additional clarification.  Hope this helps. 
 
Thanks,
Stephen 
Posted: 3/4/2010 2:38 AM
Picture Placeholder: gharte
gharte
I tested it  and it works fine for me!
 
Many thanks,
 
Gavin