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?

Similar Messages

  • 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

  • Purchase order Field LIke Material , Non editable by using Trax code Me22n

    Guru
    How to make Purchase order Field LIke Material , Non editable by using Trax code Me22n
    Thanks

    Hi
    Check this in SPRO- SAP IMG- Material Management - Purchasing- Purchase order- Define screen lay out at document level
    In this select the particular field selection key and change the material field to display.
    Hope it will do
    Regards,
    Raman

  • 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

  • Order of numeric string of database column

    I have database column that has varchar2 type. I tried to sort it in order but It would not work. It behaves like this.
    1 10 11 15 2 20 3 30....
    What I want is this
    1 2 3 10 11 15 20 30 ....
    I tried format mask but it does not help.
    Please help.

    written before the post immediately above
    I'm not sure what you mean by that. It's an oracle function, so check the docs for your version to see if it's available. Otherwise:
    CREATE OR REPLACE FUNCTION isnum(p IN VARCHAR2) RETURN VARCHAR2 IS
      x NUMBER;
    BEGIN
      x := To_Number(p);
      RETURN 'Y';
    EXCEPTION
      WHEN Value_Error THEN
        RETURN 'N';
    END;
    WITH data AS(
      SELECT 'a' AS col1 FROM dual UNION ALL
      SELECT '11' AS col1 FROM dual UNION ALL
      SELECT 'd' AS col1 FROM dual UNION ALL
      SELECT '1' AS col1 FROM dual UNION ALL
      SELECT '2' AS col1 FROM dual UNION ALL
      SELECT 'b' AS col1 FROM dual UNION ALL
      SELECT '10' AS col1 FROM dual UNION ALL
      SELECT '12' AS col1 FROM dual
    SELECT col1
    FROM data
    ORDER BY
      CASE isnum(col1) WHEN 'Y' THEN 'b' ELSE 'a' END,
      CASE isnum(col1) WHEN 'Y' THEN To_Number(col1) END,
      CASE isnum(col1) WHEN 'N' THEN col1 END
    ;

  • 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,

  • 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

  • Checking whether data exists in a BLOB type database column in Forms 6i

    I am developing an application regarding inventory of a plant's spare parts. I am storing photo (.bmp) of spares in the database in a column of BLOB type. Once user punches spare's code, form displays spares data on screen using EXECUTE_QUERY. At this stage I want to check whether picture (.bmp) data was found in BLOB type database column or not. I want to take action accordingly. How to check this. If it would be a numeric column, I would have checked NULL but NULL does not work with BLOB type coloumns.
    Pl. help.
    Thanks in anticipation.

    Did you look in the database documentation? The DBMS_LOB package has the method you need: getlength().
    This was more of a database question than a Forms question, so you'd probably have more luck with these types of questions on one of the other forums, like the database or SQL forums.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Set the value of a non database field in forms

    hai friends ,
    Have been struggling a lot with the problem now . Could anyone suggest me how to go about it.
    I want to set the value of a field in a form . I know the function set_value and set_value_as_(data type ) does the work . But then is there any constraint on the position where it is called.
    My requirement is on querying a form the data from the tables mut be populated( which the portal handles) and I want to populate the non database bound fields with certain values.
    Could any one help me out with this ..
    null

    I need to set value to one of the object attributes if that attribute is blank.This is some kind of a default value that you want, then? If so then just take care of that when you output it. Use <c:if>, and if the attribute is blank then output the default value, otherwise output the attribute.
    Or have the servlet that created that request attribute take care of that requirement.

  • Deleting Column using Form Settings issue

    I have a problem deleting a column from the Sale Order Enty screen.  I added the Bar Code column to the Sales Order Entry grid to 5 users using Forms Settings.  I decided to delete it from all 5 users, so I went back to Forms Settings and deleted the column.  Actually, I checked the Visable check box to have the Br Code column displayed and then I unchecked the Visable check box on the Form Settings form.
    The problem I am experiencing is that one of the 5 users,  I delete the column, and when the user logs back into the system again,  the column is back, and I have to delete it again.  This happens each time the user logs out and then back in.  Has anyone else experienced this problem? And if so, how did you resolve it?
    Thanks in advance!!
    Dana

    This user's profile must have some problems.  One way to check is log this user in another workstation to see. Make sure only one session for this user whenever you change and save form settings for the user.
    Thanks,
    Gordon

  • How to FTP a file from client machine to database server using forms 10g

    Hi
    I want to ftp a file from a client machine to the database server machine using forms 10G (or PL/SQL).
    could you please tell me how can I do this
    Regards

    hi
    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: Oracle_Home is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    Oracle_Home with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
    and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
    2) Copy or move jacob.jar and jacob.dll
    C:\webutile is the folder where you extracted Jacob, and will end in ...\jacob_18
    cd C:\webutile
    copy jacob.jar Oracle_Home\forms\java\.
    copy jacob.dll Oracle_Home\forms\webutil\.
    The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
    Open a DOS command prompt.
    Add Oracle_Home\jdk\bin to the PATH:
    set PATH=Oracle_Home\jdk\bin;%PATH%
    Sign the files, and check the output for success:
    Oracle_Home\forms\webutil\sign_webutil Oracle_Home\forms\java\frmwebutil.jar
    Oracle_Home\forms\webutil\sign_webutil Oracle_Home\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
    you may skip this step. Otherwise,
    Create a schema to hold the WebUtil stored code, and privileges needed to
    connect and create a stored package. Schema name "WEBUTIL" is recommended
    for no reason other than consistency over the user base.
    Open Oracle_Home\forms\create_webutil_db.sql in a text editor, and delete or comment
    out the EXIT statement, to be able to see whether the objects were created witout
    errors.
    Start SQL*Plus as SYSTEM, and issue:
    CREATE USER webutil IDENTIFIED BY [password]
    DEFAULT TABLESPACE users
    TEMPORARY TABLESPACE temp;
    GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
    CONNECT webutil/webutil@rcci
    @Oracle_Home\forms\create_webutil_db.sql
    -- Inspect SQL*Plus output for errors, and then
    CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
    Reconnect as SYSTEM, and issue:
    grant execute on webutil_db to public;
    5) Modify Oracle_Home\forms\server\default.env, and append Oracle_Home\jdk\jre\lib\rt.jar
    to the CLASSPATH entry.
    6) Modify Oracle_Home\forms\server\formsweb.cfg insde [default] add :
    archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar
    archive=frmall.jar
    also add :
    [webutil]
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    baseHTML=webutilbase.htm
    archive_jini=frmall_jinit.jar
    WebUtilArchive=frmwebutil.jar,jacob.jar,f90all.jar
    archive=frmwebutil.jar,f90all.jar
    lookAndFeel=oracle
    7) Modify Oracle_Home\forms\server\webutil.cfg and add :
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    8) Start the OC4J instance
    9) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
    Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
    It is important to generate the PLX, to avoid the FRM-40039 discussed in Note 303682.1
    If the PLX is not generated, the Webutil.pll library would have to be attached with
    full path information to all forms wishing to use WebUtil. This is NOT recommended.
    10) Create a new FMB.
    Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
    There is no need to Subclass the WebutilConfig object.
    Attach the Webutil.pll Library, and remove the path.
    Add an ON-LOGON trigger with the code
    NULL;
    to avoid having to connect to an RDBMS (optional).
    Create a new button on a new canvas, with the code
    show_webutil_information (TRUE);
    in a WHEN-BUTTON-PRESSED trigger.
    Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    11) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
    the "Application Server URL" is empty.
    Then append "?config=webutil" at the end, so you end up with a URL of the form
    http://server:port/forms/frmservlet?config=webutil
    12) Run your form.

  • Query Non Database items in form

    I need to be able to query non database items in the form.

    Hi,
    Yes you can do this. You have to create control items all of them have same data type and lenght as table's. then you can issue select statement. eg.,
    select field1, field2
    into :item1, :item2
    from table_name;
    Hope this helps
    Mustafa

  • How to diplay database elements using form variables

    please tell me how to display inserted database items using a
    form field (like a text box) to display selected records using this
    form field

    jessyarai,
    > please tell me how to display inserted database items
    using a form field (like a text box) to display selected records
    using this form field
    Start by generating some pages using the Wizards for
    Master/Detail
    pages, Insert page, etc. with your database. Then switch to
    Code View to
    see the code that is generated. That's how I learned it :)
    Hope this helps,
    Randy

  • Create database table using Forms Developer 6/6i without using SQL*Plus

    hello there,
    I need help in creating tables in Oracle using Forms Developer 6/6i without using SQL*Plus interface.
    your help is appreciated
    email: [email protected]

    please use Forms_ddl package to create a table dynamically
    from the Developer6/6i.
    you can check the success or failure by using the
    form_success builtin.
    if u want to avoid using the Forms_ddl package
    use stored procedure or create a sql querry record group.
    regards
    sriram.

  • Problem Ordering/Limiting LOV by non-SELECTed column

    When I try to create a dynamic LOV using the following SQL query:
    select reportname d, pageno r
    from dms_occurances
    order by occurances desc
    limit 2
    I get the following error:
    LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.
    This makes absolutely no sense to me, as the query appears valid. What am I doing wrong here? I'm trying to create a LOV for the two most popular report pages viewed in the application.

    Hi
    I am not sure that LIMIT would work with Oracle... you may need to use ROWNUM instead:
    select *
    from
    (select reportname d, pageno r
    from dms_occurances
    order by occurances desc
    where rownum <= 2
    Regarding the message... I think it is a "standard" message, which is displayed even if the problem is not related to the columns number/names. :o/
    Luis

Maybe you are looking for