on 03-06-2009 6:52 AM
Hi ,
I am trying to develop a local application.
The name of my component is Table and the name of my view is TableView.
From one of the supply functions in TableView , I am trying to call a method (supplyTableData) defined
in component controller.
I am not able to do so.
I guess the code used to call method should be something like this :
wdThis.wdGetTableController().supplyTableData();
But wdThis (of View) doesn't show any method such as wdGetTableController().
Can anyone of you please suggest me as to where I am getting things wrong or any other way
of calling component controller's method.
Regards,
Arvind
Hi Aravind,
Have u created a Datalink between the component and view Controller ?
or Have u added the Component controller as required controller for ur View ?(open the view controller --> properties --> required controllers --> add the component controller).
Thanks and Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arvindj,
As, suggested by Faisal u have to add Comp. controller to you View.
Steps:
1). Open your view Table.
2) Go to property tab.
3) select your controller from list and press ADD.
Now you try the code it will work. Same code you have written.
wdThis.wdGet<controller name>.<function Name>
Thank you
Regards
Abhijeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
1. Go to the tableView Click on property
2.Define uses relationship with add Select your ComContriller
3. Now this code will accessible wdThis.wdGetTableController().supplyTableData();
Note : We have to explicitly Define the Controller uses relationship if we want to use their functionality.
Best Regards
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.