cancel
Showing results for 
Search instead for 
Did you mean: 

Why Attributes in context mapping not permitted

former_member187570
Participant
0 Kudos

Hi All,

Whenever we are trying for context mapping from controller context to View context only NODE-NODE mapping is permitted where as when attempt is made to map ATTRIBUTE-ATTRIBUTE it does not work.

Can anyone throw some light on this.

Regards,

Sourya Prakash

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

To make it more clear..

If You want to define mapping for the attribute . This is currently not supported in webdynpro.And Mapping can only be defined between nodes but not attributes.

Thanks

KH

Answers (3)

Answers (3)

former_member222068
Active Participant
0 Kudos

Hi Chaudhury,

This is framework limitation.

In Web Dynpro ABAP, we dont have option of defining mapping between ATTRIBUTES, but where as in Web Dynpro JAVA, Mapping is possible between attributes.

Thanks & Regards,

Sankar Gelivi

Former Member
0 Kudos

Hi,

When you define the mapping of context attributes in Web Dynpro tools, you have to distinguish between the following two cases:

  1. Mapping top-level attributes (below the root node): Only one context attribute of the context root node is mapped to any attribute in the original context.
  2. Mapping attributes in context nodes: In addition to the mapping definition for a context attribute, there must also be a mapping definition to which the context attribute belongs. The original attribute OA does not necessarily have to belong to the context node ON to which the MN node is mapped. This is known as deep attribute mapping. To determine the value in the context attribute OA, starting with original node ON, the respective lead selection of the underlying node is processed until the node element that belongs to attribute OA is reached.

Thanks

KH

former_member187570
Participant
0 Kudos

Hi Hawkins,

The example seems a bit complex. can you please explain it a bit simpler with example.

I appreciate your help.

Regards,

Sourya Prakash

Former Member
0 Kudos

Hi,

Is your issue resolved or do you need any further explanation?

Thanks

KH

ramakrishnappa
Active Contributor
0 Kudos

Hi Prakash,

The context mapping is only permitted between nodes but context mapping of root node CONTEXT is also not possible.

Also, the context mapping of attributes is not supported as attributes alone cannot exist as these should be inside a node always.

Regards,

Rama

former_member187570
Participant
0 Kudos

Hi Ramakrishna,

We can have attributes exist stand alone without having to be inside the node.

We can have Node    inside Node

                 Attributes inside Node

Please suggest!

Regards,

Sourya Prakash

ramakrishnappa
Active Contributor
0 Kudos

Hi Prakash,

As I told, attributes cannot exist stand alone. if you think that creating an attribute directly under CONTEXT, brings you to believe attributes exist stand alone. Then its not so. Because, CONTEXT itself a node i.e. root node

Regards,

Rama