Want 2 populate value in 2nd list item based on value selected in 1st list?
Want 2 populate value in 2nd list item based on value selected in 1st list?
Gaurav -
The 3rd list will not populate because nothing has been selected yet in list 2. The value in list 2 is null, so the loop to populate list (3) has nothing to load. Try the following below. This should seed your 2nd list so the 3rd list will populate.
You will have to declare first_record boolean and first_value to match DESCC.
first_record := true; -- NEW *****
Clear_List('BLOCK2.ITEM2');
FOR CurRec IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.IDD = :BLOCK2.ITEM1)
LOOP
if first_record = true then -- NEW SECTION *****
first_value := CurRec.DESCC;
first_record := false;
end if;
Add_List_Element('BLOCK2.ITEM2',1,CurRec.DESCC,CurRec.DESCC);
END LOOP;
:block2.item2 := first_value; -- NEW *****
Clear_List('BLOCK2.ITEM3');
FOR CurRec2 IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.DESCC = :BLOCK2.ITEM2)
LOOP
Add_List_Element('BLOCK2.ITEM3',2,CurRec2.DESCC,CurRec2.DESCC);
END LOOP;
My name is Ken, 1990 is when I started using Oracle Forms 3.0, character based in the Unix environments. And you are very welcome.
Similar Messages
-
How to populate another page item based on cascading select lists?
Oracle 10gXE
APEX 3.2
I've created cascading select lists based on the examples (using Javascript and AJAX) that i've seen on this forum. Thanks for help on that!
Now that I have these LOV's being populated without needing to submit the page, how do I take the value that is presently in each LOV and concatenate them together to populate another page item? I'm trying to build the URL string that will execute an Oracle Report once the user clicks a button.
Previously, when I had multiple Select Lists with a submit, the URL was being put together using an After Submit Computation that would set the value for an item (P26_REPORT_URL) on the page. Notice that a report parameter (i.e. parameter name and Select List value) is only included if the user has provided a value. The page item that holds these values is then referenced by a button for URL redirect. The URL Target for the button currently is: javascript:popupURL('&P26_REPORT_URL.'), but will not work at the moment because P26_REPORT_URL page item is not changing based on what is selected in the LOVs. Since I'm not submitting anything (do I need to?), how do I put together the values needed?
Computation for P26_REPORT_URL:
DECLARE
l_param VARCHAR2(2000);
BEGIN
l_param := '&REPORTS_URL.&report=&P26_RPT_VIEW..rdf&desformat=&P26_DESFORMAT.&destype=cache';
IF REPLACE(:P26_OLO_CODE,'%'||'null%',NULL) IS NOT NULL THEN
l_param := l_param||'&p_olo_code=&P26_OLO_CODE.';
END IF;
IF REPLACE(:P26_BEG_DATE,'%'||'null%',NULL) IS NOT NULL THEN
l_param := l_param||'&p_start_dt=&P26_BEG_DATE.';
END IF;
IF REPLACE(:P26_END_DATE,'%'||'null%',NULL) IS NOT NULL THEN
l_param := l_param||'&p_end_dt=&P26_END_DATE.';
END IF;
IF REPLACE(:P26_ORG_CODE_2,'%'||'null%',NULL) IS NOT NULL THEN
l_param := l_param||'&p_org_code=&P26_ORG_CODE_2.';
END IF;
IF REPLACE(:P26_FLAIR_ORG_2,'%'||'null%',NULL) IS NOT NULL THEN
l_param := l_param||'&p_flair_org_code=&P26_FLAIR_ORG_2.';
END IF;
IF REPLACE(:P26_BUDGET_ENTITY_2,'%'||'null%',NULL) IS NOT NULL THEN
l_param := l_param||'&p_agy_code=&P26_BUDGET_ENTITY_2.';
END IF;
RETURN l_param;
END;Andy,
This is a great suggestion! After I posted, I started looking at a Javascript solution and figured it's probably what I had to do.
However, now the cascading select list no longer working for some reason after I added the function to concatenate the item values. When I remove the showReport() function the select list works again.
Here is what I have in the HTML Header portion of the page:
<script language="JavaScript" type="text/javascript">
function popupURL (url) {
w = open(url,"winLov","resizable=1,width=800,height=600");
if (w.opener == null)
w.opener = self;
w.focus();
function showReport()
var l_param = '&REPORTS_URL.&report=' + $v('P26_RPT_VIEW') + '.rdf&desformat=' + $v('P26_DESFORMAT') + '&destype=cache';
if ($v('P26_OLO_CODE' != '')
l_param += '&p_olo_code=' + $v('P26_OLO_CODE');
if ($v('P26_ORG_CODE_3' != '')
l_param += '&p_org_code=' + $v('P26_ORG_CODE_3');
popupURL(l_param);
function get_AJAX_SELECT_XML(pThis,pSelect){
var l_Return = null;
var l_Select = $x(pSelect);
var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=ORG_SELECT_LIST',0);
get.add('TEMPORARY_ITEM',pThis.value);
gReturn = get.get('XML');
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script> -
Populate 2nd combo box based on value selected in 1st combo box
I am still using Acrobat 6 though I may be upgrading soon to Acrobat 8. I have a form with two combo boxes, the first "state" has values of MN and WI. Based on which value the user picks I would like to populate a "county" combo box with lists of counties that we deal with.
Thanks,
GeneOne can set the option and export value using an arry:<br /><br />// document level script<br />// Master List of Lists <br />// Each entry in this object listeral is the name of a State <br />//Manually enter the State Names into the state field combo box <br />// The associated value is the item list, where each item is a name value pair, [<County> and [county code, zip code]] <br /><br />// state: ["county name", ["county code", "zip code"]]<br />var oStateNames = {MN: [["-", ["", ""] ], <br /> ["St. Louis", ["MNStl", "55001"] ], <br /> ["Carlton", ["MNSCrl", "55002"] ], <br /> ["Pine", ["MNPin", "55003"] ],<br /> ["Cook", ["MNCok", "55004"] ] <br /> ], <br /> WI: [["-", [" ", " "] ],<br /> ["Douglas", ["WIDou", "55005"] ] ,<br /> ["Bayfield", ["WIBay", "55006"] ],<br /> ["Burnette", ["WIBur", "55007"] ],<br /> ["Ashland", ["WIAsh", "55008"] ]<br /> ]<br /> }; <br /><br />//SetCountyEntries() on keystroke entry in state field <br />function SetCountyEntries() <br />{ <br /> if(event.willCommit) <br /> { <br /> // Get the new counties list from the Master List <br /> // Since the selection is being committed, <br /> // event.value contains the State name <br /> var lst = oStateNames[event.value]; <br /> // Clear the county list if there are no counties for the selected state <br /> this.getField("ee.address.county").clearItems();<br /> this.resetForm(["ee.address.code", "ee.address.zip"]);<br /> if( (lst != null) && (lst.length > 0) )<br /> this.getField("ee.address.county").setItems(lst); // set opiton and export value<br /> } <br />} <br />// end document level script<br /><br />For the combo box "ee.address.county" one can create an array from the export value to populate the county code and zip code<br /><br />// custom keystroke for county combo box<br />if(event.willCommit & event.value != "") {<br />// split county and zip codes<br />var aCodes = this.getField(event.target.name).value.split(",");<br />this.getField("ee.address.code").value = aCodes[0];<br />this.getField("ee.address.zip").value = aCodes[1];<br />}<br />// end custom key stroke code
-
Populating the 2nd dropdown based on value selected on 1st dropdown
Hi,
I know that there is a similar post about this in the forum but it doesn't actually show how an event for the dropdown is created. I believe this would be a script that is done within the form (transaction SFP) itself, but could I please have an example please?
I did try to take a look at the standard ISR_FORM_SPTD form but there doesn't seem to be any scripts in this form.
Thanks and regards,
Adeline.Hi,
Am not so sure, how were unable to locate this script. Click on the dropdown and check in the Script editor. You will get the same script. Anyways, here is the script.
<i>// If the display value is used in the data DOM,
// re-assign the corresponding data value
if (this.rawValue != "" ) {
if (this.boundItem(this.rawValue) != "") {
this.rawValue = this.boundItem(this.rawValue);
// START OF CODE - TO RUN AFTER SELECTION HAS BEEN MADE
xfa.record.CONTROL_PARAM.ISR_EVENT.value = "CHECK";
app.eval("event.target.SAPSubmit(false);");
// END OF CODE - TO RUN AFTER SELECTION HAS BEEN MADE
data.RequestPromotion[0].PCR_PAGE1.PCR_DE.PCRDEContent.NewScaleLevelDDL::ready:form - (FormCalc, client)
// START OF XFO CODE - DO NOT REMOVE OR MODIFY
// If this object exists, then we are not being rendered by the XML Form Agent
if ((Exists(xfa.host.appType)) and ($.bind.ref <> "")) then
// Note the rawValue and try to set the selection if it is present
// As soon as you add items the rawValue will be lost
var CurrValue = ""
// Check for a null - an empty XML node will return a null
if ($.rawValue <> null) then
CurrValue = $.rawValue
endif
var Found = 0
// the data binding may contain "$data.<root data name>" instead of $record
var DataBinding = replace($.bind.ref,Concat("$data.",xfa.record.name),"$record")
DataBinding = replace(DataBinding,"[*]")
for i=0 upto xfa.record.enum_list.nodes.length - 1 step 1 do
// Find the match. The binding value may contain "[*]"
// so remove them first
var ListBinding = replace(xfa.record.enum_list.nodes.item(i).binding.value,"[*]")
if (DataBinding == ListBinding) then
// the first two items are the name and binding attributes, then the list starts
if (xfa.host.version < 7) then // add a dummy item to work around a bug in A6
$.addItem("a","-1")
endif
$.clearItems()
for j=2 upto xfa.record.enum_list.nodes.item(i).nodes.length - 1 step 2 do
// The order is assumed to be display and then data
// if the value is null, then add the empty string
if (xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == null) then
$.addItem(xfa.record.enum_list.nodes.item(i).nodes.item(j).value,"")
else
$.addItem(xfa.record.enum_list.nodes.item(i).nodes.item(j).value,xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value)
endif
if (xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == CurrValue) then
Found = 1
endif
if ((xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == null) and (CurrValue == "")) then
Found = 1
endif
endfor
// Now set the selection - omitting this step means there will be no selection
// if there is only one item in the list and no default value, we have to select the first item - Bug in Acrobat 6.02 (fixed in Acrobat 7)
if ((xfa.record.enum_list.nodes.item(i).nodes.length <= 4) and (CurrValue == "") and (xfa.host.version < 7)) then
$.rawValue = xfa.record.enum_list.nodes.item(i).nodes.item(3).value
else
// if available, set the selection to the default value
if (Found) then
$.rawValue = CurrValue
else
// otherwise: set the selection to the first item
$.rawValue = xfa.record.enum_list.nodes.item(i).nodes.item(3).value
endif
endif
// START OF CODE - TO RUN AFTER LIST HAS BEEN FILLED
// END OF CODE - TO RUN AFTER LIST HAS BEEN FILLED
break
endif
endfor
endif
// END OF XFO CODE - DO NOT REMOVE OR MODIFY</i>
This should solve your problem.
Regards
<i><b>Raja Sekhar</b></i> -
Populate values selects with select one choice
How I can to create in Java??
use a managed bean property of type ArrayList<SelectItem> and generate accessors. The reference it from f:selectItems in the selectOneChoice
Frank -
How to show valid field items based on previous selected field
I am trying to use BC Web Apps to help my customers find products for their specific motor vehicle.
By selecting the vehicle make and then the model. e.g. Chevrolet and then Camaro.
This will then bring up a table with all the cosponsoring equipment part numbers.
At the moment the closest I can get is two dropdown lists one with all the vehicle makes and another with every vehicle model.
If I select Chevrolet I only want to see Chevrolet models in the dropdown list.Hi 2932464,
2932464 wrote:
Hi,
I have a set of text Field items in oracle apex:
Order Number
Revision Number
When we open the report, revision should be hidden.
Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
If he enters duplicate order number, revision number should be hidden.
Please help.
Giving you example how to achieve this.
Step 1. Create three Page Items
1) P1_ORDER_NO - Text Field
2) P1_REVISION_NO - Text Field
3) P1_ENABLE_DISABLE_REVNO - Hidden,Value Protected - No
2. Create 3 Dynamic Actions
1) Disable revision number on page load
Event - Page Load
Action - Disable
Fire When Event Result Is - True
Selection Type - Item
Item - P1_REVISION_NO
2) Check duplicate order number
Event - Change
Selection Type - Item(s)
Item(s) - P1_ORDER_NO
Condition - is not null
Action - Execute PL/SQL Code
Generate opposite false action - Unchecked
Fire When Event Result Is - True
Fire on page load - Unchecked
Stop Execution On Error - Checked
Wait for Result - Checked
PL/SQL Code -
declare
l_count number;
begin
select count(*) into l_count
from emp
where empno = :P1_ORDER_NO;
if l_count > 0 then
:P1_ENABLE_DISABLE_REVNO := 1;
else
:P1_ENABLE_DISABLE_REVNO := 0;
end if;
end;
Page Items to Submit = P1_ORDER_NO
Page Items to Return = P1_ENABLE_DISABLE_REVNO
3 ) Enable and Disable Revision Number
Event - Change
Selection Type - Item(s)
Item(s) - P1_ENABLE_DISABLE_REVNO
condition - greater than or equal to
value - 1
Action - Disable
Fire on Page Laod - Unchecked
Generate opposite false action - checked
Selection Type = Item(s)
Item(s) - P1_REVISION_NO
Hope this helps you,
Regards,
Jitendra
DER_NO -
Problem in populating 2nd combo box depending upon the selection of 1st
Hi all,
I have 2 combo boxes on my jsp page ,say continent and country . obviously the data in 2nd box is dependant on selection made in the 1st . I'm using MySQL with tomcat 5.0.7 . and JSP.
The first combo box in one form and the 2nd in another. After submitting first i 'm populating the second combo also.
But the problem is after submitting the first form the page gets refreshing and i can't see the selected continent in the first combo box.
The javascript code used follows:
function callCapture(form)
var item = continent.cmbContinent.selectedIndex;
document.country.hidContId.value=continent.cmbContinent.options[item].value;
document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
document.continent.target="_self";
document.continent.submit();
some one pls help me asap !Hi Reegz,
that's what i'm also doing and i'm successfull till populating the second combo box but how do I keep the previous inputs on the page and reload the page based on the change of a selection box?
Is their any mistake in the javascript code:
Here is the code:
function callCapture(form)
var item = continent.cmbContinent.selectedIndex;
document.country.hidContId.value=continent.cmbContinent.options[item].value;
document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
document.continent.target="_self";
document.continent.submit();
Pls help me... -
How to populate the second combo box by depending on the selection in 1st?
I have two combo boxes, both of data in the lists come from the database. The list in the second will be changed when the selection is changed in the first one. I am trying to do query again in the ActionPerform function, unfortunately the list in second one doesn't change.
I am learning Swing now, I really appreciate for any suggestions!
Thankscamickr,
I have another question for the tab pane. Now I have to remove the tab and add tab for updating the tab pane. I wonder if there is other way to do it. I really appreciate your help!
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import java.net.URL;
import java.util.Iterator;
import java.util.List;
import java.util.StringTokenizer;
public class test_tabpane extends JPanel implements ActionListener {
private JPanel MainPane;
private JComboBox combobox2;
private JTabbedPane TabbedPane;
private JComponent panel1;
private JComponent panel2;
private String [] resources ={"ZZAA", "ZZAB", "ZZAC", "ZZAD"};
private String selected_resource = "";
public test_tabpane() {
MainPane = new JPanel();
MainPane.setOpaque(true);
MainPane.setPreferredSize(new Dimension(600, 70));
MainPane.setBorder(BorderFactory.createRaisedBevelBorder());
combobox2 = new JComboBox(resources);
combobox2.addActionListener(this);
MainPane.add(combobox2);
add(MainPane);
UIManager.put("TabbedPane.tabInsets", new Insets(5,5,5,5));
TabbedPane = new JTabbedPane();
panel1 = makeTextPanel(resources[0]);
TabbedPane.addTab("Language/Notes", panel1);
panel2= makeTextPanel(resources[0]);
TabbedPane.addTab("Relations/Coverage", panel2);
TabbedPane.setPreferredSize(new Dimension(600, 340));
TabbedPane.setFont(new Font("ariel", Font.BOLD, 11));
TabbedPane.setSize(600, 340);
add(TabbedPane);
protected JComponent makeTextPanel(String text) {
JPanel panel = new JPanel(false);
JLabel filler = new JLabel(text);
filler.setHorizontalAlignment(JLabel.CENTER);
// panel.setLayout(new GridLayout(1, 1));
panel.add(filler);
return panel;
public void actionPerformed(ActionEvent e) {
JComboBox cb = (JComboBox)e.getSource();
if ("comboBoxChanged".equals(e.getActionCommand()))
// if ("comboBoxEdited".equals(e.getActionCommand()))
// System.out.println("in action:" + (String)cb.getSelectedItem());
String selected_string = (String)cb.getSelectedItem();
StringTokenizer st = new StringTokenizer(selected_string, "|");
selected_resource = st.nextToken();
updateTabbedPanes(selected_resource);
protected void updateTabbedPanes(String selected_string) {
panel1 = makeTextPanel(selected_string + " in Language/Notes");
int index = TabbedPane.indexOfTab("Language/Notes");
TabbedPane.remove(index);
TabbedPane.insertTab("Language/Notes", null, panel1, "", index);
panel2 = makeTextPanel(selected_string + " in Relations/Coverage");
index = TabbedPane.indexOfTab("Relations/Coverage");
TabbedPane.remove(index);
TabbedPane.insertTab("Relations/Coverage", null, panel2, "", index);
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
private static void createAndShowGUI() {
JFrame.setDefaultLookAndFeelDecorated(false);
//Create and set up the window.
JFrame frame = new JFrame("test");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
JComponent ContentPane = new test_tabpane();
ContentPane.setOpaque(true); //content panes must be opaque
frame.setContentPane(ContentPane);
//centers a frame onscreen // it is a problem for wide screen
// frame.setLocationRelativeTo(null);
frame.setLocation(300, 120);
frame.setSize(1024, 768);
frame.setExtendedState(java.awt.Frame.MAXIMIZED_BOTH);
//Display the window.
frame.pack();
frame.setVisible(true);
* @param args
* This is main function.
public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
} -
Enable/Disable item Based Value from Select in Tabular Form
Hi Guys
I want to Disable text field in Tabular form, Based on the Select List Item Value.
Let's Say
I'm having one select lista and text box in each record in tabular form.
Select List having 2 items ... Add Text(return value 1) and No Text(return value 2)
if value =1 then i want to enable text box , so user can enter value.
if value=2 then text box won't allow to add text or will become disalbe.
Please Help
ThanksHi,
You can do this by using a small java script
<script language="JavaScript" type="text/javascript">
<!--
function FldEnableDisable(pThis)
if (pThis == 50)
$x('P2_TEXT').disabled=true;}
else
{ $x('P2_TEXT').disabled=false; }
//-->
</script>Here P2_Text is the text box whose value I am enabling or disabling based on the selected value from a List box. On The list box I have onChange="javascript:FldEnableDisable(this.value)" ( You can specify this under HTML Form Element Attributes)
Thanks,
Manish Jha -
Interactive Report issue ( hw to come 5th list to back 2nd list directly )
Hi Experts,
I have one issue regarding Interactive report.
--> I am in 5th list , and i want go directly to the 2nd list .
--> Hw we select multiple line of data in one list and pass to another list.
Helpful answers will reward.
Regards,
Vinai.JUST HARD CODE
SY-LSIND = 2. IN YOUR FN CODE WHERE YOU HAVE TO GO.
i.e.
if sy-ucomm = 'BACK' and Sy-lsind = 5.
sy-lsind = 2.
endif.
regards
shiba dutta -
Setting value of items based on a radio group selection
Hi,
I have a radio group with 3 values (let's say A, B, C)... at the moment I have dynamic actions set to hide and unhide items based on the selection from the radio group...
e.g when value A is selected then only item_1 and item_2 are displayed, when value B is selected then only item_3 and item_4 are displayed... and so on...
idea was to let users to only enter information related to specific selection... but with what I currently have, users can select option A from the radio group and can enter information in item_1 and item_2 and then they can change there minds and select option B and start entering information in item_3 and item_4 and when they save the form they potentially could have information in all items (item_1 to item_4 and so on)...
Is there a way I can set the value of certain items to null based on the selection from the radio group... e.g when user select option A, then values of item_3 and item_4 be set to null and if they select option B, then values of item_1 and item2 be set to null...
Please advice how to approach it the best... I would appreciate a step by step solution as I am a new bee...
Thanks in advanceHi,
You can hide and disable other items.
Disabled items values are not submitted.
And you can create after submit computation that set NULL to item session state according your radio group state
Regards,
Jari -
Multiple values selection in Selector Component of Xcelsius
I wanted to select Mutiple values in Selector Component?I dont want List Builder..I wanted to Select multiple values in Combo box or List box..
Is there any way?
Thanks in Advance..
MiniHi Mini,
First of all check your version of Xcelsius ( open Xcelsius -> got to Help tab ->About Xcelsius check the version) if it is 5.3.3.0 then its ok...otherwise open the below link to download the HotFix-
[https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
the functionality is offered in latest Fix Pack only. After you install the fix, you will get an additional functionality of multiple series selection in Combo Box as well as in List Box.
Add as many series as you want for multiple value selection.
Good Luck. -
Populate the values to list item based on a check box
Hi,
How can i populate the values from a field on the form to one list item based on a check box,
the pseudo code is like,
if checkbox = checked then
populate the particular field value to the list item;
checkbox = unchecked;
next_record;
end if;
Thanks
BcjTo populate a Tlist item, do the following:
1. Create a TLIST item in the EMP block. and give it a height to accommodate several names.
2. Using the TLIST property pallete:
a. Set the Column Name property to EMPNO
b. Click on the Elements in List property. Delete each List Element and delete each List Item Value. If you don't do this you will get an error when you compile.
3. Create a record group using this query:
select ename, to_char(empno) from emp
4. Create a WHEN-NEW-FORM-INSTANCE trigger, and place this code inside the trigger:
Declare
err_num number;
Begin
clear_list('YOUR_TLIST');
err_num := populate_group('YOUR_RECORD_GROUP');
If err_num = 0 Then
populate_list('YOUR_TLIST', 'YOUR_RECORD_GROUP');
Else
message('Error populating Tlist');
message('Error populating Tlist');
End If;
End;
5. Compile and run the form. The ENAMEs will appear in the TList, and each ENAME will have a value equal to its EMPNO. -
How to Populate a drop down list using the values of a text field?
Hi,
I wanted to Populate the items of my drop down list according to the value entered in the textfield above it?
also the value of list remains consistent in other rows also where i am using the drop down list field.
Please Try to help me in this query.
Thanks in Advance!!!
I am using Javascript in adobe version ES 8.2.Part II:
If you have other items for your droplist(s) that are to appear in addition to the "variable language" entered by a user you can add that to the script. For example in addition to the Party1 and Party2 name appearing in my droplist I also want the list to have an option for a user to select: The parties jointly. I add this to the script:
this.addItem(Party1.rawValue);
this.addItem(Party2.rawValue);
this.addItem ("The parties jointly");
If you have trouble making it work, post a bit of your actual form requirements. -
Condition that checks the value of an Item derived from a select list
I want to conditionally display and hide items in a region based on a select list item.
Some items will display when the select list is at the default (%null%) and others will be displayed when the select list user selects from the select list.
The display is then updated when the "SAVE" button is pressed and the page processed.
How do I test the select list item to be null. The condition looks like this;
Type: PL/SQL Expression
:P1_SELECT is null
I also tried, :P1_SELECT is not null and :P1_SELECT = '%nul%'.
The latter changed the condition to :P1_SELECT = ''
How can I test the valu in P1_SELECT?
tia,
Sam
Message was edited by:
After a long day I saw that I did not write the condition correctly. Mea culpa.
slavanawayI had the problem wrong.
The issue was a second field that could have a Y or N or null. When I checked it in PL/SQL expression as
:P_YN != 'Y' and :P_SELECT is null
assuming the null condition would resolve as != 'Y' I had to do an explicit check as
(:P_YN != 'Y' or :P_YN is null) and :P_SELECT is null
That fixed it.... I like null and I hate null
Thanks for the reply
Maybe you are looking for
-
Can Cover Flow Be Used w/General Websites
Hi troops, need some help. I like Cover Flow. I have a website I designed in Dreamweaver CS4 (though my photos page was done in iWeb, just merged onto my Dreamweaver pages). I used BannerZest to do a cover flow style for various books related to my s
-
which program is used to record the video demo of software products ie ;- http://www.apple.com/macosx/theater/dashboard.html also any ideas what settings are used to encode them so small..
-
Cannot open just purchased photoshop cc
I have just purchased photoshop cc...it will not open and says I need to reinstall. How do I do this please?
-
Seems like any change on my desktop hotmail is not reflected on ny BB's hotmail. Is this right ? I switched from a windows mobile dash which sync with hotmail was almost perfect (2-way) for my BB curve 8900 which I am very happy with bit I'd say that
-
A question about report completion in production order
Hi, Rightnow, i am trying to develop some application about production order and play with the production order in SAP. I found a issue which I don't understand. Let's say I have a production order with some components issued for the BOM and these co