Re :- Forms Querying

I have a tabular form with various fields. The data block property has an ORDER By and a WHERE clause. I now want to be able to query a field on the block preferably with a SELECT statement.
How can I do this ?? I have tried the SET_BLOCK_PROPERTY but I can't figure out whether it will accept a SELECT statement.
Any ideas ???

Your block can be based on a From clause - this is basically basing a block on a select statment.
You can set this using the set_block_property builtin, check the online help for the specific name of the property.

Similar Messages

  • Doubt in forming Query

    Hi,
    I have a doubt in forming query.
    I have a table like this
    Inst_Id port1 sid port2
    1 2300 1 2302
    2 2304 1 2302
    3 2306 1
    4 2300 2
    5 2306 2 2308
    I need a result as for sid = 1(should take union of both port and list out with instd_id)
    Port Inst_Id
    2300 1
    2302 1
    2304 2
    2306 3
    Can any one help to get a query?
    -haifriends

    You simply answer:
    select inst_id,port1 from t where sid=1
    union
    select inst_id,port2 from t where sid=1

  • Refresh table-form query on table only

    Hello,
    I have a group being generated as a table-form layout. What I would like is for the table page to be refreshed always on entry. I can't set the group requery condition to always, or "when entering the page" as then the view object is executed going navigating from the table page to the form page. This seems a very simple requirement to me but Im struggling to come up with an elegant solution.
    Basically what i need is the refreshCondition on the invokeAction binding executable to be "Always and layout=table".
    Any help would be greatly appreciated !
    Cheers,
    Brent

    How do you do this, if your current page is a .jsff and not a .jspx? When I look at the refreshCondition, a .jsff does not have access to the facesContext.
    Thanks,
    Michelle
    Since this question was already answered, I created a new thread:
    Refresh table-form query on table only for .jsff pages
    Edited by: MSchaffer on Dec 1, 2010 11:54 AM

  • Form query/search issue F6 , F11 + Ctrl F11

    Dear Techies,
    I have an issue with form query/search mode in oracle applications. The Issue is i have a custom form which has headers and lines. whenever i open the form cursor is defaulting on a column called "Transaction_year" which is a mandatory column, Because of this whenever i want to search first I have to clear the record (Press F6) then press F11 and CTRl F11.
    And my client is irritated to press so many buttons. I cannot make mandatory col to optional since it is "Transaction_year" a primary key. I have to customize the form in such a way that it should allow f11 + ctrl f11 to search.
    Can somebody help me how can i achieve this. I am new to forms :(

    I have written this code in form level - when new form instance trigger
    go_item('XXDOF_PA_PRJCST_HEADERS.FIN_APPRVER_DEPT');
    this is a optional field ... and when when i open form it is defaulting to this ... still f11 + ctrl f11 is not working ... i have to clear it (f6) and then press f11 + ctrl f11

  • Forms & Query-Mode

    Is there any way to query the data in Application Express Forms as we can do it in Oracle Forms Query-Mode (F7 begin query, F8 execute query)?

    Hi,
    Try going to the SQL Workshop. It allows you to query the data in your schema.
    If you don't like navigating to SQL Workshop from the Application Builder, open a second browser for your queries.
    Hope this helps.
    Cheers,
    Patrick Cimolini

  • How tochange the description ofa field inthe parameter form query generator

    I have a parameter form which is fetching the details from the Location table.
    /* Select From [OLCT] T4 */
    Declare @ToLoc Varchar(300)
    /Where/
    Set @ToLoc = /* T4.Location*/ '[%4]'
    when i execute the parameter form Query selection criteria displayed is
    Name
    OLCT table the description of the field location is Name i want to change the description to location
    Please Help

    Thanks for the reply , It does not help.
    If meant the selection box when I run query to input values
    for example
    /* Select From [OINV] T1 */
    Declare @FromDate Datetime
    /Where/
    Set @FromDate = /* T1.DocDate*/ '[%1]'
    /* Select From [OINV] T2 */
    Declare @ToDate Datetime
    /Where/
    Set @ToDate = /* T2.DocDate*/ '[%2]'
    /* Select From [OLCT] T3 */
    Declare @FromLoc Varchar(300)
    /Where/
    Set @FromLoc = /* T3.Location*/ '[%3]'
    /* Select From [OLCT] T4 */
    Declare @ToLoc Varchar(300)
    /Where/
    Set @ToLoc = /* T4.Location*/ '[%4]'
    /* Select From [OLCT] T5 */
    Declare @Country Varchar(300)
    /Where/
    Set @Country = /* T5.Country*/ '[%5]'
    /* Select From [OLCT] T6 */
    Declare @State Varchar(300)
    /Where/
    Set @State = /* T6.state*/ '[%6]'
    Exec [SAP_SP_DB]..[NABC_TaxReport] 'SAP2007B','Inflow',@FromDate,@ToDate,@FromLoc,@ToLoc,@country,@state
    In the above query I have from and To Location which displays as Name in the selection box

  • Creating a database form query??? HELP?

    Hi, i want to create a rate calculator on a webpage.  I dont know much about databases and all that, please help.  I basically have an excel sheet with a list of countries calling from (with corresponding amounts with it) and list of countries calling to (with corresponding amounts with it). And basically the two numbers (calling from and calling to) have to be added to get the rate per min. An example of a rate calculator that i want to create is:  http://www.globenettroaming.com/Rates.php but like i said, i only need a calling from country drop down list and a calling to country drop down list and a calculate button.
    I really REALLY would appriciate any help.  All i know is that i have to asp - and thats it.  Please explain how i would create this database and create a form query on a web page.
    Thank you A LOT!

    mmmm, not much - i've just been reading up on the topic so im just begining to learn it all.  Well, i could use access BUT i dont know where to start and how to put in all the data etc... The hosting company i use uses mysql (????) - i havent even an idea of where to start.  Scripting language (????) - i guess ASP....Are you able to help?
    Thank you.

  • Enter Requisition Form Query - Help Needed

    Hi Forum,
    I have a requirement to modify the lov for the Category field in the Enter Requisition form and add a new field.
    The item is in the block :LINES.ITEM_CATEGORY.
    So, I ftp'd the form and libraries onto my local drive which is in the FORMS60_PATH. When I open the form, it opens without any error. But it does not attach any libraries in it ?
    Anyway, I looked at the form item and its a Text Item with a Lov 'ENABLE_LIST_LAMP' and a record Group with the same name. But this is a dummy record group.
    Where is the Actual Query for this Record Group built ? I assume it is in some library, but how do i find which library ?
    I cannot see anything in the WHEN-NEW-ITEM-INSTANCE or any other trigger having the query.
    The Category is a KFF actually.
    Thanks
    S.
    Edited by: user565538 on Mar 25, 2009 6:12 AM

    one more thing i notice is I can see in the KFF definition , the Value set = PO_ITEM_CATEGORY
    But when I try to query for this Value set (of type independent) , in System Adminsitrator, no value set is being returned !
    Am i missing something ? where are the values coming from ?

  • Tabular form query using column values delimiter

    I wanted to know, if i can query a tabular block by entering the column values (primary key) as semicolon delimited and update required fields. Please let me know.
    Requirement:-
    User will enter 5 values as "AB1; AB2; AB3; AB4; AB5"
    After entering I need to write a plsql code to query the tabular form as follows
    PrimaryCol SecCol
    AB1 IN
    AB2 IN
    AB3 OUT
    AB4 IN
    AB5 ON
    Then I will update the columns accordingly.
    Please help me.

    You could put something like this in the WHERE-clause (assuming that :BLOCK.QUERYDATA contains your value AB1;AB2;AB3;AB4; )
    INSTR (';' || PK_COLUMN || ';', ';' || :BLOCK.QUERYDATA || ';')>0Maybe you have to additionally eliminate space in :BLOCK.QUERYDATA

  • Form query too long running

    I am dealing with an issue that I believe I have boiled it down to being a Forms issue. One of my developers has a form that is taking 40+ minutes to run a pretty complicated query. At first I believed that it was a query or development issue, however the same query can be ran from Toad or from SQLPlus in under a few seconds. I have even ran the query from SQLPlus on the forms server with the same speedy performance. The only environment in which this query takes almost an hour to run is if it is ran from her .FMX ... I am soooooo at a loss right now as to what I could do to fix this. Has anyone experienced something of this nature?
    Additionally the query returns ZERO results and this is an expected outcome so I don't believe it has to do with Toad buffering or SQLPlus return the rows as they are fetched. Anyway I'm at a loss and any help what-so-ever will be greatly appreciated.

    To show what can go wrong look at this simple example.
    HR@> CREATE TABLE a (ID VARCHAR2(10) PRIMARY KEY);
    Table created.
    HR@>
    HR@> insert into a select rownum from dual connect by rownum <= 1e6;
    1000000 rows created.
    HR@>
    HR@> set timing on
    HR@>
    HR@> select * from a where id = 100;
    ID
    100
    Elapsed: 00:00:00.34
    HR@>
    HR@> select * from a where id = '100';
    ID
    100
    Elapsed: 00:00:00.00
    HR@> explain plan for
      2* select * from a where id = 100
    HR@>
    HR@> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 2248738933
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      |     1 |     7 |   522  (12)| 00:00:07 |
    |*  1 |  TABLE ACCESS FULL| A    |     1 |     7 |   522  (12)| 00:00:07 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
       1 - filter(TO_NUMBER("ID")=100)Because of implicit conversion (as explain plan shows) select * from a where id = 100 takes longer than select * from a where id = '100'.

  • Oracle EBS Web Form (Query Only)

    Hi,
    I need to create responsibility in which all forms or web form should be query only.
    When i tried this with individual forms (QUEYR_ONLY="YES") its working but web form not working please guide how can i do with web forms.
    Regards
    Rehan

    877432 wrote:
    Hi,
    I need to create responsibility in which all forms or web form should be query only.
    When i tried this with individual forms (QUEYR_ONLY="YES") its working but web form not working please guide how can i do with web forms.
    Regards
    RehanAFAIK, it is not possible for Self-Service pages. You may log a SR to confirm the same with Oracle support.
    Thanks,
    Hussein

  • Forms - Query - Performance

    Hi,
    I am working on a application Developed in Forms10g and Oralce 10g.
    I have few very large transaction tables in db and most of the screens in my application based on these tables only.
    When user performs a query (with out any filter conditions) the whole table(s) loaded into memory and takes very long time. Further queries on the same screen perform better.
    How can I keep these tables in memory (buffer) always to reduce the initial query time?
    or
    Is there any way to share the session buffers with other sessions, sothat it does not take long time in each session?
    or
    Any query performance tuning suggestions will be appreciated.
    Thanks in advance

    Thanks a lot for your posts, very large means around
    12 million rows. Yep, that's a large table
    I have set the query all records to "No". Which is good. It means only enough records are fetched to fill the initial block. That's probably about 10 records. All the other records are not fetched from the database, so they're also not kept in memory at the Forms server.
    Even when I try the query in SQL PLUS it is taking
    long time. Sounds like a query performance problem, not a Forms issue. You're probably better of asking in the database or SQL forum. You could at least include the SELECT statement here if you want any help with it. We can't guess why a query is slow if we have no idea what the query is.
    My concern is, when I execute the same query again or
    in another session (some other user or same user),
    can I increase the performance because the tables are
    already in memory. any possibility for this? Can I
    set any database parameters to share the data between
    sessions like that... The database already does this. If data is retrieved from disk for one user it is cached in the SGA (Shared Global Area). Mind the word Shared. This caching information is shared by all sessions, so other users should benefit from it.
    Caching also has its limits. The most obvious one is the size of the SGA of the database server. If the table is 200 megabyte and the server only has 8 megabyte of cache available, than caching is of little use.
    Am I thinking in the right way? or I lost some where?Don't know.
    There's two approaches:
    - try to tune the query or database to have better performance. For starters, open SQL*Plus, execute "set timing on", then execute "set autotrace traceonly explain statistics", then execute your query and look at the results. it should give you an idea on how the database is executing the query and what improvements could be made. You could come back here with the SELECT statement and timing and trace results, but the database or SQL forum is probably better
    - MORE IMPORTANTLY: think if it is necessary for users to perform such time consuming (and perhaps complex) queries. Do users really need the ability to query all records. Are they ever going to browse through millions of records?
    >
    >
    Thanks

  • Report Painter Report Form Query

    Dear All,
    I have developed report painter change form with fsi6 .TCode and "form" type is financial statement Key figures.
    My query is that i need difference or two rows with minimum values but no negative values to be displayed. example should be
    row1 figure -1
    row2 figure 2
    row3 difference of row1 & row2 figure 0
    Kindly suggest with proper solutions.
    Thanks in advance
    Usman

    Hi Usman,
    Salaam!!
    You can at best supress the zero values or reverse the signs.. But you cant display -ve values as zero in report painter
    Regards
    Ajay M

  • Oracle form query mode does not change color to blue

    Hi, I have created a custom form and using query mode in it. However on hitting F11, the record does not change to blue, instead it turns white. Can someone please guide me as to what I should be doing to get this right?
    Thanks for your responses.

    The fact that it doesn't change color when you "Enter Query" mode tells me your Custom Form does not conform to Oracle Application Programming Standards. I recommend you visit the Oracle Applications Documentation web site, choose your EBS version and scroll down and look at the Oracle Applications User Interface Standards for Forms-Based Products and Oracle Applications Developer's Guide to ensure your Custom Form conforms to Oracle Standard.
    Also, I suggest you always use the TEMPLATE.fmb (or if you can't find this form, use the APPSTAND.fmb) as the starting point of any Custom Form. This will ensure you have the minimum required objects and code in your form.
    Hope this helps,
    Craig B-)
    If a response is helpful or correct, please mark it accordingly.

  • Forms Query

    I have two forms: Form A and Form B
    In form A i have a details from user XPTO and a button to call Form B.
    Form B display which teams it participates, but i don't know how can i do this.
    I want to buil a query in form B to display the teams, like this: select team_name from teams where user_id = 'XPTO'.
    I need help!!
    Thanks
    JGomes

    I have two forms: Form A and Form B
    In form A i have a details from user XPTO and a button to call Form B.
    Form B display which teams it participates, but i don't know how can i do this.
    I want to buil a query in form B to display the teams, like this: select team_name from teams where user_id = PARAMETER. Where the PARAMETER refer the user in form A.
    I need help!!
    Thanks
    JGomes

Maybe you are looking for