on 09-05-2005 3:23 PM
Hi experts,
in my webdynpro application with adaptive RFC Model the generated simple types (model) get the fieldlabel information from MEDIUM field label of R/3 data element.
Is it possible to change the model generation get the LONG field label of backend data element?
Thanks in advance
Carsten Rolf
Hi Rolf,
you can change it within the layout editior of your view by clicking on the corresponding label (e.g. LABEL_FOR_FIELD_1) and then click on the binding for the 'text' property. There you can define the Context attribute to be bound and the Type (Medium, Long,...) manually.
Regards,
Ralf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ralf,
thanks for your answer. I'm using Web Dynpro Java with NW04 SP12 and can not find the type selection. Must I build this context element with content for the fieldlabel by myself?
The model generation created a simple type representation with attribute field label. This field label attribute got its content from medium field label of the corresponding R/3 data element. If i have an input field FIELDA of this simple type, the corresponding label gets its text automatically when I set the 'labelFor' property to FIELDA.
Regards,
Carsten
Carsten,
There are only 2 options:
1. Set label text / column header text directly (corresponding UI controls has necessary properties, that was suggested in previous post)
2. Use the following code:
final ISimpleTypeModifiable stype =
wdContext.nodeYourRfcNode().getNodeInfo()
.getAttribute("YourModelClassProperty")
.getModifiableSimpleType();
stype.setFieldLabel( "My text" );
/* or */
stype.setFieldLabel( stype.getQuickInfo() );
Valery Silaev
EPAM Systems
Hi Carsten,
(sorry for the wrong greetings in my last post
I was worried about that you are using Web Dynpro Java and that it is not fully comparable from the context building perspective to the Web Dynpro ABAP.
I am sorry but I do not have any experience with the WD Java.
I just can tell you how it works in the ABAP environment. There you need to create the content ( for ABAP the property 'text' ) binding for the field label explicitly if you want to use other field labels (Default is medium as well in ABAP).
Hope this will help you a bit.
Regards,
Ralf
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.