dd by key & dd by index

18
7/27/2019 DD by Key & DD by Index http://slidepdf.com/reader/full/dd-by-key-dd-by-index 1/18 Drop Down By Key Uncategorized  July 8, 2012 The drop down by Key UI element provides the list of values from the domain fixed values. The cardinality is 1..1 and type of the attribute to which the UI element is binded must have fixed domain values. In the above screen I have binded the drop down by key UI element to the attribute of type BSTYP and the drop down UI element lists all the fixed domain values of the BSTYP. Note : With the drop down by key UI element we can only have only fixed domain values and if we need some more option we need to include it in the dictionary domain level only. If the drop down by Key UI element is binded to a cell editor of a table UI element the drop down can have only fixed values for all the row item where as the drop down list can be different for each row in drop down by index. Now let us see an simple example where I am going to set a drop down by key then read and display the value selected. Step 1 : Go to SE80 Tcode and create a webdynpro component.

Upload: srilu12

Post on 14-Apr-2018

272 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DD by Key & DD by Index

7/27/2019 DD by Key & DD by Index

http://slidepdf.com/reader/full/dd-by-key-dd-by-index 1/18

Drop Down By KeyUncategorized July 8, 2012 

The drop down by Key UI element provides the list of values from the domain fixed values. The cardinality is 1..1 and

type of the attribute to which the UI element is binded must have fixed domain values.

In the above screen I have binded the drop down by key UI element to the attribute of type BSTYP and the drop

down UI element lists all the fixed domain values of the BSTYP.

Note : With the drop down by key UI element we can only have only fixed domain values and if we need some more

option we need to include it in the dictionary domain level only.

If the drop down by Key UI element is binded to a cell editor of a table UI element the drop down can have only

fixed values for all the row item where as the drop down list can be different for each row in drop down by index.

Now let us see an simple example where I am going to set a drop down by key then read and display the value

selected.

Step 1 : Go to SE80 Tcode and create a webdynpro component.

Page 2: DD by Key & DD by Index

7/27/2019 DD by Key & DD by Index

http://slidepdf.com/reader/full/dd-by-key-dd-by-index 2/18

Page 3: DD by Key & DD by Index

7/27/2019 DD by Key & DD by Index

http://slidepdf.com/reader/full/dd-by-key-dd-by-index 3/18

Page 5: DD by Key & DD by Index

7/27/2019 DD by Key & DD by Index

http://slidepdf.com/reader/full/dd-by-key-dd-by-index 5/18

Page 7: DD by Key & DD by Index

7/27/2019 DD by Key & DD by Index

http://slidepdf.com/reader/full/dd-by-key-dd-by-index 7/18

Insert a text view UI element and bind the text property of the UI element to the attribute text.

Binding the property text of text view to the attribute text.

Step 4 : Do the following in the event handler method for the drop down.

Page 9: DD by Key & DD by Index

7/27/2019 DD by Key & DD by Index

http://slidepdf.com/reader/full/dd-by-key-dd-by-index 9/18

Page 11: DD by Key & DD by Index

7/27/2019 DD by Key & DD by Index

http://slidepdf.com/reader/full/dd-by-key-dd-by-index 11/18

Page 12: DD by Key & DD by Index

7/27/2019 DD by Key & DD by Index

http://slidepdf.com/reader/full/dd-by-key-dd-by-index 12/18

 

 Add an attribute text to the context node drop.

Create one more attribute in the root context node to be binded to the text view.

Page 13: DD by Key & DD by Index

7/27/2019 DD by Key & DD by Index

http://slidepdf.com/reader/full/dd-by-key-dd-by-index 13/18

Page 14: DD by Key & DD by Index

7/27/2019 DD by Key & DD by Index

http://slidepdf.com/reader/full/dd-by-key-dd-by-index 14/18

 

Bind the binding text property of the UI element drop down to the text attribute of context node drop.

Create an event handler method for the drop down.

Page 15: DD by Key & DD by Index

7/27/2019 DD by Key & DD by Index

http://slidepdf.com/reader/full/dd-by-key-dd-by-index 15/18

Page 17: DD by Key & DD by Index

7/27/2019 DD by Key & DD by Index

http://slidepdf.com/reader/full/dd-by-key-dd-by-index 17/18