Forum Discussion

ghoang's avatar
ghoang
New Contributor III
7 months ago

Using XFBR String Service in WS Assembly

I'm new to WS assembly - trying to get a simple example of setting up an xfbr and use it in a cubeview but not successful. Here's what I did - what did I do wrong?

1. Set up XFBR String Service:

2. Then set up factory: 

3. Then added to my maintenance units & workspace

4. Added to cv:

=> I get this error. Not sure why it is looking for the service factory in default. 

 

 

I followed the design guide, tried all the following syntax, none have worked:

XFBR(Workspace.Reporting.myAssembly.Time, SayHello)

XFBR(Workspace.Current.myAssembly.Time, SayHello)

 

Thank you. 

4 Replies

  • JackLacava's avatar
    JackLacava
    Community Manager

    You are using the syntax for traditional XFBR files inside an assembly, but what you want is the syntax to point to a Service Factory: Workspace.MyWorkspace.MyMaintUnit.WSMU or Workspace.MyWorkspace.WS. 

    This will always be the case when you create a Service, regardless of type: you are targeting a factory, not the service itself.

  • Hi ghoang, 

    I had an issue just yesterday, where an XFBR didn't work with Workspace.Current..... I instead used Workspace.MyWSName..... and it worked.

    Hope that helps!

    Best regards

    Markus

  • ghoang's avatar
    ghoang
    New Contributor III

    I just tried that... still not working. 

    It does work when I call the assembly from a dashboard (e.g. use the xfbr return string as page caption, or use as a label), but it does not work when I call it from the cubeview. 

  • ThorJensen's avatar
    ThorJensen
    New Contributor II

    Hi ghoang

    Did you manage to get this to work? I've also had the issue when running the xfbr through cubeviews. I found that the solution was 2 fold.

    • Refernce xfbr using full workspace = XFBR(Workspace.Reporting.WS, SayHello). You only need to route the xfbr to your service factory and there using .WS correctly routes you here.
    • Making the workspace shared.