Vertical One Row Report

Hi Everyone,
I am trying to implement a SQL report and want it to be as Vertical One Row. I've found one solution which would work perfectly for me in here:
[http://apex.oracle.com/pls/otn/f?p=11933:108]
It displays one row at a time and it is vertical, basically that is what I need. The problem here is that I cannot make it working. I did everything according to instructions: did create a new report template as "Named Column (row template)", inserted code into "Row Template 1" and "Before Rows" and "After Rows". Have my SQL report ready as "No Template" in "Page Definition" . In "Layout and Pagination" set to my new report template. As a result it gave me that look and feel but no pagination so I can see 1 row at a time, Instead I see all my rows the same way as I would use "default: vertical" template. Any Ideas????
Is there any other way to implement this?
Thanks

Hi,
I am glad it is working now. But I was wondering if logging out and in again would help in this case... If the current pagination settings are stored against the username (rather than the session), logging out and in would not make a difference. Based on what you described, that may be the case.
I think the best approach is the one indicated by fac586. The problem is that I can never remember after which colon to put that RP string!
Luis

Similar Messages

  • Need a report column to hold data for one row only

    Hey Guys,
    I have a report which has a column that links to another page in my APEX application.
    There is a requirement where only one of the rows in this report needs to have a link so I need the column to show the page link for one row and one row only.
    The report will have about 5 rows at a time so is there a way to just make this link appear for the one row(it will be the top row) in the column attirbute in APEX? or can this be done in the SQL for the report?
    Any help is much appreciated
    Thanks
    -Mark

    Hi
    The only way (I believe) to do this is within the SQL. Then you just wrap the column in a CASE statement and if it meets your criteria then build up the link and if not then display normally.
    Something like this...
    SELECT ename,
           CASE WHEN empno = 7839
           THEN '<a href="f?p='||:APP_ID||':4:'||:APP_SESSION||'::NO::P4_TARGET_ITEM:'||empno||'" >'||empno||'</a>'
           ELSE TO_CHAR(empno)
           END empno
    FROM empCheers
    Ben

  • Showing report data columns into two rows instead of one row using SSRS 2012

    Hi All,
    I have a ssrs report with 13 columns and I want to show those 13 columns data into two rows instead of showing in one row. please send me step by step process.
    id     fullname     firstname      lastname        mailingaddress     billingaddress       
    city       state       zipcode   
    1       ABC                A                  C                  
        xyz                      xyz123                   york     
    PA          12345    
     homephone     cellphone          workphone          company    
    1234567890      4567890123     0123456789         ABC,Inc
    id     fullname     firstname      lastname        mailingaddress     billingaddress        
    city          state     zipcode   
    2          XYZ               X                  Z                      
         abc                     abc123           lewisburg     
    PA      54321    
     homephone     cellphone           workphone        company    
    4567890123      0123456789     1234567890         xyz,Inc
    id     fullname     firstname      lastname        mailingaddress     billingaddress        
    city          state     zipcode   
    3       BCD                  B                  D                  
    123abc                  xyz123                leesburg       PA     
     54123    
     homephone     cellphone          workphone        company    
    4567895623      0783456789     1238967890       Hey,Inc
    Thanks in advance,
    RH
    sql

    Do a right mouse click on the left, gray row marker => "Insert Row"=> "Inside Group
    - Above or Below", then you get a second detail row.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • I have 3 drop down boxes in my report done SQL SSRS .. I want t to put them in the same row (just one row) ..how can I do it.?

    I have 3 drop down boxes in my report done SQL SSRS .. I want t to put them in the same row (just one row) ..how can I do it.?

    Hi Sashi123,
    Just as Ivan said, we do not have the ability to change the Report Manager in this way. Because we can’t change the parameters locations as this is not supported to write expressions for the location of parameters.
    While we can build a custom application in Visual Studio that we can get it through codes after deploying the report, then through URL we can get it by customization.
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Can an Excel Report with Multivalue Custom field list report on one row per task

    I have a ECF Multi Value field (MVF) at the Task Level and have created a report.  In Excel it wants to add it as a Pivotable, which makes sense and I end up with a row for each MVF.  If a Task has 3 MV selected there are 3 rows returned.
    I want to see if it will return only one row (row per task). 
    Example of Result Required
    PTask name , MVf Value1, MVF Value2, MVF Value 3.
    Build Car             X                                    
    X
    Build Bike            X                     X
    Is it possible?  is there something in my SQL Query I can do or is there something in Excel I can configure?
    Result being Returned
    PTask name , MVf Value1, MVF Value2, MVF Value 3.
    Build Car             X                                    
    Build Car                                                    X
    Build Bike            X                    
    Build Bike                                 X
    SQL Query
    SELECT
    MSP_EpmProject_UserView.ProjectOwnerName,
    MSP_EpmProject_UserView.ProjectName,
    MSP_EpmTask_UserView.TaskName,
    MSP_EpmLookupTable.MemberFullValue AS [Item],
    Iif(MSP_EpmLookupTable.MemberFullValue LIKE 
    '%' + 'CPT' + '%','X','') AS [CPT],
    Iif(MSP_EpmLookupTable.MemberFullValue LIKE 
    '%' + 'TS' + '%','X','') AS [TS],
    Iif(MSP_EpmLookupTable.MemberFullValue LIKE 
    '%' + 'CSAs' + '%','X','') AS [CSAs],
    Iif(MSP_EpmLookupTable.MemberFullValue LIKE 
    '%' + 'EM' + '%','X','') AS [EM],
    Iif(MSP_EpmLookupTable.MemberFullValue LIKE 
    '%' + 'RS' + '%','X','') AS [RS],
    Iif(MSP_EpmLookupTable.MemberFullValue LIKE 
    '%' + 'IS' + '%','X','') AS [IS]
    FROM
    MSP_EpmProject_UserView INNER JOIN
    MSP_EpmTask_UserView ON
    MSP_EpmProject_UserView.ProjectUID = MSP_EpmTask_UserView.ProjectUID
    LEFT OUTER JOIN
    [MSPCFTASK_Service Areas_AssociationView] ON
    MSP_EpmTask_UserView.TaskUID = [MSPCFTASK_Service Areas_AssociationView].EntityUID
    LEFT OUTER JOIN
    MSP_EpmLookupTable ON
    [MSPCFTASK_Service Areas_AssociationView].LookupMemberUID = MSP_EpmLookupTable.MemberUID
    WHERE datalength(MSP_EpmLookupTable.MemberFullValue) > 0
    Andrew Payze

    Hi Andrew,
    I'm not a developer, but I found something in my documentation that could help you. This is a SQL store procedure that returns in an Excel pivot table something like below (GR_test6 being a project and values in the next column being multivalue project ECF
    values).
    SELECT proj.ProjectName,
    lt.MemberFullValue AS 'VLookupField'
    FROM dbo.MSP_EpmProject_UserView AS proj
    LEFT OUTER JOIN [dbo].[MSPCFPRJ_ProjectECF_AssociationView] AS MVassoc -- view for multi value field
    ON proj.ProjectUID = MVassoc.EntityUID
    LEFT OUTER JOIN dbo.MSP_EpmLookupTable AS lt
    ON MVassoc.LookupMemberUID = lt.MemberUID
    order by ProjectName asc
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Missing rows / output only one row in a Report after applying patchset 2

    Hi.
    We use Reports Builder for 10g R2. We had the problem with our AS 10g R2 on windows 2003, that some reports creates duplicate rows when it is a ASCII report (desformat = delimited), see Bug 3340546.
    Now we apply Patchset 2 on a local machine, to test the functionality. It fix the problem (look in metalink doc ID 398955.1 under "2.12 Oracle Reports Developer Bugs")-
    But now most csv reports creates only one row instead of multiple rows.
    We run reports on our local machine with OC4N and local started Form (via Forms Builder) to generate the reports (local started report server) from DevSuite).
    When we start the reports with desformat=delimited the txt-file has only the header row and one data row (instead of multiple ones).
    And when we generate the same report with desformat=delimiteddata it looks fine and generates all rows as expected.
    We found neither here in the forum or in metalink knowledge base nor on the internet.
    Have you any suggestions for us how to fix this problem?
    Using delimiteddata is now acceptable solution for us, because delimited is easier to use.
    Thanks for your help!

    Hey folks.
    We have solved the problem. :)
    We applied PatchSet2 for 10gR2. But we don´t know how the csv-report outputs only 1 data-row instead of several rows.
    Than we create a similar report (with the same sql-query) as a new one with the reports builder assistant.
    This one works pretty fine. So we looked for the attributes and see the "max. number datasets for each site" and it was in the new one set to 0 and in our old one set to 1.
    So we change this and ... the old one works pretty fine! :)
    So the problem is, that this attribute does not had any consequences in the old version. But since we update with PatchSet 2 it respect this attribute but we don´t "see" it.
    Hope this helps others.

  • Combining data on one row of a report

    Post Author: sdgroves
    CA Forum: General
    I am trying to pull data from a Student Management System. I specifically need the data from the SMS to show up like this:
    Student Name  Student ID   English Class   History Class  Math Class
    Jones, Rick       123456       Johnson            Landers          Jones
    Right now I can get it to pull all of the data above but it brings it back on seperate rows:
    Student Name  Student ID   English Class   History Class  Math Class
    Jones, Rick       123456       Johnson           
    Jones, Rick       123456                              Landers         
    Jones, Rick       123456                                                       Jones
    Any idea on how to get it to report back all on one row?
    Thanks!

    Post Author: sdgroves
    CA Forum: General
    All of the data for the classes is coming from the same field on my report. That may be the problem. I may need to add a class period or something so it differentiates between classes?
    Thanks for your help.

  • Vertical single item Report

    Hi,
    I have a small app where I register clients for demo.
    After I register them, I need to send them a registration confirmation with all the details (Location address, and details of demo)
    The process is:
    1) I use a form to enter their registration data,
    2) I place all registrations in a standard (table-like) report.
    My goal is:
    In the registration summary report (in point 2 above) I would like to have a link for each row, so that when that link is clicked, that specific item is shown in a vertical report that I can download in PDF and send to client as an attachment.
    is there a way to produce a report that includes one row of a table? My gues would be to have an SQL statement that fires using the selected item id (taken from the link column), and feed that row to the report.
    Please help
    Edited by: user13813605 on Feb 9, 2011 5:42 AM

    Hi,
    I think that is down to the Report Layout option on the Print tab for the report region. You would need to create a layout that can be used in place of the Default Report Layout option. By default, the output is pretty much a datadump from the data.
    I've never actually created a Report Layout - as far as I understand it, you have to design a layout document as either a RTF file or XSL-FO file and then upload this through Shared Components, Report Layouts.
    XSL-FO is similar to XML - see: http://www.w3schools.com/xslfo/default.asp - there are some threads that show examples (whether or not they work, I don't know, but they show the sort of structure you need in a file - eg, How to Print in PDF using XSL-FO with FOP  ???? )
    RTF can be generated by Word or similar apps. An example: http://docs.google.com/viewer?a=v&q=cache:zfEw84o8Re4J:www.expobadge.com/dldev/dc/DKLLoader1.cfm%3Fdcid%3D919%26type%3Dpdf%26aid%3Dace3f4dd-2baa-4ba9-ad6c-099ce814bfba%26caller%3Das1%26shownumber%3D8027+%22application+express%22+%22rtf%22+example&hl=en&gl=uk&pid=bl&srcid=ADGEESgzSCp6lAUv7VFkDGjQM0-mwzahiN0hxxQp3m5KyrOlJlBmR2mow1gYJdnWJxPhPuvJ0GhubWhwmRYNU-9IgIGrk88NQMfrpegR4DDdGQzTvaKT1r6ZgTX3zIB_1nCgBDEZd35B&sig=AHIEtbRKcs8kLQbEGnZ7ct43WfSVnZtRmg - note though that this example requires a paid-for plug-in for Word, but may give you an idea of what is required.
    Andy

  • Arranging charts in one row

    Hi,
    How should I go about aligning 3 line charts in one row? What I plan to do is have a report containing data on the first row and on the second row I'll have 3 charts to represent the data above. Right now my charts are occupying rows 2,3,4 and are in column 1.
    Any suggestions will be greatly appreciated. Many thanks

    I figured out what to do. I placed negative values on the left, right, top, bottom margin parameters. That expanded my chart without expanding the region that contains it. Thanks for all your help though.
    Now can someone show me how to set my chart font to BOLD?

  • How to accessing current row report column value in Lov Query?

    Hi,
    which access methods (eg. bind variables, substitutions, ...) for getting the current row report column value can be used in the "Lov Query" property of a report column?
    As what I know of and what I have read on the forum there are no bind variables for the report columns. For the "Link Text" property it seems that the column values exist as substitution strings (#COLUMN_NAME#). But they don't work in the Lov Query. => And would be good because of a hard parse each time the Lov query is executed.
    The following post (Re: Simulating a correlated sub query in lov
    is showing a solution to use package variables for temporary storage of the referenced value, but the only problem with that solution is that if a new record is added with the "Add rows to tabular form" process the package variable still contains the value from the last queried row! Is there a way (variable, APEX package, ...) to determine if the lov query is executed for a new record so that the package can return null?
    I know that I could write the package in a way that the value is immediately cleared when lov_pkg.keyval is called (one time read), but then I would have to create several variables if I'm accessing the value multiple times in the query or in another query => I think an one time read solution would be very obscurely.
    Thanks for your help
    Patrick
    http://inside-apex.blogspot.com

    Hi Patrick,
    I agree that it's a waste to continually use Ajax to go back to the server to get the contents of a dynamic select list.
    There are no bind variables for any row item - but what you do have, as per my previous post, is the value of the data entered by the user in the first row. You can pass this into your application process (using get.add("VARIABLENAME", value)), which can use it to retrieve the correct LOV in your Ajax code - this will give you a "bind variable" that your process can use.
    What you could do, however, is generate hidden select lists on your page - one for each possible LOV list and replace the contents of the new row's select list with the contents of the appropriate hidden select list. This is easy to do with javascript (using innerHTML functions). Obviously, though, the usefulness of this depends on the number and size of the select lists.
    Even if you don't generate them to start with, you can keep a copy of any select lists returned by Ajax in the DOM for use on new rows. So, if you have retrieved a select list, you will have a copy of it in DOM which you can then copy into the new row. If you don't have the list in DOM, use Ajax to get it, store a copy of it and copy it into the new row.
    Which method you use will depend on the number/size of select lists needed. If they are few in number and/or size, I would suggest generating hidden lists. If they are large, use Ajax to get them once, store them and then retrieve them from the DOM when needed.
    There is another thread here where Arie recommends going to the server every time to make sure you get the most up-to-date data for the lists. If you want to follow this advice, for this reason, use get.add("VARIABLENAME", value) to pass the value to your process. If this is not an issue, you can use one of the other methods I outlined above.
    Regards
    Andy

  • Self join to get related records in one row

    I have a table that has individual records for each family member.
    tPerson.LastName, tPerson.FirstName, tPerson.RelationshipCode, tPerson.FamilyUnitCode, tPerson.JobCode
    Smith, John,HD, 1234, AD
    Smith, Jill, SP, 1234, TC
    Olson, Fred, HD, 2345, AV
    Olson, Wilma, SP, 2345, MD
    Adams, Nate, HD, 3456, DP
    Adams, Heidi, SP, 3456, DP
    Franks, John, HD, 4567, AV
    Williams, Pauline, HD, 5678, TC
    I need to get each family unit in one row, preferably without a group on, for a report because I need to compare the jobcodes of HD and SP to decide how to build an expression for a listing. I need to also get singles with no spouse info.
    FamilyCode, Lastname, HDFirstName, SPFirstName, HDJobCode, SPJobCode
    1234, Smith, John, Jill, AD, TC
    2345, Olson, Fred, Wilma, AV, MD
    3456, Adams, Nate, Heidi, DP, DP
    4567, Franks, John, NULL, AV, NULL
    5678, Williams, Pauline, NULL, TC, NULL
    Does the type on constraint affect the effect of an inner join? I have trouble getting the left side returning rows where there is no SP records for that familyCode.
    Any help? John

    >> I have a table that has individual records [sic] for each family member. <<
    Rows are not records. And you posted no DDL.
    Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data elements. You should follow ISO-8601 rules for displaying
    temporal data. We need to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. And you need to read and download the PDF for:
    https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
    The sample data looks like it has a tibble on it. This is the classic design error of putting meta data, like a “t-” on tables and data element names. The next classic error you made
    is a table name that is singular and vague; do you really have only one “Person” in a table? According to ISO-11179 rules, that is what you said.
    >> I need to get each family unit in one row, ..<<
    Not in RDBMS. Please look up the term “1NF” or “First Normal Form” which forbids structure data in columns.
    But it just gets worse. Being in a family is a relationship, so it has its own table. The individuals are entities, so they have a table. Having a job is another relationship, so it is
    in a third table. In your world, all these things are crammed into a single table! This might be how an OO programmer would attempt to do RDBMS that first time, but it is not good. Here is skeleton to get your started: 
    CREATE TABLE Personnel
    (emp_id CHAR(9) NOT NULL PRIMARY KEY,
    last_name VARCHAR(20) NOT NULL,
    first_name VARCHAR(20) NOT NULL);
    CREATE TABLE Family_Units
    (family_unit CHAR(4) NOT NULL,
    relationship_code CHAR(5) NOT NULL
    CHECK (relationship_code IN ('spouse', ????)),
    PRIMARY KEY (family_unit, relationship_code),
    emp_id_1 CHAR(9) NOT NULL
    REFERENCES Personnel
    ON DELETE CASCADE,
    emp_id_2 CHAR(9) NOT NULL
    REFERENCES Personnel
    ON DELETE CASCADE,
    CHECK (emp_id_1 <> emp_id_2)
    CREATE TABLE Employment
    (emp_id_1 CHAR(9) NOT NULL
    REFERENCES Personnel
    ON DELETE CASCADE PRIMARY KEY,
    job_code CHAR(2) NOT NULL); -- do you know about DOT codes?
    See how we use DRI actions? Etc. 
    >> I need to compare the job_codes of HD and SP to decide how to build an expression [sic] for a listing. I need to also get singles with no spouse info. <<
    Expression return scalar values in SQL. You meant query. Where is the SQL you attempted? Is “spouse” the only relationship? 
    You have not posted enough information for anyone to really help you. What little we can extract from this says that you have no idea how about RDBMS. Want to do some reading, follow
    Netiquette and try again? 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • More than one updatable report on one page.

    I hope someone can help me with this.
    I've spend a long time looking for the best way to do this but keep running into APEX constraints.
    My problem is that I have two tables;
    1) an 'object' table with static attributes (that can change value but keep no history).
    2) an 'object attributes' table with attributes that can change over time (i.e. keep a history).
    Some of the attributes are optional and some mandatory irrespective of whether they are static or timestamped.
    I want to design a screen that shows both tables on one page - preferably both updatable on the same screen.
    Selecting/clicking a row in the top table (object) will select the appropriate object attribute rows in the table below (I've got that covered - no help needed there).
    If I create a new object record I also need to create an initial object attributes record.
    This first initial attributes record cannot be deleted while the object exists.
    The start date of the object itself and its first object attributes record should remain in sync.
    I cannot separate the object table and attributes tables on different pages as all static and timestamped attributes form one collection that needs to be visible and maintainable from one screen.
    The problem is APEX will not allow more than one updatable (or interactive) report on one page.
    I need a solution where both tables are maintained in a uniform way for the user.
    Not, for instance, one table an updatable report and the other a report with detail form.
    Anybody struggle with a similar problem and found a solution to this problem?
    Any pointers are most welcome.
    Ruud.
    PS. I have a joined view on both tables with an INSTEAD trigger that can process insert/update/delete's on the combined data however I would not like to use that if I can avoid it. It would mean a repetition of static attributes in the one updatable report.

    Andy,
    Apologies for the late reply - Forums have been out for a while :-(
    Thanks for the suggestion. I've had a look at Denes' example and
    at least now I know it is possible.
    I've asked for access to his workspace but have not been given that
    yet so can't look at the details yet but I can make some educated
    guesses as to how it was done.
    I will give it a try.
    I'm still not certain whether having 2 updatable tabular reports is the
    right way to go though....
    Currently I'm working on a page with 2 navigator reports - one for selecting
    the object and another to select the start date of the timestamped attributes.
    Next to that I have an updatable detail form that shows the selected object
    and attributes as one whole set using the joined view I mentioned earlier.
    Inserts, updates & deletes are then done in the form.
    Ruud.

  • Select_list_from_lov in multi row report: Help

    Oracle 10g, apex 3.2
    On windows XP client, Firefox 3.5.2
    I have a multi row editable report region, defined as below: I have a check box item for the row being selected and one of the columns in the row is a select_list_from_lov_xl. Once the user checks a particular row, using the check box, he/she will choose a particular value from that row's select list. How do I capture the value of the select_list returned value specific for that row? As you see from the highlighted code to render select_list,the value for the apex_item that I am assigning is 30. But when I look in the firebug->inspect element, the apex renders the name as 'f01'..??. What am I missing here??
    Also if user checks all rows, my code picks up the correct corresponding values picked for the select list. If user selects a row in the middle or any random row, the value selected is always the first item returned by the first orw's select_list (though this was not checked!!)
    I am confused and need help on capturing select list return values in a multi row reports.
    Thanks for all your time and expertise...
    Here's the simplified version of my query, that includes the culprits:
    SELECT APEX_ITEM.HIDDEN(10,TR.SEQ) || APEX_ITEM.CHECKBOX(20, tr.seq,'onchange="spCheckChange(this);"',:F500_REQUEST_LIST,':') "Is Requested?",
    +APEX_ITEM.SELECT_LIST_FROM_LOV_XL(30,TO_ROOM_SEQ, 'ROOMS_LOV') "To Room"*_+
    FROM TS_ASSETS TA, TS_REQS TR where <some condition>
    Here is part of my code that extracts the values picked
    -- this should pick only checked rows...
    for i in 1..apex_application.g_f20.count
    loop
    some_checked_value(i) := apex_item.g_f20(i);
    -- the below is coded thus, as thats the value that I see being set, when I inspect this element in firebug. Not sure how this came by, as I had set this item to 30 in my query...???
    some_select_list_val(i) := apex_item.g_f01(i);
    end loop;

    Why don't you try this
    SELECT    apex_item.hidden (10, tr.seq)
           || apex_item.checkbox (20,
                                  tr.seq,
                                  'onchange="spCheckChange(this);"',
                                  :f500_request_list,
                                  'f20_' || '#ROWNUM#'
                                 ) "Is Requested?",
           apex_item.select_list_from_lov_xl (30,
                                              to_room_seq,
                                              'ROOMS_LOV',
                                              'NO',
                                              NULL,
                                              NULL,
                                              'f30_' || '#ROWNUM#',
                                              NULL,
                                              'NO'
      FROM ts_assets ta, ts_reqs tr?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • How can I have one row for each object?

    Post Author: farnaz
    CA Forum: WebIntelligence Reporting
    I have 3 objcts that one of them is ID and second one is internal code and the third one is quantity.There is more than one value for each ID (becouse of internal code).I want to create a report based on ID and quantity (not based on internal code).I make a break on ID but the result shows me more than one row for each ID.so how can i have just one row for each ID?
    another question:
    how can I post screen shot of the results to my messag in forum?

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    farnaz:
    Have you tried to omit "internal code" from your grid?  In normal circumstances, if you have "ID" and "Quantity" on the grid, then WebI will on its own summarize Quantity based on ID, however, this is provided that Quantity has been set up as a measure (or metric).  The quickest way to tell if Quantity is a metric or not is to observe the color of its icon when you look at it in the data panel.  If it is a purple (or sometimes appears as pink or fuscia) dot, then it's a measure, but if it is a blue box then it is a dimension.  If you need Quantity as a measure then this will have to be modified at the universe (make it look like "sum(Quantity)" in the select phase of the object, and insure the object is defined as a number....

  • Return more than one row to display as text?

    I don't know if this is possible or not. I'd rather not create a report for one item.
    is there a way to allow a display as text filed show more than one item from a query? I've tryed several things none work. I have one field that I'd like to show multiple data as just text. but everything I try displays one row only in the field. is there a way around this?

    Nazdev,
    If you're trying to display multiple records as separate parts (not just concatenated together), the easiest solution would be a report. If you just want to append values together and present them in a single item, you should be able to create a query to build your string pretty easily, though you might need to write an Oracle function to do the concatenation for you.
    I wrote a function to do that a while back, obvious you should check it thoroughly before you use it.
    CREATE OR REPLACE FUNCTION cursor_to_list(cur_in IN aeo_misc_tools.string_ref_cur,
                                              delimiter_in IN VARCHAR2 := ', ',
                                              max_len_in IN PLS_INTEGER := 32000,
                                              more_string_in IN VARCHAR2 := 'More...') RETURN VARCHAR2 IS
            Description:    Given single-column ref cursor, return values separated
                            by delimiter parameter value.
                            Trim last trailing delimiter.
            Parameters:     cur_in - opened cursor w/ single string column
                            delimiter_in - separate values w/ this, defaults to comma-space
                            max_len_in - maximum returned length
                            more_string_in - Append if length would be longer than max_len_in
            Returns:        String of separated values
            Author:         Stew Stryker
            Usage:          children_list := cursor_to_list(cur_in => child_cur, delimiter_in => ' | ');
            Note: Can also pass a cursor to this directly, using the CURSOR clause, as follows:
            children_list := cursor_to_list(CURSOR(SELECT pref_mail_name FROM children
                                                WHERE parent_id = '0000055555' ORDER BY dob),
                                delimiter_in => ' | ');
        TYPE single_string_rec_t IS RECORD(
            string_val VARCHAR2(256));
        TYPE string_ref_cur IS REF CURSOR;
        row_value single_string_rec_t;
        ret_list VARCHAR2(32000);
        more_string VARCHAR2(256) := NVL(more_string_in, ' ');
        delim_len CONSTANT PLS_INTEGER := LENGTH(delimiter_in);
        more_len CONSTANT PLS_INTEGER := LENGTH(more_string_in);
        max_len PLS_INTEGER := max_len_in - more_len - delim_len;
    BEGIN
        IF max_len > 0
        THEN
            IF cur_in%ISOPEN
            THEN
                FETCH cur_in
                    INTO row_value;
                WHILE cur_in%FOUND
                LOOP
                    IF NVL(LENGTH(ret_list), 0) + NVL(LENGTH(row_value.string_val), 0) + delim_len <=
                       max_len
                    THEN
                        ret_list := ret_list || row_value.string_val || delimiter_in;
                    ELSIF INSTR(NVL(ret_list, ' '), more_string) = 0
                          AND NVL(LENGTH(row_value.string_val), 0) > 0
                    THEN
                        ret_list := ret_list || more_string;
                    END IF;
                    FETCH cur_in
                        INTO row_value;
                END LOOP;
                -- Strip last delimiter
                ret_list := RTRIM(ret_list, delimiter_in);
                CLOSE cur_in;
            END IF;
        END IF;
        RETURN ret_list;
    EXCEPTION
        WHEN no_data_found THEN
            RETURN ret_list;
        WHEN OTHERS THEN
            DBMS_OUTPUT.PUT_LINE('EXCEPTION IN aeo_misc_tools.cursor_to_list - ' || TO_CHAR(SQLCODE) || ': ' ||
                                 SQLERRM);
            RAISE;
            RETURN ret_list;
    END cursor_to_list;Good luck,
    Stew

Maybe you are looking for