on 05-29-2008 3:34 PM
Hi,
There is a chance of having a cell editable a column, depending on the value possessing a record of a WebDynpro table?
Depending the value of the internal table this cell has to be editable or not.
Example:
if table-value is 01 then the cell has to be not editable.
if table-value is 02 then the cell has to be editable.
Thanks,
Matías.
Hi,
While configuring the ALV, I assume you would have defined a cell editor for the required column say of type InputField.
You would have created the input field reference object of class CL_WD_INPUT_FIELD.
Additionally, define a context attribute say ATTR1 of type WDY_BOOLEAN. You now need to bind the 'Read only' or 'Enabled' property as required to the attribute ATTR1, so that you can directly manipulate this attribute, when you want to change the above property of the UI element. To do this use the BIND_ENABLED or BIND_READ_ONLY methods of class CL_WD_INPUT_FIELD.
Hope this helps
Regards
Wenonah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matias,
Have a look at [this thread |; in which I have given the complete code to solve your problem. There is one post which explains how to set the cell editor, and one more post explains setting the cell as editable or read only.
The gist of the thread is that you need to bind the read_only property of your node attribute to another attribute (say FLD_READ_ONLY) in the same context node. And based on the value in attribute FLD_READ_ONLY, the cell property would be changed. Define this attribute of type char01. So if your internal table has 01, set X in the attribute, and if it has 02, set space. So values with 01 will be read only and values with 02 will be editable.
I hope that would be clear enough. Please revert for any clarifications.
Regards,
Nithya
Hi,
Please go through the below Links :
/people/sap.user72/blog/2006/01/09/wda--user-defined-functions-in-alv
Regards,
Prakash.
Edited by: Surya Prakash Veera on May 29, 2008 8:04 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Take a look at the web dynpro component WDR_TEST_TABLE .
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.