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
Similar Messages
-
Populate updatable drop down list based on files in the folder path
Hi,
I am a beginner in labview. I am stuggling on where to start.
Here's what I need to do.
I want to create an updatable drop down list. It can be automatic upon opening the program or manually update by clicking an update button. The drop down list will list all the filenames that are in .cvs format. These files are stored in a folder path. Insider the folder, they are stored in different subfolders, the drop box should be able to find those files inside the subfolders. Once the user select a filename from the list, the program will read the data inside that file and import into an array so I can display the data.
I have an idea on how to display the data, but I don't how to populate the drop down list based on the files in the folder, make it updatable and then import that user selected file's data into the the array.
Can anyone help me with this?
Thanks, RuthYup, ListFolder with a pattern of *.csv. Then use a property node on a combo box or ring to set the items in the drop down. Here is some free training if you are interested in learning more general LabVIEW tools.
NI Learning Center
NI Getting Started
-Hardware Basics
-LabVEW Basics
-DAQ Application Tutorials
3 Hour LabVIEW Introduction
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously. -
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. -
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 -
How to auto populate a field based on drop down list unless specific item is selected
Hi all,
Apologies if I have posted this in the wrong area but I am new to Adobe LiveCycle, JavaScript and these forums.
I am trying to build an Acrobat form using LiveCycle but am having trouble with the drop down lists.
Inititaly I simply wanted to populate fields in one table based on the selection of a corresponding drop down list in another table.
I used the following code and it worked fine:
Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*].Row4.Cell1");
var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[*].Row4.Cell1");
for (var i=0; i <= fFrom.length-1; i++) {
fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
The problem is that now I want the above code to work UNLESS one of the items in the dropdown list is specifically selected in which case I want the text box in the other table to display a message such as "Enter details in the field below".
I have tried to create an If Else statement using the following code:
Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*].Row4.Cell1");
var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[*].Row4.Cell1");
for (var i=0; i <= fFrom.length-1; i++) {
if (fFrom.item(i).rawvalue = "Option 3"){
fTo.item(i).rawValue = "Enter details in the field below";
else {
fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
The code now populates the field with "Enter the details in the field below" no matter what item I select from the dropdown list.
Your help is greatly appreciated.
Cheers,
ozzy_qFollow Up:
Ok so ive changed things up a bit and have had some more success.
I have used a Switch statement in my For loop to perform different actions based on the item selected.
The code looks like this:
Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*] .Row4.Cell1");
var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[* ].Row4.Cell1");
for (var i=0; i <= fFrom.length-1; i++) {
switch (fFrom.item(i).rawValue)
case "Option 3":
fTo.item(i).rawValue = "Enter the details in the field below";
break;
default:
fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
break;
This code solves my problem but has thrown up a new issue:
When i select Option 1 or 2 from the dropdown list the change in the text field is instantaneous, however if I select Option 3 it wont appear in the text field until I either select Option 3 a second time or select another item. Its as if the text field is a selction behind what I have enterd in the dropdown list.
Any thoughts? -
Drop down list based on log in username - php mysql
I have a drop down list of client names on a php page that filters a second drop down list of site names.
At the moment, any user who logs in can see the entire list of clients, however I want to filter the list based on their username log in.
This is the entire page code, the section in bold is the drop down list in question:
<?php
if (!isset($_SESSION)) {
session_start();
$MM_authorizedUsers = "asguser,admin,member";
$MM_donotCheckaccess = "false";
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;
// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
if (($strUsers == "") && false) {
$isValid = true;
return $isValid;
$MM_restrictGoTo = "accessdenied.html";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {
$MM_qsChar = "?";
$MM_referrer = $_SERVER['PHP_SELF'];
if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
$MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
header("Location: ". $MM_restrictGoTo);
exit;
?>
<html>
<body>
<script type="text/javascript">
function AjaxFunction(client_UID)
var httpxml;
try
// Firefox, Opera 8.0+, Safari
httpxml=new XMLHttpRequest();
catch (e)
// Internet Explorer
try
httpxml=new ActiveXObject("Msxml2.XMLHTTP");
catch (e)
try
httpxml=new ActiveXObject("Microsoft.XMLHTTP");
catch (e)
alert("Your browser does not support AJAX!");
return false;
function stateck()
if(httpxml.readyState==4)
var myarray=eval(httpxml.responseText);
// Before adding new we must remove previously loaded elements
for(j=document.testform.subcat.options.length-1;j>=0;j--)
document.testform.subcat.remove(j);
for (i=0;i<myarray.length;i++)
var optn = document.createElement("OPTION");
optn.text = myarray[i];
optn.value = myarray[i];
document.testform.subcat.options.add(optn);
var url="dd.php";
url=url+"?client_UID="+client_UID;
url=url+"&sid="+Math.random();
httpxml.onreadystatechange=stateck;
httpxml.open("GET",url,true);
httpxml.send(null);
</script>
<form name="testform" method='POST' action='mainck.php'>
Select first one
<select name=cat onChange="AjaxFunction(this.value);">
<option value=''>Select One</option>
<?
require "config.php";// connection to database
$q=mysql_query("SELECT DISTINCT * FROM qry_test GROUP BY client_name ASC");
while($n=mysql_fetch_array($q)){
echo "<option value=$n[client_UID]>$n[client_name]</option>";
?>
</select>
<select name=subcat>
</select><input type=submit value=submit>
</form>
</body>
</html>
I think I need to amend the sql statement to something like this - but I haven't quite got it right:
SELECT DISTINCT * FROM qry_test WHERE username = colname GROUP BY client_name ASC
Where do I drop the code for the colname info?
name:colname
type: text
default value: -1
run time value: $_SESSION['MM_Username']
Thanks!I don't do PHP but it would be something like:
$sql = sprintf (SELECT DISTINCT * FROM qry_test WHERE username = %s GROUP BY client_name ASC, $_SESSION['MM_Username'] );
or you can just embed the session variable into the sql string.
But why are you using the GROUP BY clause? If you just need a distinct list of names, use the DISTINCT keyword and reduce your select list to only the needed column. -
How to populate drop down list in infopath 2010 with form library column
I created one column of choice type and have put 3 values on this column in form library in site.
and one drop down list in form library at infopath 2010 but how to populate the dropdown in infopath populate with this column.Hi John, you should either add the values to your InfoPath dropdown manually or create a new list in SharePoint with the values and make a connection to that list to populate your dropdown.
cameron rautmann -
Acrobat 9 pro designer -- how to populate drop down list
I down loaded the acrobat 9 professional trial version and have been trying to see how I can create a drop down list where I can input 500 names. I created the drop down list but the problem is the following. To enter the names in the drop down list I have to type each one and hit enter then enter in the next. I have about 500 names to enter and doing one at at time is not efficient. I tried to copy all the names and paste it into the drop down list but it will only paste the first name.
Does anyone know how I can enter 500 names all at once into a drop down list box?
I need a simple solution that can be made without some complicated code.
please email me [email protected]
thanks
Willthanks you for the response. I am not tech savy when it comes to javascript or form calc any chance you can give more details
-
I have a form that I would like to have the user select the first drop-down list as populated from a data source, but them have the subsequent selection choice dependent on the first. For instance, if they select "administration" for their division, the department numbers shown in the second box would only contain those with "Administration" listed as their division. I have all of this information in my Access table.
I've seen this possible by storing all of the information in a script. i.e.- listing each division and department. The only problem is that we have over 300 departments and making any changes would be very tedious in an in-form script. Is there any way to have this automatically reference a table in Access?
Thank you,
MikeIn the current version of the portal, it is not possible as you cannot do code-behind on postbacks. If you want more flexibility, you need to write your own front-end that uses the FIM Service webservices...
Regards, Soren Granfeldt
blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt -
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 -
Need to change the LOV field based on checked box selection in OAF page
Dear ALL,
I have a requirement as below:
I have a custom OAF page having a lov field which is mandatory, a check box and a two text fields.
So based on LOV value selection i am defaulting two text field value automatically.
So my requirement is when user selects the check box automatically the LOV field should be non mandatory and user can insert in values to the lov field and text field and submit it.
SO basically based on check box field selection i need to make the lov field in such a way it should accept all the values what user enters instead of check the query added in VO behind the LOV.
Please suggest me some pointers to achieve this requirement.
Thanks
Debhi,
in PFR use:
if ("checkevent".equals(pageContext.getParameter(EVENT_PARAM)))
HashMap hashMap = new HashMap();
String checkboxval=pageContext.getParameter("item2");
hashMap.put("checkboxval",checkboxval);
pageContext.setForwardURLToCurrentPage(hashMap ,
true, // retain the AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
and in PR use:
if((pageContext.getParameter("checkboxval'))!=null)
OAMessageLovInputBean lovInputBean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("item3");
lovInputBean.setRequired("false");
try it
Regards
Mahesh -
Show the drop down list of variant on the selection screen in ALV reports
Hi,
i have a alv report when i execute this display will come and then i click display layout it save as a variant on the selection screen and when i go back to selection screen and press f4 on the display variant its show the drop down list of varient.
can u send me some code for this functionality...its very urgent.
thanks!
VipinHi,
try inserting this code apropietly in you program. (1 parameter + Initialization + At-selection-screen + 2 forms)
START HERE
PARAMETERS: pa_vari TYPE disvariant-variant.
INITIALIZATION.
g_repid = sy-repid.
CLEAR e_variant.
e_variant-report = sy-cprog.
e_variant-username = sy-uname.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = e_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 0.
pa_vari = e_variant-variant.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_vari.
PERFORM alv_variant_f4 CHANGING pa_vari.
*& Form ALV_VARIANT_F4
FORM alv_variant_f4 CHANGING pa_vari.
DATA: l_exit(1) TYPE c.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = e_variant
i_tabname_header = 'ANYTHING'
i_save = 'A'
IMPORTING
e_exit = l_exit
es_variant = e_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 2.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
IF l_exit = space.
pa_vari = e_variant-variant.
ENDIF.
ENDIF.
ENDFORM. " ALV_VARIANT_F4
END
Hope iy helps!
Alfonso -
Linked Drop Down Lists with a message box
Hello all -
I'm using Adobe Designer 7.0 and I've created a form with two linked dropdown lists. The second dropdown list displays certain options depending on what was selected from the first dropdown list. I based my dropdowns on the country/states dropdowns in the Interactive Purchase Order sample found at [installdir]\EN\Samples\Purchase Order\Interactive.
But I also want to display a message box (with a helpful explanation) when the second dropdown list is clicked before making a selection from the first dropdown list. Right now, a tone sounds when that happens. I think it would be helpful to provide an explanation (in a message box) instead of just the tone.
I tried this javascript on the second dropdown click event, but it displays the message box all the time, not just when the first dropdown was unselected:
if (dropdownlist1.rawValue == " ");
xfa.host.messageBox("Please choose a value from dropdownlist1 first.");
Can anybody show me how to display the message box only when dropdownlist2 is clicked and a selection has not yet been made from dropdownlist1?The best thing is to dynamically build your where clause based on the user selection. Test the values of all form fields and if the user does not make a selection, do not include that in the where clause.
Trying to build a single, static where clause that accounts for all possible user input permutations is extremely difficult. -
How can one make the drop down list of bookmarks disappear when selecting an item?
I want the list to close automatically when selecting a bookmark to open the page (as it does with favourites in Internet Explorer 8). Is it possible to set this up or does the list always have to be closed manually?
I am closing this prompt as now I am seeing that it is getting refreshed.
-
Multiple drop down lists that allow users to select 3 unique choices from a list of options
Lawanna Wice - 2:18pm Mar 15, 05 PST (#1 of 1)
I'm creating a form from scratch in Adobe Designer. Well, the problem I'm having is I'm trying to create dropdowns in my form and I need three dropdowns with the same information but I would like to only select three of the items from each dropdown but I'm not sure what I need to do. I hope you'll understand.
Ex: Directions: Please select your 1st, 2nd and 3rd peference from the listing but do not select the same perference, it has to be different.
1st Preference: RCC, UPPP, AAA and TO
2nd Preference: RCC, UPPP, AAA and TO
3rd Preference: RCC, UPPP, AAA and TO
The object is for them to select only three but not the same for each prefence but how can I create it in the form.Lawanna,
Here is an example that is similar to what you are looking for.
Click here to see it
Maybe you are looking for
-
How to set delivery plan per day in components requirements
hi As we know, the production order of finish goods includes started date and finished data such as Sep 1, and Sep 10. So, MRP calculate component requirement which includes delivery date such as Aug 28 (because of lead time). however, purchase peopl
-
Condition Record (NACR) not recognized - why ?
Hi everybody, for my custom output type ZALE - concerned with IDoc triggering - I have defined to condition records, ZECO - eCommerce Order and ZECR - eCommerce return for the purpose to automatically generate output events, when the corresponding do
-
Custom component Search and Result view using value node :pls help
Hi Experts, I am creating a Custom component with Search and Result view using value nodes. This is the code I wrote in the Search button event handler method. The data which gets in lv_search I need to put in lv_col . Can somebody guide me for this.
-
I have and ipod suffle that i cant get to charge or power on any help?
i am haveing a problem with my ipod shuffle. I can not get it to charge or power on any help.Thank you
-
my sound check continually pops up and changes my music and sometimes speeds up the song