Forum Discussion

FabioG's avatar
FabioG
Contributor II
25 days ago

Dynamic Parameter on Bound List

Hi all,

I'm trying to pass a Dynamic Parameter (from a repeater) to dynamically build the Bound List of a Combo.

While (for example) ~!Text!~ and ~!Tooltip!~ params do correctly populate Text and Tooltip properties of a Combo, I'm not able to pass a Dynamic Parameter (eg: ~!DisplayMember!~ to the param (Bound List) beyond the Combo. It's not translated into its actual value.

Since the repeater is Dynamic, and the number of repetitions is variable (unknown at design time), I'm wondering how would be possible to parametrize a single Bound List Parameter, without having to duplicate it 10 times (limiting de facto the power of dynamic components).

TIA

Regards

FabioG

3 Replies

  • sameburn's avatar
    sameburn
    Icon for OneStream Employee rankOneStream Employee

    Hi FabioG​  

    Have you tried passing the template parameter using pipes and exclamation marks e.g. |!~!DisplayMember!~!|?

    Otherwise it might help if you walk through your actual setup example. I'm pretty confident it is possible but I'm not quite following your setup.

    Sam

  • FabioG's avatar
    FabioG
    Contributor II

    Hi sameburn​ 

    this way You would dynamically build the parameter's name, instead I want to inject the ~!DisplayMember!~ value into the "Method Query" of my parameter.

    Ciao - FabioG

    • sameburn's avatar
      sameburn
      Icon for OneStream Employee rankOneStream Employee

      ok have you tried this something like this and picking up the value in your rule?  If a method query you can run these from inside DataSet Service you can actually log and see the values you pass into the method this way

      {WS}{YourMethodName}{DisplayMember=~!DisplayMember!~}

      Otherwise still not too clear what your setup is.  So can't really help further at this stage,