Number of columns in query form

I have an <af:query> component from a View Criteria. In the design it says "No search fields added." I have 10 query fields. I want to display 3 columns, with 4,2,4 fields respectively. If I set the property "Rows" to 3, it displays 4,4,2 fields in the three columns. Is there a way to achieve 4,2,4?
I'm using JDeveloper 11.1.1.5.0

I went into 'Set Source Order', but there are some non-transient attributes that were generated from the SQL query -- they cannot be moved up or down. I want to move some of them below some transient attributes at the bottom. Is this possible?

Similar Messages

  • Count number of columns in query passed as PLSQL parameter

    Hi All,
    I am using a PLSQL package to generate excel file in a Database directory, to generate file i am passing sql query and number of columns manually in a parameter.
    Now i want to automate it and do not want to pass "Number of Columns" as parameter.
    HOW CAN I CALCULATE NUMBER OF COLUMNS IN PASSED QUERY.
    Note: query can contain functions ( to get description or any other data)
    Many Thanks in advance

    http://saubbane.blogspot.com/2011/01/how-to-find-column-count-of-query.html
    Along with Re: Dynamic Fetch on dynamic Sql and just below this post, Blushadow's original run_query (from which I nicked!).

  • SQL Query - The number of columns specified in "SQL Query" does not match t

    I am creating new UDM for tablespace alert, below is my query,however its failing with error
    SQL Query - The number of columns specified in "SQL Query" does not match the value specified in "SQL Query Output"
    I selected Metric type is number
    SQL Query Format : Two columns
    Query:
    SELECT d.tablespace_name,round(((a.bytes - NVL(f.bytes,0))*100/a.maxbytes),2)
    used_pct FROM sys.dba_tablespaces d,(select tablespace_name, sum(bytes) bytes, sum(greatest(maxbytes,bytes)) maxbytes from sys.dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes) bytes from sys.dba_free_space group by tablespace_name) f
    WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+)
    AND NOT (d.extent_management = 'LOCAL' AND d.contents = 'TEMPORARY');
    Any clues why i am getting error.

    SQL> SELECT d.tablespace_name,round(((a.bytes - NVL(f.bytes,0))*100/a.maxbytes),2) used_pct
    2 FROM sys.dba_tablespaces d,(select tablespace_name, sum(bytes) bytes, sum(greatest(maxbytes,bytes)) maxbytes from sys.dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes) bytes from sys.dba_free_space group by tablespace_name) f
    3 WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+)
    4 AND NOT (d.extent_management = 'LOCAL' AND d.contents = 'TEMPORARY');
    TABLESPACE_NAME USED_PCT
    MGMT_TABLESPACE .82
    SYSAUX 1.52
    UNDOTBS1 .32
    RMAN .02
    CORRUPT_TS 10.63
    USERS 0
    SYSTEM 2.26
    MGMT_ECM_DEPOT_TS .04
    MGMT_AD4J_TS 0

  • Firefox crashes continually. Now I'm getting this error and cannot open firefox at all: XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

    SInce the latest update Firefox has crashed continually for about two weeks now. Continually means at least 10 times a day. Now it does not open at all and I get this message when launching Firefox:
    XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

    SInce the latest update Firefox has crashed continually for about two weeks now. Continually means at least 10 times a day. Now it does not open at all and I get this message when launching Firefox:
    XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

  • How can I find number of columns in a table using a query

    Hi
    I want to find the number of columns in a table using a query.
    Any help in this regard is much appreciated.
    Cheers

    Hi,
    This is the output i get when i executed ur query
    OWNER     OBJECT_NAME     OBJECT_TYPE
    SMLDBO     T2311_SURVEY_QUESTIONS     TABLE
    select OWNER,OBJECT_NAME,OBJECT_TYPE
    from all_objects
    where OBJECT_NAME = 'T2311_SURVEY_QUESTIONS';
    works Fine.
    But if i use the below query it returns : 0
    SELECT count(*) FROM user_tab_columns
    WHERE table_name =upper( 'T2311_SURVEY_QUESTIONS');
    What could be problem.
    The table exists + name of the table is correct + it resides in my schema itself.
    Any guess !!!

  • Query to know number of columns in a table

    please can anyone suggest me a query to know number of columns in a table i.e.
    if I want to know how many number of colums are present in a specific table then what would be the query
    Message was edited by:
    user625519

    Give this a shot:
    SELECT table_name,count(*) as "# of Columns"
    FROM dba_tab_cols
    WHERE table_name = <table name>
    GROUP BY table_name
    ORDER BY table_name;There are other views as well such as USER_TAB_COLS and ALL_TAB_COLS.
    HTH!

  • Oracle forms- Number formatting in post query

    I have a column called num_value in a table.
    When the user retrieves the data in post query I need the following formatting
    For WBC if the value entered is 3 I want to show in the forms as 3.0 etc....
    So I have a decode statement
    Cursor C5 is select task_desc,decode(substr(task_desc,1,3),'WBC',to_char(num_value,'fm99.0'),
    'RBC',to_char(num_value,'fm99.90'),
    'HGB',to_char(num_value,'fm99.0'),
    'HCT',to_char(num_value,'fm999.0'),
    'PLT',num_value,num_value) as value,alpha_value
    from qc_task_poch_results A,QC_TASKS B
    where a.task_id = b.task_id
    and a.procedure_id = 1127
    and drive_id = 'DRV5528593'
    Begin
    Open C5;
    Fetch C5 into :qc_task_results_poch.num_value
         ,:qc_task_results_poch.alpha_value;
    Close C5;
    End;
    But I amm not getting the formatting.
    The column in the form is non database .
    When I run in toad, I get the right formatting.
    TASK_DESC|VALUE|ALPHA_VALUE
    WBC count|3.0|
    RBC count|2.33|
    HGB count|6.0|
    HCT Count|17.0|
    PLT count|56|
    Any help is appreciated

    You are formatting your data in your select statement not in Forms. Consequently, any format mask you may have on the Item where the data will be display will reformat your data to match the Item's format mask.
    Do you have the format mask property defined on the Item? What is the data type of the item?
    Craig...

  • RPD - Cannot obtain number of columns for the query result :Working with MS SQL 2012 schema

    Hi All,
    I have created my warehouse in MS SQL 2012.
    For management purpose, I have created different schemas in SQL database
    In RPD, Physical layer, when i view data > I get error as
    [nQSError:16002] Cannot obtain number of columns for the query result.
    [nQSError:16001] ODBC error state : S0002 code : 208 message: [Microsoft][ODBC SQL Server Driver][SQL Server] Invalid object name 'tbl'..
    [nQSError:16001] ODBC error state : S0002 code : 208 message: [Microsoft][ODBC SQL Server Driver][SQL Server] Statements could not be prepared..
    I have already browsed : OBIEE 11g Strange ODBC Driver Error with SQL Server : Total Business Intelligence ... did not help me
    please help!!!

    Hi All,
    After all R&D it is been found that Oracle business administrator( RPD) needs default dbo schema. It doesn't accept custom schema for pulling data.
    If anybody have other views please share.!!
    Thank you

  • Count the number of columns return in an user-input sql query

    I need to do something like this
    I let an user input a sql query and then execute it
    assuming the sql query is always correct, it will return a Resultset
    then a table will pop up to accomodate the number of columns the resultset will produce
    i'm stuck at the part on how to check how many columns of data will be return in the resultset

         ResultSet rs = stmt.executeQuery("SELECT a, b, c FROM TABLE2");
         ResultSetMetaData rsmd = rs.getMetaData();
         int numberOfColumns = rsmd.getColumnCount();

  • Reducing number of columns in case query

    Hi all,
    I am operating on 10G R/2.
    I have a query which produces the columns with the number of counts.
    SUM (CASE WHEN LTRIM(RTRIM(W_O)) ='ROKOLBIN' THEN 1 ELSE 0 END) AS "O_ROKOLBIN",
    SUM (CASE WHEN LTRIM(RTRIM(W_I)) = 'ROKOLBIN'THEN 1 ELSE 0 END) AS "I_ROKOLBIN",
    sum(case when LTRIM(RTRIM(W_O)) ='GULURU' then 1 else 0 end) as "O_GULURU",
    sum(case when LTRIM(RTRIM(W_I)) ='GULURU' then 1 else 0 end) as "I_GULURU",
    sum(case when LTRIM(RTRIM(W_ON ))='PURE' then 1 else 0 end) as "O_PURE",
    I would like to reduce teh number of columns to 2,
    One column is for Division.Division can be either O_ROKOLBIN,I_ROKOLBIN,O_GULURU,I_GULURU,O_PURE
    The other column is Subtotal.Subtotal are teh sums as above ,SUM (CASE WHEN LTRIM(RTRIM(W_O)) ='ROKOLBIN' THEN 1 .
    Can anyone advie how can I acheiev this.
    Thanks.

    Hi,
    CrackerJack wrote:
    Hi all,
    Thank you for your wonderful ideas,
    I took it onboard and redesigned the query to add the dates.
    <pre>
    SELECT
    DATE_DIVISION week_start_date ,
    next_day ( DATE_DIVISION - 7, 'Sunday' ) + 6 week_end_date ,
    to_number(to_char(DATE_DIVISION,'WW') )week_no ,
    'I_'||W_I AS DIVISION ,
    COUNT(W_I) CNT
    FROM TEST A
    </pre>I get an error when I run that. Don't you need to say TEST_A, with an underscore?
    <pre>
    GROUP BY DATE_DIVISION, next_day ( DATE_DIVISION - 7, 'Sunday' ) + 6, to_number(to_char(DATE_DIVISION,'WW') ), 'I_'||W_I
    </pre>
    At the moment query is coming up like this:
    12-Jan-10     14-Jan-10     2     I_GULURU     1
    12-Jan-10     14-Jan-10     2     I_GULURU     1
    12-Jan-10     14-Jan-10     2     I_PURE     1
    12-Jan-10     14-Jan-10     2     I_PURE     1
    12-Jan-10     14-Jan-10     2     I_GULURU     1
    12-Jan-10     14-Jan-10     2     I_GULURU     2
    12-Jan-10     14-Jan-10     2     I_GULURU     1
    12-Jan-10     14-Jan-10     2     I_ROKOLBIN     1
    12-Jan-10     14-Jan-10     2     I_GULURU     1
    12-Jan-10     14-Jan-10     2     I_ROKOLBIN     1
    12-Jan-10     14-Jan-10     2     I_PURE     1
    12-Jan-10     14-Jan-10     2     I_GULURU     1I don't think you're getting this output from the sample data you posted. The dates in the sample data are all in February. It would really help if you posted the actual data, and the results you want from that data. In this case, I suspect the whole problem is that the dates in your real data (unlike your sample data) all have different times. If that's so, use TRUNC (date_division), instead of date_division, like this:
    SELECT    TRUNC (date_division)     AS week_start_date
    ,       next_day ( TRUNC (date_division) - 1
                 , 'Saturday'
                    )           AS week_end_date
    ,       TO_CHAR ( date_division
                , 'FMWW'
                )          AS week_no
    ,       'I_' || w_i           AS division
    ,       COUNT (w_i)           AS cnt
    FROM        test_a
    GROUP BY  TRUNC (date_division)
    ,       TO_CHAR ( date_division
                , 'FMWW'
    ,       w_i
    ;

  • Default number of columns shown on query

    Hi,
    how can i adjust the default number of columns shown on a query table (without scroll) without creating a template on WAD.
    I'm using BW7 with Portal.
    thx

    Hi Juan,
    try to adjust the settings of the standard web template 0ANALYSIS_PATTERN. This template can be found in the Web Application Designer environment.
    Check also the available options in the following link:
    http://help.sap.com/saphelp_nw04s/Helpdata/EN/76/489d39d342de00e10000000a11402f/content.htm
    Regards,
    Theodoros

  • Maximum number of rows and columns in data form

    Hi,
    I wanted to know if there is a limitation to the number of rows and columns that can be displayed in a data form, in Hyperion planning 11.1.2.1 ?
    And what would be the most appropriate number of rows and columns to be included for optimum performance.
    Thanks.

    Hi,
    While its a fun fact to determine how much one can stuff into a web form, the reality is: how much can a user reasonably consume in a web form?
    And what would be the most appropriate number of rows and columns to be included for optimum performance
    You will find that the answer to this is by "what design makes a web form most usable?" And no, the users don't really know what they want from a design perspective, they see it in their head, but usually what they ask for is something that would look entirely different (huge).
    The next thing to think about is the use of member selection functions in the page axis. IDescendants(Entity) in a dropdown could cause issues just as easily as too many rows - and again make the drop down unusable for a user.
    If your question is a bit more technical, then consider this (somewhat oversimplified): Web forms are constructed by a process on the server. Objects are created based on the form's definition and used by the process that builds the form. The process uses Cartesian looping (lots of iterations) to construct the form cell by cell, starting at the top left and finishing up in the bottom right. If the form has a million cells on it, then the loop and all the code within it runs a million times. The capability of the server has a lot to do with how well it can handle this request, and how many it can handle at one time.
    The result of this is gobs of HTML and JavaScript. All of this has to be sent over a network to the requesting client. The client starts receiving the web page code and has to render it in the browser and run the JavaScript. The ability to do this is limited by the browser, the OS, and the hardware that the client is running on.
    And that's just rendering the page for use.
    Now it has to be interacted with on the client machine, and changes parsed, packaged, and sent back to the server.
    So the technical answer is, there can be many limitations to how many rows and columns a data form can have - none of which can truly be anticipated by anyone. This is why I put the part about usability first in this post.
    Regards,
    Robb Salzmann

  • Limit on number of columns details of a master detail form/report

    Hi,
    I understand that there is a limit to the number of columns you can have in a master detail form/report. I am on Apex 4.01 and have a detail section that shows 24 months at a time as columns with integer hours assigned each month. My master detail was working fine with as many as 24 months/columns in this detail section, but I tried to re-use months by 'recycling' months, clearing them out of values and adding the months to the end of each row but now I am getting errors even though I had more columns showing before my 'recycliing' of the columns. The error is:
    "ORA-06502: PL/SQL: numeric or value error: character string buffer too small "
    What I don't understand is -- why am I getting this error now when I actually had more columns in the detail section months ago, and all I am doing is 'recycling' prior columns back into the detail report, not actually adding columns.
    Thanks for any insights anyone can give.
    Pat

    DBA tells me that we are at 9.0.2.2.14, (higher version than the one you suggested) but I still get the same error.
    Thanks,
    Karuna

  • Is it posible a query that builds dynamically the number of columns?

    Hi experts!
    I have a query that shows amounts in 12 columns corresponding on the calendar months of the year.   Now,  I need to change that getting in a previous screen how many months the user wants to see.   The query has to build dynamically the number of columns to show.    Can I do that with query designer?  How?
    I am working in V7.0.
    I appreciate your help.
    Thanks!
    Ada.

    Hi experts!
    I have a query that shows amounts in 12 columns corresponding on the calendar months of the year.   Now,  I need to change that getting in a previous screen how many months the user wants to see.   The query has to build dynamically the number of columns to show.    Can I do that with query designer?  How?
    I am working in V7.0.
    I appreciate your help.
    Thanks!
    Ada.

  • How can i export the data to excel which has 2 tables with same number of columns & column names?

    Hi everyone, again landed up with a problem.
    After trying a lot to do it myself, finally decided to post here..
    I have created a form in form builder 6i, in which on clicking a button the data gets exported to excel sheet.
    It is working fine with a single table. The problem now is that i am unable to do the same with 2 tables.
    Because both the tables have same number of columns & column names.
    Below are 2 tables with column names:
    Table-1 (MONTHLY_PART_1)
    Table-2 (MONTHLY_PART_2)
    SL_NO
    SL_NO
    COMP
    COMP
    DUE_DATE
    DUE_DATE
    U-1
    U-1
    U-2
    U-2
    U-4
    U-4
    U-20
    U-20
    U-25
    U-25
    Since both the tables have same column names, I'm getting the following error :
    Error 402 at line 103, column 4
      alias required in SELECT list of cursor to avoid duplicate column names.
    So How can i export the data to excel which has 2 tables with same number of columns & column names?
    Should i paste the code? Should i post this query in 'SQL and PL/SQL' Forum?
    Help me with this please.
    Thank You.

    You'll have to *alias* your columns, not prefix it with the table names:
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id, b.id, a.val1, b.val1, a.val2, b.val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
      for rData in cData loop
    ERROR at line 18:
    ORA-06550: line 18, column 3:
    PLS-00402: alias required in SELECT list of cursor to avoid duplicate column names
    ORA-06550: line 18, column 3:
    PL/SQL: Statement ignored
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id a_id, b.id b_id, a.val1 a_val1, b.val1 b_val1, a.val2 a_val2, b.val2 b_val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
    PL/SQL procedure successfully completed.
    cheers

Maybe you are looking for

  • ADOBE I NEED HELP! - Cannot Update Suite

    Well it has been a fun day! I am having an issue and I originally posted my problem in the Creative Suite - Windows forum and gave it a few days and the one reply I received did not solve my issue. So I decided I would have to contact Adobe Support.

  • JAXBContext and unmarshaling xml document to a class that came from a jar.

    I'm trying to unmarshal, code:                try {                     JAXBContext jc = JAXBContext.newInstance(clazz);                     Unmarshaller m = jc.createUnmarshaller();                     Document doc = XmlUtils.createDom(body);       

  • Maximum size of a parameter of web service

    Hello, Suppose we have the folowing WSDL: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions .....>    <wsdl:types>       <xsd:schema .....>         <xsd:element name="myMethod" >            <xsd:complexType>              <xsd:sequence>        

  • IWork 08 and iWeb 08 crashes!?

    After work for 1 day with the apps. iWork 08 and iWeb 08 crashes. After the application starts and a template is selected or a file is loading ... there is a crash. iWeb 08 chrashes until start up. Have done repair permissions, deinstalled all, deins

  • Problem with new template

    Hi - I am a "dreamweaver rookie". I have a dreamweaver site that I wanted to give a facelift to. So I downloaded a template from a template business on the net, and completely edited it in dreamweaver. When I try to replace the old site, the only thi