cancel
Showing results for 
Search instead for 
Did you mean: 

What is the difference between Value attribute and Model attribute?

Former Member
0 Kudos

Hi

i had a doubt in the following question.pls anybody can resolve it?

Accepted Solutions (0)

Answers (6)

Answers (6)

0 Kudos

hi,

if we want to show a field which is from database reference then we add model attribute.

if we want to show a field which is not from database reference then we add value attribute.

if you add model attribute no need to write code at get and set the data,but in case of value attribute you have to write a code.

Former Member
0 Kudos

We generally store data comming from any backend sysyten in a model context. This modle context sould have ,odel nodes/attributes

Whereas the attributes/nodes in custom controller, interface controller and view controller which does not hold the data directly comming from any backend system are known as value nodes/attributes.

sureshmandalapu6
Active Contributor
0 Kudos

Hi Nagasrinivas,

Value Attributes:

These attributes are created by you at View controler or Component controler contexts. The pupose would be basically for fulfilling the temporory requirements of your application. These attributes depends on model attributes. We used to display value attributes based on some calculations whicha re coming from the model attributes.

Model Attributes:

These attributes are the attributes coming from either bapi or webservice depends on the model u have. Whatever the result you are getting from BAPI those result would be converted in the form of model attrubutes and displayed in your controlers. These are the attributes we mapped from model to component and componet to view controlers.

Thanks

Suresh

Former Member
0 Kudos

hi,

Please refers the following Link

Here web Dynpro data flow.

http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/presentations/14-Web_Dynpro_dataflow.ppt#....

Thanks.

Abhilasha

Former Member
0 Kudos

Hi,

When u r getting data from backend system say r/3 u need to use Model attribute.It holds the structures coming from a function module.Value attribute can be used to hold the application data at runtime.

Regards,

Srikanth Reddy.T

Former Member
0 Kudos

Hi,

A value attribute holds the data at runtime

where as a model attribute holds the references to the model objects (the actual data is stored in the model objects).

A model attribute does not hold the actual data at runtime.

Regards,

Satya.