SRW.MESSAGE(msg_number NUMBER, msg_text CHAR);
Hi ,
how to display the value of the variable in a report using the above function..?
Regards,
Abdetu..
Hello dsegard
Thanks for ur reply:
SRW.MESSAGE ( 100 , 'Variable P_TEST value = ' || :P_TEST);.i want to return a variable value from a select statment in a formula not from a parameter or main query select..
Regards,
Abdetu..
Similar Messages
-
I'm now using a javabean in my jsp page to parse xml;when my xml file's size is
about 10k,it just work fine;when my xml file's size became 50k,it throws the followng
Exception:
Failed to open xml document,Failed to retrieve Public id or system id from the
document. Decrease the number of char between the beginning of the document and
its root element. But when I run this javabean in JBuild ,it works fine no matter
how big the xml file becomes;
Why? the error message is in the attachment.The prologue must be included at the top of the document, followed by the root
element.
joden2000 wrote:
> what does this exception mean:decrease the number of char between the beginning
> of the document and its root element? When my xml file is about 10k,it works
> just fine,when it becomes 50k ,the exception show.How can I deal with this?
-
Srw.message. Afterpform issue
Having trouble w/ srw.message.
I want to give the user the ability to:
1) leave all the parameters at default ALL
or
2)the ability to choose any group.
or
3)If they choose a class they must choose a group as well.
if they dont i want a message to pop up and say 'Must select corresponding group...'
or
4)same thing goes for subclass (the user must select both a group and class or a msg pops up 'Must select group and class')
Each Group number and group name is distinct
The same class number and class names can belong to different groups
Subclass numbers can belong to multiple subclass names
group#......class#....subclass#....subname
1111--------12---------1-----------hello
1123--------12---------1-----------hello
1111--------23---------2-----------goodbye
1143--------77---------3-----------night
2324--------77---------1-----------hello
Afterpform:
if :P_grp not like '%ALL%' then
:p_where := :p_where || ' and g.group = ' || :p_grp;
end if;
if :P_class not like '%ALL%' then
:p_where := :p_where || ' and c.class = ' || :p_class;
end if;
if :P_subc not like '%ALL%' then
:p_where := :p_where || ' and s.subclass = ' || :p_subc;
end if;
Parameters LOVs:
Datatype: Character
Inital Value: ALL
:p_grp
select ' ALL', 'All Groups
from dual
union
select group,to_char(group)||' - '||group_name
from grp
order by 1
:p_class
select ' ALL', 'All Classes'
from dual
union
select class, to_char(class)||' - '||class_name
from class
order by 1
:p_subc
select ' ALL', 'All subclasses'
from dual
union
select subclass, to_char(subclass)||' - '||subclass_name
from sub
order by 1Why is this called "Having trouble w/ srw.message"? I don't see it at all in your code.
-
Cant find message center number on BlackBerry 9530
i need help ..... im getting frustrated by the minute. my screen cracked and i sent my device to be fixed, i got it back and i can't seem to send text messages (but i can receive them).
I'm told that i need to change my service center number (and i have been provided with the number but I've been looking all over the phone for the option of message center number, and can't seem to find it. I keep seeing posts saying "On your device: Options > SMS > Service Center." but "service center" does not appear when i go to options>SMS text. I see the following; screen options conversation style: show names: message options priority: callbacknumber: disable autotext:
i have pulled the battery, restarted it over and over again but nothing seems to work
the message center number does not seem to show on the phone. pls help
Solved!
Go to Solution.On your BlackBerry, pres the gree dial key and them enter ##000000 and press the green dial key again. You should get the CDMA Service Edit screen.
The first line will be your phone number.
The second line (IMSI_S) should be your service center, and if not, enter the number there and save.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
How can I convert a number to char in javascript
How can I convert a number i.e ascii number to char in javascript.
ex: 55 to AHow can I convert a number i.e ascii number to char in javascript.
Quite simple: By asking in a forum that deals with javascript and not with java.
Have no clue...
Maybe on http://www.irt.org -
DISPLAY ONLY CUSTOM MESSAGE WITH SRW.MESSAGE
Hi.I created a report with Report Builder 9i.I also created two form parameters of type date.I put inside the validation trigger in the property inspector the following plsql code.
function FROM_DATEValidTrigger return boolean is
v_date VARCHAR2(12);
date1 date;
begin
v_date := :from_date;
date1:=TO_DATE(v_date, 'DD/MM/YYYY');
return (TRUE);
EXCEPTION
WHEN OTHERS THEN
SRW.MESSAGE(546,'My Message');
return (FALSE);
end;
This code works fine.Supose the user input wrong data for example 29/02/2003 displays an alert message
with my custom message.But after this displays an another message from the Report Builder like this:
Rep-0546:Invalid parameter input.
My question is .Is it possible display only my custom message with the SRW.MESSAGE built in procedure?
Thanks in advance Panagiotis.Hi,
I am using this function in my Validation process to display Error when user gives null input
function DEPT_IDValidTrigger return boolean is
begin
-- Check for Null Value here
if(:DEPT_ID is null) then
raise SRW.NULL_ARGUMENTS;
else
return true;
end if;
Exception
-- Exception For Null Value
when SRW.NULL_ARGUMENTS then
srw.message(100, 'Please Enter Dept ID');
raise srw.program_abort;
end function ___ ;
Function is correct but the error message i am getting at the client side is as follows ::
"*MSG-00100: Please enter Dept IDREP-1419: 'dept_idvalidtrigger': PL/SQL program aborted.* "
It seems it is adding some system level error.
but i want only my custom message to be displayed on the client side ::
*"Please Enter Dept ID"*
Is this Possible in Oracle 6i. -
Column size and number of chars
I have fixed Jtables column header size.
when I put a large text in this colums ,half of text is hidden. I know this problem is solved with setAutoResizeMode, bat I don't wont to use it.
I wont to know how many chars can I put in this column(with fixed size),
How can I return number Of chars or length or text which can be possible tu put fixed columean size?Well, you can do something like (untested)
TableColumnModel tcm = table.getColumnModel();
TableColumn col = tcm.getColumn( n );
int cw = col.getMaxWidth();
String st = col.getHeaderValue().toString();
JTableHeader header = table.getTableHeader();
FontMetrics fm = header.getFontMetrics( header.getFont() );
for( int sw = fm.stringWidth( st ); sw > cw; ) {
st = st.substring( 0, st.length()-1 );
sw = fm.stringWidth( st );
col.setHeaderValue( st );That should at least give you some ideas. -
How can I get the number of chars in a String, without countig the Spaces?
When I do String.length(), he returns the length with Spaces, but I want the number of chars and numbers.
thxI'm afraid you'll need to write a method of your own for that. It's very simple fortunately:public static int getLengthWithoutWhitespace(String s) {
java.util.StringTokenizer st = new java.util.StringTokenizer(s, " \t\r\n");
int counter = 0;
while (st.hasMoreTokens()) counter += st.nextToken().length();
return counter;
}This code is not tested... Here's another, a bit more reliable approach that simply passes through the characters of the string:public static int getLengthWithoutWhitespace2(String s) {
int counter=0;
for (int i=0; i < s.length(); i++)
if (Character.isWhitespace(s.charAt(i))) counter++;
return counter;
} -
Message Centre Number on N96.....
I have recently bought a new N96 on a vodafone contract, and as i was previously on 02 i had to wait a few days for them to transfer my number over.... My number then got transfered over yesterday and i then went to send a text message and it asked for my message centre number which i didnt know at the time so i just put in my mobile number as i didnt have a clue what the message centre number was... I have just got my message centre number from someone over the phone but i keep trying to change it and it just comes up with the message "unable to change settings. Value read from SIM card" can anyone give me any assistance on how to get this properly working...
Cus i've now got a new phone and cant send any texts on it.
CheersVodafone UK : SMS Service Centre number: +447785016005.
This number is used to configure your phone for sending text messages.
For other countries:
http://www.smsfre.com/SMS-Mesaging-Centers.htm
Before that reset ur phone to default factory settings........
*#7780# with default code 12345 but do make a back up
second option: try to create a new message centre number.
messaging->options->text message->message centres->options->new message centre
enter the correct information, then go back to textmessage->message centre in use. and choose the new message centre.
last option left which is to head to the vodafone shop, they will help you configure the phone or change the sim card for you.
Articles posted courtesy engadget
keep us updated about the progress.... if u like wat I have to offer then click on khudos. -
What api would I use to get the number of chars in string?
What api would I use to get the number of chars in string?
Assuming that you really mean that you want the number of charaters in a String (not string), that would be documented in java.lang.String
The method is length() -
Inconsistent datatypes: expected NUMBER got CHAR error
Hi,
I have the following table
create GLOBAL TEMPORARY TABLE br_total_rtn_data_tmp
code varchar(50) NOT NULL,
name varchar(255),
cum_ytd_rtn_amt varchar(255),
cum_one_mon_rtn_amt varchar(255) ,
cum_thr_mon_rtn_amt varchar(255) ,
cum_six_mon_rtn_amt varchar(255),
cum_nine_mon_rtn_amt varchar(255),
cum_one_yr_rtn_amt varchar(255),
cum_thr_yr_rtn_amt varchar(255),
cum_five_yr_rtn_amt varchar(255),
cum_ten_yr_rtn_amt varchar(255),
cum_lof_rtn_amt varchar(255),
avg_anl_one_yr_rtn_amt varchar(255),
avg_anl_thr_yr_rtn_amt varchar(255),
avg_anl_five_yr_rtn_amt varchar(255),
avg_anl_ten_yr_rtn_amt varchar(255),
avg_anl_lof_rtn_amt varchar(255),
cum_prev_1m_month_end varchar(255),
cum_prev_2m_month_end varchar(255)
)ON COMMIT PRESERVE ROWS;
I have a case statement
CASE
WHEN code = 'MDN' THEN
max(case when p.m_date = v_prev2_yr_mon and p.period_type = '1M' then p.mdn /100 else null end)
WHEN code = 'QRT' THEN
max(case when p.m_date = v_prev2_yr_mon and p.period_type = '1M' then p.quartile else null end)
WHEN code = 'PCT' THEN
max(case when p.m_date = v_prev2_yr_mon and p.period_type = '1M' then p.pct_beaten / 100 else null end)
WHEN code = 'RNK' THEN
case when (p.m_date = v_prev2_yr_mon and p.period_type = '1M' and p.rank is null and p.cnt is null)
THEN
P.RANK
else
p.rank||'/'||p.cnt
end
ELSE NULL
END CASE The output for code = RNK should be somewhat like 3/5 which is rank/count
but i get the error "Inconsistent datatypes: expected NUMBER got CHAR error" when i put p.rank||'/'||p.cnt
How can that be solved.
ORacle version is 10g.Taken from the documentation of the CASE expression:
"For a simple CASE expression, the expr and all comparison_expr values must either have the same datatype (CHAR, VARCHAR2, NCHAR, or NVARCHAR2, NUMBER, BINARY_FLOAT, or BINARY_DOUBLE) or must all have a numeric datatype. If all expressions have a numeric datatype, then Oracle determines the argument with the highest numeric precedence, implicitly converts the remaining arguments to that datatype, and returns that datatype.
For both simple and searched CASE expressions, all of the return_exprs must either have the same datatype (CHAR, VARCHAR2, NCHAR, or NVARCHAR2, NUMBER, BINARY_FLOAT, or BINARY_DOUBLE) or must all have a numeric datatype. If all return expressions have a numeric datatype, then Oracle determines the argument with the highest numeric precedence, implicitly converts the remaining arguments to that datatype, and returns that datatype."
You need to use the same data type for all your expressions. If you want to return a string, then you need to convert the remaining numbers explicitly to strings. E.g. you could try something like this:
CASE
WHEN code = 'MDN' THEN
to_char(max(case when p.m_date = v_prev2_yr_mon and p.period_type = '1M' then p.mdn /100 else null end), 'TM')
WHEN code = 'QRT' THEN
to_char(max(case when p.m_date = v_prev2_yr_mon and p.period_type = '1M' then p.quartile else null end), 'TM')
WHEN code = 'PCT' THEN
to_char(max(case when p.m_date = v_prev2_yr_mon and p.period_type = '1M' then p.pct_beaten / 100 else null end), 'TM')
WHEN code = 'RNK' THEN
case when (p.m_date = v_prev2_yr_mon and p.period_type = '1M' and p.rank is null and p.cnt is null)
THEN
to_char(P.RANK, 'TM')
else
p.rank||'/'||p.cnt
end
ELSE NULL
END CASE I see another potential issue, you're mixing aggregate functions with non-aggregate expressions, this can only work if these non-aggregate expressions are part of the group by clause, but you haven't posted the complete statement so I can only guess.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle:
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/ -
Conditional Logging in Reports with SRW.MESSAGE
Hi
We use concurrent programs to run reports in Oracle Applications.
There is a lot of code already written, which uses the following logging statements in the RDFs.
srw.message(100,'<message>');
For some reports the log being generated is large.
So can we somehow disable the logging on need basis without code change?
Can we enable or disable the log messages based on some profile values?
Thanks for any help.
Regards
SameerOne way of achieving this is to copy the code into the other cells format trigger sections or into the frame that is your 'row'. If you let the program generate the code for your conditional formatting then you can just copy and paste it into the format trigger.
Such as:
function F_exampleFormatTrigger return boolean is
begin
-- Automatically Generated from Report Builder.
if (:sum > '1')
then
srw.set_foreground_fill_color('red');
srw.set_fill_pattern('solid');
end if;
return (TRUE);
end;
Let me know if you need additional help.
Edited by: DOUBLE U on Apr 18, 2011 8:28 AM -
Where can we see the SRW.MESSAGE
Hi
I am new to Oracle Reports. I have a report developed in EBS and it has SRW.MESSAGE statements. After the report is run where can I see the log of these messages. Can some help.
ThanksHello rajesh as you told that the cost esimate is deleted.
Then there is no way to see the cost estimate.
You canonly see the cost esimate in CK40N or in CK13N but you can not see the itemiaxation of that material for ehich we create the cost estimate.
Hope it will clear you
IF this informetion is usefull for you please assign some points
Regards
Ravi -
Can't change the Message Centre Number in my Nokia...
I have a 3 day old Nokia X. I can't send text messages due to wrong the message centre number set in my Nokia X device. When I try to change it in settings, a pop-up appears which say "It is bad to change SMSC Number. Do you want to change ?". I choose "Ok". Then nothing changes Message Centre Number is set on "+7" and does not changes. I have tried many things including removing battery and SIM Card without switching off the device and reseting the device to Factory Defaults. But the problem persists. It doesn't changes. I live in New Delhi, India.
Any help will be appriciated.No I am not able to resolve the issue.
I reset my phone without the SIM Card also but same thing repeats. I can't change the Message Centre Number. It reverts to +7 when I try and change it in settings with the pop up "Changing the SMSC may cause problems sending messages, to confirm the change ?". Then I tap "OK" and nothing changes the Message Centre Number is still +7. -
Nokia 1661 Message Centre Number
This morning I was playing around with my Nokia 1661 phone and I accidentally changed the Message Centre Number, which I now know was a stupid thing to do. So I'm asking if anyone knows the Fraser Valley BC number or how I can get the number back? All answers are appreciated.
You need to contact your network provider.
If you find my post helpful please click the green star on the left under the avatar. Thanks.
Maybe you are looking for
-
How do I create an HTML newsletter using pages?
I browsed pages and really liked the different templates in there. I then created a newsletter and uploaded to my server, sent me the message using newsletter manager basic, and all I got was a bunch of giberish and could not see the pics. Not sure w
-
The message on my iphone 4s delivered late and I can't receive any calls for some time
It's almost 6 months since I've encountered this problem. I already requested my carrier to have my iphone 4s replaced and a series of testing was done to my iphone 4s before they found out this it was defective. Now, I have my new iphone 4s but the
-
Samsung TV-HDMI Cable Crackling noise during video play
I have a Samsung Plasma 50inch. Just connected the HDMI cable and audio/video works great except when they're working at the same time. If I watch any movies/videos, there is a crackling noise coming from the speakers. (If I mute the TV, the cracklin
-
Background in live view different from design view
Why when I am looking at my page in design view it shows up black like I want it to, but when I go to live view or view it on the internet it shows up like the template color that it was when started?
-
I have a 27-inch iMac, Late 2009 that was running OS X Lion. When Mountain Lion came out, it failed to start properly but somehow I was able to roll it back and install lion, and I've been running that eve since. I thought I'd try OS X Mavericks via