How to access a non-database column in a report?

Hi all,
I would like to populate a column in my report, which is not based (in Oracle Forms, it is a "non-database item").
But I don't know how to access it. Let's say the alias of the column is "column", I tried to do it with #column#, but it's not valid.
Does anyone know a solution here?
Thanks a lot,
Dovik

Dovik
Where do you need to access the column value ? Are other columns of the report accessible from where you are trying to access the value of this 'non database' column ?
varad

Similar Messages

  • Order By Clause on Non-Database Column using Forms

    How to Sort by using Order by Clause on Non-Database Column using Forms6i

    Eugene,
    What is the error message/ number you are seeing? If you run "select name from tblperson order by name" do you still get an error?

  • Non Database Column to Grid Control

    Hi,
    How do I add a Non database column to a Grid Control which is
    based on a Rowset. I want the similar functionality of a
    multirow Block in D2K Forms, which is based on a Database query
    and to which another item is added which is non Database item
    and it is also displayed as any another item in the same
    multirow block. The updatable and queryable property for this
    item is set to false.
    How do I get similar functionality in JDeveloper using InfoSwing
    GridControl. Thanx in advance.
    --- Ravi
    null

    The GridControl does not have built-in support for this
    functionality. However, the GridControl source code is provided
    so you can extend the control to provide this functionality.
    In 3.0, the Oracle Business Components for Java will provide the
    ability to create objects that can mix db and non-db attributes.
    The GridControl can then be bound to this object to provide the
    functionality you seek.
    - PSW
    Ravindra Channe (guest) wrote:
    : Hi,
    : How do I add a Non database column to a Grid Control which is
    : based on a Rowset. I want the similar functionality of a
    : multirow Block in D2K Forms, which is based on a Database query
    : and to which another item is added which is non Database item
    : and it is also displayed as any another item in the same
    : multirow block. The updatable and queryable property for this
    : item is set to false.
    : How do I get similar functionality in JDeveloper using
    InfoSwing
    : GridControl. Thanx in advance.
    : --- Ravi
    null

  • How to access the portal database ?

    Hi ,
    1. How to access the portal database from an abstract portal component program ?
    2. How to insert data to the Table from the abstract portal component program ?
    Please provide me some direction to proceed .
    plz send me the steps how to access the Database using SQL.
    Thanks
    Smita
    Edited by: Smita Mohanty on Nov 14, 2008 9:21 AM

    Hi Smita,
    In case your portal has MS SQL server as its databse, then I am giving the step by step directions to achieve 90% of what you wish to do. Rest 10% you can try on your own.
    Go through my article given below:
    [How to Create a Web Service using Enterprise JavaBeans|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10]
    First go through pages 1-12 which will help you to create user/table in MS SQL database as well as create a data source in Visual Admin. Page 19 will give you the code which you can use in your Portal component to access the tables you have created in your SQL database.
    I hope your problem gets solved.
    Bye
    Ankur

  • How to access the sql database in applet?

    How to access the sql database in applet?
    Please help me.

    import java.applet.*;
    import java.awl.*;
    import java.sql.*;
    //other packages
    public class jdb extends Applet
    Connection con;
    Statement stmt;
    String name="drvijay";
    String phoneno="9842088860";
    public void init(){}
    pubilc void stop(){}
    public void destroy(){}
    public void start()
    call();
    public void call()
    try{
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              conn=DriverManager.getConnection("Jdbc:Odbc:emp","sa","");
              stmt=conn.createStatement();
              stmt.executeUpdate("insert into empdetails(name,phoneno) values ('"+name + "',''"+ phoneno +"' )" );
              }catch(SQLException e)
                   System.out.println("error"+e);
                   System.exit(0);
    //<applet code="jdb" height="200" width="200"> </applet>
    u this jdbc statement in any of the method..
    */

  • How to display subtotals in separate column in alv report?

    hi,
    I am displayed the subtotals  for QUantity field BDMNG in Reuse_alv_grid_display  in the same column.
    but I want to display subtotal in separate column.
    How to display subtotals in separate column in alv report?
    thanks&regards.
    samba.k

    Hi
    As far as i know you can't do this,the option you have is to create one more column (subtotal) and populate it by manual calculation at every subtotal (not alv subtotal but yours) .
    Best Regards
    Yossi

  • How to access a Cloudscpae database?

    I have problems setting up and accessing the J2EE RI built-in database Cloudscape.
    In the EJB tutorial (EJBIntro) some EJB are created during the exercises. There's
    also a file named MusicStoreDB.jar which contains a prepared Cloudscape database.
    In the turorial it's been told:
    "Sun's J2EE Reference Implementation comes with a built-in version of the
    Cloudscape RDBMS. If you are using J2EE RI, you should initially use Cloudscape as
    your database to avoid configuration problems. You can learn how to substitute a
    different database after you become comfortable with creating and deploying
    applications using Cloudscape."
    and:
    "For Cloudscape, simply copy the MusicStoreDB.jar archive into the directory
    %J2EE_HOME%\cloudscape and then unjar the database. (All files unjar into the
    directory MusicStoreDB within the current working directory.)
    One last step is needed when running with J2EE RI: You need to modify the
    %J2EE_HOME%\config\default.properties file to define the datasources available
    to J2EE RI. This is done by changing the line that reads:
    jdbc.datasources=jdbc/Cloudscape|
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    (with everything on one line)
    to be:
    jdbc.datasources=jdbc/Cloudscape|
    jdbc:cloudscape:rmi:CloudscapeDB;create=true|
    jdbc/MusicStore|jdbc:cloudscape:rmi:MusicStoreDB;create=false
    (with everything on one line)
    and then restarting both Cloudscape and J2EE RI."
    Rather than doing the changes in "default.properties" I did in "resources.properties"
    but it dooesn't work.
    What am I doing wrong? Can anybody help me to get the database run? How do I have to
    register the MusicStoreDB within resources.properties and how can I access this database
    using the DatabaseTool provided with the EJB tutorial?
    Thank you.
    Dirk Ulrich
    Berlin, Germany
    [email protected]

    I'm having the same problem with even the same
    MusicStore demo .
    I'm trying to solve it.
    please let me know if you have any solution.
    Joseph.

  • Query a non-database column

    My main table is SR_TECHS which has tech id and Techname
    My second table and block is sr_tech_calendar.
    Here tech_name is a non-database field.
    When I type J% in the Tech_name field and query, I should be able to get all tech_names
    starting with 'J'
    How can I get it through pre-query and what should I do in the post-query?

    you achieve this by setting
    set_block_property('blockname',default_where,'give neccessery where condition')
    in pre_query trigger
    siby

  • How to access to posgresql database

    Hi,
    I would like to know if it's possible to access to postgresql database with forms9i.
    Thanks

    Hi Smita,
    In case your portal has MS SQL server as its databse, then I am giving the step by step directions to achieve 90% of what you wish to do. Rest 10% you can try on your own.
    Go through my article given below:
    [How to Create a Web Service using Enterprise JavaBeans|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10]
    First go through pages 1-12 which will help you to create user/table in MS SQL database as well as create a data source in Visual Admin. Page 19 will give you the code which you can use in your Portal component to access the tables you have created in your SQL database.
    I hope your problem gets solved.
    Bye
    Ankur

  • How to query on non database item?

    I am working on AP Invoice form. The Invoice Header block based on table ap_invoices_all, I have database items such as invoice_num, invoice_date, and invoice_amount. I also have some non databases item like supplier and supplier number. I added POST_QUERY:
    declare
    supplier varchar2(240);
    supplier_number varchar2(30);
    supplier_site varchar2(15);
    begin
    select aps.vendor_name, aps.segment1
    into :invoice_header.supplier, :invoice_header.supplier_number
    from ap_suppliers aps
    where aps.vendor_id = :invoice_header.vendor_id;
    Also in PRE-QUERY
    declare
    supplier varchar2(240);
    supplier_number varchar2(30);
    supplier_site varchar2(15);
    invoice_num varchar2(50);
    invoice_date date;
    invoice_amount number;
    begin
    select aia.invoice_num, aia.invoice_date, aia.invoice_amount
    into :invoice_header.invoice_num, :invoice_header.invoice_date, :invoice_header.invoice_amount
    from ap_invoices_all aia
    where aia.vendor_id = (select vendor_id from ap_suppliers where vendor_name = :invoice_header.supplier);
    It's showing fine with Suppier iformation I query by invoices, but I doesn't work when I query by supplier.
    Can anyone help? I really appreciate.

    Hello,
    Thanks for your reply. I think I need to clarify my problem
    Your cursor has the same result as what I have in the post-query:
    Select aps.vendor_name, aps.segment1
    into :invoice_header.supplier, :invoice_header.supplier_number
    from ap_suppliers aps
    where aps.vendor_id = :invoice_header.vendor_id;
    and they both work when I query on a database item, such as invoice_num and the non database item vendor name and vendor number will show up. I am doing ok with this.
    My problem is when I query on vendor name field which is not a database item, such as CLARK PUBLIC UTILITIES, it will not return CLARK PUBLIC UTILITIES only, instead it returned all the suppliers. Could you please help with this? Thanks a lot.

  • Deleting a non-database column

    Hi,
    In forms, i have one field, manager_id, database block = YES, but it is not visible on any canvas. Instead of this, the non-database item manager_name is displayed in form, and populated from a post-query trigger (with the name of the manager). Is there any property, or something, so if i delete the content of a particulat manager_name (set it to null), the manager_id also sets to null?
    Thanks

    Hi,
    >
    In forms, i have one field, manager_id, database block = YES, but it is not visible on any canvas. Instead of this, the non-database item manager_name is displayed in form, and populated from a post-query trigger (with the name of the manager). Is there any property, or something, so if i delete the content of a particulat manager_name (set it to null), the manager_id also sets to null?
    >
    Write a POST-TEXT-ITEM Trigger on the Manage_Name field to set the Manager_id to null
    IF :MANAGER_NAME IS NULL THEN
      :MANAGER_ID := NULL;
    END IF;Cheers,

  • How to Change the position of Column in ALV report

    Hi Follks,
        Is is possible to change the position of column in ALV report?.If yes then how?
        Basically my requirement is, that user want afacility where , he should be able to change the position
        of column aftre he runs the report.
        Eg: After running the report , user felt that column 5 should be at position 2 , in that case he should   
               be able to drag column 5 at position 2 and vice versa.
        Please help me, how to solve this issue.
        Note : I am using NW 7.0 SP 9
        Regards
        PG
    Edited by: PG on Apr 13, 2009 11:10 AM

    HI PG,
    do below whie filling the filed catlog
    wa_fieldcat-fieldname        = 'Field1".
    wa_fieldcat-COL_POS = '1',
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname         = 'Field2".
    wa_fieldcat-COL_POS = '2',
    wa_fieldcat-fieldname         = 'Field3".
    wa_fieldcat-COL_POS = '3',
    Thanks!

  • How can i delete One Blank Column in my report

    Hi guru's,
    can any one tell me .........
    i'm getting one Blank column in Query output.How can i delete that Blank Column ?
    in the same way Row  Also....
    Thanking  u advancely
    Chandra

    Here is a site with some nice sample code on deleting rows / columns : [http://www.java2s.com/Code/JavaScript/HTML/ModifyingTableColumns.htm|http://www.java2s.com/Code/JavaScript/HTML/ModifyingTableColumns.htm]
    As to where to put the code, edit your web template, then put the code in there. There are script web items that you can use, but be aware that editing javascript in the script item is not too pleasant. I have found the best approach is to rather create the javascript file on my machine, then upload it to the MIME repository, then reference that in the web template.
    Here is how I have referenced the javascript file sitting in our MIME repository:
    < script src="bwmimerep:///sap/bw/mime/Customer/javascript/CustomCalculations.js" />
    I hope this helps you out.
    Cheers,
    Andrew
    Edited by: Andrew Lewis on Jul 18, 2008 9:26 AM

  • How to display more than 60 columns in a report

    I have a table defined as follows
    id
    column_name
    column_value
    data sample
    id col_name column_value
    1 col1 val1
    1 col2 val2
    1 col3 val3
    2 col1 val1
    2 col2 val2
    2 col3 val3
    now I want to display the data in a report as follows
    id col1 col2 col3
    1 val1 val2 val3
    2 val1 val2 val3
    I was able to generate output using pivots [http://technology.amis.nl/blog/1197/pivot-dynamic-data]
    the problem is that I can have more that 60 columns retrieved in each row, the pivot solution will retrieve them correctly but I can't display more than 60 columns in apex reports, why this restriction in apex, any solution

    Hello:
    In the Source section of the report definition choose 'Use Generic Column Names (parse query at runtime only)' and then specify a suitable value for 'Maximum number of generic report columns:'
    Varad

  • How to access the "Non Adapter" properties in Teststand API

    Hi,
    I'm trying to dynamically create a sequence file through Labview with the help of the API. So far I have eben able to create the file, add a sequence call into the file as well as link the sequence call to a particular sequence file that will be called. Now, I wish to add certain "non-adapter" steps into the sequence file like Goto, Label, Property Loader etc. I can't seem to find a way to access the propeties once the step has been added. In the LV adapter, I was able to access the TSAdp.SequenceCall API and manipulate the properties. How do I do the same for the non-adapter ones?
    Also, when I load the sequence file through the TSAdp.SequenceCall API, i'm unable to access the parameters and link the inputs and outputs. I've attached a portion of my code and would really appreciate some help.
    Thanks in advance,
    -Anshul
    Attachments:
    Dynamic Sequence File.vi ‏127 KB

    Thanks for everyone's replies. I am now able to set the parameters for the sequence file, just that I added a property node for the sequence file path and the sequence before loading the parameters. That did the trick and the rest was easy. Also for Goto, with some digging, I was able to add a custom property step if it fails or passes the step. It works like a charm. I'm attaching a modified version of my code in LV 7.0 format.
    Attachments:
    Dynamic Sequence File-1.vi ‏175 KB

Maybe you are looking for

  • My mid 2010 MacBook Pro keeps restarting itself

    For some reason my 15' MBP will restart itself. The screen will go black and it will just reboot. It happens a couple times a day, and it gets very annoying. Here are the problem details: Anonymous UUID:       E19C521C-2283-DE9B-B18E-15EF7A4BFA09 Mon

  • Qosmio G40: TV Tuner not working in Windows 7 64bit

    Hi, After months of patience and following the drivers-info on the Toshiba website,i found it was time to replaced my Vista32 Ultimate with Windows7 Ultimate. It seemed that all drivers now have a 64bit version working under Windows 7, the missing dr

  • Screen resolution option only 800x600

    I have a G5 Dual 2.3 and an Acer 1917A monitor. I used this monitor with no issue on a G4 Dual. Plugged it into the "new" G5 and the only screen resolution option I have is 800x600 (not high enough). I have not installed any software from acer (can't

  • Change Vendor in Condition Type

    Hello Experts, I would like to know how can I change automatically the Vendor in conditions type of delivery cost, for example in Freight condition. The standard always bring the PO Vendor in all conditions.  Thanks and Regards, Pablo

  • Hand tool in preview (in mountain lion)?

    I'm missing the hand tool in preview. Is it completely gone or is there any chance to get it back?