Forum Discussion

fc's avatar
fc
New Contributor III
2 years ago

Retrieve POV member from XFBR rule in a cube view

Hi everyone!

I'm currently building a linked cube view that will inherit the Entity and IC members from the original cube view from which it is called.

The IC member, though, will need to go through a transformation (remove the last 3 digits) so I created a XFBR rule to do so.

For example, if the Entity member will be 1010TRW, the IC will be 1010.

I tried to call the XFBR rule in the POV but when I launch it it returns the following error:

"Index and length must refer to a location within the string."

 

Am I missing something?

Below you can find a screenshot of the POV of the linked CV

Thank you in advance!

3 Replies

  • JackLacava's avatar
    JackLacava
    Community Manager

    Er, I think you meant to post the actual XFBR code, surely...? 😊 The error comes from that.

  • Hi Fc,

    Also it'd seem that there's no input on the function so when you delete the last 3 chars, there's an issue with the index. Could you share the code?

    Also You can check that the navigation links on the main CV have the same names as those that you call in the image. 

    Best regards

  • fc's avatar
    fc
    New Contributor III

    Sorry for the late response

    The error indeed came from the XFBR code, now it works fine

    Thank you both!