I am unable to get order by column name in oracle report parameter form

i created query like following in query builder
SELECT CASE_NO, COURT_ID, CASE_TYPE,
INITCAP(PLAINTIFF) PLAINTIFF,INITCAP( DEFENDENT) DEFENDENT,
INITCAP(COUNSEL) COUNSEL, START_DATE, PREVIOUS_HEARING_DATE,
NEXT_HEARING_DATE,INITCAP( DESCRIPTION) DESCRIPTION,
INITCAP(RELIEF) RELIEF,INITCAP(EXTENT) EXTENT,
DECREE_DATE,INITCAP(STATUS) STATUS,INITCAP( LOCATION) LOCATION,
LEGAL_FILE_NO, MSNO
FROM L_CASE_MASTER_MAIN
WHERE to_char(NEXT_HEARING_DATE,'DD-MON-YYYY')=:P_NHD ORDER BY :P_COL
and i created parameter form for these two bind variables :P_NHD,:P_COL
in,:P_COL i wrote lov as Select trim(COLUMN_NAME) from user_tab_columns where table_name='L_CASE_MASTER_MAIN'  to get all the columns.
in parameter form i am able to get all the columns but when i am generating report it is not giving results as per my ordered column.
kindly let me know the solution
Report Version :Oracle Reports 11g
Db Version:Oracle  11g

Hi,
Ordering the column first takes place from the Data Model Itself.
Please Check your column ordering in the report data model. If it is not ordered in a right way then Rearrange it.
Remove your order by in query...
If any issues... let me know
Regards,
Soofi

Similar Messages

  • Not getting Reports Parameter Form in web-forms environ

    I am not able to get a report parameter form to appear for a
    report called from forms via a 'run_product' command. It works
    fine in client/server mode. In web-forms the report just goes
    ahead and runs without the needed parameters. I have tried
    explicitly passing a parameter list with the 'paramform' set to
    'yes' and this did nothing. I have this on a NT box with latest
    Dev2 patches applied.
    1. Is the reports parameter form supposed to work in web-forms
    mode?
    2. How do you set it up to work, if it is supposed to work?
    Thanks for any replies.
    null

    I guess you have to use web.show_document - I found this article
    on DevConnect:
    Article-ID: <Note:68647.1>
    Circulation: PUBLISHED (EXTERNAL)
    Platform: GENERIC Generic issue
    Subject: How to show Reports HTML PARAMFORM when
    calling Reports
    from Forms
    Modified-Date: 09-AUG-1999 18:02:04
    Document-Type: BULLETIN
    Content-Type: TEXT/PLAIN
    Impact: MEDIUM
    Component: SQLREP
    PURPOSE:
    This bulletin explains how to overcome the current restriction
    of calling an Oracle Report from Oracle Forms and showing a
    PARAMETER FORM. This is currently not possible when using the
    RUN_PRODUCT built-in with
    WEB DEPLOYED APPLICATIONS.
    DESCRIPTION:
    When you call an Oracle Report from Oracle Forms using
    RUN_PRODUCT in Client-server, you can specify an optional
    parameter called PARAMFORM to display the parameter form defined
    in the Oracle Report.
    For web-deployed applications, the PARAMFORM parameter can be
    set to HTML to produce a HTML version of the parameter form.
    When calling Oracle Reports from an Oracle Form using
    RUN_PRODUCT and specifying PARAMFORM=HTML in the parameter list,
    the Oracle Reports parameter form doesn't show the in the client
    browser. If the Oracle Reports Cartridge/CGI is used and
    PARAMFORM=HTML is specified, then the Oracle Reports parameter
    form does appear in the client browser.
    Oracle Forms does not use either the Cartridge or the CGI with
    RUN_PRODUCT, and it's these thin clients that produce the HTML
    Oracle Reports parameter form.
    As a workaround to this problem, you can use either the
    Cartridge or the CGI with the WEB.SHOW_DOCUMENT Oracle Forms
    builtin. This does require either the Oracle Reports Cartrige
    or the CGI to be installed. Neither of these are necessary if
    the parameter form isn't required.
    INSTRUCTIONS:
    The following items need to be installed:
    1. Oracle Reports Multi-tier Server.
    2. Oracle Reports Web Cartridge
    or
    Oracle Reports Web CGI.
    Here is a typical URL that can be specified in a browser
    to run a report using Oracle Reports Cartridge implementation:
    http://your_webserver/r30ows?
    server=repserver21+report=emp_30.rep+
    destype=cache+desformat=html+userid=scott/tiger@mydb+paramform=ht
    ml
    For CGI implementation:
    http://your_webserver/your_vir_cgi_dir/r30cgi32.exe?
    server=repserver21+report=emp_30.rep+destype=cache+desformat=html
    userid=scott/tiger@mydbparamform=html
    The Oracle Reports parameter form now is shown. This can be
    used with WEB.SHOW_DOCUMENT issuing the request to execute the
    report to the Oracle Reports Multi-Tier Server instead of using
    RUN_PRODUCT.
    The following code may be added to a program unit, which then
    issues the request to run the report:
    IF get_application_property(user_interface) = 'WEB' then
    /* Use Cartridge configuration with WEB.SHOW_DOCUMENT. */
    WEB.SHOW_DOCUMENT('http://your_webserver/r30ows?
    server=repserver21+report=emp_30.rep+destype=cache+desformat=html
    userid=scott/tiger@mydbparamform=html', '_self');
    /* OR for CGI configuration. */
    WEB.SHOW_DOCUMENT
    ('http://your_webserver/your_vir_cgi_dir/r30cgi32.exe?
    server=repserver21+report=emp_30.rep+destype=cache+desformat=html
    userid=scott/tiger@mydbparamform=html', '_self');
    ELSE
    /* use RUN_PRODUCT for client-server with PARAMFORM=Yes. */
    Add_Parameter(plid, 'PARAMFORM', TEXT_PARAMETER, 'YES');
    RUN_PRODUCT
    (REPORTS,'emp_30.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,plid);
    END;
    RELATED DOCUMENTS:
    Developer/2000: Guidelines for Building Applications, Deploying
    Applications on the Web (for detailed instructions on setting up
    the Oracle Reports Cartridge and CGI)
    Laura (guest) wrote:
    : I am having the same problem with Dev 6 on NT. The parameter
    : screen for reports works in client/server but not web using
    run-
    : product. I am getting error REP-0788: Warning the value of
    the
    : restricted LOV parameter is not among the selectable values.
    : Any reports without a parameter screen work fine with run-
    : product.
    : Any help would be appreciated.
    null

  • Unable to get order conformations

    hi
    In MI2.5 SP9 client, MAM application i could get notification numbers in the device but unable to get orders to the device can any one help me out with this problem
    with regards
    sid

    Hi,
    Ordering the column first takes place from the Data Model Itself.
    Please Check your column ordering in the report data model. If it is not ordered in a right way then Rearrange it.
    Remove your order by in query...
    If any issues... let me know
    Regards,
    Soofi

  • PAM-KRB5: account:  unable to get host based service name for realm

    I want a custom service to authenticate via PAM with Microsoft Active Directory Services on Windows 2003. kinit appears to work:
    Myserver% klist
    Ticket cache: /tmp/krb5cc_200
    Default principal: [email protected]
    Valid starting Expires Service principal
    Tue 01 Aug 2006 10:42:23 AM CDT Tue 01 Aug 2006 08:42:23 PM CDT krbtgt/[email protected]
    renew until Tue 08 Aug 2006 10:42:23 AM CDT
    Running a sample PAM consumer using 'winsamp' as its service name complains that Kerberos doesn't know the user. syslog reports: PAM-KRB5: account: unable to get host based service name for realm 'EXAMPLE.COM'.
    I'm stuggling to get any additional logging out of either PAM or Kerberos. Any advice appreciated.
    /etc/pam.conf:
    winsamp auth required pam_krb5.so.1 debug
    winsamp password required pam_krb5.so.1 debug
    winsamp account required pam_krb5.so.1 debug
    winsamp session required pam_krb5.so.1 debug
    /etc/krb5/krb5.conf:
    [libdefaults]
    default_realm = EXAMPLE.COM
    default_tkt_enctypes = des-cbc-md5 ; or des-cbc-crc
    default_tgs_enctypes = des-cbc-md5 ; or des-cbc-crc
    [realms]
    EXAMPLE.COM = {
    kdc = mykdc.example.com:88
    admin_server = mykdc.example.com
    default_domain = EXAMPLE.COM
    [domain_realm]
    .example.com = EXAMPLE.COM
    [logging]
    default = FILE:/var/krb5/kdc.log
    kdc = FILE:/var/krb5/kdc.log
    kdc_rotate = {
    # How often to rotate kdc.log. Logs will get rotated no more
    # often than the period, and less often if the KDC is not used
    # frequently.
    period = 1d
    # how many versions of kdc.log to keep around (kdc.log.0, kdc.log.1, ...)
    versions = 10
    [appdefaults]
    kinit = {
    renewable = true
    forwardable= true
    PAM sample application synopsis:
    pam_start("winsamp", "someuser", &conv, &pamh);
    err = pam_authenticate(pamh, 0);
    if (err == PAM_USER_UNKNOWN)
    printf("don't know that user\n"); // <-- we always arrive here
    logout();
    }

    Part of the problem was that the Sun server's domain was not an exact match for the ADS domain. One was XXXX.EXAMPLE.COM and the other was just EXAMPLE.COM. Adding the equiv. domains in krb5.conf improved that situation.
    The sample PAM application still doesn't behave the way I want. When pam.conf is configured to authenticate against /etc/passwd, it works. Not when authenticating against ADS alone. I've come to the conclusion that PAM is for authenticating ONLY access to Solaris accounts.
    My application does not need a Solaris account. Am I using the wrong authentication API?

  • Calculation Field to be mapped to different data object's column name in Oracle BAM 12c

    Hi,
    I am having a challenge to enable drill down to 2nd level report by passing calculation field as parameter.
    As an alternative, I am thinking to point calculation field to another data object’s column name and generate report so that I would be able to pass that as parameter to drilling report view.
    Is there any way to map calculation field to different Data object’s column name? Thanks in advance.
    Regards
    Amik Basu

    1. Yes, you can.
    SQL> create table ÜÝÞ( ßàá number(10));
    Table created.
    SQL> insert into ÜÝÞ values (10);
    1 row created.1.1 and 1.2 and 2. You can choose UTF as your default character set. It allows the user of non-English characters in VARCHAR columns in your whole database. It is not per tablespace.
    SQL> create table ÜÝÞ( ßàá varchar2(100));
    Table created.
    SQL> insert into ÜÝÞ values ('âãäçìé');
    1 row created.

  • How to rename the column name in oracle 8i?

    hi,
    Does anyone know how to rename the column name in oracle 8i?My method was drop the relationship key first then delete the old column,finally add the new column.
    Thanks for your replay.
    jing

    There is no facilty to rename a column name in Oracle 8i. This is possible from Oracle 9.2 version onwards.
    For you task one example given below.
    Example:-
    Already existed table is ITEMS
    columns in ITEMS are ITID, ITEMNAME.
    But instead of ITID I want ITEMID.
    Solution:-
    step 1 :- create table items_dup
    as select itid itemid, itemname from items;
    step 2 :- drop table items;
    step 3 :- rename items_dup to items;
    Result:-
    ITEMS table contains columns ITEMID, ITEMNAME

  • Get report file name in oracle report builder at run time

    Dear All,
    Is there any way to get the report file name in oracle report builder at run time?
    for example "HR_REP012.REP"
    i need this very important...
    Regards,
    Yousef
    Edited by: Yousef_m on Jun 2, 2012 5:18 AM

    Hello,
    Did you try the builtin SRW.GET_REPORT_NAME built-in function ?
    Example
    function AfterPForm return boolean is
    my_var varchar2(80);
    BEGIN
    SRW.GET_REPORT_NAME(my_var);
    SRW.MESSAGE(0,'Report Filename = '||my_var);
    RETURN (TRUE);
    END;
    Regards

  • Getting OAS server name in oracle reports

    Hi Experts,
    I need to get the OAS name in the After parameter form trigger. Is there any built-in funtion that will return the Current OAS name? Please help me. Thanks in advance.
    Regards,
    J.P

    Hello,
    When using the Reports Servlet some "extra" parameters are passed :
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_run.htm#i1009092
    If you want to read these paramaters values , you need to "declare" these parameters in your Reports
    Regards

  • How to get the available profile names in oracle database

    How we can get the available profile names in oracle 11g

    Hi;
    It isnt to check from dictionary ?
    select * from dictionary where table_name like '%PROFILE%'
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • What is the order of Column Names in Sqlite query results?

    I am writing an application using Adobe Air, Sqlite, and Javascript.
    After writing the following select statement:
              SELECT field1, field 2, field 3, field 4 FROM TableA;
    I would like to get the columnName/data combination from each row -- which I do successfully with a loop:
              var columnName="";
              for (columnName in selResults.data[i]) {
                   output+=columnName + ":" + selResultsdata[i][columnName] + ";";
    My issue is that the column names come out in a different order every time I run the query and never once have they come out in the desired order -- field 1, field 2, field 3, field 4.  If I run the query in Firefox's Sqlite Manager, the columns come out in the "proper" order. When I run them in Adobe Air, the order will be the same if I run the query mulitple times without closing the app.  If I make a change such as declaring the columnName variable with "" before the for column, or declare it as (var = columnName in selResults.data) , then the order changes.  If I shut down my app and re-open after lunch and run query, it comes out in another order.  At this time, I'm not interested in the order of the rows, just the order of the columns in each output row.  I've even tried assiging an index to columnName which seems to just pick up a single letter of the columnName.
    I'm in the process of changing my HTML presentation of the data to assign a precise columnName to an HTML table title, but I'm reluctant to let go of the above concept as I think my separation of HTML/presentation and Javascript would be better if I could use the solution described above.
    So, does anybody know how to force the order of the columnNames in my output -- or what I'm doing to cause it to come out in a different order?
    Jeane

    Technically there isn't any "order" for the return columns. They aren't returned as an Array -- they're just properties on an Object instance (a "generic object"). The random order you're seeing is the behavior of the for..in loop iterating over the properties of the object. Unfortunately, with a for..in loop there is no guaranteed order for iterating over properties (and, as you've seen, it tends to vary wildly).
    The only solution is to create your own list of the column names and sort it the way you want to, then use that to create your output. For example, use the for..in loop to loop over the properties, but rather than actually get the values, just dump the column names into an Array:
    var columnName="";
    var columns = [];
    for (columnName in selResults.data[i]) {
        columns.push(columnName);
    columns = columns.sort(); // just uses the default alphabetical sort -- you would customize this if desired
    var j = 0;
    for (j = 0; j < columns.length; j++) {
        columnName = columns[j];
        output+=columnName + ":" + selResultsdata[i][columnName] + ";";

  • Unable to get 'InitialContext' using Java Client in Oracle App 10.0.2.0

    Scenario & Problem Description: Unable to get 'Initial Context' using Simple Java Client in Oracle Application Server 10.0.2.0
    I'm having an issue while I try to initialize the Initial Context for an EJB lookup from a simple Java Client [local lookup], but the same code snippet works fine when I try from Servlet. I have enclosed the Exception Stack Trace and the Code Snippet for your reference.
    1. .NET Client ---> Servlet --> LookupUtility --> EJB --> DB - Issue
    2. .NET Client ---> Servlet --> EJB --> DB - Works
    Exception: java.lang.InstantiationException: Error communicating with server: Lookup error: javax.naming.AuthenticationException: Invalid username/password for Config (guest); nested exception is: nested exception is: Exception in InitialContext: javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Invalid username/password for Config (guest) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at com.seagate.edcs.config.util.LookupUtility.getInitialContext(LookupUtility.java:123)
    at com.seagate.edcs.config.util.LookupUtility.getConfiguration (LookupUtility.java:69)
    at com.seagate.edcs.config.util.LookupUtility.main(LookupUtility.java:135)
    Code Snippet:
    * This method returns the Configuration for the properties set.
    public ArrayList getConfiguration ( ) throws Exception {
    ArrayList arrayList = null;
    try {
    Context context = getInitialContext();
    System.out.println("Context : " + context);
    Object home = context.lookup("java:comp/env/ejb/com.seagate.edcs.config.ejb.ConfigSessionEJBHome");
    System.out.println("Object home : " + home);
    ConfigSessionEJBHome configSessionEJBHome = (ConfigSessionEJBHome)PortableRemoteObject.narrow(home, ConfigSessionEJBHome.class);
    System.out.println("ConfigSessionEJBHome configSessionEJBHome : " + configSessionEJBHome);
    ConfigSessionEJB configSessionEJB =(ConfigSessionEJB)PortableRemoteObject.narrow(configSessionEJBHome.create(), ConfigSessionEJB.class);
    System.out.println("ConfigSessionEJB configSessionEJB : " + configSessionEJB);
    arrayList = configSessionEJB.getAllConfig();
    System.out.println("Context : " + context);
    } catch (Exception ex) {
    System.out.println("Exception Occured");
    throw ex;
    return arrayList;
    * Get an initial context from the JNDI tree.
    private Context getInitialContext() throws NamingException {
    try {
    Hashtable hashtable = new Hashtable();
    hashtable.put("java.naming.factory.initial", "com.evermind.server.ApplicationClientInitialContextFactory");
    hashtable.put("java.naming.provider.url", "ormi://seagate.mil-shivas-270.am.ad.seagate.com/home"); // if we won't specify the port, it considers the default port
    hashtable.put("java.naming.security.principal","ias_admin");
    hashtable.put("java.naming.security.credentials","ias123");
    return new InitialContext(hashtable);
    } catch (NamingException ne) {
    System.out.println("Exception in InitialContext.");
    throw ne;
    Note:
    1. The user "ias_admin" & password "ias123" are the credential provided for the 'Admin' while installing the Oracle App Server and using these credentials I'm able to bring the Admin Console. Also, added new user 'guest/guest' - assigned this user to the 'admin' group ...
    2. Since its a local lookup, there is no need to specify the credentials, but at runtime a dialog box pops up prompting to enter the 'userid/password' and when I enter the crendtials, I get the exception as stated. [In case of Servlet - EJB lookup, I'm not specifying any credentials]
    Are there are any configuration parameters which I need to provide in any of the .xml? Could you please let me know the fix for the same.
    Regards,
    Kafeel/-

    Please use the OS {forum:id=210}

  • How to get table and column names thats being used in SQL , that's generating all my reports on SSRS.

    Good day,
    I searched through the forum and cant find anything.
    I have around 300 published reports on SSRS and we are busy migrating to a new system.
    They have already setup their tables on the new system and I need to provide them with a list of table names and column names that are being used currently to generate the 300 reports on SSRS.
    We use various tables and databases to generate these reports, and will take me forever to go through each query to get this info.
    Is it at all possible to write a query in SQL 2008 that will give me all the table names and columns being used?
    Your assistance is greatly appreciated.
    I thank you.
    Andre.

    There's no straightforward method for that I guess. There are couple of things you can use to get these details
    1. query the ReportServer.dbo.Catalog table
    for getting details
    you may use script below for that
    http://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c
    2. Another method is to run the reports and run sql profiler trace on background to retrieve queries used.
    But in some of these cases the report might be using a procedure and you will get only procedure. Then its upto you to get the other details from procedure like tables used, columns etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Get Recordcount and Column names

    Hi,
    Can any one help me out a way to get the recordcount for an sql query executed and the number of columns and there names that are returned by the query.
    The same way we do in ASP/VB.
    like rs.fields.name
    Hope so somebody will help me out.
    Thanks,
    Raji

    Hi,
    Below is the sample code that i am using this code works fine.
    I want to find the recordcount and the columnnames.
    I have jdbc driver 1.0 how can i update to 2.0?
    Can any body help me out as how to get the recordcount and column names?
    I would appreciate if you can add the code to the following code below.
    I am calling a beanDBConnect(input sql query;output recordset).
    Help urgently needed as early as possible.
    Thanks,
    Reji
    <HTML>
    <HEAD>
    <TITLE>
    JSP/BEAN/JDBC Test
    </TITLE>
    </HEAD>
    <BODY>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.util.*" %>
    <%
    ResultSet rs;
    String sSql = "SELECT * from employee";
    jspproject.DBConnect oConnectDB = new jspproject.DBConnect();
    oConnectDB.setsSql(sSql);
    oConnectDB.setaResultSet();
    rs = oConnectDB.getaResultSet();
    while (rs.next())
    out.println(rs.getObject("usertypeid").toString()+"<br>");
    out.println(rs.getObject("description").toString()+"<br>");
    rs.close();
    %>
    </BODY>
    </HTML>

  • Getting Column names from SQL report

    I have a SQL report as follows:
    select ename, dept, manager
    from emp;
    I need to be able to dynamically access the column names being displayed inside APEX so I can use in a List of Values. I can't use all_tab_columns. Is there an internal APEX table/view that I can accxess that will give me all of the columns that are eing displayed in a SQL report?

    Hi Bob,
    Try this -
    1) Give your report region a static id
    2) Use the following query -
    select
      heading d,
      column_alias r
    from
      apex_application_page_rpt_cols
    where region_id = 'FOO';Obviously change 'FOO' to match your region id, and look at the different columns available in the apex_application_page_rpt_cols view to see what best suits you.
    The APEX dictionary rocks ;)
    Hope this helps,
    John.
    http://jes.blogs.shellprompt.net
    http://apex-evangelists.com

  • Column Name in Oracle 9i Release 2 XDB

    I registered a xml schema and I created a table for an element in this schema. At my table, column name
    always is SYS_NC_ROWINFO$. Can I change this and can I rename it?
    Thanks for helps

    I found the answer in another thread
    Re: Unable to locate 'cc' utility in path
    Currently you cannot change this name, nor do I understand why you would want to. In general you should refer to row in an XMLType table as value(x) where x a table alias defined in the from clause. There are some bugs in triggers where this syntax does not currently work.
    Please explain the usecase, other than within triggers where this does not make sense
    Eg
    Assuming PurchaseOrders is an XMLType table
    select value(x) from PurchsaeOrders x; May I know what types of errors that these bugs can cause?
    Specifically, I am having problems of querying the sample
    XMLType table. I have no problem of using
    select extract(value(x), '/PurchaseOrder').getStringval() from PO x
    However, I see no result from the query
    select extract(value(x), '/PurchaseOrder/Company').getStringval() from PO x
    Am I missing something obvious?
    Thanks!!

Maybe you are looking for

  • Edited a .jpg file with MSPaint, edit doesn't show up in Dreamweaver. ?

    In my images folder for my website are several .jpg files. I edited the .jpg file in MS Paint.  I added a few blue pixels to stand out.  Then I reopened Dreamweaver MX in local view, looked at the .jpg with Preview in Browser/Firefox, and there were

  • Why can't I download music for 90 days on iPod touch?

    I tried to download music for my iPod touch but it said that it was already associated with an iTunes account. And that I have to wait for 90 days to download my purchases that I want to get again.

  • SAP POS & CRM Loyalty Management Integration

    Hi Gurus, Can any one please tell me how to integrate the Loyalty management in SAP Retail POS with SAP CRM 7.0, and wat are the varios perameters to be considered and how to implement it. Thanks In advance.. Regards, Sivasankar.U

  • Trying to update now iTunes is gone

    I tried the most recent update and it didnt complete, now the iTunes icon is gone and in looking at the program files it won't appear there either.  In trying to reinstall it won't let me as I need to delete the previous program files first but I can

  • Coding conventions poll

    This is a cross post from a thread in the Java Programming Forum. If you haven't read this there, read it here and please reply if you have a minute. I'm conducting a personal study about some stuff, just out of curiousity. Who writes code like this: