cancel
Showing results for 
Search instead for 
Did you mean: 

how can we call one component in another component ,when we click on a input field

former_member223446
Active Participant
0 Kudos

Hi,

I have some critical requirement.I have resource id  input field on my screen,when click on that field ,I can check the resource availability(availability logic will handled in another component).so, that component come as popup screen.in that screen I can do my manipulations and enter...now..resource id value will display on resource input field.

how to achieve this.or is there any alternative easy approachable,please suggest me.

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hello Kiran,

Declare the WDC which you want to use as a popup as a resusable component inside the first one.

You can create a view container inside the view and bind the reusable WDC view from that VC.

Thanks,

Varuna

Former Member
0 Kudos

Hi kiran,

you can use the freely programmed search help for your requirement.

Freely programmed search help is used when we need to get the other web dynpro component in the f4 help.

Please find the below link you can follow the step by step you will meet your requirement:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50fd6096-a4b6-2d10-bfa8-bbd9001e0...

which is the easiest way..

Hope it is useful..

Thanks & Regards

@Surendra@

Former Member
0 Kudos

Hi Kiran,

You can use fragments or dialog box which u can attach to resource id field.. onchange of resourceid field u can open popup as fragments do ur logic.. it will be easy i feel.

Former Member
0 Kudos

u can use this function to open a popup..in that popup u can implement ur functionality..

u can refer this SAPUI5 Explored

openDialog: function() {
// associate controller with the fragment
this.oPersonalizationDialog = sap.ui.xmlfragment("com.unisys.uu.fragment.ParticipantEditDialog", this);
this.getView().addDependent(this.oPersonalizationDialog);

// toggle compact style
jQuery.sap.syncStyleClass("sapUiSizeCompact", this.getView(), this.oPersonalizationDialog);
this.oPersonalizationDialog.open();
},
former_member223446
Active Participant
0 Kudos

Hi Krishna,

could you please tell me how to use fragments..i don't have any idea..my requirment is to get a WDA component as pop up.

Regards,

Kiran