NVL selection list does not not on the place where clause in query
Ok. APEX 4.2...
Im having problems with my selection lists and NULL values... I see that it has come time and time again...
I have a tabular presentation, with a query based on a selection list. The selection list has the ability to '- Show All -'... The value of the selection list is a number, and the display is words... (for reference the LOV query is: select status, batch from pmt_stat_lookup by 1)
Initially I had problems with null and invalid numbers like ' display Null = 'Yes' and the problem of null % ', so have used the code in this blog to remove the NULL values... Display Null = & amp; #34; Yes & amp; #34; and the problem of null % | Inside Oracle APEX by Patrick Wolf
Then in the application of my report, I have a where clause clause that checks the value of the selection list... WHERE batch = nvl(:P11_STATUS_SELECT,STATUS_ID)
everything works almost fine, and I can choose a status, or I choose - see the All-, but the query will not include the lines where the State is null.
(I also see that maybe I should be, use the case statement instead of the NVL on where clause, but not sure of the syntax. In addition, NVL was used somewhat in the different reports in the application...)
For reference, the code of the old blog that I as a process page is:
BEGIN
FOR rItem IN
(SELECT NOM_ELEMENT
OF APEX_APPLICATION_PAGE_ITEMS
WHERE APPLICATION_ID = TO_NUMBER(:APP_ID)
AND PAGE_ID IN (TO_NUMBER(:APP_PAGE_ID), 0)
AND LOV_DISPLAY_NULL = 'Yes'
AND LOV_DEFINITION IS NOT NULL
-change here
AND LOV_NULL_VALUE = '% null | '%'
)
LOOP
IF V (rItem.ITEM_NAME) = "% null | '%'
THEN
Apex_Util.set_session_state (rItem.ITEM_NAME, NULL);
END IF;
END LOOP;
END;
Thank you very much
Richard
Richard,
Perhaps this example can help you solve your problem.
https://Apex.Oracle.com/pls/Apex/f?p=63838:2
Jeff
Tags: Database
Similar Questions
-
My selection tool does not display the transformation box?
I don't know what I did but my selection tool does not display the box of the scale (free transform). I have to continue to use the shortcut of 'e' and it's really annoying advice on how to fix it?
Thank you!!
I figured it shift + command + b
thaks fixes everything!
-
Have just got a 550qe of Pavilion and can not find the place where the monitor. The image on the book they sent shows the exact card, I need but can't find anywhere on the back of the PC. There are a few plates little who have the drivers there, but do not want to start removing the panels unless this is where some of the connections are hidden.
Hello
Can't find the official specs of HP. But since the following specifications
There
Ports:
- 2 x USB 3.0
- 2 x USB 2.0
- 1 x HDMI
- 1 x VGA
- 1 x jack Headphone-out/microphone-in the drop-down list
- Multi format card reader
Depending on your monitor, you can use HDMI or VGA to connect. What is your monitor (make and model)?
Kind regards.
-
arrow of the selection list does not work
Run version 4.2 against database 11g.
On one of my pages none of my page selection point lists are working properly. When clicking on the arrow at the end of the selection in the list list does not open, but if you click within the field where the text is displayed, it will open. I tried IE and Firefox and the result is the same on both browsers. If anyone has seen this behavior before?
After putting a few more space between list boxes, the problem solved. I guess even if visually there is space between them, it was somehow a kind of overlap.
-
DA to select list does not work
Hi friends,
I have a two of my form fields.
person ID < li >
< li > manager name (selection list)
I gave a value for the id of the person as '270' by default. So I need to write a dynamic action so that he'll be looking for the name of Manager according to the id of the person '270'.
As my manager name is a type of list, select, I gave the following query in the definition of LOV from this point of
It comes from the DA, I wrote for the column id of person.select papf.full_name d, papf.person_id r from per_all_people_f papf, per_all_assignments_f paaf, per_all_people_f supf, hr_all_positions_f hapf, hr_all_organization_units haou where papf.business_group_id = 216 and papf.person_id = paaf.person_id and hapf.position_id=paaf.position_id and haou.organization_id=paaf.organization_id and NVL(paaf.supervisor_id, papf.person_id) = supf.person_id and sysdate between papf.effective_start_date and papf.effective_end_date and sysdate between paaf.effective_start_date and paaf.effective_end_date and sysdate between supf.effective_start_date and supf.effective_end_date and sysdate between hapf.effective_start_date and hapf.effective_end_date and papf.person_type_id = 5145 order by 1
For the real action, I gave as "Set value" and gave the following query
Article submit page: P6_PERSON_IDselect supf.full_name from per_all_people_f papf, per_all_assignments_f paaf, per_all_people_f supf, hr_all_positions_f hapf, hr_all_organization_units haou where papf.business_group_id = 216 and papf.person_id = paaf.person_id and hapf.position_id=paaf.position_id and haou.organization_id=paaf.organization_id and NVL(paaf.supervisor_id, papf.person_id) = supf.person_id and sysdate between papf.effective_start_date and papf.effective_end_date and sysdate between paaf.effective_start_date and paaf.effective_end_date and sysdate between supf.effective_start_date and supf.effective_end_date and sysdate between hapf.effective_start_date and hapf.effective_end_date and papf.person_type_id = 5145 and papf.person_id = :P6_PERSON_ID
Affected item: P6_MANAGER_NAME.
Shortly after the loading of the page, the field of the crib should display the name of the Manager for the LOV '270' value that is in the element id of person. But it does not show the name in the selection list item.
Suppose that, if the Manager's name is in "view only" means that it works, but if the manager name field is in LOV means, it does not fetch the value and it displays only the display null value in this area.
I don't know why him DA does not work if the field is in LOV.
Brgds,
MiniHey Mini,
a page of type element "select list" always stores the return value (second column of your LOV) in the page element. So in your case, you actually rename the element of your page to P6_MANAGER_ID (to take into account that this is an ID) and change your 'Set Value' query for the papf.person_id
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Server behavior select list does not
I was finally able to find my CC Dreamweaver server behaviors after losing nearly 2 weeks of productivity. Adobe really dropped the ball on the removal of this widely used feature. In any case, now that I have this feature back all my work server behavior EXCEPT my behavior select dynamic list that has worked very well in Dreamweaver CS5.5. Everything I do is a client code of reading a table customers in a MySQL database and using this code to a code from the customer table to display all the codes/descriptions, highlighting what is the code for the current customer. On this update form the user can then select a new code that will update the customer record in the customer table. It's pretty simple and I know how do it. However, it does not work in Dreamweaver CC. The only difference in my CS5.5 version and the new version of CC, it is that I do my sensitive site, <! doctype html >, bootstrap.css and www.w3schools.com/lib/w3.css. That none should make a difference. All my other server (text, radio button) behavior work fine in Dreamweaver CC. HELP!
The server behaviors have been removed for a good reason. Does not work the code they generate in PHP 7, which is scheduled to be released next week. Or it will work in many sites running PHP 5.5 or 5.6 because some hosts have disabled the original functions of mysql in PHP.
You can make a strong argument for Adobe update server behaviors to work with MySQLi or PDO (a lot of people already have), but you are living on borrowed time if you continue to rely on the old server behaviors. Even if Adobe has created versions updates tomorrow, server behaviors, you will still need to recode all of your pages because the code in the server behaviors cannot be easily replaced.
-
Selection lists does not not on Android FF but work on default browser
Hi, hoping for help
Building an online game site that I'd like to work on the mobile and the PC without different versions.
I find that the selection lists do not open on FF Android or iOS FF-mobile, even if they work fine in the default browser Android and chrome. Could someone help me debug this, or is this a problem in FF?
Page URL: http://www.HoldingTheBall.com/clubroom.php?logon=1
To test: load the URL, click on the image of the Guernsey on the middle right, and then try to use one of the selection lists.
Features of the page: HTML4, CSS, JS, Jquery, Jquery ui, Jquery-touch-punch (by drag and drop on mobile)Any suggestions would be greatly appreciated!
There is no such thing as Firefox iOS. There is Firefox at home, who would have bookmarks Firefox Sync and the history of your iOS device. All the browsers on iOS are based on the iOS stock Safari Webkit.
That being said on Firefox for Android that I see the behavior you mention. Is it still a question if you disable the div dragging?
-
ADF table selected displayRow does not display the selected line
Hello
JDev 11.1.2.4
I have a table with selection enabled and displayRow property the value selected. In the workflow, I have an ExecuteWithParams activity, and then a method activity that restores the current iterator of the line. Finally the activity view that displays the table.
Restore the current line with key
Iterator DCIteratorBinding = ADFUtils.findIterator ("MyIterator");
iterator.setCurrentRowWithKey (currentKey); currentKey is a string
The question I have is that the current line is properly restored, but the table does not display the page of "range" of the current line while the displayRow is the selected value. My table has 500 rows, the table displays the top 25 while the current line is the 500th line. I expect the table to display the line 475 to 500 line.
What I am doing wrong?
Thank you
You can save the index lines before executing your method and then set the iterator to this index.
The technique is described in this blog https://tompeez.wordpress.com/2016/02/12/naviagting-an-aftable-in-pagination-mode-from-a-bean/
Timo
-
Cascading selection lists - does not
I'm trying to implement the Ajax solution cascading select list of Denes Kubicek.
[http://apex.oracle.com/pls/otn/f?p=31517:119]
But something is wrong with my configuration.
I created all the pieces, but for some reason it is like the
Attribute of the HTML form element defined on my point P3_emp_dept is not called.
OnChange = "get_select_list_xml1 (This, 'P3_emp_name');
The two elements of P3_emp_dept and P3_emp_name selection list are defined as "Select generic list".
For the Source, I tried the two "Always" and the "only when... sucks.
Source type is defined as the "column of the database" P3_emp_dept and P3_emp_name respectively.
When you fill out a blank page after choosing the P3_emp_dept, the P3_emp_name
selection list is empty.
When you change an existing record, if a different value is chosen for P3_emp_dept,
the selection list for P3_emp_name still shows in the former Department employees.
Any ideas?
Thank you, SueSue:
The second parameter to the function 'get_select_list_xml1' must be the name of the selection list that displays the names of the employees.
Modify the call to this function for the 'Exchange' event handler declared to the selection list.onchange="get_select_list_xml1(this,'P3_EMP_NAME');"
CITY
-
JDeveloper does not support the SQL expert, cannot add query clause to view link
For developers who can know:
I use JDeveloper 10.1.3.4 and I have two tables, we're STUDENTS, the other is the PRICE, with a one-to-many relationship (a student may have several awards), and ID is the foreign key:
In the application, when a student (9999, JOHN) connects, the information above is displayed. I need to add up all the awards for the student and to display not only the elements of price, but also the total amount of all awards. To do this, I created another object to view named TotalAwards in the object entity the price just to get the total amount. The SQL code of the VO'sSTUDENTS ------------------------ ID NAME DOB ------------------------ 9999 JOHN 01/02/1990 | | | | AWARDS | ------------------------ | ID DESC AMOUNT | ------------------------ ----------- 9999 PELL 500 9999 PERKINS 800 9999 LOAN 900
Then, a link is created between the students and the TotalAwards, and use of the new link to the view is added to the application module. TotalAwards is now available in the data control palette to be drag-and - drop to pages.SELECT SUM(Awards.AMOUNT) AS TOTAL FROM AWARDS Awards
Problem occurs when the application is invoked. An error is caught before the application can begin. The error message indicates that "the ends or the link view do not specify an attribute.
It seems that the TOTAL 'SUM (Awards.AMOUNT) AS TOTAL' is not recognized as an attribute. I have reviewed the query clause in the display link to see if it is there, such as:
There is no such clause in the query clause page. And I can not add a no more, because the page is grayed out and disabled. I think maybe it's for the same reason: TOTAL is not recognized as an attribute of the price.Attribute Bind Variable ------------ -------------- Students.ID :Bind_Id WHEHE :Bind_Id = Awards.ID
How to get around the problem? Or are there other ways to summarize the total amount and view it in the browser?
Thank you very much for help!
NewmanHello
Here you have a solution for the TOTAL:
http://www.freewebalbum.com/blogs/faces/bjanko/blogs.jsp?blog=bjanko20070725180020Kind regards
Branislav
-
Y50 - 70 can not find the place where to turn off caps lock idicator!
Hey, I have lenovo y50 - 70 portable games and every time I hit caps lock in game in the game of minimazes. Its ruining my gaming experience. Can't find anywhere how to disable caps lock / num lock indicator on windows 10. can u help me?
I found this as an hour ago and it worked, so my problem is solved.
1 window key + R
2. Type "regedit" and press ENTER.
3. click on Yes
4. navigate to HKEY_CURRENT_USER/Software/Lenovo/energy Manager.
5 double-click on NotShowMsgAgain.
6 change the value from "00 00 00 00".
7. click OK, and then restart.
8. press on caps lock shift several times after that you get on the desktop and the pop - up should appear, allowing you to choose "no thanks."Anyway your solution does not in any case coz I can't find any "Widcomm" but tnx for the late response...
-
Associated files list does not include the file extension '.pdf '.
I can't open a pdf file by clicking on the name of the file. This is a recent problem (2 days). I checked my list of associated file and there is no listed ".pdf" file extension. I uninstalled Adobe Reader and then re-installed, but that has not helped. I am running Windows Vista - Home Ed. Can I fix?
Dale...
See if it works.Right-click on the file.
Select: Open with on the shortcut menu.
Click: Choose [default] program.
Letter: Adobe Reader.
Check: Always use the selected program to open this type of file.
Click OK. -
In 2009 of LV, if you double-click an implementation in the dynamic distribution selection dialog and VI is already open, it will not be credited toward the front. It worked correctly in earlier versions.
Have a look at the attached draft for an example.
Please try to drop the VI attached on top of program NIUninstaller Instruments\LabVIEW XXXX\resource\Framework\Providers\LVClassLibrary\ChooseImplementation\CLSUIP_OpenImplementations.vi and let me know if it works for you.
-
ADMITTED that Cookies exceptions list does not keep the entries from one session to another.
YES, I searched the KB for a response... no joy. I want to manage my cookies by adding a few sites I want to allow cookies for, with all the other sites being rejected and me be prompted whenever a site wants to dnld a cookie. I think I understand all of the available settings, but I can't bet FF to keep the list of allowed websites from one session to another, and sometimes FF keeps their same immediately after I save them. I've never had a problem with FF3, but now I'm having this problem with FF4.
You can't keep cookies if you run Firefox in private browsing mode.
Private - browsing using Firefox without saving history all cookies are session cookies that expire if this session is over, so sites don't remember you. -
Programmatic setting of the place where clause does not.
Hello
I use Jdeveloper 11.1.2.2.
I'm trying to interview some lines of the VO by placing the VO in the programmatic way as it appears in this documentation: http://docs.oracle.com/cd/E15523_01/web.1111/b31974/bcquerying.htm#CHDEBEAF
But it returns no rows. While I was trying to interview through the SQL command line he questions the lines.
Are there conditions that only bind the variables declared in the VO can be queried in the programmatic way? I tried also. It is not always all the lines.
Thank you
Nigel.I meant turn on diagnostics.
http://jdeveloperfaq.blogspot.com/2009/12/FAQ-6-How-to-fine-tune-ADF-Diagnostics.html
Published by: in the line of fire on July 25, 2012 11:54
Maybe you are looking for
-
Can I boot in 32-bit mode?
MacBook Pro 17 "(8,3) i7 2.2 GHz Quad Core 16 GB DDR3 750 GB HD OS X Mavericks 10.9.5" I am trying to connect to a USB 1.1 device which has incompatible firmware with 64-bit OS X. The camera manufacturer's instructions for a workaround that allows a
-
Search in FF4 bar does not work
Just upgraded to FF4 but now the search bar does not work. I click on the magnifying glass, and nothing happens. I used to love this feature.
-
Installation of Windows XP on Satellite Pro L40
Hello I would like to install windows XP on my Satellite pro L40. The installation instructions, I download and create a driver AHCI FDD. Installation instructions present in the selection of the type of driver that I need to select PACKAGE DRIVER bu
-
Sansa Clip + uSD 2GB card not recognized
I have a 2Gb Usd card in my clip and have formatted it with the clip. It shows in the Windows 7 Explorer, but any music files copied to it does not appear in the browser of the clamp and will not play. If I go to external files, it shows as empty.A
-
Hello, we had the following problem since we have put some of these models into production (3 in total and it happens to all 3 printers) We have an old program that sends print jobs to printers directly. It uses the internal settings of the printer t