cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to access component cotroller from view

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member201361
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member185086
Active Contributor
0 Kudos

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