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 AM
Hi
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
Similar Messages
-
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 -
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 -
How to populate drop down list in infopath 2010 with form Active Directory resources.
I want to populate drop down list in infopath 2010 with Active directory resources.
Kindly let me know how to do this.Actually I posted an alternative approach, whoops. This is the Web service way, but both will work;
http://blog.mangroveweb.com/pre-populating-an-infopath-from-with-mysql-data-using-a-net-web-service/using-sharepoints-getuserprofilebyname-web-service-to-retrieve-ad-account-information/
w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP -
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 -
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 -
Linking 2 drops downs and having tables appear
I need to link 2 drop downs together so that the second is dependant on the first. I also need to have a table appear when the second drop down option is selected. If they change their mind and select a different option in the 2nd drop down a different table needs to appear. Currently i have 2 drop downs that are linked so that the options in the 2nd will change but i cant link this for a table to appear? Im not great with Java or scripting.
Hi Melissa,
In the change event of 2nd DropDown you can put the following code.
var a = xfa.event.newText
if(a == 5) // Set the value that you want.
Table2.presence = "hidden";
else {
Table2.presence = "visible";
Thanks,
Bibhu. -
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> -
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
NarendraHI
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 . -
Drop down values for table in a view not getting populated dynamically
Hi Experts,
The problem which i am facing is as follows
In an existing web dynpro component , i already have a view and it consists of table which has 3 columns.All the three columns are non editable
MATERIAL MAT_DESC MAT_DEL_FLAG
ABC
EFG
HIJ
Now i need to add 2 more columns after the MAT_DEL_FLAG.These two PLANt and STORAGE LOCATION columns must have drop down values
The context refers to a standard Database ZTABLE to which these two fields are added.
MATERIAL MAT_DESC MAT_DEL_FLAG PLANT STORAGE_LOCATION
ABC
EFG
HIJ
The Plant column must have the drop down values based on Material .
If we select some value for Plant , then based on the value of plant the storage location drop down values must be populated.
So as per this logic , the drop down values for plant for each row must be different.
Please let me know how to achieve this.
This is a normal table and not an ALV table.
Also please let me know whether the drop down field must be drop down by key or drop down by index.
This is very urgent.
Thanks in advance
SindhuRefreshing things again for you -
1. As I have already pointed, create 2 context attributes for VALUESETS for both plant and St.loc.
2. Create dropdown by indexes for both of them, assign valusets to respective attributes using node information.
3. Go to the plant dropdown and create the action for it ONSELECT event - when you chagne the dropdown of plant then populate the respective storage loc.
4.Now, As you are selecting a row (leadselect) you have populated the plant and loc details....write the code for lead selection event of the table
You will get the lead selection index right using node interface (IF_WD_CONTEXT_NODE)
LOOP AT ITAB INTO WA_ITAB.
if sy-tabix eq lv_lead_index.
clear wa_valuset.
wa_valueset-key = 'X'. "plant
wa_valueset-value = 'X'.
append wa_valueset to it_valueset1.
* popultae the storage location valuset based on the plant selected (bydefault it is 1 right in dropdown)
clear wa_valuset.
wa_valueset-key = 'XX'. "storage loc
wa_valueset-value = 'XY'.
append wa_valueset to it_valueset2.
else.
* Fill the valusets for all other rows as different or as per your requirement.
endif.
wa_itab-valuset1 = lt_valueset1.
wa_itab-valuset2 = lt_valueset2.
modify itab from wa_itab transporting valuset1 valuset2.
clear wa_itab.
ENDLOOP.
lo_node->bind_table ( it_tab).
Now for that Row, if a plant value is changed, respective storgae loc has to be filled right...then in that ONSELECT of plnat drodpwon again you need to write a piece of code...using the same code with a little modifications.
Hope this is clear.
Check this article on the same - but here ALV is used...the concept is same use it for your table -
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cbdde3-fe58-2c10-fcbc-8db18e693877?QuickLink=index&overridelayout=true
the above code you hvae pasted - i think it fills only for the 1st time....
Regards,
Lekha.
Edited by: Lekha on Dec 20, 2011 12:00 PM -
Populate drop down in a selection screen
Hi All,
I have created a selection screen where i have a drop down field .How do i populate the drop down? In the backend i have a table type in the export param. which contains all the drop downs values.
Please help.
Thanks
tubai.Hi,
If you are using drop down by index. then use following code. Create a context node with cardinality 1:N
data : it_table type STANDARD TABLE OF sflight.
DATA lo_nd_cn_drpindex TYPE REF TO if_wd_context_node.
DATA lo_el_cn_drpindex TYPE REF TO if_wd_context_element.
DATA ls_cn_drpindex TYPE wd_this->element_cn_drpindex. " Here cn_drpindex is the name of context node which is binded to the drop down by index UI element.
* navigate from <CONTEXT> to <CN_DRPINDEX> via lead selection
lo_nd_cn_drpindex = wd_context->get_child_node( name = wd_this->wdctx_cn_drpindex ).
select carrid from sflight into CORRESPONDING FIELDS OF TABLE it_table.
lo_nd_cn_drpindex->bind_table( it_table ).
If you are using drop down by key ui element then you can use the following code
DATA : node_info TYPE REF TO if_wd_context_node_info.
DATA : it_zinsp TYPE TABLE OF zinsp.
FIELD-SYMBOLS : <tablezinsp> TYPE zinsp.
DATA : value TYPE wdy_key_value,
value_set TYPE wdy_key_value_table.
DATA : zlandx TYPE string.
node_info = wd_context->get_node_info( ).
node_info = node_info->get_child_node( 'CN_VISATYPE' ).
CALL METHOD cl_wd_dynamic_tool=>get_table_data
EXPORTING
tab_name = 'ZINSP' " Here ZINSP is name of table
row_count = 0
IMPORTING
data = it_zinsp.
LOOP AT it_zinsp ASSIGNING <tablezinsp> .
value-key = <tablezinsp>-zvisaty." This is field of table
value-value = <tablezinsp>-zvisaty.
INSERT value INTO TABLE value_set.
ENDLOOP.
node_info->set_attribute_value_set( name = 'CA_VISATYPE' " Name of attribute
value_set = value_set ).
I hope it helps.
Regards,
Rohit -
Hi ,
I have a table, which has two columns both are drop down list. So when the user inserts a new row and when he selects dropdown1 then dropdown2 has to be populated on the value of dropdown1.
Please let me know how can this be acheived in Java Webdynpro.
Regards,
SharathLet "Rows" be the data source node of the table. Add two non-singleton child nodes "Items1" and "Items2" for storing the dropdown list items.
Define an action "List1Selected" and add a parameter "row" of type IRowsElement.
Define a parameter mapping that maps the predefined event parameter "nodeElement" to the action parameter "row".
Assign action "List1Selected" to the "onSelect" event of list1.
In the action handler you have then the row where the entry from list1 has been selected:
void onActionList1Selected(IRowsElement row, ...)
IItems1Element selection = row.nodeItems1().currentItems1Element();
/* Now populate row.nodeItems2() depending on the selection... */ -
Populate drop-down list from multiple text fields.
Just to begin, I am brand new to this application and brand new to coding in general. Anyways, this is what I am trying to accomplish. I need to populate a drop-down list from multiple text fields. I am able to populate one item using this in the calculate event:
TextField1.rawValue
After I type text in TextField1 and hit enter, it displays the text in the drop-down list. I need to do this but with more than just one text field to populate more options for the drop-down list. I will also need to do something similar with populating a drop-down list from selections made in multiple other drop-down lists.
Thanks for any help you can give me.Thank you for your suggestion Geo Kaiser. With that, I was able to populate my drop-down lists, but now when I select an option from the drop-down list, the selection dissapears. The selection will appear briefly in the box but then dissapears although my drop-down list options remain there. Here is the code I am using for my text field to drop-down list:
DropDownList1.clearItems()
DropDownList1.addItem(TextField1)
DropDownList1.addItem(TextField2)
And here is my code for my drop-down list to populate another drop-down list:
DropDownList3.clearItems()
DropDownList3.addItem(DropDownList1)
DropDownList3.additem(DropDownList2)
Thanks again for your help. By the way, I am using Adobe Designer 7.0. -
Populate drop-down lists based on check box selections
Hi. I'm creating a Service Work Order form. At the top, there are several check boxes for the various services we provide, under that , more text fields, drop downs and checkboxes to elaborate on those services, and then at the bottom, fields for pricing.
I'd like the top half of the form to drive the pricing info that is available or that auto-populates at the bottom.
Ideally, I'd like to make the pricing specific based on 3 things:
the service checkbox
the client
and the details on that service
For example:
If Client XYZ wants Service A that includes subservice B
$123 should show up on the bottom half in the field for that service
If Client ABC wants Service B that includes subservice C
$456 should show up on the bottom half in the field for that service
Does that make sense?
I've been unable to get code to work in either the calculate and pre-Open options
I first tried calculate and used this code (which was just a guess on my part)
if (CheckBox1 == 1) and if (CheckBox9 == 1) then
$.rawValue = 50
elseif
(CheckBox2 == 1) and if (CheckBox9 == 1) then
$.rawValue = 50
elseif
(CheckBox5 == 1) and if (CheckBox9 == 1) then
$.rawValue = 55
elseif
(CheckBox6 == 1) and if (CheckBox9 == 1) then
$.rawValue = 55
elseif
(CheckBox7 == 1) and if (CheckBox9 == 1) then
$.rawValue = 50
elseif
(CheckBox8 == 1) and if (CheckBox9 == 1) then
$.rawValue = 50
else
$.rawValue = 0
endif
That didn't do anything but give me an error about "and"
So I tried putting code in pre-Open:
// clear the dropdown displayed value and items
this.rawValue = null;
this.clearItems();
// repopulate the items based on the checkboxes
if(offshore.rawValue == 1)
this.addItem("$40.00", "offshore_001");
this.addItem("$45.00", "offshore_002");
this.addItem("$50.00", "offshore_003");
if(inland.rawValue == 1)
this.addItem("$40.00", "inland_001");
this.addItem("$45.00", "inland_002");
this.addItem("$50.00", "inland_003");
I got no error but nothing populated and the drop-down was, in effect, disabled.
Any help would be appreciated.
Thanks!Gavin,
This sounds like an issue that is not related to JHeadstart. To simplify the test case, you could create a simple drag-and-drop ADF application without JHeadstart and see if the same problem occurs there.
Your suggestion that it is related to the where clause seems likely. Please find out what kind of object USER_ENV is, and how it is initialized. Maybe this initialization is skipped when bouncing the application.
What happens if you perform the query in SQL*Plus, without doing anything about the USER_ENV?
Maybe you should ask the Oracle Applications discussion forum...
kind regards,
Sandra Muller
JHeadstart Team
Oracle Consulting -
Drop down list in Table Control - Value disappeared after pressing ENTER
Dear Gurus,
I have a problem in one of my development where I used a table control in which one field is a drop down list.
I used VRM_SET_VALUES and VRM_GET_VALUES for populating the values from the programand not use any domain level value table for that field.
My problem is when I select one value from this list , and pressing enter , the value get disappeared. But if I use a domain for this field with value table then everything working properly.
My doubt is am I doing some miss coding or using the VRM_ function modules improperly ?
I am sharing some code with you
in PAI :
CALL FUNCTION 'VRM_GET_VALUES'
EXPORTING
id = 'ITAB-FIELD3' "This is drop down list element on screen
IMPORTING
values = values[] " even it is not the expor parameter...it will work..
EXCEPTIONS
id_not_found = 1
OTHERS = 2.
IF sy-subrc NE 0.
No sy-subrc check required.
ENDIF.
IN PBO
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'IVBAP-ERNAM'
values = values[].
Can you please help me.
Thanks .HI,
The link contains the list box creation, just check if this might help.
Re: Getting values back from a listbox.
Regards and Best wishes.
Maybe you are looking for
-
I have 6 videos on my iphone, varying in length from 24 seconds to 11 minutes, that will not import to iphoto. I have tried to import them as a group and individually but get a message that 'there was a problem accessing the file.' I had no difficu
-
When I send an email, a photo appears after my name in the sender line. How do I get rid of it?
-
Overhead on Subcontract Vendor Charge
We have implemented Raw Material Costing, adding overhead through use of a costing sheet. We use subcontracting (PrcTypF/SpcPrcTyp 30). In most plants it is a minor portion of the cost, so we did not need to know how to add overhead to the vendor cha
-
How do i get a manual for lion? Cant seem to find one anywhere.
How do I get a manual for Lion. All previous versions of Mac OS X have manuals, including Apple hardware, however this version of Mac OS X, seems to not have one.
-
10.4.7 Hanging after install
Hows this for issues, I installed the update on both my iMac and my MacBook, and on both I recieved a message saying that there was an error during install. Afterwhich I could not open any of my Apps and when I did try to reboot, my system hung on sh