on 11-16-2013 5:48 AM
Hello Gurus,
I have created a WDA with a table having one field as dropdown and rest 5 fields as textedit. When I am trying to execute the application I am getting the table in display mode also the dropdown option is also not visible in table . Why I am not able to get the table in editable mode also why I am not getting my dropdown option which I have selected and binded in my view.
Also I don't have any data in table.And I am using dropdown by index.
Thanks
Gaurav Gautam
Hello Gaurav,
Create a supply function method for drop-down node to fill attributes for filling the values in the drop down at initial time.
For reference,refer the following link : http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c03227f9-e48f-2c10-4bad-8ebdec704...
HTH.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gaurav,
"Also I don't have any data in table."
What you are seeing displayed is an empty Table (a Table with no rows). Write a supply function for the Table's dataSource node to append some initial rows to the Table. For example...
method supply_mynode.
data lt_mynode type wd_this->elements_mynode.
* Populate the node with empty rows ready for input
do 10 times.
append initial line to lt_mynode.
enddo.
node->bind_table(
new_items = lt_mynode
set_initial_elements = abap_true ).
endmethod.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
As per your screen shot, it seems no data is there in the table. Probably the screen is to insert new entries. So as already replied, you can add initial data and make the editable property for drop down as as checked. Also, you need to attach the list of values to the drop down by some approach say with domain values.
.
In run time, the drop down will come with list of required values.
Let me know if you need more information on this topic.
- Thanks , Somnath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If there is no values in table(no rows) then by default it will be in display mode so append some rows with initial values to table and bind it to node.
Regards,
Sreenivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This Read-only property should not check if you want to see it's in editable mode..
You can bind this property with some attribute also so run time you can change the read-only to editable or vice versa..
for more : DropDownByIndex (SAP Library - Web Dynpro for ABAP)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Drop-down option only visible in editable mode. Please the check the property of all UI element(textview,textedit and drop-down), they are not checked as read only.
IF all fine, means read only property of drop-down is not checked, then your drop-down symbol will come with a input field(looks like). Its not depends on the data, even if the data is not there, drop-down will come with empty value set.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.