Forum Discussion
marcobobbiesi
3 years agoNew Contributor III
How to call a function in Workspace assemblies?
Hi guys, I coudn't find the proper hint in OneStream. In my dashboards, I'm using several XFBR string rules or Dashboard extender rules. I would like to move some of them to Workspace assemblies, a...
- 3 years ago
Use the following syntax instead of just RuleName,
Workspace.<WorkspaceName>.<AssembleName>.<RuleName>
Example-XFBR(Workspace.MyWorkspace.MyAssembly.ParamHelper, CleanUsername) - 3 years ago
Try this: XFBR(Workspace.Current.MyAssembly.FileName, FunctionName)
marcobobbiesi
3 years agoNew Contributor III
Hi hiren,
thanks a lot for the hint. But actually it does not work with me, I've also tried with a simpler case creating a dashboard extender and logging a fixed message just to see whether the rule is call and apparently it's not called at all. I've used Default as workspace, the name of my asembly (XICO_Folder) and the fileName (FolderMgmt), tried with and without .vb and even renaming it without vb) and nothing is fired.
XFBR(Default.XICO_Folder.FolderMgmt, CleanUsername)
But I understand this is working on your side, isn't it? is there any pre-requisite, like making the assembly/folder/file visibile? I really can't find documentation or examples about it and such a small thing is driving me crazy.
SStalker
OneStream Employee
3 years ago
Try this: XFBR(Workspace.Current.MyAssembly.FileName, FunctionName)
- marcobobbiesi3 years agoNew Contributor III
Guys,
thank you again, thank you soo much!! This is now working. I've just missed the workspace-dot, stupid me.
There's one curiosity I have. I did not manage to have it working if I keep the ".vb" extension in the filename. I don't mind about it at all and I'm happy to rename the file without any extension, but am I doing something wrong or do you share the same "issue"?