Help on Oracle Report sort option!
Hi,
My query in Q_1 of Oracle report is select &a_code ori_code ,&a_desc ori_description from &a ori_lup order by &b. When click on OK button it says
ORA-00936: missing expression
select ori_code,ori_description from ori_lup order by ==>
I am not able to resolve this problem.
What I am trying to do is I have some maintenance tables which have almost same columns like code, description. I want to define a single report and pass on parameters to this report, so that I can use same report for different tables. If I dont give order by clause it is working fine, but I should also provide sort option based on user selection of sort by code/description.
Thanks for your help.
Param Dasana
null
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Andrew Tselischev ([email protected]):
Hi
If I correcly understand you need sorted query, if the parameter 'b' is given, and not sorted query otherwise.
This may be done, for exeample, by the following way.
1. Delete the text 'order by' in your query as follows:
select &a_code ori_code ,&a_desc ori_description from &a ori_lup &b
2. Create 'AFTER PARAMETER FORM' trigger:
function AfterPForm return boolean is
begin
IF LENGTH( LTRIM( RTRIM( :b ) ) ) > 0 THEN
:b := 'ORDER BY ' | | :b;
ELSE
:b := '';
END IF;
return (TRUE);
end;
I think it will help for you.
Andrew<HR></BLOCKQUOTE>
Thanks Andrew , it worked with your suggestion!!!
Param.
null
Similar Messages
-
Need help on Oracle Report format
Hi,
I need help on Oracle Reports. I am generating a report in excel sheet. I have a column which is 13 digit number (In database it is CHAR datatype). In excel sheet it showing some thing like 9.78381E+12. I want to show complete number like 9783805591331.
Also sometimes leading zero's are not showing when my column values is something like 0098794859583. I need to show the leading zero's as well in excel without losing them.
Below are the parameters i am using for the report
DESFORMAT=SPREADSHEET AND DESTYPE=FILE
My Oracle 9i developer version.
Any help on this would be much appreciated.
Thanks
KishoreAn additional quote string ' character with the number field will solve this problem but if u want to display this field in report then it will look ugly
'''||yourfield from table; check ur regional settings also
plz mark it helpful correct if it is -
Need help with Oracle reports 10g
Hi
we have a requirement in a oracle 10g application
this application is on the unix server
the requirement is such that the user must be able to print a report directly to the default printer
when the user clicks on the button a report must be printed on the users default printer
can u help us understand that how can we configure the local printer of the user on the unix server?hi, piyush9010
Check this following link...
Oracle reports 10g output directly to printer
Oracle reports 10g output directly to printer
Make your printer as shared printer then try.
Use DESTYPE=PRINTER.
http://qamarsyed.blogspot.com/2011/02/how-to-print-oracle-report-to-network.html
http://docs.oracle.com/cd/E14571_01/bi.1111/b32121/pbr_cla005.htm#i637246
Hope this helps
If someone's response is helpful or correct, please mark it accordingly. -
Please help ! "Oracle Reports Server CGI - Reports Server name is not specified."
Hello Gurus,
I have an html form that allows putting in a parameter. Upon
submit the form, it'll pass a string URL with the parameter to a
new browser.
My url: http://localhost/servlet/oracle.reports.rwcgi.RWServlet?
diary&14252
I also used keymap looks like this
diary: report=Diary.rdf server=servername desformat=pdf
destype=cache userid=id/psswd@db myoid=%1 %*
But I get an Error: The requested URL was not found, or cannot
be served at this time. Oracle Reports Server CGI - Reports
Server name is not specified.
However, if I move the cursor to the end of the same url (or put
a space at the end) and hit Enter, then the report is
displayed. I guess there must be something wrong with my
configuration. Please help. I appreciated any inputs from you.
Thanks in advance.
AshleyI found the solution to my problem. It was nothing to do with
the cgicmd.dat keymap file, but the html form itself. It's
confused between the url arguments and form arguments from the
submit button. So, what I did was open a new window with all
arguments instead of using the submit function.
Regards,
Ashley -
Help! oracle report out of order after update Rollup for windows 2000 sp4
hello once again
i haven't received any solution of my problem, so i am again uploading it.
----PROBLEM IS GIVEN BELOW-----
i am having a problem in oracle report printing (2000,6i). I have installed patch "update Rollup for windows 2000 sp4" on windows 2000. now when i send report(132 column) for printing to the printer, the report fails to expand to 132 columns and data is printed in unformatted fashion. in order to print the report correctly i have to remove the patch from the windows.i have set all parameters and
defining page size in files like wide180.PRT in printers folder in oracle directory.
Is there anyway to print the report without uninstalling windows patch?
thanksI don't have any idea about this issue. Maybe someone else on this forum can help. Meanwhile, there are couple of places you can search for this issue:
Search google for printing issues with this patch
Search Microsoft forums for Windows 2000
And if you have metalink account, search metalink forum, document/note or open a SR for this. -
Oracle Reports SPREADSHEET option QUERY
Has anyone used the SPREADSHEET option for exporting.
Is there any mechanism or setting that we may have to set, so that I dont switch off wordwrap for each cell?
Is there any mechanism or setting that we may have to set, so that I can see the gridlines of the excel.
Pls comment as this is urgent...
Thanks a lotYou keep coming back to this without even bothering to answer previous suggestions:
Oracle reports question -
Interactive report Sort option
Hi,
Is there any way to show "Null always last" as default in Null sorting option of sort window for all interactive reports in entire application/workspace/system.
I was trying to modify "apex_ns_3_1.js" but I think.....I am confused.
Please suggest the way if we could do this in safe manner.
Apex Version: Application Express 3.1.1.00.09
Current look of sort window:
Column Direction Null sorting
1 -Select Column- Ascending Default
2 -Select Column- Ascending Default
3 -Select Column- Ascending Default
4 -Select Column- Ascending Default
5 -Select Column- Ascending Default
6 -Select Column- Ascending Default
Expected:
Column Direction Null sorting
1 -Select Column- Ascending Nulls always last
2 -Select Column- Ascending Nulls always last
3 -Select Column- Ascending Nulls always last
4 -Select Column- Ascending Nulls always last
5 -Select Column- Ascending Nulls always last
6 -Select Column- Ascending Nulls always lastSachin,
Are you not able to add an order by clause to the main query and default the ordering there? Also, when you create an Interactive Report as a developer you should be able to set/save the settings for the default.
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen -
HELP with Oracle Reports 6i - user parameters .....
Hi, i have made a form with button in Oracle Forms 6i.
When i press the button it fires trigger (when-button-pressed) where i declared and made parameter (:p_dep_no) which i want to sedn to report and later query report with this (:p_dep_no) ...
In Oracle report i made this parameter under user parameter and made my SQL statemet where i included in where clause my parameter (:p_dep_no) .
When i run oracle forms and press this button i get popup screen which asks me to enter this user parameter....
My question is - how i can make it all automaticly ... that i didn't need to write (:p_dep_no) manualy, but report could get this parameter from oracle forms and then show me only queried report ....
Plz helpi have similar code already wroten to button, but when i push button and report is opening, i get popup report parameter form screen and it asks me to write parameter value....
here i have (when-button-pressed) code :
declare
pl_id ParamList;
begin
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'par_report',TEXT_PARAMETER, :registry_id);
RUN_PRODUCT(REPORTS, 'C:\Oracle\DS6i\BIN\reg_atskaite_vienam.rdf',SYNCHRONOUS,runtime,FILESYSTEM,'pl_id',null);
end; -
Pls help:sending oracle reports with desformat=spreadsheet to email
Is there a way to send the reports with desformat=spreadheet to email(destype=mail). I tried to execute the commandline with destype=mail desname=[email protected] desformat=spreadsheet but I am getting a report with html type attachment. How could I make it xls(excel) instead of html
When having lots of repeating frames and fields placed in a complex pattern, the Oracle Reports doesn't know how to place them in the .xls cells.
You ought to have a second layout for the report (containing the same data) that would print when the desformat = spreadsheet and would be be rather simple in comparison to the one that would print when desformat=pdf/html.
In case you have several repeating frames it is best to have all the fields in those frames placed and vertically aligned on the same row in the layout, from left to right. This should give a reasonable output. -
Help with Oracle Report Builder and SQL Server2000
Hey guys,
I just installed it Oracle Developer Suite10g with Report Builder and I am trying to use Report builder and wants to connect with SQL Server 2000. The problem that I am running in to is SQL Server 2000 i have is Window Authentication so Does not required to enter user name and password. So how can i connect my report builder to SQL server or is it possible to connect Report builder to SQL server?
Also, I want to create small practice version of database in Oracle how do i do it? what i mean by that is I installed trial version or Oracle developer 10g from www.oracle.com and now trying to get some knowledge with oracle. Could any one can give me some direction in this matter please.
Thank You
KeyHave a look at the reports help for the purpose header and trailer sections. Here is an exert:
"Report sectioning enables you to define multiple layouts in the same report, each with a different target audience, output format, page layout, page size, or orientation. You can define up to three report sections, each with a body area and a margin area: the names of the sections are Header, Main, and Trailer. By default, a report is defined in the Main section. In the other sections, you can define different layouts, rather than creating multiple separate reports. If you wish, you can use the margin and body of the Header and Trailer sections to create a Header and Trailer page for your reports." -
Need help in Oracle reports 6i
I have a report in 6i, which displays participant details as output on a single page. Presently page one is printed on a pre-printed format which contains some static text. Now we need to make changes in the report it self to accomodate the static text also. How can I do this without touching the existing report. As I have not worked much on reports I am not sure how to do this.
I have tried adding the static content in the footer section but it did not help.
I have really not worked on reports so I am not sure how do i do that.
I can describe the elements of the report as below:
1. Report has a non-repeating frame within that a repeating frame which brings the main data of a participant (from say table t1 where participant_flag='Y')
2. The participant repeating frame has another repeating frame which has dependents data(from table t1 where participant_flag='N')
Edited by: LostWorld on Feb 11, 2011 8:10 PM
Edited by: LostWorld on Feb 11, 2011 8:21 PMMy report brings some data based on a query which comes on a single page. This page is then printed on a pre-printed paper and sent to participants of a firm. The pre-printed content is common to all participant. For e.g. the letter head for the company has some text which is used for priting any offer letter etc.
I need to include the 2nd page in report 6i.
Edited by: LostWorld on Feb 11, 2011 8:09 PM -
Need urgent help on Oracle project
Hi people, I am working on a project using oracle sql, been struggling quite a bit. Have been issued an ultimatum to improve performance.
Wondering if anyone here can be of any help.
writing oracle reports solely on sql plus, based on finctional specs business rules.
wondering if anyone could assist with some difficult areas and offer assistance if and when needed.Without seeing any of your extra info, to delete from the table, you would want to add something like this trigger in the After Parameter Trigger:
BEGIN
IF :old_or_new = 'O'
then
delete from clothes
where size = :P_COLOR;
end if;
END;You also may want to try posting in this forum for more specific Reports questions:
Reports -
Oracle Reports : one query - two reports?
Help, please, Oracle Reports 10g.
I have a query, need to make two reports in one. They are similar, just couple parameters are different, say, entreprise type and region;
How do I display these two reports in one? I tried to make parameters as placeholders, package variables, put an trigger on outer frames for reports. parameters do change their values but just the same report displays twice. where is the trick?
Thank youThe way I have done this in the past was to create 2 master frames, 1 for each report and then put conditions on each frame as to when it is to appear. Hope this helps..
-
How to remove Sorting Option in Query's Report
Hi All,
When i try to run a Query in Enterprise Portal, I'm getting a " Sorting option" in each column. Thats not needed in a Report.
Kindly suggest me How to remove that Sorting options from Each colum header.
Thanks in Advance.
Regards,
Jayaprakash Jayachandran.Hi
Keep the cursor on that characteristics in the navigation pane, right click>Characterisitcs>properties>Sorting-> change the option as you like..
Else go to Query designer...GO to DISPLAY tab>under SORTING> set it as AS IN THE QUERY
hope this helps
Thanks
BI Learner -
Help:Building a oracle Report in Forms 6i Using dev60cgi - rwcgi60 utility
Hello All
I'm developing a form for EMP details .There is a button in the form named 'view PDF', which is used to print the EMP fields in the form(empno,name,job,etc..,). I need to run and render a PDF report(to print EMP fields) using dev60cgi - rwcgi60 utility..
My scenario is
i'm having a button(view pdf) in the form i'm creating, when i click the button then it opens a new browser window and displays the report(pdf)., how to do this
I have no idea about this utility and and don't know how to achieve this. help me to develop this report
Thanks
user2233Hi,
You want this report to run in oracle application. Then you have to develop a report using oracle reports and register the report. While defining a concurrent program you have option to select the output format, select pdf format there.
When user requests using submit request form they can see the output in PDF format.
Regards
Yoonas
Maybe you are looking for
-
hi , we have developed an application where we have a queue in websphere MQ and the application server used is oracle 10g . Now instead of using the websphereMQ or any other third party software , can we create a a queue and queue manager(MQ terminol
-
How do I reject an unwanted update that appears in the AppStore icon, i.e. Remote Desktop Client Update, which I have no use for.
-
Can program change info be sent to the channel strip?
Hi there, I have old logic midi files to update for use in logic pro7. I have set up an autoload template which I then drag the old logic files into so that I get the environment settings that I want and have some uniformity with all my files. Is the
-
How to configurate the memory's size
Hi, everyone, as you know, when we start a project in WTK, its max free memory size is about 2M, but if I need more, how can I change this limitation? Thanks for your reply.
-
Colour Issues when Printing T-Shirts
Printing logos onto black t-shirts - the logo is red but comes out orange when finally printed onto shirt. Any ideas if theres a particular red I can set it to to take away that orange hue Apologies if this is a stupid question but Im really struggli