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)
hiren
3 years agoNew Contributor III
Use the following syntax instead of just RuleName,
Workspace.<WorkspaceName>.<AssembleName>.<RuleName>
Example-
XFBR(Workspace.MyWorkspace.MyAssembly.ParamHelper, CleanUsername)
SStalker
OneStream Employee
3 years agoIf the assembly is inside the same workspace you can use "Workspace.Current". Note that you do not need to specify the folder name as you cannot have the same file name i different folders. I'm not sure if it actually blocks you from creating the same file but I'm fairly sure it will fail on compile.
XFBR(Workspace.Current.MyAssembly.FileName, FunctionName)
- hiren3 years agoNew Contributor III
I tried this & thought I would share it here.
You are right, OS does allow creating same file names across different folders (However, It does block creating duplicate filenames in same folder, may be good to have update in future release :D) but fails during compilation due to namespace conflicts,