QUERY ERROR WITH WILD CARD ON FORM WHEN NO DATA WWC-49102
Portal 30985 ; database 9014 on sun solaris
Same server : two databases 9014 : db1 with portal and db2(used here as remote database);
Step1 ; Create public database link; db_link on db1 through Portal interface;
Step2 ; create public synonym emp_syn for table emp@db_link through Portal interface;
Step3 :create form based on emp_syn;
the form is generated OK and also is behaving OK when Insert,Update,Delete from
underlying table ;but when I am quering for 758% into the empno field I've got the same error:
Error: An unexpected error occurred: ORA-00000: normal, successful completion (WWV-16016)
No conversion performed for type NUMBER, value 758%. (WWC-49102) INSTEAD OF RETURNING EMPTY FORM(NO ROWS)
I have tryed to query on other fields ;
querying on a numeric field will give the above message;
querying on a varchar or date field with or without wild card will raise the following error:Error: An unexpected error occurred: ORA-00000: normal, successful completion (WWV-16016)
An unexpected error occurred: ORA-00000: normal,successful completion (WWV-16016).
Lawrence
Hi Mike,
You can actually just check for the existence of the cell:
var l_Cell = $x(pId);
if (l_Cell)
rest of the code to hide the column
}As long as l_Cell refers to a valid page item, then the if test passes and the rest of your code can run.
Andy
Similar Messages
-
How to create in house distribution provisional profile with wild card?
Hi,
I have enrolled for iOS enterprise distribution and created distribution certificate and App-id with wild card (e.g. com.companyname.*) from the portal (not from the xcode).
When I am trying to create the in house distribution provisional profile from portal, it is not listing the App-id with wild card. I can only create the profile with explicit App-id. I checked with other enterprise account but they are able to create such profiles.
How can I get in-house distribution profile linked with wild card App-id?
Thank you.Did you find a solution for this? I encounter the same issue.
-
Error with a procedure in Forms 6i
Hello,
hope someone can help:
Im running Forms6i client /server and have a problem with a procedure. What I wish to do is to fill some text_item in a block with values from a query like this:
Procedure test is
BEGIN
select distinct ( pc.d_id), pc.min_value, pc.max_value, pc.def_value, pc.act_value
into :blk_multi.c_id,:blk_multi.txt_multi_min,:blk_multi.txt_multi_max, :blk_multi.txt_multi_def, :blk_multi.txt_multi_old_value
from par_car pc, c_list cl
where pc.par_id = 21 and pc.d_id IN (select cg.ce_id from cel_group cg where cg.gr_id like 'TEST') and
pc.d_id = cl.c_id
order by pc.d_id desc;
end;
In my form I have a button and in trigger WHEN-BUTTON-PRESSED I call this procedure. It returns error message FRM-40735 WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-06502. What causes this error message?
Regards
RoarRoar,
2 comments:
1. Query into PLSQL variables and not forms fileds. After a successful query, set the value in teh variables to teh forms fields
2. another problem with your implementation is that it breaks when many rows are retruned. You should use a cursor that loops trhough the query result sets. This way you are save.
Frank -
Hi,
I get the following error message when trying to execute a query in production.
System error in program CL_RSR_RRK0_ATTR_C and form...
BRAIN 299.
This error does not occur in development or quality.
I tested through RSRT and in Technical Information i found the following entry
Query can use Aggregates NO
The entry in development and quality is
Query can use Aggregates Yes
How is the entry Query can use aggregates determined and how can i change it.
Please help to resolve this issue. It is very urgent.
Points will be rewarded for helpful answers.
regards,
AshishHi!
I dont know what happens in RSRT1 (may be any troubles with cookie at server) but I can help you.
First, if you have created query and didn't test it in RSRT1 you have to first test it with button "ABAP web" or call query explicitly in Internet Browser. If you test query with button "Execute" message BRAIN 299 will appear with subsequent calls query in Internet Browser or with button "ABAP web". (You can copy your old queries to new and that'll be ok).
After that, you push button "Generate Report". So your query tested in different mode without any errors!
Good luck!
Best Regards,
Antoshkin Vitaly. -
Passwing Parameters with Wild card Charactars
Using Reports and Forms server, I am passing parameters from a ASP page to a Report.
When I pass the full parameter to the report, like the word ORACLE, things are great.
When I try to add a wild card to the parameter, like OR%, things don't work so well. I receive an error:
"Error: The requested URL was not found, or cannot be served at this time. Oracle Reports Server CGI - Your URL contains badly-formed escapes."
Any Help?
Thanks
Raouse hexadecimal value ex. for space it is %20 or u can use
urlencode function -
Error with Credit Card Address
Whenever I try to log onto the itunes store and set up an account to buy music it says my credit card doesn't match my address when it does, I have sent tech support e-mails, but of course they are useless.
One reply by e-mail said to change my info on the myinfo site, but everytime I try to do that it says there was an error, so I can't change the information there either.
It's pretty bad I am wanting to spend money for stuff and the tech support is horrible.I have already checked with the company to make sure the address is the same and it is.
As for the error message, there is no number but I get.
"There was an unexpected error with the application.
This problem has been noted, and an email has been sent to the
administrators.
Please continue with the application.
Thank you for your understanding."
I tried editing my profile several days in a row and I still get this, over and over. -
Terminal command to rename files in bulk with wild cards?
I had a group of files that had double extensions in the name and I wanted to strip the second extension:
myfile.r01.1
myfile.r02.1
so that the new names were
myfile.r01
myfile.r02
In DOS this would be accomplished easily by using the command line:
rename myfile.r??.1 myfile.r??
In OS X Terminal/Bash shell, though I couldn't find a command that has similar function that allows the use of wild cards in the file names.
I tried both the 'mv' abd 'cp' commands along the lines of:
mv myfile.r??.1 myfile.r??
but nothing worked, even using the * for the wildcard.
I did manage to use the Automator to accomplish the task by using some of its Finder options, but really, a simple command line would have been simpler and easier than building an Automator workflow for this.
Can anyone point me to a unix command that would have done what I am looking for, and the proper syntax for it?
Thanks.From this page: http://www.faqs.org/faqs/unix-faq/faq/part2/section-6.html
How do I rename "*.foo" to "*.bar", or change file names to lowercase?
Why doesn't "mv *.foo *.bar" work? Think about how the shell
expands wildcards. "*.foo" and "*.bar" are expanded before the
mv command ever sees the arguments. Depending on your shell,
this can fail in a couple of ways. CSH prints "No match."
because it can't match "*.bar". SH executes "mv a.foo b.foo
c.foo *.bar", which will only succeed if you happen to have a
single directory named "*.bar", which is very unlikely and almost
certainly not what you had in mind.
Depending on your shell, you can do it with a loop to "mv" each
file individually. If your system has "basename", you can use:
C Shell:
foreach f ( *.foo )
set base=`basename $f .foo`
mv $f $base.bar
end
Bourne Shell:
for f in *.foo; do
base=`basename $f .foo`
mv $f $base.bar
done
Some shells have their own variable substitution features, so
instead of using "basename", you can use simpler loops like:
C Shell:
foreach f ( *.foo )
mv $f $f:r.bar
end
Korn Shell:
for f in *.foo; do
mv $f ${f%foo}bar
done
If you don't have "basename" or want to do something like
renaming foo.* to bar.*, you can use something like "sed" to
strip apart the original file name in other ways, but the general
looping idea is the same. You can also convert file names into
"mv" commands with 'sed', and hand the commands off to "sh" for
execution. Try
ls -d *.foo | sed -e 's/.*/mv & &/' -e 's/foo$/bar/' | sh
A program by Vladimir Lanin called "mmv" that does this job
nicely was posted to comp.sources.unix (Volume 21, issues 87 and
88) in April 1990. It lets you use
mmv '*.foo' '=1.bar'
Shell loops like the above can also be used to translate file
names from upper to lower case or vice versa. You could use
something like this to rename uppercase files to lowercase:
C Shell:
foreach f ( * )
mv $f `echo $f | tr '[A-Z]' '[a-z]'`
end
Bourne Shell:
for f in *; do
mv $f `echo $f | tr '[A-Z]' '[a-z]'`
done
Korn Shell:
typeset -l l
for f in *; do
l="$f"
mv $f $l
done
If you wanted to be really thorough and handle files with `funny'
names (embedded blanks or whatever) you'd need to use
Bourne Shell:
for f in *; do
g=`expr "xxx$f" : 'xxx(.*)' | tr '[A-Z]' '[a-z]'`
mv "$f" "$g"
done
The `expr' command will always print the filename, even if it
equals `-n' or if it contains a System V escape sequence like `c'.
Some versions of "tr" require the [ and ], some don't. It
happens to be harmless to include them in this particular
example; versions of tr that don't want the [] will conveniently
think they are supposed to translate '[' to '[' and ']' to ']'.
If you have the "perl" language installed, you may find this
rename script by Larry Wall very useful. It can be used to
accomplish a wide variety of filename changes.
#!/usr/bin/perl
# rename script examples from lwall:
# rename 's/.orig$//' *.orig
# rename 'y/A-Z/a-z/ unless /^Make/' *
# rename '$_ .= ".bad"' *.f
# rename 'print "$_: "; s/foo/bar/ if <stdin> =~ /^y/i' *
$op = shift;
for (@ARGV) {
$was = $_;
eval $op;
die $@ if $@;
rename($was,$_) unless $was eq $_; -
Remote ssh commands with wild cards
I am trying to send a remote command via ssh - need to get a file listing in a directory using a wild card. However, the ssh command will not return results using a wild card:
ssh [email protected] sudo ls -l /var/audit-files/201110* (directory requires root permission)
/var/audit-files/201110*: No such file or directory
I've tried quoting the command, the directory, the file names, etc - same results. It will only work with a specific name that exists, but not with a wild card. Is there a way to make this work?This is a rather complex situation. The problem is that you need to quote the '*' character; however, quoting it once may not be enough. Every time the command goes through a shell you'll strip out a set of quotes. It isn't clear to me how many times this will go through the shell but I'm guessing you'll have to at least double quote it.
ssh [email protected] sudo ls -l "/var/audit-files/201110\*"
I won't guarantee that this will work but it might. I don't know what the permissions are on /var/audit_files. If you need root to read that you may need to triple quote it. I've never had much luck getting the quotes right in complicated situations like this. -
I tried this morning to download the Macklemore album twice. both times with a card error. However it has posted in my bank account as if the transaction was successful both times. So i was charged twice for the same album of which i never received. Will i be refunded for this "purchase"?
What was the error that you got ?
Does anything show on your account's purchase history ? If you log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it. Click on that and you should then see a list of your purchases (the most recent is above the list).
If you have been charged twice then try the 'report a problem' link to contact iTunes Support : http://reportaproblem.apple.com
If the 'report a problem' link doesn't work then you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
If you haven't then they might just be temporary store holding charges - from http://support.apple.com/kb/HT3702 :
As with many other merchants, the iTunes Store and Mac App Store places an authorization hold on your payment card account for the approximate amount of any purchase you make.
Authorization holds are removed by your financial institution shortly after your purchase clears. The time it takes to remove authorization requests varies by financial institution. -
Query error - with filtering records
Hi. I have a gallery that shows 9 records at a time, which
you can then move on to subsequent pages. I added filters to narrow
down the record search, however, I am receiving query errors. This
is my code:
<!----- This is setting the initial defaults for the filter
variables ---->
<cfparam name="form.ART_CATEGORY_ID" default="">
<cfparam name="form.ART_TYPE_ID" default="">
<cfparam name="form.FINE_ART_CLASS_ID" default="">
<cfparam name="form.searchfield" default="">
<!----- Populate the CATEGORIES filter drop-down ---->
<cfquery name="categories" datasource="nancy">
SELECT *
FROM CATEGORIES
ORDER BY ART_CATEGORY_ID
</cfquery>
<!----- Populate the TYPES filter drop-down ---->
<cfquery name="types" datasource="nancy">
SELECT *
FROM TYPE
ORDER BY ART_TYPE_ID
</cfquery>
<!----- Populate the CLASS filter drop-down ---->
<cfquery name="class" datasource="nancy">
SELECT *
FROM CLASS
ORDER BY FINE_ART_CLASS_ID
</cfquery>
<!----- Create the filter drop-down selections ---->
<form method="post" action="root_fineart.cfm">
<select name="ART_TYPE_ID">
<option value="" <cfif trim(form.ART_TYPE_ID) eq
"">selected
</cfif>> All </option>
<cfoutput query="types">
<option value="#ART_TYPE_ID#"
<cfif form.ART_TYPE_ID eq
types.ART_TYPE_ID>selected</cfif>>#ART_TYPE#</option>
</cfoutput>
</select>
<select name="ART_CATEGORY_ID">
<option value="" <cfif trim(form.ART_CATEGORY_ID) eq
"">selected
</cfif>> All </option>
<cfoutput query="categories">
<option value="#ART_CATEGORY_ID#"
<cfif form.ART_CATEGORY_ID eq
categories.ART_CATEGORY_ID>selected</cfif>>#ART_CATEGORY#</option>
</cfoutput>
</select>
<select name="FINE_ART_CLASS_ID">
<option value="" <cfif trim(form.FINE_ART_CLASS_ID) eq
"">selected
</cfif>> All </option>
<cfoutput query="class">
<option value="#FINE_ART_CLASS_ID#"
<cfif form.FINE_ART_CLASS_ID eq
class.FINE_ART_CLASS_ID>selected</cfif>>#FINE_ART_CLASS#</option>
</cfoutput>
</select>
<!----- This also creates a SEARCH capability ---->
<input name="searchfield" type="text" size="10"
value="#form.searchfield#" /></cfoutput> </label>
<input name="submit" type="submit" value="Submit" />
<!----- I got this part of the code from a site, that allows
me to display the 9 records at a time in my gallery ---->
<cfparam name="start" type="numeric" default="1">
<cfparam name="step" type="numeric" default="9">
<!----- My query to retrieve the records... This may be where
I have something wrong... ---->
<cfquery datasource="nancy" cachedwithin=".01"
name="queryResults">
SELECT *
FROM ART
WHERE 1 = 1
<cfif val(form.ART_CATEGORY_ID) GT 0>
AND ART_CATEGORY_ID = <cfqueryparam
value="#form.ART_CATEGORY_ID#" cfsqltype="cf_sql_integer">
</cfif>
<cfif val(form.ART_TYPE_ID) GT 0>
AND r.ART_TYPE_ID = <cfqueryparam
value="#form.ART_TYPE_ID#" cfsqltype="cf_sql_integer">
</cfif>
<cfif val(form.FINE_ART_CLASS_ID) GT 0>
AND i.FINE_ART_CLASS_ID = <cfqueryparam
value="#form.FINE_ART_CLASS_ID#" cfsqltype="cf_sql_integer">
</cfif>
<cfif trim(form.searchfield) neq "">
AND ART_TITLE LIKE '%#form.searchfield#%'
</cfif>
ORDER BY ART_TITLE ASC
</cfquery>
<!----- This is also code I got somewhere else to display the
gallery ---->
<cfif queryResults.recordcount gt 0>
<cfoutput>
<p class="style1">
<!--- if past start --->
<cfif (start-step-step) gt 1>
<a href="#cgi.SCRIPT_NAME#?start=1"><img
src="images/Beginning_blue.png" alt="Beginning" width="31"
height="21" align="absbottom" /></a>
</cfif>
<cfif start gt 1>
<a href="#cgi.SCRIPT_NAME#?start=#start-step#"><img
src="images/previous_blue.png" alt="Previous" align="absbottom"
/></a>
</cfif>
<strong>#start# - #iif(start * 3 + step gt
queryResults.recordcount,queryResults.recordcount,start + step-1)#
of #queryResults.recordcount# records</strong>
<!--- if still some not displayed --->
<cfif (start + step) lte queryResults.recordcount>
<a href="#cgi.SCRIPT_NAME#?start=#start+step#"><img
src="images/next_blue.png" alt="Next" align="absbottom"
/></a>
</cfif>
<cfif (start+step+step) lte queryResults.recordcount>
<a
href="#cgi.SCRIPT_NAME#?start=#queryResults.recordcount-step+1#"><img
src="images/end_blue.png" alt="End" align="absbottom"
/></a>
</cfif>
</p>
</cfoutput>
</cfif>
<cfloop query="queryResults" startrow="#start#"
endrow="#start + step/3-1#">
<table width="100%" border="1" bordercolor="#FFFFFF"
cellspacing="0" cellpadding="2">
<tr> <cfoutput query="queryResults"
startrow="#start#" maxrows="3">
<td width="33%"
class="style1">#queryResults.ART_TITLE#</td>
</cfoutput>
<cfset #start# = #start# + 3>
</tr>
</table>
</cfloop>
</td>
</tr>
</table></form>
It seems that the CATEGORIES filter is the only one that does
not return a ERROR EXECUTING DATABASE QUERY error. However, it does
not filter all the records... it only seems to filter and return
the first 4 or 5 records.
Any thoughts?your queryResults query selects only from ART table, while in
the WHERE
clause you are apparently using other tables whihc are not in
your FROM
clause...
you need to use JOIN/INNER JOIN/LEFT JOIN/RIGHT JOIN in your
FROM clause
to link the other tables. check your db manual for proper
usage of those
operators.
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/ -
How to execute the data in the form when the data is already avaliable
Hi,
I am working with forms 6i. I have a problem while executing the data in the form
Actually, the data is already present in the form. But when i run the form, the data is not displayed.
can anyone please help me how to execute the data. below is the code
Set_Alert_Property(alert_id,ALERT_MESSAGE_TEXT,'Do you want to refresh new Data for that Year and Field ? (it will take a time).') ;
SET_ALERT_BUTTON_PROPERTY(alert_id, ALERT_BUTTON1, LABEL, 'Yes');
SET_ALERT_BUTTON_PROPERTY(alert_id, ALERT_BUTTON2, LABEL, 'No');
SET_ALERT_BUTTON_PROPERTY(alert_id, ALERT_BUTTON3, LABEL, 'Cancel');
button_number :=Show_Alert(alert_id) ;
synchronize;
if button_number != ALERT_BUTTON3 then
if button_number = ALERT_BUTTON1 then
:param.field := :control.f_cd;
:param.year := :control.year;
build_tables;
fields;
-- areas(:param.field);
PUT_PARAM;
COMMIT_FORM;
go_block('wet_criterias');
end if;
if button_number = ALERT_BUTTON2 then
:exhibits.field_display := :control.f_name || ' - Exhibits';
go_block('RESERVOIR');
execute_query;
end if;
end if;
end if;
else
message('Fields must be entered...');
end if;
else
message('Fields must be entered...');
end if;It's hard to know what logic you are trying to implement.
However, by looking at your code, it seems that if the user select 'Yes' to the question "Do you want to refresh", nothing is done except the go_block('wet_criterias'). Should there be an 'Execute_Query' ?
No idea... -
Hi,
I have a table1 like below
Id (NUMBER) , Keyword (VARCHAR2)
1,A
2,B
3,C
another table2
name(VARCHAR2)
Alice
Bob
Jack
I need to write a stored procedure to check whether name of table 2 mactched any of the keyword char of table1. How to I write dynamic query in my PL/SQL stored procedure so that i can generate query similar to
SELECT * from table2 where name like '%X%' where i need to replace X with the char in table1
Please help.
Thanks in advance,
MaruthaI need to write a stored procedure to check whether name of table 2 mactched any of the keyword char of table1You might simply join the tables:
SQL> with table1 as
select 1 id, 'A' keyword from dual union all
select 2 id, 'B' keyword from dual union all
select 3 id, 'C' keyword from dual
table2 as (
select 'Alice' name from dual union all
select 'Bob' name from dual union all
select 'Jack' name from dual
select * from table1, table2 where name like '%' || keyword || '%'
ID KEYWORD NAME
1 A Alice
2 B Bob
2 rows selected. -
hi friends
we have a requirement where if the user enters a letter in a field of selection-screen, he is supposed to get the fields details with its prefix entered in the selection-screen
eg: if user enters P and give execute
he needs to get the details of the particular field starting with P
how to code this
with regards
s.janagarHi,
Here wildcard character '%' can be used as pattern code. Character and then the '%' sign signifies that all values with character as first letter will be searched upon.
In your case use of like 'P%' in the where clause of the select statementr should solve the issue. e.g.,
select * from <tabname> into table <internal table> where <fieldname> like 'P%'.
searches all entries from table <tabname> and places them in internal table <internal table> where the field <fieldame> begin with P.
Thanks and Regards,
Sachin -
Update error with graphics card
Hi All, if anyone can help me fix this error I will be most aprreciative.
I get this error when I open After Effects.
Ray-tracing on the GPU requires an approved NVIDIA graphics card and CUDA 5.0 or later. For now, ray tracing will use the CPU.
After installing CUDA 5.0 or later, restart your computer.
For more information see: http://www.adobe.com/go/aeraytracegpu
Im on a MAc Pro Desktop running latest OSX (OS X 10.9.2 (13C64) and a
Graphics Card: ATI Radeon HD 5770 1024 MB (not a NVIDIA its AMD)
I have tried updating software and the operating system as this is now with recent versions do apparently.
Kind Regards Toby.
Motion Designer / EditorI suggest you post on the Adobe forums since it's their software you're having problems with and this forum is for trouble shooting Apple Software Update app for Windows, which is not related to your question in any way.
http://www.adobeforums.com -
Error message 'memory card error' with SD card on C5180
Photosmart C5180 displays 'memory card error' when SanDisk SDHC inserted. (The card is not damaged, it's new & works in camera.) I've been unsuccessful in finding answers on HP site. Any help most appreciated. Thanks much.
This question was solved.
View Solution.Looking at the product specification, I see "High Capacity" (SDHC) memory is NOT supported on the device:
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00701803&tmp_task=prodinfoCategory&lc=en&dlc=en...
I also verified this with our group in San Diego - SDHC isn't supported.
~TechHelper7
I work for HP.
Maybe you are looking for
-
Selecting an item twice in JList
Hy, I have create a JList with some animal's name in it. When I click on one of the animal's name for the FIRST time, it appears in a JTextArea. What I want is that when I click on that same name consecutively, it appears again in that JTextArea. Can
-
I paid for a rented film on my iPad, got the receipt but now i can't find the film and its not in my purchase history. Help!
-
Changing volume levels in a video
I've made a three minute commercial as part of a school project, but I'm having trouble adjusting the audio as I want it. I have set background music, and have managed it fine throughout the video until the end. I have a cutscene of credits, during w
-
How can I turn off pinch to zoom in Pages?
Hi there, I'm using Pages v.5.2.2 and I want to turn off the pinch to zoom function. I would rather use the trackpad to resize objects within the page, not the page itself. Any suggestions? Thank you! :-) Best, CJ
-
Mighty Mouse and Windows XP on MacBook
Hello Gurus I am trying to connect my might mouse with XP. There is a point during bluetooth configuration when windows requests a passkey for the mighty mouse. I asked windows to pair the device with now passkey but the system later asked for a pass