cancel
Showing results for 
Search instead for 
Did you mean: 

Need samples how to use classes in WebDynpro

Former Member
0 Kudos

Hi,

I Need To simple Samples how to use classes in WebDynpro.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member201361
Active Contributor
0 Kudos

hi,

U can have the Java Classes in the Src -- packages in the web dynpro component .

Finally in the controller classes u can instantiate the class and throught the object of the class , invoke the methods present in the Class.

If u need the Sample i think u can refer the table filter and the table sorter class.

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5439] [original link is broken] [original link is broken] [original link is broken];

Thanks and regards

Fazal

Answers (4)

Answers (4)

former_member201361
Active Contributor
0 Kudos

Hi,

If u need to import the Model Classes to the Component , then import the model classes , and finally instantiate the model classes and execute the class .for more infromation u can follow this link.(please be more specific with ur requirements )

[http://help.sap.com/saphelp_nw04/helpdata/en/7a/74d43fb9490e65e10000000a114b1d/frameset.htm]

Thanks and Regards

fazal

lokesh_kamana
Active Contributor
0 Kudos

Continued....

and in the model

right click->create model

select the radio button import java bean .

next ADD jars option will be seen

Browse the jar on the dekstop.

now add this model to the used models by right clicking on it.

Now if you go to Data Modeler.

You will find the used model.

From there map to the component controller->view Controller.

And continue with ur coding.

Hope this helps you.

Thanks & Regards,

Lokesh.

lokesh_kamana
Active Contributor
0 Kudos

Hi,

if you want to crete the class file and use it in your web dynpro project there are 2 ways.

1st and the simple way is

File->New->Other

a window will be opened select javain the left

and calss in the right.

Another window will be displayed

source Folder select the wd project.

and give the package

And go to the navigator explorer u can fing the class file.

How to use is you crae a class file with some getter methods & setter methods.

And make it a jar and keep it on the desktop.

Former Member
0 Kudos

Hi,

Refer this ..

[original link is broken]

https://help.sap.com/javadocs/NW04s/current/wd/allclasses-noframe.html

GS

Edited by: Sathishkumar GS on May 8, 2008 12:00 PM