List of selection with redirection sets the values to null
I saw another post with a similar issue. However, the answer given does not work for me.I have a "Site" text field whose value depends on a list of select 'customer '. I am able to set the value of "Site" based on the select list with redirect. However, other values on this page are reset to null.
I saw an answer that says to change the display of selection list type to "select the list to submit." But this type of display requires a page that deals with the process is created. This solution did not help either.
Any solution?
If you follow this example, you will be able to set the status of the session without redirection / layout page:
http://Apex.Oracle.com/pls/OTN/f?p=31517:229
Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------
Tags: Database
Similar Questions
-
List of selection with redirection on APEX 4.0
Hello
I have already used the apex 3.2 a few years back and am now working on something using 4.0. I want to conditionally display a field in a form that is based on the option selected in the select list. Previously, I would have the condition set on the field to display so certain the selection was made on the selection list, and this list would be defined as a selection list with redirect, likely to view or remove the field from the screen. Now, it seems that select lis with redirect has been removed from the APEX 4.0 and replaced by LOVs cascading, which is not good that the conditional is a text field. Can someone tell me how to set up this feature?
Thank you
MarkApex 4.0, you need to create an action show/hide dynamics, triggered when the selection list item is changed.
-
Set the value with XPath dynamically
Dear all,
I am wonder if what follows is possiable with service set the value using XPath, * simple * workaround is also welcome.
If I have a variable myXML =
< root >
< item region "A" = > 1 < / item >
< item region = "Two" > 2 < / item >< / root >
I can refer to /root/item [1] by:
Set /process/@myNum = 1
Set /process/@dummy = / process_data/myXml/root/item [number (\process\@myNum)]
[' But how can I access to /root/item[@region="One '] ?I tried the following, but all have failed:
1)
Set /process/@myString = @region = "One"
Set /process/@dummy = / process_data/myXml/root/item [string (\process\@myString)]
2)
Set /process/@myString = a
[Set /process/@dummy = /process_data/myXml/root/item[@region='string (\process\@myString)']
And is there a way to set a variable using the pattern string? (that is, you name is {$/process/@yourName$})
Concerning
Bill
Bill,
I created 2 simple samples that I enclose the answer as one. File ACL.
First to get the value of a node using an attribute, what you need to do is create a variable that will contain the dynamic data - in your case, the value of the region. Then create another variable that you receive the value of the desired XMl element - I called mine 'value '. If your setValue would look like this:
The location expression
/process_data/@region "One"
/process_data/@value process_data/xmlIn/root/item[@region=/process_data/@region]
As you can see, there is no need to use the string() function, because by default, while XML is a string. This is precisely why you should use the number() function when trying to identify an item by its index. Index must be a number, not a string.
Second, about the value of model with xPath. I created an example of process of e-mail to demonstrate this solution. You are on the right track, it's just that your syntax is incorrect. You have:
Your name is {$process/@yourName$}
It should be:
Your name is {$/ process_data/@yourName$}
-
Hello
I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.
I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).
When you select "1074" in the bathroom, building highlights like "BRM BLD 5"
When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"
When the room is Null, building should also be Null.
I thank you,
Alice
I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.
Thank you
Erick
-
Dynamic action to set the value to select the text box list
Hello
I want the value in the list box select text box i.e list selection with 5 static values and on the user's selection, this value must be added in a box.
I am using dynamic measurements. I tried with dynamic action and created the change list box select evnent but now how to set the value of the selection list to
text box that I don't know.
Help, please.
Thanks in advanceHello
I changed the dynamic on this page action to make it work now. I changed the "value Type" action 'Set value' 'Expression JavaScript' and "JavaScript Expression" do the following:
$v(this.triggeringElement)
This example gets the value of the page element 'DESPROGES', bypassing the server for nothing, as you did before.
I hope this helps. Let us know if you have any other questions.
Kind regards
Anthony -
Select the list with propose pulling the values of %
Hi all
I have a tabular presentation of data app and from views of the choices selected in the 'list of selection with submit' the post, it works very well for the chosen values, when I choose '%' I want to display all existing records in the form of tables, but instead he said: "no data found". How to solve this? Kindly help and advice.
ex:
Query tabular-
Select a, b
table
When a type: POINT
Agenda:
Type: select the list to submit
Named LOV:
Select a d, a r
from table_recherche by 1
Receive your answer.
Thank you and best regards,
SenanaHello
You have to check what is the value returned by the selection list when you select '%' in the select...
There is a null value to display field where you can enter '%' and the return NULL value you enter 0then change your query in a table
Select a, b from table when one like: POINT GOLD: ITEM = 0Kind regards
Shijesh -
List of conditional selection without redirection on the Action Page
Hello
I have a problem when I want to create a condition between two elements. For example I select Yes on the first point, it should show up the second aria from point text... If not on the first point, the second item should stay hidden.
I tried with condition on the second point, but I had to choose "Redirect and set the value" on "Page Action time modified value" on the first point... that refreshes the whole page and clears all previous items.
Can you please help me with a workaround for this problem?
Thank you!
You have two elements on the page
P1_ITEM1
P1_ITEM2
Create a dynamic action
OnChange P1_ITEM1
Is equal to "Y".
See the P1_ITEM2
When you create also check the options to create false actions and trigger the page load
Remove any link redirect on P1_ITEM1
-
Get and set the value to allow selected rolling Shuffle and facing page
Hello world
I work with the page and spread,
For now, I want to value page spead shuffle and type of document.
but I just find the function to get and set the value for the Document Pages allow Shuffle using the
InterfacePtr < IPageLayoutPrefs > iPageLayoutPrefs (static_cast < IPageLayoutPrefs * > (: QueryPreferences (IID_IPAGELAYOUTPREFERENCES, iDocument)))
It has no function to set and get the value of enable selected rolling Shuffle and facing page
No one knows about it?
I thank in advance
There is no code for this example in the SDK or internet. Just understand and apply the concept.
Find the code for the shuffle spread and together following spread shuffle...
// Get active spread UIDRef GetActiveSpread() { UIDRef spreadRef = UIDRef::gNull; InterfacePtr
layoutData(Utils ()->QueryFrontLayoutData()); if(layoutData) { spreadRef = layoutData->GetSpreadRef(); } return spreadRef; } // Get spread shuffle of passed in spread bool16 GetSpreadShuffle(UIDRef& spreadRef) { InterfacePtr spread(spreadRef, UseDefaultIID()); if(!spread) return kFalse; InterfacePtr iBoolData(spread, IID_IISLANDSPREAD); if(iBoolData) { return iBoolData->GetBool(); } return kFalse; } // Set spread shuffle of passed in spread // @param bValue: kTrue = no shuffle, kFalse = allow shuffle ErrorCode SetSpreadShuffle(UIDRef spreadRef, bool16 bValue) { ErrorCode status = kFailure; InterfacePtr spreadCmd(CmdUtils::CreateCommand(kSetIslandSpreadCmdBoss)); if(!spreadCmd) return status; spreadCmd->SetItemList(UIDList(spreadRef)); InterfacePtr iBoolData(spreadCmd, UseDefaultIID()); if(iBoolData) { iBoolData->Set(bValue); } status = CmdUtils::ProcessCommand(spreadCmd); return status; } -
NPE when you set the value of list binding
Hello
JDev 11.1.2.4
I have a list named Country1 linked to an executable variable country of type String binding. I'm trying to programmatically set the value but I get a NPE.
public static BindingContainer {} getBindingContainer()
return (BindingContainer) JSFUtils.resolveExpression("#{bindings}");
}
JUCtrlListBinding Country1 = ((JUCtrlListBinding) ADFUtils.getBindingContainer () .get ("country1"));
_logger.info ('Information' + country1.values () .size ()); Returns the value 100
country1.setInputValue("*");
I get the following NPE while * is a correct value in the list:
java.lang.NullPointerException
at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.findIndexFromObject(FacesCtrlListBinding.java:390)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.setInputValue(FacesCtrlListBinding.java:455)
Thank you
I got it to work but it makes no sense:
Ok:
BindingContext lBindingContext = BindingContext.getCurrent ();
BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();
JUCtrlListBinding Country1 = ((JUCtrlListBinding) lBindingContainer.get ("country1"));
Country1.getInputValue ();
country1.setInputValue("*");
KO with NPE
BindingContext lBindingContext = BindingContext.getCurrent ();
BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();
JUCtrlListBinding Country1 = ((JUCtrlListBinding) lBindingContainer.get ("country1"));
Country1.getInputValue ();
country1.setInputValue("*");
It seems that I have to read the value before it is changed.
-
Set the value hidden with dynamic action
This is probably very simple, but I don't know exactly what I'm doing wrong. I would like to use a dynamic action to set the value of an item hidden in the value of a selection list when that select list of changes. So what I have is:
Event: change
Selection type: point
Article: P1_SELECT
Action: Set
Set type: PL/SQL Expression
PL / SQL: P1_SELECT
Items concerned:
Selection type: point
Point: P1_HIDDEN
where P1_SELECT is my list selection and the P1_HIDDEN is my element hidden.
It doesn't seem to work. I don't know that I'm doing something very simple, bad. This should be easy points for someone!
Thank you!
John
It's actually a session typical State missunderstanding. When the selection list is changed, it does not change the value of session state, but only the value of the side (browser) client. If you set value action will set the status value for current session on the element hidden, which will probably be NULL (or any value it is on, you can see in the session tab in the developer bar).
Instead of a type of expression plsql for your set value action, must change to a javascript expression:
$v ("P1_SELECT")
who will get the value of the element of page P1_SELECT currently on the page.
PS: also, in your affected items your article is ": P1_HIDDEN"-is two points in front of deliberate? It shouldn't be there
PS2: If you mean to send the page, then you can set the property to 'protect the value' of the hidden element to 'No', otherwise you will receive a checksum error!
-
LOV cascading does not work when you set the value of the parent LOV with DA
Hi all
Using APEX 4.2.2.
I have tow LOVs
LOV parent article is: P50_TYPE
Child element LOV is: P50_PROJECT_ID
In other words in the attributes of the element P50_PROJECT_ID, we have:
> Cascade LOV Parent article (s): P50_TYPE
> The items to show page: P50_TYPE
> The list of values definition: something similar to:
Select * from mytable where type =: P50_TYPE
I use DA as run of the JS code to set the value of the P50_TYPE element
something similar to:
> $('#P50_TYPE').val (2);
After doing this, the P50_PROJECT_ID element does not get updated when the P50_TYPE value changes. Namely, P50_PROJECT_ID remains empty, unless the end user manually changes the value of P50_TYPE.
Any help please?
Kind regards
I had a similar experience, he expected a change event, so you can extend the jQuery to be included
$('#P50_TYPE').val (2) .changes ();
-
List of selection with zero value Submit reset
Hello
I have two list of selection with new submission namely A and B, both are dynamically filled with SQL query. The 'B' selection list is populated based on the value selected by the user from the list "A".
The problem comes when the user has selected a value from list "B" and by changing the value of 'A', the current value of the 'B' list indicates the value selected previously.
I'm new to APEX would be grateful if you could tell me How to reset the value of 'B' list when 'A' is selected.
Thank you
Spengler.Your list for ITEM B should allow a null value and the only other thing is to have a conditional process that fires when the request is POINT A. This process must assign POINT B null.
-
How to set the values of dependent choice list fields
Jin
I create a drop-down list in my page.
This list of choices has values. (coming from the vo)
What value I chose from the drop-down list that display certain fields value.
for this I take the value of the drop-down list and set this values to these fields.
its working fine.
but my doubt is, at the time of the loading page, these fields (list selection dependent fiedls) defaulitly contains a value
(this is one of the value of the vo)
But I don't want to see any value at the time of the loading of the page
Here, contains values null or empty fields at the time of the loading of the page.Hello
Instead of linking these text fields display attributes... create transient attributes in VO and link these transitional
the attributes of these text fields.Now you load the page set the transient attribute ' ' using row.setAttribute("Attribute","");
In addition, as the Pickist value is changed, and then also, you can set the value as you wish...
This will allow to permanently solve the issue.
Thank you
Gerard -
How to set the value of a * APPLICATION * with apex.server.process?
If I have a page named point P1_MY_PAGE_ITEM, I could put its value in the session by doing this:
$s('P1_MY_PAGE_ITEM', 'I Like Pie!'); apex.server.process( 'dummy' , { pageItems: "#P1_MY_PAGE_ITEM" } , { dataType: "text", async: false, complete: function( ajaxResponse ) { var ignoredReturn = ajaxResponse.responseText; } });
Which works very well. If you check the session, the P1_MY_PAGE_ITEM will now have the value: I like pie!
However, if I have an Application element (not a page element!) named MY_APP_ITEM, how could I do the same thing? How can I use apex.server.process to set the value of MY_APP_ITEM in the session? I wouldn't be able to use "pageItems" because MY_APP_ITEM is not a page element, it is a part of the application.
What is the correct syntax to do this?
Thank you
-Joe
Hey Joe,
Returning to that thread you made a couple of months ago, the answer is here:
Post adjustment Application items in the apex.server.process for a * process application *.
Defining a point of application is as easy as providing the name of the application element to p_arg_names Bay and set a corresponding value in the p_arg_values table.
For example, in an application with article SOME_ITEM of the application, I can put the value as follows:
(function(){ var arrNames = [], arrValues = []; arrNames.push("SOME_ITEM"); arrValues.push('some value'); apex.server.process( 'dummy' , { p_arg_names: arrNames, p_arg_values: arrValues } , { dataType: "text" }); })()
Any required application process. Should the item be free that you set it from the browser.
-
dynamic action sets the value of the element, but not save to DB on submit
I'm working on a page where the value of several to show only the page elements are defined using a dynamic Action. They are set when the user selects a value in a list of selection (and is based on the value of the selection list). Dynamic action is triggered on a list selection change event and then runs the real action "set the value. The selection list displays the names of sales representative. The three fields dynamically filled are the org structure (that is, their chain management).
For the action to set the value, I use a defined Type of SQL statement:
Select VP, DIR, MGR
of SALES_ORG where SSR =: P20_SSR
In the affected elements, I have fixed Type of selection to the 'item (s)"and the value of the Item (s) for 'P20_GVP, P20_DIR, P20_MGR.
Dynamic action works fine for the display of the page (that is, when I select a sales representative in the selection list dynamic action properly updated only display value fields three). This page is a form in which the user submits information relating to the rep. When the page is sent, all fields are filled in a new record of DB with the exception of three that were populated dynamically above. These fields get the values NULL.
When the dynamic action updates the values in the three fields is - it does not set the value of session? Why these fields don't are not taken into account in the submit other ideas > process Page?
I use 5 APEX with Chrome on Mac (Yosemite).
Thanks for the note. I didn't only display the items could not be used in this way. I think I'll take a different approach with the design; given that the org structure is in another table that I can simply refer to that by rep when necessary rather than saving the information uploaded to the page of the form. The reason why I have not fill the screen only the points of loading the page is because I don't know what the values should be until the user selects a sales representative in the selection list.
I'll change the design to one of the following:
1) change the display only items of standard text field. NOTE: if I make the text read-only field that causes other problems when loading (I get the message "violation of protection Session state").
OR
2) do not include org structure in the download folder and just refer to table org Rep when necessary.
Thank you!
Steve
Maybe you are looking for
-
List of places calendar appears behind the window
Recently, when I create an event in the calendar v8.0 and start to get into a place, the list of proposed locations appears behind the window of the event, so I can't display the entries of the first on the list. No matter where the event is located
-
How to find my computer from the start menu
There is NO ICON FOR 'MY COMPUTER' FROM DESK TOP, HOW DO i FIND IT?
-
the versions of Java and updates stored in the program files
I have 4 updates of java stored in the program files, ranging from 90 to 114 mb. what I need to keep all versions stored or is only the latest version be keep stored. I could use the extra disk space.
-
I hope someone can help with a problem I had. I just bought a desktop computer HP 7-1110 with a Cooler Master eXtreme Power Plus Series 500w ATX12V 2.3 power as well as a Galaxy GTX 560 2 GB graphics card in the hope of Starcraft 2 running. I got all
-
Any idea when the installer SAN HQ will be patched to support Windows 10? Right now it won't install not because he thinks that .net 4.5 is not installed, when it comes with 10 Windows by default. Guessing the installer is simply not set up to corr