on 03-13-2007 9:09 AM
When i add a new row in ALV in webdynpro, i need some columns to have some default values. I am using the standard functionality of ALV in webdynpro to append rows (that is by setting the set_editable property to abap_true). Could someone tell how i can achieve this.
regards,
Priyank
Hi Priyank,
I think you can set default values in the context which is bind to the ALV.
In each context's attribute you can set his default value.
When you will insert a new row it will be take this defaults values.
Regards,
Juan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Juan,
thanks for the reply,
What i need is slightly different. When i append new rows, the new row should have default values based on the last row in the grid. For example, there are start dates and end dates in the grid, for the new row, the start date should be one day after the end date in the preceding row. Could you tell me how i can achieve this.
regards,
Priyank
Hi Priyank,
In this case you will need to write your own method to insert row/append row.. and will have to capture it using On_Function event handler .. I would suggest you insert you own button dynamically and then call the appropriate method which would default the value you desire based on the condition you desire ..
Regards,
Anoop
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.