Skip to main content
1-Visitor
August 29, 2016
Solved

Binding widget according to my expression

  • August 29, 2016
  • 2 replies
  • 1498 views

Is it possible to bind a widget to a service according to a certain expression?
For exampleI have a boolean:

if myBool = true

bind grid to serviceA

else

bind grid to serviceB

Best answer by CarlesColl

Hi Fabio,

Not this way. But you can:

  • If you want exactly the same grid configuration ( same columns,... 😞 Have a service which calls ServiceA or ServiceB depending on myBool value as a parameterS
  • If grids should be different: Have two grids, and show/hide one or the other depending on the myBool

Best Regards,

2 replies

1-Visitor
August 29, 2016

Hi Fabio,

Not this way. But you can:

  • If you want exactly the same grid configuration ( same columns,... 😞 Have a service which calls ServiceA or ServiceB depending on myBool value as a parameterS
  • If grids should be different: Have two grids, and show/hide one or the other depending on the myBool

Best Regards,

fmanniti1-VisitorAuthor
1-Visitor
August 29, 2016

First solution works fine. Thank you