query works not in the APEX but works in TOAD
HelloI had major problems trying to build a LOV cascading. I narrowed the problem down to SELECT which it depends.
I have the following:
SELECT pasv.vendor_name
pasv.vendor_site_code
pasv.vendor_id
pasv.vendor_site_id
OF po_asl_suppliers_v pasv
po_asl_documents_v padv
po_asl_attributes_v paav
WHERE pasv.owning_organization_id = 26
AND pasv.item_id = 131089
AND pasv.asl_id = padv.asl_id
AND pasv.asl_id = paav.asl_id
AND padv.document_type = 'COVERAGE '.
ORDER BY pasv.vendor_name
pasv.vendor_site_code
This query works well as a TOAD, but when I run it in APEX "SQL commands" it comes up with the error "ORA-01722: invalid number ' and when I try to generate a report about this no return value (the values are returned when you run the same query in TOAD and SQL Developer)."
Any advice would be great.
Thank you
Chris
Work around:
SELECT RPAD (SUBSTR (pasv.vendor_name, 1, 20), 20,' ') | » '|| RPAD (SUBSTR (padv.document_type, 1, 20), 20,' ') | RPAD (SUBSTR (padv.document_num, 1, 10), 20,' ') PROVIDER
pasv.vendor_id
OF po_asl_suppliers_v pasv
po_asl_documents_v padv
po_asl_attributes_v paav
WHERE pasv.owning_organization_id = 26
AND pasv.item_id = 131089
AND pasv.asl_id = padv.asl_id
AND pasv.asl_id = paav.asl_id
ORDER BY pasv.vendor_name
pasv.vendor_site_code
There seems to be a problem with the 'COVER' in the first SQL. Even if it is that a field of VARCHAR2 in the APEX database doesn't. It works somehow the other tool we use.
Tags: Database
Similar Questions
-
When you use Skype, my internal microphone does not work - friend says that he can not hear the voice, but he can hear other sounds - music on youtube for example. Ive tested the microphone on Skype Echo - it wasn't working at all. I tested it on a voice recorder - MIC was working properly. Also when I just started to use this laptop (3 days ago), I spoke with a friend through Skype for about 3 hours, and then he couldn't hear me suddenly annymore. If something is wrong with Skype. Computer consultant suggested me to contact Skype support technicians.
In Skype, open Tools-> Options-> Audio settings. There is more than one option available in the selection box for Microphone?
-
my touch pad on my laptop does not move the pointer, but when I have my mouse wireless pluged in it will work I was told I could have disabled the touch pad which I have to do to activate it again?
Hi dove2k,
Welcome to Microsoft Answers Forums.
You will need to enable the touchpad on the laptop itself.
Find the area of the touch pad, you will find a button to enable or disable the touchpad.
If the step above doesn't, try this step.
Go to control panel > mouse > device settings tab
Click(or to disable) Notes:
On some models, there is a keyboard shortcut to enable or disable the touchpad. For example, ACER, just do Fn + F7.
You can click on Reset device if none of these solutions work.If you still can't touch pad to work, you will need to contact the manufacturer of the laptop computer for more information.
Halima S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
recently I formatted my windows XP PC. after update to show that it does not allow the genuine.but when I brought it was authentic. I have the product key with me.Please,help help find the solution
Please visit http://www.microsoft.com/genuine/ and click the Validate Windows button, then restart your computer.
If you were not able to validate, follow these steps:
1. Download this diagnostic tool, save it to your desktop: http://go.microsoft.com/fwlink/?linkid=56062
1B. double-click the executable file to run the tool.
2. after running the tool, click the Windows tab, and then click copy in the Clipboard.
NB: You can open a new file in Notepad, paste the contents of the Clipboard in it & keep for future reference.
3 start a new thread in the following forum and paste the results of the WGA diagnostic data in a post detailing the problem: http://social.microsoft.com/Forums/en-US/genuinewindowsxp/threads
4 Troubleshooting specialist will analyze the data and recommend an appropriate solution.
~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft
-
My laptop is Pressario V2000. My laptop does not read the dvd, but another laptop reads the same dvd. PL is the solution. Thank you
Try another DVD to verify that your laptop can read at least the other DVD. If he can't play other DVD's then you need to replace the DVD - CD ROM drive supplied with your Pressario.
Another thing you can try is to check fingerprints or scratches on the DVD, some DVD players are more sensitive than others.
J W Stuart: http://www.pagestart.com
-
Can I use pictures from the reserve for commercial use for my members to do with. We would not sell the photos but the use for commercial use. (the 29.99 price months?)
Thank you.
Barbara
In your case you will very likely get extended licenses for images from Fotolia.com otherwise you would have to buy a new license for each Member who has access to use the weather picture they actually use it or not...
-
computer can not find the microphone, but worked before...
ORIGINAL TITLE: microphone
my computer cannot find the microphone. but the strange thing is that it worked before. now I don't him is nowhere Ive looked all over my computer. PLESE HELP! EVERYONE!
Right-click in the empty space below the 'Line In' device and check both boxes to show hidden and disabled devices.
-
Error ora-02019 in PL/SQL call in the apex, but not in a SQL Client
Hello
I encountered a strange problem. I have a process page type PL/SQL that runs on submit a form.
This process calls a PL/SQL package function.
When I run the PL/SQL Code from a SQL, for example SQL Navigator Client it works without problems.
When trying to run from the APEX, it is always fails with the error:
ORA-02019: description of the connection to the remote database not found
It's the SAME code in both situations.
It's the process code:
DECLARE
v_result INTEGER. v_result_msg VARCHAR2 (4000);
v_ref_date DATE; v_reset INTEGER.
BEGIN
-Prepare the arguments
v_ref_date: = TO_DATE (: P73_REFERENCE_DATE, ' DD/MM/YYYY');
v_reset: =: P73_RESET;
-Use the feature
TRC.trc_jobs.xade_daily_job (v_ref_date, v_reset, v_result, v_result_msg);
END;
When I debug Apex I trace to the bottom of the error, in a job that makes a join with a table in a database link.
It is the offending function:
FUNCTION (p_series_name IN VARCHAR2, p_date AS get_series_cfi_code,
p_date_active_flag in FULL)
RETURN VARCHAR2
IS
v_cfi_code instrument_type.full_cfi_code@dl_herds%TYPE;
CURSOR c_get_series_cfi_code IS
SELECT it.full_cfi_code
I, instrument_type@dl_herds INSTRUMENTS it
WHERE i.series_name = p_series_name
AND ((i.expiration_date = p_date AND p_date_active_flag = 0) OR)
(i.expiration_date > = p_date AND p_date_active_flag = 1))
AND i.product_id2 = it.id
ORDER BY i.expiration_date;
BEGIN
OPEN c_get_series_cfi_code.
SEEK c_get_series_cfi_code INTO v_cfi_code;
CLOSE C_get_series_cfi_code;
RETURN v_cfi_code;
END get_series_cfi_code;
No idea why this is happening?
I think to reproduce the table locally to eliminate the use of dblink as a last resort.
APEX Version: 4.2.4.00.08
Database version: 12.1.0.1.0
NLS: UTF - 8
TIA,
Dionisis
Are you sure that the dblink is accessible from the scheme of the analysis of the application? Run the code in your sql client in the same pattern?
-
Error 404 - not found listenerConfigure but not with the apex page
Hello
I just installed the listener APEX 2.0.1 as a stand-alone installation.
I don't use EPG.
I get the error 404 - Not Found When I pass in my browser the url:
http:// < My Server >: 7777/apex/listenerConfigure
but I have the correct application page when I get home:
http:// < My Server >: 7777/apex
Does anyone have an idea about goes wrong with that?
Kind regards.Hello
http://
: 7777/apex/listenerConfigure This URL does not exist for APEX listener 2.0.1 because the web configuration interface has been removed with 2.0. There was improvements to the command line interface to configure the listener of the APEX and there is a new interface, you can use with SQL Developer since 3.2 (current version 3.2.2 is recommended).
Always take a glance the documentation that matches the version of software you are using. In your case, it would be the [url http://docs.oracle.com/cd/E37099_01/doc/doc.20/e25066/toc.htm]APEX earphone 2 Installation and Configuration Guide.
-Udo
-
Bills of the AP - query gives output in the editor, but no data found when run from a workflow
Hello
I am working on a custom workflow related to invoices from the AP and I came across this very odd situation where the below query works perfectly well by operating in any PL/SQL as Toad/SQL Developer editor but when run in an Oracle Workflow custom, the query raises an exception NO_DATA_FOUND.
I set debugging instructions to capture the values of the parameters (lv_invoice_id and lv_hold_id being retrieved workflow attributes) before and after the SELECT statement and noticed that the values of the parameters are set correctly.
SELECT type
IN lv_match_type
DE ap_invoices_all aia , ap_invoice_lines_all Arnaud , ap_holds_all aha
OÙ ail . invoice_id = lv_invoice_id
ET line_type_lookup_code = "ITEM"
ET AIA . invoice_id = garlic . invoice_id
ET AHA . invoice_id = AIA . invoice_id
ET AHA . hold_id = lv_hold_id
ET ROWNUM = 1 ;
Can anyone suggest what could be wrong with that? Having spent 2 days trying to debug this but without success.
Any help would be greatly appreciated.
I added a function of the WorkflowTimeout JOB just before function which becomes the flag Match, and it worked. It appears like the workflow engine is somehow unable to assign values to the query. Putting a WAIT, he probably gave the workflow a second to assign variables with values. Seems very strange, but seems to have solved the problem. Do thorough tests to confirm that it does not break something else. Mike - appreciate all your help with this post until now. You were very prompt in answering my questions. Appreciate it.
-
JavaScript does not not in the APEX
Hello
I use the javascript code in the HTML header under the attribute of Page
< script type = "text/javascript" >
function test().
{
Window.Alert ('this is a Home Page');
}
< /script >
But it's not showing any result.
Can someone help me on this?
Hello
You don't mention what version of the apex, you work with.
But when you change the page it has 3 sections for javascript.
You can use function and the declaration of global variables and run when the Page loads.
Put the function in the part of the statement (No.
-
HTTP 404 not found - the/apex/f requested URL was not found on this server
All of a sudden, I get the following errors on one page in my application - "the apex/f URL requested is not found on this server".
I tried to export and import the page with no luck. The import/export process works successfully; However, I get the same error on the new exported page.
I can edit the page and the rest of the application is operational - I can not simply run the page without receiving the "Not found" error
I use the Oracle 11.2.0.3 database. I use thepl/sql gateway to connect to the APEX.
I looked at many articles from forum, but nothing seems to be due to my problem.
It seems that the key generated on the URL is damaged:
http://localhost:8585/apex/f? p = 101:3:1337553032969279:NO:
If I remove the 1337553032969279:NO: URL, the login page is running successfully, but a time Oracle tries to access the page it adds the BACKSPACE on the URL and I get the message "not found".
The keys for the other pages of the DBMS work very well. Only, I have a problem with this page.
Hello
You get this error when you run the APEX page?
Can you import your application to apex.oracle.com or reproduce the HTTP 404 not found error?
If you share the developer connection information in the workspace, I can try to take a look at what could be the problem.
Kind regards
Jari
-
Production PL/SQL query: can not find the error
I have a PL/SQL which produces a query for me, which is used to fill out a report. I use this to supply a filter/search form. Since I want to only filter using xxx movies WHERE = yyy when yyy actually has something else NULL, I use a PL/SQL script in the query I need to produce. However, it does not work as expected and I can't understand why. Here is my code:
However, the report still contains all lines, as if P15_REGION has not been defined - and so I guess that the script never enters the IF part. Everyone around who can enlighten me, why it is?DECLARE query VARCHAR(1000); BEGIN query := 'SELECT * FROM F_OBJEKTE WHERE 1=1 '; IF :P15_REGION != null THEN query := query || 'AND REGION = :P15_REGION '; END IF; RETURN query; END;
Just another little thing: is there a way I can print debugging messages I see when I press the "Debug" button on the lower bar of APEX? It would help a lot of debugging such PL/SQL functions.Try changing
IF: P15_REGION! = null THEN
TO
IF: P15_REGION is not null THEN
-
Keyboard does not not on the desktop, but I can access the BIOS
I have a desktop Compaq Presario SR1220NX w / XP SP3. Using the keyboard I can access the BIOS (F1), but it stops working when I get on the desktop. I tried 2 P/S, USB, wireless keyboards (they are all worked on other computers) and they do not work once I get on the desktop. When I press a key on the keyboard they make a thud. I have the latest version of the BIOS.
I have reset the BIOS to its default settings, but it does not solve the problem.
Any suggestions on how to solve this problem would be appreciated.
Can you start in SafeMode (f8) on the blue HP screen? If you can, then you might try to return to a well known system restore point.
-
client_text_io does not write the file but it creates.
Hello!
I have a form that generates a .txt file using the webutil client_text_io function.
This is the procedure:
PROCEDURE CREA_FILE IS
CLIENT_TEXT_IO MYFILE. TYPE_DE_FICHIER;
OUTFILE CLIENT_TEXT_IO. TYPE_DE_FICHIER;
MFILE VARCHAR2 (1000);
MLINE VARCHAR2 (5000);
NUMBER OF RESPS;
BEGIN
MLINE: = 'LINE TO WRITE... '. » ;
MFILE: = C:\test.txt;
OUTFILE: = CLIENT_TEXT_IO. FOPEN (MFILE, 'w');
CLIENT_TEXT_IO.put_line (OUTFILE, MLINE |) '123 ');
CLIENT_TEXT_IO. Fclose (outfile);
EXCEPTION
WHILE OTHERS THEN
CLIENT_TEXT_IO. Fclose (MyFile);
message (' ERROR: ' |) SQLERRM);
END;
He works on the OAS 10 g + 10 g of form. the file is created end, BUT I tried with forms 11g unsuccessful.
My forms 11g are running under weblogic and RedHat server.
Im running the application forms from my Windows XP laptop.
I configured webutil as note MOS says, is the thing, the file is created, but there is no writted.
I can open the test.txt file, but the line I tried to print is not there, the same with 10g and the file is good.
Help me please.I have solve my problem using this structure:
PROCEDURE CREA_FILE_TXT IS
v_file_handle CLIENT_TEXT_IO. TYPE_DE_FICHIER;
FPATH VARCHAR2 (150): =: CG$ CTRL. ARCHIVO;
v_string_prov VARCHAR2 (5000): = 'FILE of PROVE. "
BEGIN
v_FILE_HANDLE: = CLIENT_TEXT_IO. FOPEN (FPATH, 'W');
IF CLIENT_TEXT_IO.IS_OPEN (v_FILE_HANDLE) THEN
CLIENT_TEXT_IO. Put_line (v_FILE_HANDLE, v_string_prov);
CLIENT_TEXT_IO. FCLOSE (v_FILE_HANDLE);
message ("CREATED IN :'|| RUTA);
Synchronize;
END IF;
IF this is CLIENT_TEXT_IO.IS_OPEN (v_FILE_HANDLE) THEN
CLIENT_HOST ("Notepad.exe" |) FPATH);
ON THE OTHER
CLIENT_TEXT_IO. FCLOSE (v_FILE_HANDLE);
END IF;
END;It seems that the clock line is necessary, I don't know why...
Thank you all.
Published by: Ingenio December 15, 2011 08:17
Maybe you are looking for
-
Why can't I reset my security questions?
WWhen I try to go to apple and reset my security questions, it won't let me
-
Connector MagSafe 2 (the part that plugs into the computer) is getting very hot.
Hello! I have a MacBook Air (Early 2015) and when I load it, the plug that plugs into the laptop is very hot (I can barely touch). This only happens when I use the computer while I am it loads. When MacBook is in mode 'sleep' the plug only heat. Is t
-
HP Elitebook 6930p BIOS password?
Hello REO51ST, Can you help me to recover the default password of BIOS for a HP Elitebook 6930p? I have the laptop if you need any additional information. Thanks in advance! AJ
-
Ad-aware masquerading as my Vista Security Center, could not be deleted.
I used my PC reguarley for the last days without what appears to everyone, now everything I've been slowed down on my PC this message "Windows Vista Security" popped up and immediately I knew it was ad-aware or a virus any. He started doing that same
-
ASA5510 authentication LDAP on W2K3 AD domains
LDAP authentication works in all of the domains Active Directory W2K3 and several ASA5510 firewall? Or do I need to configure other authentication type? If I use another type of authentication should I specific portals with special bookmarks based on