Hello,
I'm creating a coachview where I need to declare some options variables but just for internal use of the coach view... The developer that will use the coach view doesn't need to create a variable on it's service just to bind it to the coach view. The problem is that if the developers that's using the coach view doesn't pass a variable, it will be null and some methods will not work.
To simulate the problem is easy.
- Create a coach view (I'll name it as CV_Table_Test)
- On CV_Table_Test, declare a option variable called myTableValues as a NameValuePairList
- On CV_Table_Test go to Layout tab, drag and drop your myTableValues to the layout (it will create a table component).
- On CV_Table_Test, click on the table component, go to Configuration tab and mark the option Show Add button
- Create a Client-Side Human Service (I'll name it as CS_Table) and inside the Coach drag and drop CV_Table_Test.
If you run CS_Table, you'll see the table, but if you click on the plus sign, no new line will be added.
If you create a private variable on CS_Table, initialize it (marking has default option) and bind it to the myTableValue, then run the service, you'll see the when you click on the plus sign, it will add a new line.
I want to have the same behavior, but without create the variable on the Client-Side Human service. I want this because my table will be populated by a service call that's already being called by my coach view.
I've tried to see how internal components work and could see that somethimes they use funcions like:
bpmext.ui.substituteConfigOption or bpmext.ui.substituteObject
...but I haven't success using it.
I really appreciate any help.
Thanks
------------------------------
Ranieri Mazili
------------------------------