cancel
Showing results for 
Search instead for 
Did you mean: 

3 QUERIES IN THE WEBDYNPRO

Former Member
0 Kudos

Hi all

i have 3 queries

1) How to create sessions in the webdynpro applications?

2) if we run the webdynpro application, at the runtime

how it run internally how it will be executed

3) sum of two numbers , how can we done this sample application in the webdynpro,please tell the steps how to do this example

regards

Sunil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sunil,

On your second question on how things are being executed in the backend

For the sequence of execution of events see the beautiful description given by Ravi

Hope this helps you

Regards

Rohit

Message was edited by: Rohit Radhakrishnan

Answers (6)

Answers (6)

arun_srinivasan
Contributor
0 Kudos

hi sunil,

For session in webdynpro check this thread

and this link too

http://help.sap.com/saphelp_webas630/helpdata/en/61/e176cb3fd64848966ecb58f8eecba2/content.htm

hope this help u better,

Regards,

Arun.

Former Member
0 Kudos

Hi sumil,

<b>The order of execution interanllytakes place as follows:</b>

1)<b>DEBUG</b> -- Information only valuable for developers to analyze the internal status of a program.

2)<b>PATH</b> -- Information for developers and support engineers to understand the execution flow of a program. entering() and exiting() as well as throwing() and catching() method calls will supply their information on this severity level.

3)<b>INFO</b> -- Informational text to record information valuable for support engineers and developers to understand and trace the business logic, for example, business document numbers, status changes and so on.

4)<b>ERROR</b> -- Uncorrectable error conditions in program execution, which terminate the current application without fulfilling the desired task. The application remains usable afterwards. assertion() method calls may be used to test a Boolean expression and stop with an error if it is not fulfilled. Also technical context information in exception handling situations must use severity ERROR.

Hope this helps u,

Regards,

Nagarajan.

arun_srinivasan
Contributor
0 Kudos

hi sunil,

This link contains what r think can developed by webdynpro.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web dynpro tutorial and sample applications.faq

Then u check out the help.sap.com/nw04 for further.

first of all study about netweaver.

This is question 2

how to bulid webdynpro application

http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/how to build a web dynpro application.pdf

Web Dynpro V/s other web technologis

Check this first http://www.sappro.com/downloads/OptionComparison.pdf

And some material about dynpro itself and comparison of different available technologies:

http://help.sap.com/saphelp_nw04/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm

http://help.sap.com/saphelp_nw04s/helpdata/en/bd/48fc3f8fc2c542e10000000a1550b0/frameset.htm

/people/thomas.jung3/blog/2005/10/02/sap-teched-2005-boston-a-look-back

for the question 3

adding two nos:

create two textview ,input field and a button.create a two value attribute of type integer and map to the two inputfield and create a textview for o/p and create a value attribute of type result and bind to textview.

in the eventhandler of the button

OnactionButtoneventhandler()

{

int a=wdcontext.currentcontextelement.getvalueattribute1();

int b=wdcontext.currentcontextelement.getvalueattribute();

int c=a+b;

wdcontext.currentcontextelement.setresult(c);

}

hope this helps u,

regards,

Arun

Former Member
0 Kudos

hi sunil

3) sum of two numbers , how can we done this sample application in the webdynpro,please tell the steps how to do this example

go to this link this gives a number of tutorials about webdynpro

https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-d...

tutorials on

Creating Your First Web Dynpro Application (1)

Context Mapping

Action Event Handler

Data Binding

and on ui elements like inputfield and button might be useful to you.

regards

saravana

Former Member
0 Kudos

<i>3) sum of two numbers , how can we done this sample application in the webdynpro,please tell the steps how to do this example</i>

A simple way can be: create two input fields, one text view and a button. bind the input field to the attributes ( create corresponding context attributes to those input fields )

In implementation u may write a simple java code to add those variables under "onaction button".

bind the result in text view to display.

Former Member
0 Kudos

Hi sunil,

<b>For adding two nos:</b>

1) create two input boxes, textview and a button.

2)bind the input prop. to two sep context att and change the type of it o integer,also the text view att to integer..

3)say u have binded to no1 and no2 to i/p 1 and 2 and text view to result.

In ur implementation

OnactionButton()

{

int a=wdcontext.currentcontextelement.getno1();

int b=wdcontext.currentcontextelement.getno2();

int c=a+b;

wdcontext.currentcontextelement.setresult(c);

}

Hope this helps u,

Regards,

Nagarajan.

Former Member
0 Kudos

Hi Nagarajan

now i created the two input fields

one textview for resultant value

and one button

then tell me clearly where we change context attr

Regards

sunil

arun_srinivasan
Contributor
0 Kudos

hi

create the value attribute in context tab. The default type is string. right click the value attribute and select properties and change string to integer.

in the layout tab u have inputfield select that and right click and select properties (or in the outline view select that particular input field and right click and go the properties) and there u have "value" select the dotted button and dialog will open and select the corresponding value attribute.

hope this helps,

Regards,

Arun

arun_srinivasan
Contributor
0 Kudos

hi,

create 2 input field and three text view and a button

1)textview1 -In the property tab.set the "text" to this enter first value

2)inputfield1 -map this to valueattribute 1 of type integer

3)textview2- In the property tab.set the "text" to this ex:enter first value

4)inputfield2 -map this to valueattribute2 of type integer

3)textview- map this to valueattribute result of type integer

u create contextattribute in the context tab.

create the action name and text in the property view for the button.

go to implementation and enter button action (as mentioned in previous post)

First study this tutorial it will clear all ur doubts

it explains u about

*Create a project for a Web Dynpro application and its associated development objects

*Create views and define a navigation scheme for the application

*Create actions for the views and implement simple event handlers

*Design a simple view layout

*Define data binding for UI elements using context attributes

*Deploy and run a Web Dynpro application

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/a-c/creating your first web dynpro application.pdf

And clear all ur doubt and gives good idea on the context mapping and data binding

hope this help u better,

Regards,

Arun