on 06-16-2005 10:33 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.