Populate two additional select boxes from main box...
hey all -
i am new at most of this, so please bare with me.
I am trying to go from one box to the next (twice over), and am having difficulty getting to the third box.
I have the original box "select1" and it populates "select two" just fine, but i do not have the third population....looking for help in getting a third box.
I would like box one to populate box two, from the selection in box two, i would like to populate box three, and have that as a selection as well.
here is what i have so far...
<script>
function dropDownChanged(dd)
if(eval('typeof(' + dd.name.replace(/:/g, "_") + '_children) == \'undefined\'')) return;
var thisDd;
if(document.all)
thisDd = document.all[eval(dd.name.replace(/:/g, "_") + '_childcontrol')];
else
thisDd = document.getElementById(eval(dd.name.replace(/:/g, "_") + '_childcontrol'));
thisDd.options.length = 0;
var childElements = eval(dd.name.replace(/:/g, "_") + '_children');
for(var c=0 ; c < childElements.length ; c+=2)
if(childElements[c] == dd.value)
for(var o=0 ; o < childElements[c+1].length ; o+=2)
thisDd.options[o/2] = new Option(childElements[c+1][o], childElements[c+1][o+1]);
dropDownChanged(thisDd);
</script>
<script>var opp_childcontrol = 'opp';
var opp_children = ['no',['------------Select first--------------------','no'],'Coffee Businesses',
['selction1','selection1'],'Direct Marketing',['selection2','selection2'],'Employment & Personnel',['selection3','selection3'],'Food-Related Businesses',['selection4','selection4','selection5','selection5','selection6','selection6'],'Printing Businesses',['selection7','selection7'],
'Senior Care',['selection8','selection8']];
</script>after the first box is selected, the second box populates great, now i am wanted the "selection1 - selection 8" to populate a third box with information determined by the second selection, that is also a selection that can be chosen by the end user....
all of this information is sent via web form to a crm...
can you help me to create this third dropdown list with the ability to select an option from there?
I would greatly appreciate any and all help you can provide!
ray
that sounds good to me....but again, i am not the expert at this by any means...I am going off of what has been given to me in the first script.
can you assist?
thanks,
ray
Similar Messages
-
While selecting value from combo box in one frame, based on the selection..
Hi friends,
can someone help me out on a issue as it follows:-
iam developing an application where Iam using xsl,html,javascript and xml.
There is no existense of Database at all. data is read from xml.
now,
In a window there are 3 frames. In the 1st frame combo box is there.
Based on the selection in the combo box data will be displayed in the 2nd frame.
now onchange or onselect methods not giving the expected result.
actually,in the the xsl which is having 3 frames,the 1st and 3rd frame
calling src="abc.xml" and src="abc.xml"which are static.
but in the 2nd frame the data need to be changed dynamically.
I have given frame name="frame_ExchangeDetails2" rows="3%" src="cc_marketWatch_02.xml"/>
usually data dynamically comes from database.but here i have to refer xml file
something like [window.href.location="abc.xml"]
but the problem is when you refer supose:-
<frame name="frame_ExchangeDetails2" rows="3%" src="cc_marketWatch_02.xml"/>
the frame is having static page,though there are functions in javascript which are called in onload and onchange.which are not working.
I have tried putting if condition like:-
if(document.abc.fieldname.value=='6'
{ window.location.href = "cc_custLookUpData-mobileno.xml";
so that it could go to the repective page.
but it is not working.
so what should i do if I select from combo box in one frame and based on the selection xml/html page will be displayed in the 2nd frame.
if anybody has google account i can forward the zip file so it will be easier to understand.
Regards
Message was edited by:
Postqueries
Message was edited by:
PostqueriesIf you have rights to modify tabular model then, you can create a measure in your Tabular model which returns previous week and then use this measure in Pivot Table.
Thanks,
Sagar K
(Blog: http://datamazik.blogspot.in/) -
How to display data in a grid after selecting topic from combo box?
could someone help me out? i'm displaying a combo box (about
20 items) vertically. when user selects one of these items, i'd
like for information regarding that choice to be displayed in my
data grid. thanks - Karl from KansasIf you have the following:
<mx:ComboBox id="combo_box" dataProvider="{users}"
labelField="user_name" change="show_details(event)"
></mx:ComboBox>
<mx:DataGrid id="data_grid" >
<mx:columns>
<mx:DataGridColumn headerText="Name"
dataField="user_name"/>
<mx:DataGridColumn headerText="email"
dataField="email"/>
</mx:columns>
</mx:DataGrid>
private function show_details(evt:Event):void {
data_grid.dataProvider = evt.currentTarget.selectedItem
This assumes that your combo box data has a user_name and
email property value. Substitute your property values where needed.
Vygo -
Search for people by selecting keywords from dropdown boxes
Hi,
I have a requirement where the user wants to search for people in an organisation using specific values instead of only free text.
On the search page the user wants to select business unit,location etc from a drop down box and then search for all people in that unit. Is this possible without custom coding?
Thanks in advance for your help.
Regards,
VJHi VJ,
As I understand, you would like to add drop-down boxes for sorting search results in SharePoint 2013. I'd suggest you consider customizing refiners in search result page.
If you would add refiners for people, then you might add refiners to people search result page. Here are the references for detail information for refiners and how to add refiners:
http://blogs.technet.com/b/tothesharepoint/archive/2013/11/07/plan-to-use-refiners-on-a-search-results-page-in-sharepoint-2013.aspx
http://blogs.technet.com/b/tothesharepoint/archive/2013/11/11/how-to-add-refiners-to-your-search-results-page-for-sharepoint-2013.aspx
Regards,
Rebecca Tu
TechNet Community Support -
Getting selected item from combobox itemrenderer and storing in object
Hi Guys,
Can anyone help me in this regard. Its very urgent.
I have a combo box itemrenderer in datagrid column. I want to get the user selected item from the dropdown of the row(s) (User may select values from combo box from multiple rows of datagrid) and corressponding values of all other columns of the rows and store it in an object . Then pass this object to database to update only those rows that user has changed.
I am able to get the selected item from combo box using "event.currentTarget.selectedItem" and corressponding values of all other columns of the rows using "valueSelect.ID", etc where valueSelect is object which contains data for datagrid. But am stuck up with, how to store the selected item value of the combobox and corressponding values of all other columns of the rows into an Object ?.
Can anybody help me with sample to store selected item from combobox and its corressponding values of all other columns into an object which i can send to db...?
Kindly help me in this regard.
Thanks,
Anand.Hi!
Are you using a collection of VO or DTO as the dataprovider of the combobox component?
If so, have you created some attribute there to control the user's selection in the combobox?
For instance:
private var selected:Boolean = false;
If your solution fits this approach, you may create a new collection that contains just the objects that were selected by the user, it means you can loop through the datagrid's dataprovider and only insert in this new collection those objects that have the attribute "selected" set to true.
For instance:
private function getSelectedRecords(datagridDataProvider:ArrayCollection):ArrayCollection
var newCollection:ArrayCollection = new ArrayCollection();
for each (var item:Object in datagridDataProvider)
if (item.selected)
newCollection.addItem(item)
return newCollection;
Afterwards, you may serialize this new collection with your back-end.
Hope it helps you!
Cheers,
@Pablo_Souza -
Can we display GUI windows/dialog boxes from two asynchronus threads?
Hi All,
I'm facing a problem with asynchronous threads. I've a client-server application where client is a Java application and server is a C++ application running on UNIX m/c. The C++ server is implemented equivalent to a HTTP server which handles the HTTP requests from the java client. So, whenever user select some action on the Java client, say "File/Open" menu, the client sends the equivalent HTTP request to the server, and waits for the response back from the server, and after getting the response displays it on the GUI.
So far the java client application is single-threaded, and the communication between client-server was only one-way, i.e. all the communication was always initiated by the client.
We had to change this behavior to make it multi-threaded, or rather two-way communication where kernel while processing any client request might need some response from the GUI. So, we had to create a ServerSocket on java client side, and C++ server is connected to this socket. So, whenever C++ server has to send some message to the GUI, it can send thru this other socket.
On the java side, it's listening at this ServerSocket port in a separate thread, whenever it receives any request, it has to display a dialog box based on the request.
Here is my problem coming. The main application thread (which is an AWT-EVENT- thread) has made a http request to the kernel and is blocked until it gets the response back, and in the mean time, the C++ server has sent a message to the GUI thru the other socket, and when I use JOptionPane.showOptionDialog(...), I see the dialog box outline but not the contents, and the same for my main application window.
So main question here is, can I invoke, say,
JOptionPane.showOptionDialog(...) on another thread, when the main application thread (rather AWT-EVENT -QUEUE thread) is blocked.
Please let me know if anyone knows the answer or if has faced the similar problem. It will be a big help.
thanks,
AjayYou mean to make the HTTP request in a separate thread, like below,
new Thread ( new Runnable() {
public void run() {
server.makeHTTPRequest(...);
}).start();
But we cannot do this, as there is one more constraint with our application, that it has to behave like single-threaded from user's perspective. i.e. If user has clicked "File/Open" menu, user has to wait until the "File/Open" action is completed. He cannot do anything in between.
But if the server sends some message thru the other socket, then it has to displayed, and whatever user select on that dialog box, has to be sent to the server thry the same socket.
I'm not sure whether this possible.
Here is what I tried to make the http request in a separate thread, and at the same time, keeping the main thread in a wait state until the thread completes:
new Thread (new Runnable() {
public void run() {
synchronized(server) {
server.makeHTTPRequest(...);
server.notify();
}).start();
synchronized(server) {
server.wait();
Even by doing the above it doesn't work, the GUI just hangs. I think the above code is effectively the same as,invoking directly,
server.makeHTTPRequest(...);
All I know is it's quite confusing. Does anyone has insight into it.
thanks,
Ajay -
Selecting item in combo box itemEditor, after passing it's dataprovider from a popup window
Hi..
I have a datagrid which has a combo box itemeditor in the first column. When I click on the combobox, there is an item called 'Search'. When this is selected, a pop up window appears where we can search for some contact names. The search results are populated in List component, within the pop up and on double click of any of the names from the list, all of the list content is passed on as dataprovider to the combobox itemeditor of the grid. It works fine till here. Now, how can I highlight the selected name(name on which I double click, in the list of the pop up window), as the 'selectedItem' of the combobox itemeditor? ie., as soon as I double click the name, that name should appear on that combo box. As of now, wehn I double click, the search result names are passed on as dataprovider to the combobox, but a blank entry will be selected in th combobox, instead of the selected name from teh list of the pop up window. Can you please help me out on how to achieve this? I had been cracking my head for 2days now, hasn't worked out yet for meHi...
there are two events which have been used, one is doubleclick event and the other one is on selecting the item from the list and clicking on OK button(this will be the most frequently used function, i cannot use event target event for this OK button... ) . I have attached the screen shot. Please have a look at it and let me know how can i achieve that...
I can use custom event, but the main problem is that the inline itemeditor's details are not accessible in the code.... I can access some function from within the inline itemeditor combo box using outerDocument.myFunction() (this is something like GET). Is there a similar way, to SET the data into this itemeditor? -
Access 2010 - How to display data from a table into a text box upon combo box selection?
Hi
I have a a table with 5 columns: month, year, USD, SGD, BAHT.
I created a form with a combo box for selection of the month and year, and I would like to set adjacent text boxes to show USD, SGD, BAHT information. How can i go about doing that?
From the Q&A here, most of them uses the function similar to this "=[Combo0].[Column](1)" to show the data in the text box, but this would require the combo box to list a whole bunch of details if i were to add in more currency values to the
table. Is it possible to not show this information in the combo box, but still populate data in the textboxes base on a selection on only the "month" and "year" in the combo box.Hi,
According to your description, my understanding is that you want to show only the month/year in the combo box, we can choose the date, and it will display the value of USD/SGD/BAHT based on the month/year.
If it is, I recommend you try the steps:
Create a form based on your data source table>Add the combo box>combo box wizard>Find a record on my form based on the value I selected my combo box>Add mouth and year to selected fields
http://office.microsoft.com/en-us/access-help/create-a-list-of-choices-by-using-a-list-box-or-combo-box-HA010113052.aspx
If I misunderstand something, please let me know. We may upload some screenshots or a sample through OneDrive.
Regards,
George Zhao
TechNet Community Support -
How to populate a dropdown box based on a selection in another Dropdown box.
I am trying to find out a way to do the following:
I am using coldfusion ....working on a form. The form has
couple of dropdown boxes. Based on the selection on the first
dropdown box another dropdown box needs to get populated with
different options. These options will be coming from a query. I am
trying to find out the Javascript code for doing this.
Thanks in advance.jchopra,
There's a method to doing what you're wanting to do that I've
used extensively.
Basically, within my code, I start by invoking the method
that returns the data for the dropdown lists. Then, I use the
following code to pour the data returned into a javascript array:
var locArray = new Array(#evaluate(locs.recordcount+1)#);
locArray[0] = new Array('','','','','','','','','',);
<cfloop query="locs">
locArray[#locs.CurrentRow#] = new
Array('#JSStringFormat(locationId)#',
'#JSStringFormat(fkyPolicyId)#',
'#JSStringFormat(locationNumber)#',
'#JSStringFormat(description)#',
'#JSStringFormat(address1)#',
'#JSStringFormat(address2)#',
'#JSStringFormat(zipcode)#',
'#JSStringFormat(city)#',
'#JSStringFormat(state)#';
</cfloop>
Then I wrote a javascript function that is assigned to the
first dropdown's onChange() event. When the user changes the value
that is selected within the dropdown, I use javascript to locate
(using the policyid) the corresponding record in the javascript
array and populate and/or select the appropriate value(s) in the
second dropdown.
If the data returned from the method invocation is too large
to use within a javascript array, you may need to limit the results
that are returned.
Hope this makes sense. If not, please let me know.
ds -
Livecycle populate text field with multiple records from list box
Can someone tell me how can I populate a text field from list box when I have multiple select.
Here is example:
List box consist: Hello
World.
I want to see this in text field: Hello,World.
Thanks!Hi Legro
I don't know if I understand you correctly, but you can do something like this:
----------------- java script begin ---------------------------------
//Reset text field
TextField.rawValue = "";
//loop through items in listbox
for(i = 0; i < ListBox.length; i++)
//if item selected
if(ListBox.getItemState(i))
//check if Text field value if null
if (TextField.isNull)
TextField.rawValue = ListBox.getDisplayItem(i);
else
TextField.rawValue = TextField.rawValue + " " + ListBox.getDisplayItem(i);
----------------- java script end ---------------------------------
I have attached an sample PDF so that you can see how it works!!
Kind Regards
Søren Høy Nielsen Dafolo A/S -
How to get the value from select list to text box
Hi,
I have a select list i want to retrieve the value from select list to text box.
How can i do that???
Regards,
Sakthi.Hi Sakthi,
Yo can use the Java script for that..
Dynamically the value will come into text box.
Use the below script.
<script type="text/javascript">
function disFormItems()
var lReturn = $v(here your select list name)
alert(lReturn);
document.getElementById(here your text box name).value =lReturn; }
</script>Cheers,
Shan -
How to capture the selected values from module pool dialog list box !
Hi experts,
Can anyone help me out in capturing the values from the list box.
i am able to set the values in the list box.But i am not able to capture the selected value from the list box. Always the list box name is getting as "space"
I also tried in using the FM "VRM_GET_VALUES" but it is retireving all the values. Is there is any flag for filttering out the selected value.
Your inputs are appreciated.
Thanks,
Vijay.Along with the PBO and PAI event, add a POV event in the flow logic of the screen
DEMO_DROPDOWN_LIST_BOX -is a good demo example.
PROCESS ON VALUE-REQUEST.
FIELD structure_name-field_name MODULE create_dropdown_box.
In the report :
MODULE create_dropdown_box INPUT.
SELECT carrid carrname
FROM scarr
INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CARRID'
value_org = 'S'
TABLES
value_tab = itab_carrid
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
ENDIF.
ENDMODULE.
In the layout, assign a Function Code , for eg : 'SELECTED' to the listbox and lets say name of the field is SDYN_CONN-CARRID. So in the PAI module,
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'SELECTED'.
MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
ENDCASE.
ENDMODULE.
sdyb_conn-carrid will contain your selected field -
Why do i get grey boxes from page two onwards on google image searches on my macbook pro
Does anyone with the Macbook Pro Model 7.1 OS X Version 10.6.7 have the following problem. When I do an image search in google only the first page of images is displayed and the following pages only show grey boxes.
I have recently been to Australia and had my Macbook with me used my friends wireless connection and everything worked perfectly, come back to the UK and same problem.
(1) Is this a router problem? (2) How do I fix it if it is?
InNever had this problem when using a Windows OS Laptop.No mention of which browser you are using so I'll assume it's Safari.
When I do an image search in google only the first page of images is displayed and the following pages only show grey boxes.
From your Safari menu bar click Safari / Preferences then select the Appearance tab. Make sure: Display images when the page opens is selected.
If the box was already checked, from the menu bar again click Safari / Reset Safari. Select the top 7 buttons, click Reset. Quit then relaunch Safari to see if that makes a difference. -
I can't email a photo directly from iPhoto. First, I only have two "themes" to choose from instead of 8, and when prompted to fill in the "to" and "from", the "from" box has "MobileMe" already in it, and I can't get rid of or change it. I have OSXLion
I understand, as that was the place I would change it before 8.3 but now that option of Mail Days to Sync is not available? Any idea why that would be?
-
Displaying selection screen as pop-up from dialog box
Hi,
I have a screen which is of dialog-box type. This dialog screen shows an ALV and has a button in the ALV toolbar. On pressing this button, a pop-up screen is to be displayed. This pop-up screen is designed as a selection-screen. Is it possible to display this selection screen as a pop-up from a dialog box screen?
Regards,
SuhasHi Suhas,
Its possible to display selection screen as pop-up from dialog box.....Check the code below...copy paste and execute...
SELECTION-SCREEN BEGIN OF SCREEN 123 AS WINDOW TITLE text-001.
PARAMETER p.
SELECTION-SCREEN END OF SCREEN 123.
CALL SELECTION-SCREEN 123 STARTING AT 20 5
ENDING AT 80 15.
The below code might help u to add a button in alvgrid's toolbar......
* CLASS lcl_event_handler DEFINITION
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
DATA: wa_toolbar TYPE stb_button,
calc TYPE REF TO cl_gui_frontend_services.
METHODS : toolbar_handle FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object
e_interactive,
ucomm_handle FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
ENDCLASS. "lcl_event_handler DEFINITION
* CLASS lcl_event_handler IMPLEMENTATION
CLASS lcl_event_handler IMPLEMENTATION.
METHOD toolbar_handle.
MOVE 3 TO wa_toolbar-butn_type.
APPEND wa_toolbar TO e_object->mt_toolbar.
MOVE : 0 TO wa_toolbar-butn_type,
'CALC' TO wa_toolbar-function,
'@0M@' TO wa_toolbar-icon,
'Calculator' TO wa_toolbar-quickinfo.
APPEND wa_toolbar TO e_object->mt_toolbar.
ENDMETHOD. "toolbar_handle
METHOD ucomm_handle.
IF e_ucomm = 'CALC'. " When button added in toolbar is clicked
IF calc IS INITIAL.
CREATE OBJECT calc.
ENDIF.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = 'CALC'.
ENDIF.
ENDMETHOD. "ucomm_handle
ENDCLASS. "lcl_event_handler IMPLEMENTATION
DATA : container TYPE REF TO cl_gui_custom_container,
grid TYPE REF TO cl_gui_alv_grid,
event TYPE REF TO lcl_event_handler,
it_display TYPE TABLE OF mara,
wa_display TYPE mara.
START-OF-SELECTION.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'BASIC'.
PERFORM build_it_display.
PERFORM create_objects.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
SET SCREEN 0.
LEAVE SCREEN.
WHEN 'EXIT'.
SET SCREEN 0.
LEAVE SCREEN.
WHEN 'CANC'.
SET SCREEN 0.
LEAVE SCREEN.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form build_it_display
* text
* --> p1 text
* <-- p2 text
FORM build_it_display .
SELECT * FROM mara UP TO 15 ROWS INTO TABLE it_display.
ENDFORM. " build_it_display
*& Form create_objects
* text
* --> p1 text
* <-- p2 text
FORM create_objects .
IF container IS INITIAL.
CREATE OBJECT container
EXPORTING
container_name = 'CUSTOM'.
CREATE OBJECT event.
CREATE OBJECT grid
EXPORTING
i_parent = container.
SET HANDLER event->toolbar_handle FOR grid.
SET HANDLER event->ucomm_handle FOR grid.
CALL METHOD grid->set_table_for_first_display
EXPORTING
i_structure_name = 'MARA'
CHANGING
it_outtab = it_display.
ENDIF.
ENDFORM. " create_objects
Cheers,
Jose.
Maybe you are looking for
-
Make more than one pdf at a time
I am using Bi Publisher with Apex to make a pdf. I have a query that uses a template I created using the bi Piblisher / word add on. I can create a button in Apex and run the report. Now I would like to run 5 different query/template/pdf's all at the
-
Report to view the list of materilas for which 105 has not been done
Hello Everyone I want to to view the report which can show me the list of pending GR (105 to take the material into unrestricted use) that has to be done aganist the 103. Thanks in Advance Sachin
-
Slide duration - How to make one slide have a different duration to another slide?
Slide duration - How to make one slide have a different duration to another slide? EG So one slide has 2 seconds, another 4 another 6 All I can see is how to make all slides have the same duration Any help very much appreciated! Brian
-
hello. guys. i tried to install weblogic server (10.3.4) on window7. but when i run it, it says that *\Java\jdk1.6.0_23 was unexpected at this time.* i installed jdk1.6.0_23 on my pc. what's the problem?
-
Hello, I have a new imac 20" with 2.0 Ghz intel core 2 duo, 2GB ram and ATI Radeon HD 2400 pro with 128 mb. and when i try palying alot of games the framerat is so bad I can't even play them. I have WoW, warcraft 3 and starcraft and they work fine(bu