cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to transfer a class object to another web dynpro application

Former Member
0 Kudos

Is it possible to transfer a class object from one web dynpro application to another web dynpro application ?

Best regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member182190
Active Participant
0 Kudos

Hi,

If you mean passing a class object from one WD component to another, then yes you can do it.

Assume you have 2 Wd components WD1 and WD2.

If you want to pass an object frm WD1 to WD2.

1) First declare WD2 as used component in WD1.

2) Create a method with input parameter of type ref to the class in WD2.

3) call the method of WD2 in WD1 at the point where you want to pass the class object.

Hope this answers your query.

Regards,

Ismail.

Former Member
0 Kudos

hi,

In my Web dynpro application , I need to invoke another web dynpro application , can I transfer class object in such circumstance ?

Best regards ,

former_member182190
Active Participant
0 Kudos

Hi,

Yes you can do it.

To invoke the other WD application from your first application.. you would be calling

some method of the other WD application component .

To make it more clear let me put it in an example

Assume you hav ur first application showing some data

now u click on some button on the first application now the second application needs to be shown and you want to pass a class object from first application to the second.

The actual thing is data is transfered b/w the components of these applications not the applications themselves.

You can achieve this by the way i have described above in this thread.

Regards,

Ismail.

Former Member
0 Kudos

hi,

I've searched , but I'm still confused . Can you show me an example ?

I don't think it's reasonable to send class between web dynpro application.

Best regards ,

Former Member
0 Kudos

hi,

I've tried that , but it seems does not work . ~~~

Former Member
0 Kudos

Hi

i know two ways to pass one object to different component.

1. when you are using one model class for complete application.

in that case parent application will create the instance of model class and child application must have one interface method like initalize which will accept model class instance. parent component will call this method to pass the object.

2. use one assistance class for both component.

if you want to use one assistance class for both component, while creating the child component, in the method create_component( assistance = wa_assist ).

this will pass parent component assistance instance to child component.

hope this will help you.

Regards

Saurabh Garg

Answers (0)