on 07-25-2005 4:39 PM
hi
in my application i have a dropdown list with values list1, list2, list3 and so on
when i select list1, then a Table1 will be displayed with Add,Delete,Modify butons. when we push Add button another form will be displayed and after filling the form the data will be added in the Table1 and the same for modify and delete buttons. Till this step i did using ComponentController binding .it works fine now my doubt is that for one table i used one component controller and what the remaining Table2, Table3 when i select list2, list3.What i performed in the Table1, i need to perform the same operations in Table2, Table3. For this should i go for three Component Controllers and if that is the case how should i map these component controllers
Thanks
shravan
Hi Sravan
You can map one component controller context to n tables. Where do you want all the tables to be displayed. In the same view or in different views.
You can create all the tables during the design time, map to the controllers context and make them visible/invisible during runtime as per your requirement.
Regards
NagaKishore V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sravan
1. Create different nodes with attributes for each table in the controller.
2. Bind the nodes to the tables you want and for each table map a context attribute of type WDVisibility to the visible property of the table and set the value of this attribute to WDVisibility.None
3. On selecting a value from the drop down populate the relavant node and make the visible property of that relevant table to WDVisibility.visible
Let me know if you require any additional help.
Regards
NagaKishore V
hi saravan,
As far as possible use the same component controller for populating values into these tables.Why do you want to create three controllers?
Regards,
Rohit.
Message was edited by: Rohit Radhakrishnan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.