on 11-22-2015 4:25 PM
Hi
How can i get the name of the label Element of a certain field?
I have 5 input fields and i need to read the text of the Label. I know how to read the label text when i know the name of the Label element - but in this case i need to find the assigned label from the Input field.
Hi Jakob,
I'm pretty sure you can navigate to the Label object via the following method inherited in the Input Field class (CL_WD_INPUT_FIELD):
GET__LABELLING_ELEMENT
You'll need to get a reference to the Input Field object from the container first and cast it to the class CL_WD_INPUT_FIELD.
The object you get back from GET__LABELLING_ELEMENT should cast to CL_WD_LABEL and from there you can get the text.
Hope this helps.
Regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.