Author Topic: genesys instantiate dynamic view in wde  (Read 2721 times)

Offline QuentinA

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
genesys instantiate dynamic view in wde
« on: December 14, 2017, 10:23:05 AM »
I come to you because I am facing a problem, a customer (call center) would like to be able to change qualification sheet in case of error of the caller. For this, I have to dynamically activate my views according to the choice of the user via a listbox, despite I do not know how to do. Of course, these views are conditioned according to a data received by the routing, but after receiving the information and the display of the view, I do not understand how to change the active view. The views are well recorded via this.aContainer.RegisterType<IFormulaireViewModel, FormulaireViewModel>();...

Could you enlighten me on the subject or at least let me know if it is possible?

Offline QuentinA

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: genesys instantiate dynamic view in wde
« Reply #1 on: December 18, 2017, 01:43:54 PM »
Hi,
i work on and i find a method :
viewManager.InstantiateDynamicViewInRegion

It works good but if I change the view and i want to return on last view, a exception was return :
{"View with name 'VALUE' already exists in the region."} System.InvalidOperationException

Offline RobertH

  • Jr. Member
  • **
  • Posts: 69
  • Karma: 1
Re: genesys instantiate dynamic view in wde
« Reply #2 on: January 04, 2018, 08:13:24 PM »
[quote author=QuentinA link=topic=10801.msg49123#msg49123 date=1513604634]
Hi,
i work on and i find a method :
viewManager.InstantiateDynamicViewInRegion

It works good but if I change the view and i want to return on last view, a exception was return :
{"View with name 'VALUE' already exists in the region."}System.InvalidOperationException
[/quote]
If you instantiate view, the object is created and you cant instantiate it again akaik.
It is better idea to create view once an show/hide controls inside of view based on selected combo value

Odoslané z D5803 pomocou Tapatalku