selecting a value in the drop-down list but page must not get recharged again.
HelloI created a drop-down list. After you have selected a value from him, I can get a value in the box of text below according to updon one sql query. but the problem is that I HAV to select Page Action when the changed value parameter to the set value and redirect. Thanks to her whenever I have to select a value from the drop-down list, page get updated. Is there a way that will satisfy the requirement but page does not get new dependants.
I use apex 4.2.
Thank you
You can create A dynamic Action to set the value while changing the value in the Select list (drop-down list).
Event: change
Selection type: item (s)
Article (s): choose your selection list item
Action: Execute the PL/SQL Code
PL/SQL code:
begin
select colum_name into :Px_text_item_name from table where column_name=:px_select_list_name;
end;
Page elements to send: px_select_list_name
Page referred to return: Px_text_item_name
Its work for me without refreshing the page. Assume that, if you want to pass this value to the element in another page, then use the branch for redirection and assign the value to the element on the page of another.
Thank you
Lacombe
Tags: Database
Similar Questions
-
Migration to Jdev12c: Null pointer when you select 'no value' in the drop-down list
Hello world
We will migrate an ADF 11.1.2.3.0 to 12.1.2 JDeveloper app so we have a page jspx with a chart based on a VO and a drop-down list selectOneChoice to optionally filter the data of the VO, which makes the graph to change automatically.
In version 11, it works perfectly, but in 12, when the user does not select no matter what filter you get this exception:
< 26 November 2013 20 H 32' THIS > < WARNING > < org.apache.myfaces.trinidad.util.MessageFactory > < BEA-000000 > <
java.lang.NullPointerException
at com.sun.el.parser.AstValue.setValue(AstValue.java:214)
at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:291)
at org.apache.myfaces.trinidad.component.UIXEditableValue.updateModel(UIXEditableValue.java:361)
at org.apache.myfaces.trinidad.component.UIXEditableValue.processUpdates(UIXEditableValue.java:311)
at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildrenImpl(UIXComponentBase.java:1430)
at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1420)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:1174)
....
Any idea?
Thank you very much in advance,
Jose.Hi Jose
In your links, select your list. Then in the Inspector properties at the end, you will see something like optionList (don't remember the name), but you'll know when you see it. Select the index instead of the object.
Concerning
-
The value of the drop-down list are A, B, C.
If 'A' check the box, Text_A will be equal to Text_1. (this.getField ("Text_A") = this.getField ("Text_1") .value)
What is the code and where should I put it?
I did the code for it, but it shows invalid left hand.
As the combo validate the script, enter this:
this.getField("Text_A").value ="";
this.getField("Text_B").value ="";
this.getField("Text_C").value ="";
If (event.value == "A")
this.getField("Text_A").value = this.getField ("Text_1") .value;
Else if (event.value == "B")
this.getField("Text_B").value = this.getField ("Text_1") .value;
Else if (event.value == "C")
this.getField("Text_C").value = this.getField ("Text_1") .value;
etc.
-
I typed the wrong user name and now it comes up in the drop-down list. How can I get rid of him?
This has happened
Each time Firefox opened
== I typed the wrong name.
Delete a saved here password: Firefox > Preferences > Security: passwords: "saved passwords" > "show passwords".
See Password Manager - don't forget, delete, modify and import passwords saved in Firefox
---
http://KB.mozillazine.org/Deleting_autocomplete_entries -
Select the value in the drop-down list ADF/JSF without command button
Hello
My request is constructed using ADF and JSF (and JDev 10.1.3) and the form of a table with 2 drop downs. When the user selects a value in the first descent down, the program should go to the database and extraction of valid values for the second drop-down list. This is the case on the selection of the value in the drop-down and the user should not be required to click on any button command like 'Go' or ' Submit'.»
I'm new to JSF/ADF. How to get there? Any body there the code examples for this?
Thank youhttp://tinyurl.com/ygnvl87 :D
John
-
Display the export value of the drop-down list instead of the element
I'm showing the value to the export of a drop-down list instead of the selected option or the user selects BLACK, but the value of exports of BLK is actually displayed. I can find many discussions on how to get the value of the exports and display it or use it to trigger another answer in another area and I can usually tweak my existing JavaScripts when I need something new, but I just can't wrap my head around this!
This is my last attempt (failed)
var f = this.getField ("eyes");
If (event.value is 'Black - BLK')
f.Value = "BLK".
I use Acrobat PRO DC.
Any help is appreciated,
Thank you
Xavier
I've been doing this for a long time and have never heard of anyone who wants something like this, so it is interesting. Remove your current script and try the following script Format customized drop eyes:
Custom drop-down list Format script
Event.Value = event.target.getItemAt (event.target.currentValueIndices, true);
This defines what is displayed in the drop-down list in the value of exports of the selected item. Select the 'Value selected to validate immediately' option to the drop-down list for smoother operation.
-
Hello
How is it that I can't increase the left margin for the part of the value of the drop-down fields? Just to clarify, I'm not trying increase the left margin in the setting tab on the page of the object, but the left indent or margin of the value selected in the drop-down list. The text is just against the left side of the drop-down list box, as you can see in the first picture below, where defence"is. When I go into formatting, withdrawal of left which cannot be increased from zero. Any help is appreciated.
Alternatively, you can cheat it. It seems to work. Define the field as a text field, and the dash. Then go to the Type of object field and replace it with a drop-down list. This seems to keep the dash.
-
Restore the default value from the drop-down list
Hyperion Inreatctive reports.
I have an embedded in a dashboard report. I drag the lists that filter the report. Filter feed results and it works fine.
I want to put a command button on the dashboard that restores the default values from the dropdown lists. I have a selection in each drop-down menu, 'all '. "All" is the default value.
For example, for the year
drop_Year
for the region:
drop_Region
What command should I put on the command button that any value is displayed in the drop-down lists of this command, restore it to "all"?
Watch the Select() method
w
-
Get the value of the drop-down list (selectedIndex) and the text field - does not
Hi all
I'm trying to find and change the values selected by the user using a drop-down list and text field. Here's the code.
ChangeRevDetails(); function ChangeRevDetails(){ var myDialog = app.dialogs.add({name:"Enter copyright information"}); // var monthlist = col1.dropdowns.add('myList', undefined, myList); var col1 = myDialog.dialogColumns.add(); var col2 = myDialog.dialogColumns.add(); col1.staticTexts.add({staticLabel:"Month:"}); col1.staticTexts.add({staticLabel:"Year:"}); col1.staticTexts.add({staticLabel:"Rev. no.:"}); var myList = [ "January", "February", "March", "April", "March", "April", "May", "June", "July", "August", "Sepetember", "October", "November", "December" ]; var myMonth = col2.dropdowns.add({stringList:myList, selectedIndex:0, minWidth:100});//{minWidth:100}); var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100}); var MyRev = col2.textEditboxes.add({minWidth:100}); var RevMonth = (myList [myMonth.selectedIndex]); var RevYear = myYear.editContents; var RevNumber = MyRev.editContents; var RevToReplace1 = RevMonth +", "+ RevYear; var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber; var myResult = myDialog.show(); if(myYear.editContents == "") //entry is "" { alert("Please enter some text into the contents field."); ChangeRevDetails(); } else if(myResult == true) //user entered datas { alert (RevMonth); alert (RevYear); alert (RevNumber); alert (RevToReplace1); alert (RevToReplace2); app.findGrepPreferences = NothingEnum.nothing; app.changeGrepPreferences = NothingEnum.nothing; // grep find/change app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat = "[\\l\\u]+?\\s?\\d{4},?\\s+[\\l\\u]+\\.*\\s+\\d+"; app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9"); app.changeGrepPreferences.changeTo = RevToReplace1; app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9"); app.activeDocument.changeGrep(); app.findGrepPreferences = NothingEnum.nothing; app.changeGrepPreferences = NothingEnum.nothing; } else //implies user clicked cancel { myDialog.destroy(); } }
The problem is, it does not take the value that the user selects in the drop-down list and the text field. It takes the default value as "January" and the year is '2013' as these two values are given as selectedIndex:0 and editContents: "2013". I compared the coding with a few other scripts work as well, but it does not work. I added several alert boxes to check the value we get.
In addition, search for it and change also does not work. Please help me on this. Thank you.
Kind regards
Bachi. D
Change the order of dialogresults:
...
var myYear = col2.textEditboxes.add ({editContents: "2013", minWidth:100});}) var MyRev = col2.textEditboxes.add({minWidth:100});) Ditto var = myDialog.show (); If (myYear.editContents == "") //entry is «» { Alert ("Please enter a text in the content field."); ChangeRevDetails(); } else //user entered if(myResult == true) datas { var RevMonth = (myList [myMonth.selectedIndex]); var RevYear = myYear.editContents; var RevNumber = MyRev.editContents; "var RevToReplace1 = RevMonth + ', '+ RevYear; "var RevToReplace2 = RevMonth + ', '+ RevYear + 'Rev' + RevNumber;
...
did not have a look for the problem of change to find
-
Command to refresh a calculated field when you select an option from the drop-down list box
When my form user selects an option in a drop-down list box, the value in the field (in this case, Total) I would like to update, but it isn't.
A radio button option box makes the Total-development field to automatic update when the user clicks on the radio button. But the drop-down list box is not updated Total (without clicking away from the field). I would like to add a command in the Combo Box to refresh the Total field when you selected the option to drop-down list box.
Someone at - it a code (Javascript?) to get there.
Thank you very much.
You don't need a script, simply select the 'Value selected to validate immediately' checkbox on the Options tab of the dialog list box drop-down list box field properties.
-
Value of the drop-down list instead of the text
I want a drop-down list that includes complete definitions for the user to watch but when they choose the item they want only the abbreviation indicating on the form. For example, in my items list is said 'Illinois', but when they select "Illinois" she fills the field with the bind value of 'IT '. Is this possible?
See the attached file... If it helps...
I place a TextField on the top of the drop-down list and setting the rawValue selected the TextField... In the case of exit of the combo I hide list drop-down and display of the textfield object. Similarly, in the event you enter in the text field, I am displaying the drop-down list field and hide the text field.
This way I can show 'IT' If you choose "Illinois" in the menu dropdown.
https://Acrobat.com/#d=7Y0qDg-ld6nWNxw8G-0cNg
Thank you
Srini
-
Selecting a value in a drop-down list returns to an incorrect value
Hello
I have a table with drop-down lists in a column. The drop-down list provides 3 values: Yes, no and s/o. When the user selects n/d and leaves the cell, the value changes to no.
Any thoughts on what is the cause and how to fix it?
Thank you
MDawn
You can set the same value for two choices in the drop-down list. This is why it is failing the first condition in the list with the same value...
Or
You could not give the values for the items in the list... In this case, as they both start with "N", it will highlight the first item that starts with "N"...
Set different values for each element in the binding tab, then click on specify point values.
Thank you
Srini
-
fill a list based on a value from the drop-down list box
Well, I know a way around it but its quite long with what I know. I worked on a better solution for a day now. So maybe (or likely) someone knows better. I'm trying to fill a drop drop down based on a user selection figure in a list of check boxes. I know I could create several drop-down lists and hide away them until the user changes the value of binding. But the dropdowns would consume a lot of space in my form design in liveCycle. So is there another way or I'm stuck he made a long journey. I also need to assign values to these elements, since they change because the values are used as item numbers later that fill a text/number field later in form as a list of materials.
Tell me if I'm wrong, please (I'm new to all this)
in the box in the click event
If (this.) RawValue == 1)
{
dropDownList1.addItem ("item # 1", "value1111");
dropDownList1.addItem ("item # 2", "value2222");
}
on the other
{
dropDownList1.rawValue = "null";
}
I'm sure that null is not good and I don't know that I have to set the drop-down menu to clear items on preOpen. Or maybe not. And there is a way to add items without the addition of a new right of the line? I'm on the right track?
Hello
Rather than having the script in each of the boxes, you can have the script in the event preOpen the drop-down list that leans on the boxes.
I downloaded an example here: https://acrobat.com/#d=VwREjsMgvqXpVqPu54kSNw
Take a look at the preOpen the dropdown event.
// clear the dropdown displayed value and items this.rawValue = null; this.clearItems(); // repopulate the items based on the checkboxes if(fruit.rawValue == 1) { this.addItem("Apples", "fruit_001"); this.addItem("Pears", "fruit_002"); this.addItem("Oranges", "fruit_003"); this.addItem("Bananas", "fruit_004"); this.addItem("Grapes", "fruit_005"); } if(cars.rawValue == 1) { this.addItem("Volvo", "car_001"); this.addItem("Ford", "car_002"); this.addItem("Opel", "car_003"); this.addItem("Toyota", "car_004"); this.addItem("Nissan", "car_005"); } if(counties.rawValue == 1) { this.addItem("Co. Tipperary", "county_001"); this.addItem("Co. Cork", "county_002"); this.addItem("Co. Dublin", "county_003"); this.addItem("Co. Clare", "county_004"); this.addItem("Co. Kerry", "county_005"); }
Hope that helps,
Niall
-
Selecting correct state in the drop-down list.
Here is my delima. I have a form that gets repopulate when users come back to update their contact information. Name, address, etc. of the State. What I am having a problem with performs their State to be selected from a drop-down list. For example, if I'm from Ohio, so I want Ohio selected in the drop-down list. I don't want the user to have to select again the State if the information has not changed. Here's an example of how it is formatted.
< select tabIndex = "5" name = "State" >
< option value = "" selected = "selected" > < / option > "
< option value = 'AL' > Alabama < / option >
< option value = "AK" > Alaska < / option >
< option value = "AZ" > Arizona < / option >
< option value = "AR" > Arkansas < / option >
< option value = "CA" > California < / option >
< option value = "CO" > Colorado < / option >
Of course, the two-letter abbreviation is written and retrieved from the database.
Everyone works with this before?
Any help/information is appreciated.
BrianHere's how I made this...
Top of the page put
Then, when comes the time to put the list do that...
I hope this helps.
-
How to select several channels in the drop-down list for switching?
Hello
I use TS2015 SP1 and SwitchExec 2015. I created a list of routes that are now visible in the properties of the step "Activation" in the drop-down list field "Way (s) to connect".
Here, I can click on an item in the list to select it.
What can I do to select a second item in the drop-down list?
It seems that I have to write the second element after the decimal point manually. Is this correct? Or y at - it something to select back in the menu drop-down?
Thanks for help
My bad!
I wanted to say: «M2_C6R6 and M2_C7R7»
Maybe you are looking for
-
Highlights of a multicam project film full length
I turned a concert of 40 minutes with 3 cameras and the customer wants 5 minute highlight reel of this concert. I would be reasonably comfortable untangle a film multicamera concert full length, but what I can not understand is how to make a film of
-
LabVIEW can not detect the network drive so that other applications can.
All network drives are mapped correctly and another application such as micro soft office or windows explore can see the correct mapping LabVIEW can not see the mapping? No idea how to solve this problem? -VS
-
Compaq presario cq56-115dx: bios password began to appear on a presario cq56-115dx laptop
I have Compaq presario cq56-115dx and got the 53346355 Lock password can u help me
-
Why my printer always do something called prepares to halfway through my impression? It should not prepare when it is turned on the first thing in the morning?
-
Then print error in the spooler (0x000006be)
I just upgraded from XP to Vista Ultimate. After the upgrade, I tried to install a printer and reveived a few errors. The errors that I start with the print spooler not started / restart. After starting the spooler, I get the error "cannot open add