This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.
I have a component with contract template.In that I have all the widgets,labels,textboxes etc .so i need to access this in the actual form view controller and clear the fields. Not able to do so could any one help in this regard.Its visualizer 8.2.24
Thankyou, I think this works with the component without contract.Mine is component with contract so not able to access this way.I have tried this before.
Thankyou. You mean through manage properties ,events,methods from component we will be able to? could you pls tell what exactly configuring contract means.
Component with contract means only those properties/events/methods are exposed that are made pass through.
You are right, this can be done using manage properties ,events,methods.
Here is one sample -
Drop a button to you component, now suppose you want o access its text property -so make it pass through.
Check the screenshot.
**Image removed for security reasons**
Now that we have made it pass through, on the form you can access it by - this.view.mywidget.customTextProperty
Please note that we access by programmatic name (check the screenshot).
Also, individual widgets are not exposed directly in component with contract, instead properties/events/methods that are made pass through are directly available on your component instance in form.
Updated comment above with image. Please check. Also please note this.view.mywidget.customTextProperty will work for mvc projects. For non-mvc you can use formName.mywidget.customTextProperty