LOV with subselect shows return_value instead of display_value
Hi,
I have the following dynamic SQL based LOV with a union in it that does not display correctly in the application.
SELECT role_name d, role_seq r
FROM apex_app_roles ar
WHERE security_level = 1
AND :F2500_APP_USER in
(SELECT au.user_id FROM
apex_app_user au,
apex_app_user_roles auar
WHERE ar.role_seq = auar.role_seq
AND auar.user_seq = au.user_seq)
UNION
SELECT role_name d, role_seq r
FROM APEX_APP_ROLES ar
WHERE security_level = 0
ORDER BY 1
The problem I have is the first part of the SQL is displaying the return_value instead of the display_value. If I comment out the following the proper value is displayed in the application.
AND :F2500_APP_USER in
(SELECT au.user_id FROM
apex_app_user au,
apex_app_user_roles auar
WHERE ar.role_seq = auar.role_seq
AND auar.user_seq = au.user_seq)
We currently have version 4.0.1.00.03 installed.
Is there an issue with this version and what I am trying to do or is there something wrong with what I'm doing? The SQL returns the proper results if I run it in the SQL workshop so I'm at a loss here and if anyone can help it would be greatly appreciated.
Thanks,
Bruce
The value is correct. I can run the entire SQL in workshop using parameter substitutions and it returns all the values correctly. So running this
SELECT role_name d, role_seq r
FROM apex_app_roles ar
WHERE security_level = 1
AND :F2500_APP_USER in
(SELECT au.user_id FROM
apex_app_user au,
apex_app_user_roles auar
WHERE ar.role_seq = auar.role_seq
AND auar.user_seq = au.user_seq)
UNION
SELECT role_name d, role_seq r
FROM APEX_APP_ROLES ar
WHERE security_level = 0
ORDER BY 1
returns all the rows and looks like this.
D R
ACP_ADMIN 3
READ_ONLY 2
READ_WRITE_ALL 1
SERVICE_DESK_ADMIN 4
Similar Messages
-
My IPOD Classic Video 5. Gen. showed videos, but now it does no longer show them, instead i see a black picture on my IPOD and it doesn`t work. I have to restart it every time, i try it. i restore the software with itunes, but the problem still exists.
The Videos are showed up front 4 months, but now they are no longer to be seen. When you star a video first the hard drive starts, but then it stops and hangs up. I have to restart it, starting with the apple logo....Here is what worked for me:
My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc. -
G5, 10.6.8, trying to print biz cards, instead of clear print with sharp edges I get fuzzy print with pixels showing. Saving as PDF doesn't help. Any solution?
Mac OS X Version 10.6.8, iMac12,1
.cwk (Appleworks)
Kodak Easyshare 5100
If I paste the jpeg on a draw page and shrink it to fit, fuzzy print. If I create the text directly on a draw page, it's fine. (That suggests to me the problem isn't in the printer.) But I want to include a small drawing on the card, and the pasted jpeg of that small drawing is very poor quality. -
I just updated to 10.8.4 and my mail program is showing a series of boxes with AAAAs inside them instead of the email addresses. Also when on Safari web pages are displaying the same AAAAAs instead of type. Firefox displays fine. Can someone help me?
Restart your Mac and immediately hold down the Shift key when you hear the startup chime to boot into Safe Mode. Keep holding the Shift key until you see a progress bar towards the bottom of the screen. You can let go of the Shift key at that point.
OS X asks you to log in (you will get this screen on a Safe Mode boot even if your Mac is set to automatically log in). Let the Mac finish booting to the desktop and then restart normally. This will clear Font Book's database and the cache files of the user account you logged into in Safe Mode.
Next, close all running applications. From an administrator account, open the Terminal app and enter the following command. You can also copy/paste it from here into the Terminal window:
sudo atsutil databases -remove
Terminal will then ask for your admin password. As you type, it will not show anything, so be sure to enter it correctly.
This removes all font cache files. Both for the system and the current user font cache files. After running the command, close Terminal and immediately restart your Mac. -
My apple logo doesn't shows up instead of it there is folder with a question mark on it?
my apple logo doesn't shows up instead of it there is folder with a question mark on it. how do I start up my macbook?
Click here and follow the instructions. If the computer was running Mac OS X 10.6.8 or earlier and you reach the third set of steps, insert a Mac OS X install disk.
(122478) -
one question I am looking for help with is, when you hit the history button I want my last fifty pages to show up instead of just fifteen. Is it possible to change that setting?
TYThe History menu can only show that fixed maximum of 15 as that is hard coded.
Maybe this extension helps:
*History Submenus Ⅱ: https://addons.mozilla.org/firefox/addon/history-submenus-2/ -
I have been having issues with my iCloud email on my iMac. For some time period, everyday, it won't reload and often shows symbols instead of letters for the text. Any ideas how to solve?
All I can suggest is that you open that file on the MBA and save it as a new file, then see if you can open the new one on the iMac.
-
Dynamic LOV with dates and selected default value
Hello,
I have a dynamic lov with dates. Query looks like this:
select distinct concat(to_char(b.send_day_time,'YYYY.MM.DD HH24'),':00') display_value, to_char(b.send_day_time,'YYYY.MM.DD HH24') return_value
from ...
No I want to select a specific date as the default value. I put the following code for the default value:
declare
begin
return to_char ('2008.02.19 10:00');
end;
But it doesn't work.The date (string) exists in the lov but it is not selected.
Can someone tell me where the problem is?
Thx in advance.
Greetings,
hamburgerHi hamburger,
As return value you specified to_char(b.send_day_time,'YYYY.MM.DD HH24'),
so your default value should be like to_char('2008.02.19 10'). Also pay attention to select the "Default Value Type".
Hope this helps.
chrissy -
Help! I have 2 problems related to iPhoto:
1: I accidentally ran iPhoto Library Upgrader on my Picture folder and now I have to right click on it to "show contents" instead of double clicking on it and looking at it in Finder. I cannot figure out how to fix my Pictures Folder so that I can click on it and view it in Finder, when I double click on it Terminal opens up with this message "Pictures - Bash 80x24" and
Last login: Mon Nov 3 14:00:05 on ttys000
Christinas-MacBook-Pro:Pictures christinagrierson$
It will not let me replace or delete the folder... I got to my files and backed them up, but trying to avoid reinstalling my OS.
2: When I try to Upgrade my Library.iPhoto file so I can open it in iPhoto it says I need to finish by opening in iPhoto, but then when I do, it tells me it first needs to be upgraded in the iPhoto Library Upgrader... Vicious circle. Please, help! Just trying to recover about 3 years worth of photos...Hi! Thanks for responding!
I have iPhoto 9.5.1, I am on OS X Version 10.9.5 on a MacBook Pro with 2.66 GHz
My current "iPhoto Library" file is OK (I can open it with iPhoto), however I cannot access the old one from iPhoto 6 titled Library.iPhoto
I tried right clicking and choosing the application, it did not work.
"exactly how did you "I got to my files and backed them up"" - I showed the contents of my Pictures folder, and it opened up the folders in Finder and I copied them to an external hard drive. In my Picture folder I have several folders of Photos plus the iPhoto Library files (old & current)
I do have old back ups, but they are from April, and I recently imported 5 months of photos from my iPhone, so the iPhoto Library I copied after showing contents is the one I need. -
Can someone tell me how to set my name so when I send a text it shows up instead of my phone number
Can someone tell me how to set my name so when I send a text it shows up instead of my phone number
You can't do that. Only the sending number is transmitted by the carrier with an SMS message. If the recipient has you in their address book, with most smart phones and some others, the name will display, but that's a function of the phone on the receiving end.
-
Using LOV with Validation on the Numeric Fields results in Error
Dear JHeadstart Team,
During my work with lov I encountered another problem. I defined a lov and attached the lov to a numeric field and check the LOV for validation. Now when I use LOV using the LOV button it works fine but when I enter some numbers and then press tab the LOV was not shown correctly and resulted in the following errors and the worst thing is that you can not navigate to any other pages and all try to navigate to other pages results in errors too. When we put the same LOV on a string field (which is not desirable for us) it worked fine.
It seems to me like a bug. Am I right? Is ther any solution or workaround for this problem?
Thanks in advance,
Navid
16:31:29 DEBUG (LovItemBean) -Cleared value of item HrTrainingCourseSchedulesTitle
16:31:29 DEBUG (LovItemBean) -Cleared value binding #{bindings.HrTrainingCourseSchedulesTitle.inputValue} of item HrTrainingCourseSchedulesTitle
16:31:29 ERROR (ApplyRequestValuesPhase) -java.lang.ClassCastException: java.lang.Long
javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.Long
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1079)
at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
at oracle.adf.view.faces.component.UIXSelectInput.broadcast(UIXSelectInput.java:215)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:249)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)
at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at com.pooya.controller.jsf.PooyaAuthenticationFilter.doFilter(PooyaAuthenticationFilter.java:256)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassCastException: java.lang.Long
at oracle.jheadstart.controller.jsf.bean.LovItemBean.validateWithLov(LovItemBean.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
... 31 moreHi Navid,
We ran into the same bug and have the next workaround for it:
We extended the JHeadstart class 'LovItemBean' and we have overridden the method 'validateWithLov(...)' with:
public void validateWithLov(ValueChangeEvent valueChangeEvent)
Object newValue = valueChangeEvent.getNewValue();
if(newValue != null && !(newValue instanceof String))
newValue = newValue.toString();
ValueChangeEvent newEvent = new ValueChangeEvent(valueChangeEvent.getComponent(), valueChangeEvent.getOldValue(), newValue);
newEvent.setPhaseId(valueChangeEvent.getPhaseId());
super.validateWithLov(newEvent);
else
super.validateWithLov(valueChangeEvent);
}Next step is to use a custom template in your JHeaedstart Application Structure file for 'LOV_ITEM_BEAN'. In this custom template you should use your own class as 'managed-bean-class' instead of the default JHeadstart one.
Now you can safely generate LOV with validation of number fields.
Maybe something the JHeadstart can pcik up in the next release of JHeadstart :-)
Hope this helps.
Pascal -
LOV with images that originate from a BLOB in table
Hello,
i am using APEX ver. 4.2.1.00.08, with Oracle 11g R2. (11.2.0.3.0 + Patch 15), under Windows 7 64 bit. I have a table that stores images, that has the following desc:
Name Data Type
ID NUMBER(*,0) NOT NULL
FILE_NAME VARCHAR2(1024 CHAR) NOT NULL
MIME_TYPE VARCHAR2(100 CHAR) NOT NULL
CONTENT_TYPE VARCHAR2(100 CHAR) NOT NULL
FILE_SIZE NUMBER(*,0) NOT NULL
VERSION NUMBER(*,0) NOT NULL
PAYLOAD BLOB(4000) NOT NULL
SERVER_ONLY VARCHAR2(1 CHAR) NOT NULL
CODE VARCHAR2(200 CHAR) NOT NULL
LAST_UPDATE_DATE DATE
I need to build a LOV from this table, that instead of the name, it displays the image that is store in PAYLOAD field. I need this LOV to be displayed/used as a Select List in a Form.
Can this be done ?
i have tried this up to now, with no success, as the source for the LOV:
SELECT gi.ID,
decode(nvl(dbms_lob.getlength(gi.payload),0),0,null,
'<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius: 4px;" '||
'src="'||
apex_util.get_blob_file_src('P41_PAYLOAD', gi.id)||
'" height="75" width="75" alt="General Image" title="General Image" />')
IMAGE
FROM GENERAL_IMAGE gi
ORDER BY gi.CODE ASC
What is displayed unfortunately, is just the text in the combo box (select list).
Any idea if i can achieve this ?
TIADionyssis wrote:
i am using APEX ver. 4.2.1.00.08, with Oracle 11g R2. (11.2.0.3.0 + Patch 15), under Windows 7 64 bit. I have a table that stores images, that has the following desc:
I need to build a LOV from this table, that instead of the name, it displays the image that is store in PAYLOAD field. I need this LOV to be displayed/used as a Select List in a Form.
Can this be done ?Not using a select list. The content model for the elements<tt>option</tt> elements that comprise the select list only allows them to contain text, not other HTML elements like <tt>img</tt>. (APEX also escapes the LOV labels which is why you see the HTML code when the item is rendered.)
Any idea if i can achieve this ?It might be feasible using a Pop-up LOV, but if you want something displayed directly in the page you'll need to find a plug-in or create some kind of custom component. For the latter useful building blocks would be a dynamic list, hidden item, dynamic action(s), and some CSS. -
OT - Attack of the As? Mail is showing As instead of E-mail content?
Hi all:
In the past few days, most of the e-mails I am receiving are showing up as full of little As, some inside boxes, some just lines of As. It seems that they are mostly showing up instead of signatures, graphics, etc. Very strange. I use Mail and I can send and receive my own e-mails with graphics attached and they show up fine. I mailed myself an e-mail with a graphic attached to test it and the result was perfect.
Tried deleting Mail prefs (com.apple.mail.plist) but unfortunately that is where Apple also keeps your mailboxes so I couldn't delete the .plist.
Has anyone experienced this weirdness and if so, how did you fix it? It is really obnoxious not being able to see half of the content of your e-mails. Some logos show up but most seem to be getting turned into As as well as a lot of content. This just started a few days ago, I have not updated software or anything new lately since this began.
Anyone have any advice on how to solve this issue?
Thanks,
Dan BrockettIt sounds as though you have corrupted fonts.
What I would suggest is a safe boot, pram reset and a general repair of permissions.
Not necessarily in that order. Try changing the font that mail uses in mail preferences. You should be able to identify which font is causing the problem. -
LOV does not show newly added data in the same session
Hi guys,
I work with JDeveloper 11g Release 2. We use Oracle ADF to develop our web app.
In a page we have a LOV (say the page name is "a"). The related data for that LOV is inserted to the db in another page ( say the page name is "b").
When new data is added in the page "b" and goes directly to the page "a" the LOV does not show newly added data. But if the user log out and log in again
LOV shows newly added data correctly.
Is there a way to show the newly added data in the same session without logging out? Please help.
Regards !
Sameera.Add the following method in your ViewRowImpl base class:
public void refreshLOVAccessorQueries() {
List lovs = getViewDef().getListBindingDefs();
if (lovs != null) {
for (Object obj : lovs) {
getListBindingRSI((ListBindingDef)obj).getRowSet().executeQuery();
ListBindingDef lbd = (ListBindingDef)obj;
Export that method to the Row Client interface, add him to the pageDef, and invoke in the executables section of the pageDef:
<executables>
<invokeAction Binds="refreshLOVAccessorQueries" id="callRefreshLOVs"
RefreshCondition="#{!requestContext.postback and empty bindings.exceptionList}"/>
</executables> -
I can't view video on imported clips on FCPX, it shows blue instead of image
I can't view video on my imported clips on FCPX, it shows blue instead of image on the clip. I can hear sound but no video. What is the problem. I wish someone can help me on this issue? Thanks.
The camera is Sony Handycam HDR-CX550. I used the internal hard disc to record. I can's use MTS clips if it is recorded on the internal hard disc. I converted clips into MOV, MP4, and Final Cut formats, non of them worked on Final Cut Pro X. I tried to import the same clips on iMovie, it worked but super slow. MOV and MP4 formats used to work for FCPX, the only difference is I recorded the footage with HD 1920x1080.
The clip I imported showed as a blue thing with two rectagle shapes on it. I can hear the sound, but no video. I also imported my old clips with sam format, it worked. I tried a lot of things, no use.
By the way, what is spwecs?
Maybe you are looking for
-
Hi I am working with pages for a book and have made already a layout whre photos and graphs etc. are partly outside of the area for the text, their posotion is not fixed the the text. And now I nedd support: When I add text or a photo to the layout t
-
How can I listen to my iTunes music on my IPAD without a wireless signal?
I have an ipad, version 4.2.1. Why can't I listen to the itunes songs I put into the ipad when I don't have a wireless signal? I can't advance past the "itunes store" screen. I synced it to my iMac, running 10.6.5. All the songs are there. I do not h
-
Saving all action in database with triggers
Hi I have oracle database 11gR2 . I dont have eny permission in datbase auditing,scn and ..... . I want to save all changes in database . i have 3 tables : tables , columns ,rowaction . in tables , saving name of all tables , in columns , saving name
-
[SOLVED] Kernel panic for an unknown reason
[Solved] Steps done to solve it: 0. Panic because I couldn't play starcraft2 (this step is sooo important! ;) 1. Updated my mirrorlist. 2. Forced a refresh on the package list from the new mirrorlist. "pacman -Syy" 3. Downgraded the kernel. 4. Delete
-
Exchange Fluctuation Entry for Segment account in SAP
Dear All, I have created segment account for two branch in SAP for each branch we are maintain foreign exchange gain and loss account seperatly.In SAP, only two account can be mapped in GL determination for only one branch. How to account exchange