Drop downs in a table column..... want to populate with different values
Hi experts,
I have drop down in one column of a table.In each row i want to populate different values to the drop down.But since i have binded the drop down with a single node, so all the drop down gets same values.
for example. row1 i want to populate drop doen with value say A,B,C and in row2 i want to populate drop doen with value say D,E,F. But i am getting the values in both drop downs as A,B,C,D,E,F.
The values are coming from backend as a arraylist.
Please help.
Regards
Narendra
HI
I hope you may know the values you want to present in the DropDownByIndex in each row of the Table ,
Are the Values static . if so you may have to catch the index of the Node , remove the
elements that you are not necessary .
When you bind the same node of the RFC to all the dropdown of the tables
then it will show the same data in all DDI as you are getting it from . .
if you want different data then you can make bind different nodes from the RFC or
if you have less amount of values you have present in the DD , i hope you can go with
Simples Types .
Similar Messages
-
Drop down in dynamic table in the Adobe Interactive Form (Web dynpro ABAP)
Hi All,
I have scenario use drop down in dynamic table in the adobe interactive form (Using the button the dynamic table row will be increasing and decreasing).
Assume I Add five rows dynamically in the dynamic table. The Last column contains Drop down.
I have button in the adobe form.
Button Name = u201CSAVEu201D
Button type = SAP Submit button (Native type u2013 I am Using ZCI).
While clicking save button, I need to store the dynamic table datau2019s to back end system. I can able to store the data to back end system. After form data getting saved those particular values need to display in the adobe form.
Here I am facing a problem.
I cannot able to view as a default value in the drop down, which I have selected some values after save operation I am not getting any values in the drop down as a default.
Example:
The dynamic table contains 5 rows (Each and every row Drop down contains one to ten values).
1) I have selected second value in the Drop down (ROW1)
2) I have selected fourth value in the Drop down (ROW2)
3) I have selected fifth value in the Drop down (ROW3)
4) I have selected seventh value in the Drop down (ROW4)
5) I have selected third value in the Drop down (ROW5)
I press the save button that particular Drop down value gets saved in back end system and that particular values want display in the Drop down as a default value.
How to resolve this problem.
Regards,
Boopathi MHi,
Solve the problem .
I have created the New node for dropdown. also i have one node already for table.
The new node i bind to dropdown, the table same for table.
Its working fine
Boopathi M -
Drop down in a table not in ALV table but the normal table
Dear All,
My question is regarding the drop down in a table.
I am trying to put the drop down in a table and i am trying to fetch the data from the Data dictionary.
Since my table contains more than 3 records all the columns are fetched accordingly but the drop down column is not getting set as per the reords of the database.
When there is one record in the table then i am able to set the value of drop down as per the database and fill the drop down but when there are multiple records in the database all the values are set as same .
For eg my datbase consits of 2 records and 1st record consists of drop down value as ""open"" and my 2nd record as "Cancelled" then the two values are over written as ""Cancelled " "Cancelled".
To over come this situation suggest me with a solution .
Hope i am clear with my question.
Regards,
Sana.Hi......
I too got the same prblm like you but i solved it... here is the solution...
first i have used dropdownbykey list box for my scenario...
then in the wd_doint...
DATA LS_VALUESET TYPE WDR_CONTEXT_ATTR_VALUE.
DATA LT_VALUESET TYPE WDR_CONTEXT_ATTR_VALUE_LIST.
DATA LO_ND_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
DATA LO_ND_ND_EDUCATION TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_ND_EDUCATION TYPE REF TO IF_WD_CONTEXT_ELEMENT.
navigate from <CONTEXT> to <ND_EDUCATION> via lead selection
LO_ND_ND_EDUCATION = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_ND_EDUCATION ).
get element via lead selection
LO_EL_ND_EDUCATION = LO_ND_ND_EDUCATION->GET_ELEMENT( ).
get element via lead selection
LO_ND_INFO = LO_ND_ND_EDUCATION->GET_NODE_INFO( ).
i have the values in lt_subty fetched from database.
LOOP AT LT_SUBTY INTO LS_SUBTY.
LS_VALUESET-VALUE = LS_SUBTY-SLART.
LS_VALUESET-TEXT = LS_SUBTY-STEXT.
APPEND LS_VALUESET TO LT_VALUESET.
ENDLOOP.
get all declared attributes
LO_ND_INFO->SET_ATTRIBUTE_VALUE_SET(
EXPORTING
NAME = 'SLART'
VALUE_SET = LT_VALUESET ).
Hope this will help you.....
if still dint come.... reply me....
Thanks & regards
Raja -
To populate drop down in a table..
Hi,
In my Application i have a table populated from an EJB bean through a class[]....
Node:GroupNode
Attributes:user , name, location.
User attribute is the dropdown field in table..
below values are to be poupulated in the dropdown of the table from the string array.
String[] ca = { "user1","user2","user3"}
I am populating the table from my class...but i am not able to populate the dropdownbox...
Below is the code i used to populate the table:
UserDTO[] cat = wdContext.currentBeanElement.modelobject.Objuser();
for(int i-0;i<cat.length;i++)
IPrivateUserView.IGroupNodeElement e = wdContext.createGroupNodeElement();
e.setUser(cat<i>.getUser());
e.setName(cat<i>.getNmae());
wdContext.nodeGroupNode.addElement(e);
When I use Textview element in the table UI , the values are populating..
But I need the User column in DropDown...So when i change the UI element to Drop Down Box in User column in Table,the User Column in the table is alone empty..
How can I populate the values in dropdownbox with String[] ca = { "user1","user2","user3"} ...
And I am usin DropDownByIndex UI element...
Thanx in advance...
Arjun.G
Edited by: arjun swamy on Jan 22, 2008 7:22 AMHi
To populate a dropdown by key inside a table, you should do it this way:
//YOURNODENAME card: 1..n selection: 1..n , attribute within node,
// it could be card: 0..n y sel: 0..1, depend on your liking/mandatory
//condition.
IModifiableSimpleValueSet ValueSet= wdContext.getNodeInfo().
getChild("YOURNODENAME").getAttribute("ATTRIBUTENAME").
getModifiableSimpleType().getSVServices().
getModifiableSimpleValueSet();
//Fill dropdownbykey with data
ValueSet.put("user1","user1");
ValueSet.put("user2","user2");
ValueSet.put("user3","user3");
ValueSet.put("user4","user4"); //... etc.. fill to fit your needs
//Fill table with independant copies, that means choosing one doesnt modify the others
for (int i = 0; i<5 ; i++)
wdContext.nodeYOURNODENAME().addElement(wdContext.nodeYOURNODENAME().createElement());
Regards
Julio Herrera -
Clicked on a drop down option asking if I wanted to use itune share I clicked on it and now my downloaded music is no longer on my ipod. I want my music back on my ipod as it was before, how do I do it ?
Hello wayne229,
Our article named iTunes 10 for Mac: Share your iTunes library found here: https://discussions.apple.com/thread/5020867 outline how to turn off iTunes Sharing.
It says it is for iTunes 10, but the same steps apply to iTunes 11.
To turn off sharing:
Choose iTunes > Preferences, and click Sharing.
Deselect “Share my library on my local network.”
Take care,
Sterling -
I am currently using FormsCentral to distribute a form created in Acrobat. I need to add an option to one of the drop down fields but do not want to re-distribute the form due to reporting purposes. How can I do this?
You can open the form in Acrobat, select "File > Save a Copy", open the copy you just saved (it doesn't happen automatically), edit the dropdown to add the new item, save as a new file, and then Reader-enable the file by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools. The resulting PDF should work with FormsCentral just like the original.
-
Not able to set values in drop down for a table field
Hi All,
I am not able to set values in drop down for a table field. Although I am able to set these values to a stand alone field but its not happening for a particular table field. I am using ABAP web dynpro for coding.
Pls help.
Regards,
BhaskarHi Otto,
Here is the code I am using:
* navigate from <CONTEXT> to <DATASOURCE> via lead selection
lo_nd_datasource = wd_context->get_child_node( name = wd_this->wdctx_datasource ).
* navigate from <DATASOURCE> to <CHANGING_PARAM> via lead selection
lo_nd_changing_param = lo_nd_datasource->get_child_node( name = wd_this->wdctx_changing_param ).
* navigate from <CHANGING_PARAM> to <EDUCATION_TAB> via lead selection
lo_nd_education_tab = lo_nd_changing_param->get_child_node( name = wd_this->wdctx_education_tab ).
node_info = lo_nd_education_tab->get_node_info( ).
REFRESH ddlb_value_set.
DATA: wa_edu_est TYPE t517t.
SELECT * FROM t517t INTO wa_edu_est WHERE sprsL = 'EN'.
s_element-text = wa_edu_est-stext.
s_element-value = wa_edu_est-slart.
APPEND s_element TO ddlb_value_set.
ENDSELECT.
SORT ddlb_value_set BY text.
* Set Value_sets to node_info
node_info->set_attribute_value_set(
name = 'EDU_EST'
value_set = ddlb_value_set ).
Regards,
Bhaskar -
Drop Down appearance for writeback column field
How to display drop down appearance for writeback column field(set of values in drop down for that field in the Report UI)? Currently Writeback feature in 10g provides only text Box for writeback field.
Not possible. Writeback is explicitely meant for specific updates and inserts and not for massive arbitrary record creation (official Oracle statement).
-
WAD - How to Minimize the Space Between Drop-Down Box and Table
Hi all,
I am trying to display a query in 'Table' with Web Application Designer (WAD). First, I have placed the 'Drop-down box' web-item and 'Table' web-item below it in the Web Template. There is an half-inch of space between the 'Drop-down box' and the 'Table' when it displays on the browser. It doesn't look good with this gap.
How can I eliminate or minimize this gap, PLEASE ?.
Thanks.Hi Ingo & Hari,
Thanks a lot for your help. Now it reduced the gap between the drop-down box and table to 3mm on browser.
But, there is no gap on web template. If we change some settings, we could still further reduce the gap while displaying it on browser.
Any new suggestions, PLEASE. Thanks again.
<!--BW HTML data source object tags: -->
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="SET_PROPERTIES"/>
<param name="TEMPLATE_ID" value="TESTWBOLAPQUERYUSER1"/>
TEMPLATE PROPERTIES
</object>
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="SET_DATA_PROVIDER"/>
<param name="NAME" value="DATAPROVIDER_1"/>
<param name="QUERY" value="Z_BWSTAT_OLAP_PER_QUERY_USER"/>
<param name="INFOCUBE" value="0BWTC_C10"/>
DATA_PROVIDER: DATAPROVIDER_1
</object>
<html>
<head>
<title>BW Web Application</title>
<link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<P align=left>
<TABLE cellSpacing=1 cellPadding=1 width="75%" border=0>
<TR>
<TD vAlign=top><object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="DROPDOWNBOX_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="WIDTH" value="69"/>
<param name="IOBJNM" value="0TCTUSERNM"/>
ITEM: DROPDOWNBOX_1
</object></TD>
<TD vAlign=top><object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="DROPDOWNBOX_2"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="WIDTH" value="19"/>
<param name="IOBJNM" value="0TCTIFCUBE"/>
<param name="MAXVALUES" value="1"/>
ITEM: DROPDOWNBOX_2
</object></TD>
<TD vAlign=top><object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="DROPDOWNBOX_3"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="WIDTH" value="34"/>
<param name="IOBJNM" value="0CALDAY"/>
ITEM: DROPDOWNBOX_3
</object></TD>
<TD vAlign=top><object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="DROPDOWNBOX_4"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="WIDTH" value="22"/>
<param name="IOBJNM" value="0TCTQUERY"/>
ITEM: DROPDOWNBOX_4
</object></TD></TR></TABLE>
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="TABLE_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="WIDTH" value="505"/>
<param name="BORDER_STYLE" value="FORM"/>
<param name="ALT_STYLES" value=""/>
ITEM: TABLE_1
</object></P>
<P align=left> </P>
<P align=left> </P><FONT color=#0000ff size=2>
<P align=center></FONT> </P>
<P align=center> </P>
<P align=center> </P>
</body>
</html> -
is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?
No
-
Column with dropdown with different values in each cell
Hello,
I have a Table and one of the columns contains a dropdown list (dropdownbykey). My problem is that the list of values for each drop down element is different because it depends on the value in the rest of the row cells. Obviously I need to calculate the values dynamically at runtime.
I have created a context node and linked it to the table columns, one of the attributes in the node is linked to the 'selectedKey' property of the dropdown. Then in my code I try to give the list of values to this attribute using the method set_attribute_value_set from the if_wd_context_node_info interface. The process it's explained in the DEMO_UIEL_STD_SELECTION component.
But I only get the same values for each row.
I would like to know if it's possible to have dropdowns with different values in the same column of a Table, and if so any indication of how to do that.
Best regards,Hello Javier,
unfortunately you cannot use dropdown by key if you want to have different dropdowns per line of your table.
Instead you will need to use dropdown by index, and bind your dropdown to a subnode of the table element (ensure that this is a non-singleton node).
To make life easier for yourself, I would also have an attribute in your main structure that holds the selected value of the dropdown by index - update this value on any "onSelect" action of the dropdown by index.
e.g. for a table that holds addresses:
Context Node Address:
attribute street
attribute city
attribute country
attribute region
subnode regionlist
...attribute regionkey
...attribute region_text
table - bound to node address
input field bound to street
input field bound to city
dropdown by key bound to country (onSelect event populates subnode regionlist)
dropdown by index bound to subnode regionlist, text bound to region text, (onSelect event populates address element attribute region with key field of selected element).
I hope this helps,
Chris -
How to update a column with different values but all other row values r sam
Hi,
I have a table like this.
Col1 col2 col3 col4
10 20 30
10 20 30
10 20 30
i need to update col4 with different values coming from other table like this
Col1 col2 col3 col4
10 20 30 xxxx
10 20 30 yyyy
10 20 30 zzzz
how can i update the table. pls let me know how to use the where condition in the update stmt.
thanks,
jay
Edited by: user2558790 on Nov 20, 2009 12:26 PMwhat is the logic for this kind of update...????
Greetings,
Sim -
Drop down selection for a column in Table Control
Hello,
I have a table control where data is displayed. The user can fill data in one of the column and save. We want to have a drop down in that column where user can select a value. This column is a qunatity field.
Please guide how it can be done.
RRIn SE51 screen editor, double-click on the editable field and set the dropdown listbox at listbox. As I don't think that you have domain value or table value for this field, set the field value list to "A" from program.
Then in the PBO use the FM VRM_SET_VALUES to fill the list of allowed values. do this in a module called in the LOOP AT WITH CONTROL which fills the table control from the program data. (use a name like TC_XXXX_CHANGE_FIELD_ATTR)
I'm not sure SE51 will allow you to use a quantity field in a listbox, so use a character field (check also right justified box on dynpro field attrinutes window), in VRM_SET_VALIUES parameters and in initial filling of the screen field use a WRITE xx UNIT yy to fill the screen field. Then a MOVE should perfect correctly when filling actual database/abap field by a move statement.
Regards,
Raymond -
Drop-down menu in table cells - how to expand over the column width?
Hello!
A client is migrating their 2,400 forms from old JetForms to PDF (LiveCycle Designer) and would like to keep the same functionalities he's used to in the old platform. However, some of the old tool features do not seem to be present in LiveCycle.
Suppose a drop-down menu in a table cell, containing items which lengths are bigger than the table column. In JetForm, when you open the drop-down it spans over the columns to show all its contents, not cutting the drop-down list contents.
I tried this in LiveCycle, but the drop-down gets cut and its contents are limited to the table column (hence the drop-down menu) width.
Is there a way to work around this limitation, even if I have to use some scripting?
Thank you for any ideas!
MarcosHi again, Niall!
Thank you again for your great examples!
The dynamic width drop-down will cover some of the client's expectations.
However, they would like it to work even when the drop-down is within a table cell with a width smaller than the width they want the drop-down to show when the mouse enters the field.
I'm afraid you will say this is not possible... Or at least not without a lot of coding, using subforms or the like.
Any ideas?
Thank you very much!
Marcos -
Populate drop-down list in table row or repeating subform
I am currently working on an Adobe Interactive Form integrated with web dynpro ABAP. I would like to create a table or repeating subform with a number of drop-down lists populated from SAP.
I am using the Enumerated Drop-down list from the WebDynproNative menu. In my WDDOINIT method, I am populating the attributes using the set_attribute_value_set method. This is working fine when my dropdown is not in a table or repeating subform. The dropdown is populated and the selected value is returned to SAP when submitting the form. However, when I place the dropdown in a table row or a repeating subform, the dropdown is not populated.
Any ideas or suggestions?Hi There,
I am facing problem in Dropdown lists in Subforms.
I want the region dropdown list values according to country (only for DE) dropdown list value. Both Dropdown lists are in a Subform.
For that, I have used this in EXIT event of Country Dropdown list:
if (this.rawValue == "DE Deutschland")
data.Item.IT_ITEM.DATA.ZZ_REGION.clearItems();
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Schleswig-Holstein","1");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Hamburg","2");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Niedersachsen","3);
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Bremen","4");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Nordrhein-Westfalen","5");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Hessen","6");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Rheinland-Pfalz","7");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Baden-Württemberg","8");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Bayern","9");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Saarland","10");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Berlin","11");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Brandenburg","12");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Mecklenburg-Vorpomme","13");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Sachsen","14");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Sachsen-Anhalt","15");
data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Thüringen","16");
else
data.Item.IT_ITEM.DATA.ZZ_REGION.clearItems();
It does only change first region dropdownlist value, not others because both dropdown lists are in a Subform.
Other problem is that it works only when All Country Dropdown lists are "DE". Means, first region dropdown list depends upon not only first country dropdown but also other dropdown.
My requirement is, If first country Dropdown is "DE", only first Region Dropdown list should be fill, not others. And so on.
Please provide solution that How can I change all dropdown lists of a Subform dynamically?
Waiting for reply.
Thank you
Chandler Bing
Maybe you are looking for
-
Laptop keyboard and touchpad not working in Windows 8.1
I just upgraded my S875-S7248 to Windows 8.1 last night. At first, everything seemed to be fine. However, this morning, the keyboard and touchpad had stopped working, and nothing I've tried has fixed it. After some research, I figured out how to ope
-
How to customise and navigate Content Type - SharePoint 2013 List
I need some advice here. I'm customizing forms that have list built using Content Types. I noticed the difference in the links is something like this below I have one default content list type called item and the other one is called College Form Item
-
Can I get a replacement battery for my iphone 3?
Can I get a replacement battery for my iphone & if so how much will it cost & where do I go to get it?
-
I both Adobe Acrobat Standard DC and when I was download it dont have for MAC???
I both Adobe Acrobat Standard DC and when I was download it >> dont have for MAC???
-
Writing BLOBs form Orcle to a file server
We are trying to use PL/SQL code to write Word Documents stored as blobs in Oracle to a users Temp directory or a server directory. Te blos have been added from a legacy PowerBuilder applicaiton that we're trying to migrate to Oracle's Web Appliation