cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro - how to add global variables and common proj to existing proj

Former Member
0 Kudos

How to add global variable in either ViewController or CustomController. We realise that codes must be added within the begin and end exction. Codes outside that will be deleted when saved.

How can we add a common WDP project to an existing project? We have actually added a common wdp project at the project references screen. But during runtime, we encouter error. The error is classNotFoundException. The class is the class created in the common project.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I have 2 WebDynPro projects. Project A refers to Project B. In Project B, we implement some common logic that is shared. We can import the class, but during runtime, classNotFoundException is encountered

Former Member
0 Kudos

Are both projects deployed to the server?

Former Member
0 Kudos

yes.. both projects are deployed to the server

Former Member
0 Kudos

Hi.

I think you need to assign ProB to ProA.

Step1.

Open propety of ProjectA.

Step2.

Select WebDynproRefrences

Step3.

Select Sharing references

Step4.

Choose add button.

Step5.

If your projectA named "testapp" and you are not using

DC "local/testapp" is the proper name.

I hope that it work!!!.

Former Member
0 Kudos

Hi,

to declare variables you can use the context or you can put them into the 'others' section you can find at the end of the implementation area...

What kind of project is the "existing project", what kind is the "common WDP project"? Pls clarify.

Rgds

Daniel