After opening the custom control in IBM Domino Designer, how should Jenna pass the data source object handle "document2" from the XPage to the custom control?

Jenna is working on an XPage with multiple data sources which are document1, document2, view2, and view1. The XPage needs a new custom control that needs access to data source document2 from the XPage.

After opening the custom control in IBM Domino Designer, how should Jenna pass the data source object handle "document2" from the XPage to the custom control?
A . In the Resources tab section in the Properties tab, choose "Create a Data source" and select the form that document2 is using in the XPage.
B . On the Property Definition tab, create a new property definition and for the Type, select "string". In the XPage, select the custom control, thengo to the Custom Properties section and type in "document2.View;".
C . On the Property Definition tab, create a new property definition and for the Type, select "dataInterface" from the complex types. In the XPage,select the custom control, then go to the Custom Properties section, click the Computed Property Icon and type in "return document2;".
D . On the Property Definition tab, create a new property definition and for the Type, select "Domino Document" from the complex types. In theXPage, select the custom control, then go to the Custom Properties section, click the the Computed Property Icon and type in"getComponent (document2′).getValue();".

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments