on 05-17-2013 8:51 AM
Hello Experts,
I took a node (0-n) with some fields. i get the data into this node through a table.
In the view layout, i created a Table UI element , on clicking context button i choose that node and made standard cell editor as InputField.
But, once i execute the application i see the table in display mode only.
( But, I can get that table in editable mode if choose cell editor table colum as textedit under context button. )
Please suggest..
Thanks in advance
RK
Hi RK
If You want values into table at run time without any action, in the table column in edit mode means you need to initalize the values in doint method .
or
if it is you are getting values into the table after clicking on any action ,then that time you will get that column in edit mode .
without records in the context node the table will be in non edit mode only .
Regards
Deepika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi RK,
What you are asking for is not possible. The cell appears to be editable nly for the elements of context. If you have 5 elements in your context node then 5 rows appear to be editable.
Those part of table which you are asking to be editable is not possible as they are not part of your context. Remove display empty rows check box option from the table UI element and you ll never see those rows.
Still if you want the bottom rows to be appear editable then append empty rows to the context node.
Best Regards,
Arun Krishnamoorthy
Hi RK,
For that you append some empty records to your internal table that you are binding.
For example :
Let lt_table be the internal table with data that you are binding using bind_table() method.
Before binding it to the node
clear ls_table. ( structure of line type lt_table).
append ls_table to lt_table.
lo_nd->bind_table ( lt_table).
See if this helps.
Hi RK,
From your screenshot you can see that the row 3 and row 4 of the table cannot be selected as there is no lead selection set
If you want these two rows as editable you need to bind the table with empty rows.
Regards,
SK.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear RK,
Use the bind_table() method of node with an internal table with empty rows. in doinit() method then you will get the table with inputfield as editable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear RK,
If there is no entry in the table then it will be in display mode only.
OR
And If data is availabe then you need to check and change element from text view to input/output field.
OR
You can code in WDDOINIT method to create empty rows to display table data.
OR
You can write code in on event of button click..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
I am getting table as Editable only for the existing Records.
But i need remaining empty rows should also displayed as Editable (input fields). Is it possible ?
[ Ex : If the data base table is having 3 records, and at the view level webdynpro table the
visible row count is 5, then the existing 3 records are only displayed as editable the remaining 2 rows are in display mode. ]
My requirement is to add the records there and then itself in the editable mode of table , and modify
in the table once submit button is saved.
Hope you understand the issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi RK,
One of the reason can be that you have not checked the enable check box of the TABLE UI element. the following link can be helpful for understanding the table UI a bit better.
regards,
narayan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi RK,
The default cell editor the table UI element will be text view. You may need to change the type of cell editor you want the table to display with above mentioned steps by krishna reddy.
The input field does not appear if the context node you have binded to the table is initial.
Go through the following link for creating table with input field UI element.
http://webdynproabap.wordpress.com/2012/07/16/table-with-input-field/
Best Regards,
Arun Krishnamoorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi RK,
Go to Rootuielementcontainer->select your table->rightclick->create binding->now change standard cell editor from text view to input field.
You will get input enable after executing if data available.
Or at initial you want to create empty rows write code in wddoinit method to display table with empty rows. Or you can add rows on button action.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.