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