Query Related Collection Report

Hi,
I have created a report using Collection.
How can i change the element width of Report Column In collection.
Thanks
Nisha

Hi,
Is your report interactive or classic ?
Query source is not affecting how report is shown on page.
It is related to css and/or report template
Br, Jari

Similar Messages

  • Query Related Collection

    Hi
    I have created a form by using collection .
    i want. I have 3 text fields A,B & C and I want to fix value of these text field into collection form when i Click on add row Button . As many time i click on add row button these value should be fix into collection columns .
    Thanks
    Nisha

    Hi Andy,
    I created a collection by using this
    My schema:
    CREATE TABLE bill
    (id NUMBER NOT NULL,
    fruit VARCHAR2(128),
    quantity NUMBER)
    -- Constraints for BILL
    ALTER TABLE bill
    ADD CONSTRAINT bill_pk PRIMARY KEY (id)
    -- Add sequence to generate PK
    CREATE SEQUENCE bill_seq
    -- Triggers for BILL
    CREATE OR REPLACE TRIGGER bill_trg
    BEFORE
    INSERT
    ON bill
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    SELECT BILL_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL;
    END;
    I use one page
    On this page I created 2 regions
    1. Html Region with only one button with submmit "CREATE BILL"
    2. Report region with One report, one button "Add line" and second botton "Save"
    Report source:
    select HTMLDB_ITEM.HIDDEN(1,SEQ_ID), HTMLDB_ITEM.TEXT(2,a.c001) c001, HTMLDB_ITEM.TEXT(3,a.c002) c002
    FROM wwv_flow_collections a
    where a.collection_name = 'COLL_BILL'
    Condition
    PL/SQL Function body returning a Boolen
    begin
    if htmldb_collection.collection_exists('COLL_BILL') then
    return true;
    else
    return false;
    end if;
    end;
    3. PLSQL Process
    BEGIN
    htmldb_collection.create_or_truncate_collection
    (p_collection_name => 'COLL_BILL');
    end;
    Condition
    When Button Pressed
    "CREATE BILL"
    4. PLSQL Process
    begin
    for i in 1.. HTMLDB_APPLICATION.G_F01.count loop
    htmldb_collection.UPDATE_MEMBER (
    p_collection_name=> 'COLL_BILL',
    p_seq => HTMLDB_APPLICATION.G_F01(i),
    p_c001 => HTMLDB_APPLICATION.G_F02(i),
    p_c002 => HTMLDB_APPLICATION.G_F03(i)
    end loop;
    htmldb_collection.add_member
    (p_collection_name => 'COLL_BILL',
    p_c001 => null,
    p_c002 => null
    end;
    Condition
    When Button Pressed
    "Add line"
    5. PLSQL Process
    begin
    for i in 1.. HTMLDB_APPLICATION.G_F01.count loop
    insert into BILL (fruit, quantity)
    values
    (HTMLDB_APPLICATION.G_F02(i), HTMLDB_APPLICATION.G_F03(i));
    end loop;
    HTMLDB_COLLECTION.DELETE_COLLECTION ('COLL_BILL');
    end;
    Condition
    When Button Pressed
    "Save"

  • Mapping relation from sap bw query to crystal report

    Hello Gurus,
            will you please describe mapping relation for following items from sap bw query to crystal report? it is better to provide a instance for each one.
               (1) character   (2) key figure  (3) navigation attribute  (4) display attribute (5) charater with hiararchy
    Many thanks

    This blog may be helpful:
    /people/ingo.hilgefort/blog/2008/10/03/businessobjects-and-sap-part-1-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi

  • Measure Formulae for Uploadable and Data collection report

    Hi,
    I have query related to application of measure Formula for Uploadable and Data collection report.
    Consider a scenario where i use a MDX query to create a data collection report and I map these columns from these reports to an rowsource using a loader file. Can I use measure formula feature like onchange to work with Uploadable and Data colection reports such that changes to any one column should take effect in another column.
    Regrads,
    Wesley

    Wesley,
    IOP uploadable reports are used for sending data to the server in batch. They are coupled to the IOP model via a rowsource. You have a lot of flexibility with the spreadsheet you build for staging the upload. It's really just a function of how crafty you are with vb. Cascading changes from one column to another can be easily accomplished this way.
    Onchange formulas are for something else. They are part of the model definition and are used for describing how to cascade changes between IOP data blocks.

  • Query related to multiple attachments in mail adapter

    Hi,
    I have a query related to multiple attachments in receiver mail adapter.
    I have successfully configured mail related scenarios but now I have another requirement in which I have multiple source files in one directory and I want to send one mail for multiple files as mail attachment using receiver mail adapter. Can anybody help me how to achieve multiple attachments in reciever mail adapter.
    To clarify the requirement more let us take an example
    Ex: I have 5 input files in the source which I pick up using additional files option in the sender file adapter, now I want to send those 5 files into one mail with 5 attachments. Can anybody explain how 5 different payload will be sent as multiple attachments in one mail.
    For your information I used, options like "keep attachments" , some parameters in module processesors etcs...but not able to find out as how exactly it will be achieved.......I dont want to use BPM collect pattern for this.....
    Need your help on this issue. Please suggest the solution as how it can be achieved using receiver mail adapter.
    Thanks & Regards
    Prabhat

    Hi,
    I resolved the issue on my own. Thanks for your help and support.
    Thanks & Regards
    Prabhat

  • Sales and Collection Report

    Dear Experts
    Am using below query for Sales and collection report but i came across that if i have  cancel any incoming payment is also showing in this report.
    Am requesting to modify this query in which if i or user do any cancellation of transction should not reflect in this report.In short Excluding of Cancelled entry
    Thanks in Advance
    Parikshit
    SELECT  M.SlpName, M.Sales,  M.Collection
    FROM (SELECT T1.SlpName AS 'SlpName',SUM(T0.DocTotal) as 'Sales', 0 as 'Collection'
    FROM OINV T0 INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode
    WHERE T0.DocDate >=[%0] AND T0.DocDate <=[%1]
    GROUP BY T1.SlpName
    UNION ALL
    SELECT H2.SlpName AS 'SlpName', 0, SUM(H0.DocTotal) as 'Collection'
    FROM ORCT H0 INNER JOIN OCRD H1 ON H0.CardCode = H1.CardCode
    INNER JOIN OSLP H2 ON H1.SlpCode = H2.SlpCode
    WHERE H0.DocDate >= [%0] AND
    H0.DocDate <=[%1] GROUP BY H2.SlpName
    )M

    SOLVED

  • Query related to withhold tax

    Hi  Freinds,
    This is mamatha i have a query related to withhold tax .what is diff b/w business place and section code.what is importance of section code.
    Regards
    S Mamatha
    Please, search SDN

    For India, witholding tax, you need to create the business place and section code with the same id.
    Section code is additional field provided by sap for tds related processig, reports etc.
    Regards,
    SDNer

  • Query related to Internal Table

    Hi ,
          I have a small query related to internal table , can we dump millions of records to an internal .
    The actual requirment is like i need to develop a report in BI side where i have to dump records into an internal table  from PSA tables without filtering .
    Can we do so ....
    or do we have any other option to dump the data to an internal tables .
    need some tips on the same .
    Thanks ,
    VInay.

    Hello Vinay,
    I believe the following extract will give you a brief idea on the size limitations for an internal table.......
    Internal tables are dynamic data objects, since they can contain any number of lines of a particular type. The only restriction on the number of lines an internal table may contain are the limits of your system installation. <u><i>The maximum memory that can be occupied by an internal table (including its internal administration) is 2 gigabytes. A more realistic figure is up to 500 megabytes. An additional restriction for hashed tables is that they may not contain more than 2 million entries.</i></u>
    Hope it proved useful
    Reward if helpful
    Regards
    Byju

  • Collection Report - Template AGE3

    Hi Team,
    I have duplicated the AGE3001 template and facing a problem on trying to get the comments field into the collection report and would appreciate if there anyone know how to do it?
    or if there is anyone who have a sample query on aging report, please kindly send it to me at:  [email protected]
    Thank you.
    Regards,
    Joan.

    Joan,
    If you want to get the exact query, please Run SQL Profiler and execute the Report and you should ge the SQL Code used for this Report.
    You can modify this to add Invoice Comments.
    Suda

  • Odd QoQ issue when querying Solr collection

    Hello, everyone.
    I've got a query of query issue that has me stumped.  Maybe I'm just missing something very simple, but this has got me really confuzzed.
    I have a Solr collection that is indexing a few tables in an Oracle database.  Let's call it "hdq", for this discussion.
    I wrote a semi-complex query of related tables from which the CFINDEX is using to index the data.  This is working just fine.
    I created the Solr collection in the CF9 CFAdmin, and am using the following to index with:
    <cfindex action="refresh" collection="hdq" key="QUESTION_ID" type="custom" title="QUESTION_TITLE" query="search_questions" body="QUESTION_TX,QUESTION_TITLE,CATEGORY_NM,TAG_NM,ANSWER_TITLE,ANSWER_TX"
        custom1="QUESTION_STATUS" custom2="TAG_NM" custom3="QUESTION_STATUS" custom4="QUESTION_TYPE" category="CATEGORY_NM">
    Then I do a CFSEARCH and name it "hd_questions".  Again, so far, so good, no problems.
    If I do a CFDUMP of "hd_questions", one of the columns is KEY (which is QUESTION_ID in the database.)  If I CFOUTPUT the collection, KEY is there.
    If I QoQ the CFSEARCH of the collection and use SELECT custom3, score, summary, context, key FROM hd_questions, I get an error message that
    Encountered "key. Incorrect Select List, Incorrect select column,
    .. then it gives the line number of the page that produced the error, and
    <cfquery dbtype="query" name="hd_results">
    Am I missing something simple, here?  KEY is in the collection, I can see it in CFDUMP, I can see it in CFOUTPUT.  But if I query the collection and try to select KEY, there is an error.
    Any thoughts/ideas?
    Thank you,
    ^_^

    Key is a reserved word in Coldfusion, so can't be used directly in a QoQ without escaping it.  Try wrapping it in [ ] instead, i.e. [key]
    It may also help to give it an alias too, e.g. SELECT [key] AS someKey
    See the list of reserved words here: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec173d0-7f ff.html and the QoQ guide to using reserved words here: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0e4fd -7ff0.html#WSc3ff6d0ea77859461172e0811cbec22c24-7008

  • Regarding ABAP Query related

    Hi,
      Can any body tell me how to keep query related data in
    internal table?
    Regards,
    Suresh Kumar.

    Do you mean that you are running a SQ01 query and you want to get the data from it into your report program?
    If this is the case, the normal way that we pass internal tables and stuff from program to program, is thru IMPORT/EXPORT statements.  But since you are talking about a query this may be a problem in adding the EXPORT statement to it.
    Regards,
    RIch Heilman

  • Select query in a report

    Hi!
    Is it possible to modify a select query for a report in the following way:
    I have created two fields where users input values and operators.
    Operators selection is a static list consisting of: =, like , in
    Value field is a text field.
    The current query is:
    SELECT
    A,
    B,
    C
    from TABLE
    I would like to add:
    WHERE
    A : P1_OPERATOR : P1_VALUE
    but it doesn't work; I get a notification that the operator is incorrect.
    It has a defaulft value = and when I set let's say 5 in the value field the whole query should be:
    SELECT
    A,
    B,
    C
    from TABLE
    WHERE
    A = 5
    Regards!

    Hmm, I get the following error:
    Updatable report parse error:
    ORA-20001: Query must begin with SELECT or WITH
    The only difference I see is that your type is SQL Query (PL/SQL function body returning SQL query) while I have SQL Query (updateable report) hardcoded.
    I have APEX 4.2.2, I'm not quite sure how to change this...
    This is my code:
    begin
    :P7_QUERY := 'select ROWID,BNK_ID,MSR_PRD_ID,SRC_STM_ID,ID,ID_RETKA,RSP,OZNAKA_RETKA,DATUM_STANJA,OZNAKA_IZVJESCA,OZNAKA_KOMITENTA,MBR_KOMITENTA,KOMITENT_NEREZ,ZUPANIJA,DRZAVA,SEKTOR_NEREZIDENTA,VRSTA_POVEZANOSTI,INSTRUMENT,ISIN,VALUTA,OTKAZNI_ROK,IZVORNO_DOSPIJECE,VRSTA_INDEKSACIJE,VALUTA_INDEKSACIJE,PORTFELJ,UTRZIVOST_KREDITA,ZNACAJKE_KAPITALA,RIZICNA_SKUPINA,UGRADJENI_DERIVAT,ODNOSNA_VARIJABLA,PREDZNAK,IZNOS,IZNOS_ACTUAL,VRSTA_IZNOSA,KOMITENT_PBR,UDJELI_POVEZ_C,AR_ID,AU_ID,ACT_AR_BAL_KN,ACT_AR_BAL,AR_BUSS_ID,MTI_CCY_TP_ID,REG_NO,REG_SFX,JMBG_ID_NO,IP_ID,NO_DYS_OO,TAX_ID_NO,INSTRUMENT_OLD,PREDZNAK_OLD,IZNOS_ACTUAL_OLD,ACT_AR_BAL_KN_OLD,ACT_AR_BAL_OLD,NAPOMENA,NOVI_POSAO_F,LISTA_SUMARNA,LISTA_REKAP,POSTOTAK1,POSTOTAK2,POSTOTAK3,DZS_IDY_CL_ID,HNB_IP_CL_ID,EXG_RT_CRD_RSK_F from DWP.IZV_SLOG_DET
    where ' || :P7_X_FC1 || :P7_X_O1 || :P7_X_O1;
    return :P7_QUERY;
    end;
    I have also set Use Generic Column Names (parse query at runtime only) nad P7_QUERY as page item to submit.
    Regards,
    Ivan

  • How to add a new field in Query Builder or Report

    Hi,
    I am writing a report using Oracle 6i query builder and report.
    example:
    QTY_1 QTY_2 QTY_3
    QTY_1 and QTY_2 are table fields and QTY_3 Is not. I need to show the value of (QTY_2-QTY_1) in QTY_3.
    I need to create a field QTY_3 which is not in the database table. How do I do that?
    Jun

    Hi,
    Try using formula to return the qty_1 - qty2.
    or
    select qty_1, qty_2, (qty_1 - qty_2) qty_3
    from table;
    regards,
    CB

  • See sql query from crystal report without crystal report

    see sql query from crystal report without crystal report 

    Hi,
    Depends on datasource type but you could have a look at ODBC trace or if you have access to the SQL Server you could use profiler to monitor the session.
    Regards,
    Craig
    And this will only be of use if you know which Server/Insstance/Database the Report is connecting to...
    Please click "Mark As Answer" if my post helped. Tony C.

  • Cursors are not closed when using Ref Cursor Query in a report  ORA-01000

    Dear Experts
    Oracel database 11g,
    developer suite 10.1.2.0.2,
    application server 10.1.2.0.2,
    Windows xp platform
    For a long time, I'm hitting ORA-01000
    I have a 2 group report (master and detail) using Ref Cusor query, when this report is run, I found that it opens several cursors (should be only one cursor) for the detail query although it should not, I found that the number of these cursors is equal to the number of master records.
    Moreover, after the report is finished, these cursors are not closed, and they are increasing cumulatively each time I run the report, and finally the maximum number of open cursors is exceeded, and thus I get ORA-01000.
    I increased the open cursors parameter for the database to an unbeleivable value 30000, but of course it will be exceeded during the session because the cursors are increasing cumulatively.
    I Found that this problem is solved when using only one master Ref Cursor Query and create a breake group, the problem is solved also if we use SQL Query instead of Ref Query for the master and detail queries, but for some considerations, I should not use neither breake group nor SQL Query, I have to use REF Cursor queries.
    Is this an oracle bug , and how can I overcome ?
    Thanks
    Edited by: Mostafa Abolaynain on May 6, 2012 9:58 AM

    Thank you Inol for your answer, However
    Ref Cursor give me felxibility to control the query, for example see the following query :
    function QR_1RefCurDS return DEF_CURSORS.JOURHEAD_REFCUR is
    temp_JOURHEAD DEF_CURSORS.JOURHEAD_refcur;
              v_from_date DATE;
              v_to_date DATE;
              V_SERIAL_TYPE number;
    begin
    SELECT SERIAL_TYPE INTO V_SERIAL_TYPE
    FROM ACC_VOUCHER_TYPES
    where voucher_type='J'
    and IDENT_NO=:IDENT
    AND COMP_NO=TO_NUMBER(:COMPANY_NO);
         IF :no_date=1 then
                   IF V_SERIAL_TYPE =1 THEN     
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT
              AND ((TO_NUMBER(VOCH_NO)=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
              OR (TO_NUMBER(VOCH_NO) BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
              OR (TO_NUMBER(VOCH_NO)<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
              OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))
                   ORDER BY TO_NUMBER(VOCH_NO);
                   ELSE
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT               
              AND ((VOCH_NO=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
              OR (VOCH_NO BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
              OR (VOCH_NO<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
              OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))     
                   ORDER BY VOCH_NO;          
                   END IF;
         ELSE
                   v_from_date:=to_DATE(:from_date);
                   v_to_date:=to_DATE(:to_date);                         
              IF V_SERIAL_TYPE =1 THEN
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
              AND IDENT=:IDENT                         
                   AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
                   OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
                   OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
                   OR (:from_date is null and :to_date is null ))     
                   ORDER BY VOCH_DATE,TO_NUMBER(VOCH_NO);     
              ELSE
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT                         
              AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
                   OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
                   OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
                   OR (:from_date is null and :to_date is null ))     
                   ORDER BY VOCH_DATE,VOCH_NO;          
              END IF;
         END IF;               
         return temp_JOURHEAD;
    end;

Maybe you are looking for

  • Combine two resultset sidebyside in coulmn using mdx

    hi i am new to mdx, i want to combine two select statement resultset (side by side like union) using mdx query,please any body help me to solve this query first query:  SELECT { [Last Year] } ON COLUMNS,  { {[Location].[Location].&[7], [Location].[Lo

  • BPC 7.5 Installation Guide - Clarification Needed on UJA_SVR_DEFAULT

    Page 23, Section 3.4 Item number 10 of the BPC 7.5 NetWeaver Installation Guide says to do the following: 2. Go to transaction SE38 and run program UJA3_WRITE_SYS_USERS. This updates the settings in table UJA_SVR_DEFAULT with the Planning and Consoli

  • Issues with interlaced H.264 playback inside of Premiere

    I recently recorded a live event with the Blackmagic H.264 Pro Recorder and I'm having some issues with the video inside of Premiere Pro CC 2014. I recorded it in 1080i which was the output of the camera. The video files play fine in quicktime, VLC,

  • Java parser for regular expression to java program

    Hi All, I am very new to parser technologies .I am looking for a (java)parser which can read the "regular expression" and can convert it into "java program".Please let me know is there any thing related to this. Thanks in advance. Your will be appric

  • Having difficulty with multiple audio tracks when exporting

    Hi, I am trying to export a couple of sequences to send off to a friend. I've tried sending it to iDVD as well as sending to print to video. When I play it on the computer as a quicktime movie every track is there for the audio ( 6) When I print to v