cancel
Showing results for 
Search instead for 
Did you mean: 

Import JavaBean Model

Former Member
0 Kudos

Hi, I made Java class

public class Example {

private String name;

private String lname;

public String getName() {

return name;

}

public String getLname() {

return lname;

}

public void setName(String string) {

name = string;

}

public void setLname(String string) {

lname = string;

}

}

and import to WebDynpro throw Model->Create Model->Import JavaBean Model.

Everything works fine. In view I can apply template to get Table and Form.

But, can I make some function in the class to automatically fill data in Table (in view). Something like Import Adaptive RFC Function and Apply Template -> Action Button?

Thank you,

Vedran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can do the following.

1. Write a method in your bean that will return a Collection of "Example" objects.

2. Use this method in theinit method of the view and Iterate through the collection and fill the context in the view.

This should solve your problem

Regards, Anilkumar

Former Member
0 Kudos

Thank you Anilkumar,

I put function with Collection (Vector) as output parameter and fill table in controller

Former Member
0 Kudos

hi Vedran,

I have searched and read forums and weblogs related to import javabean model.

But I am not clear about how to use complex data types like ArrayList, Collection etc in my java bean.

If I use these complex datatypes in my bean, when creating model in WDF it displays the Complex data elements in Model Relation. I dont know how to use this model relation in my WD project.

Can u please explain the step by step solution about using complex data type(used in Bean) in WebDynpro Project.If possible pls send me a sample project.

Thanks in advance.

Krishna Kumar

Answers (0)