Sorting images mislabeled in Report Attributes?

I added some custom images in the Sorting section of the Report Attributes. When I ran the report the images displayed were opposite of what I expected (i.e. the descending image displayed for an ascending sort and vice versa.) Upon further investigation it appears that the labels in the Sorting section are indeed reversed. The descending image is displayed when the sort order is ascending and vice versa. Is this a bug?

Erik,
Thanks, this explains it. By specifying the request as part of your URL you run into the recently uncovered issue. The request you're setting is REMFROMLIST and ADD2LIST. You probably either have links that include those requests or you have branches where you specify them. Either way, in order to get reports sorting to work, you'll have to make sure that the request strings are not part of your URL. This is a work-around and the upcoming HTML DB patch release will solve this issue.
One way of avoiding this is to have computations on the previous pages that set a napplication level or page level item to the REMFROMLIST and ADD2LIST values and then you can use those items for your conditions that are currently evaluating those strings.
Hope this helps and sorry for the inconvenience,
Marc

Similar Messages

  • Report not initially sorted as defined by Report Attributes "Sort Sequence"

    I have a Report Region with Type SQL Query and Source "SELECT * FROM <table>" where <table> has a primary key from a sequence. Under Report Attributes, I have Report Column "ST_NM" with Show and Sort checked and having a Sort Sequence of "1". I assume this is to set the iniital display sequence but regardless, the report rows display in Primary key order initially.
    To try it: http://apex.oracle.com/pls/apex/f?p=21997:2 with Dever/Ima9Dever
    1) How do I set the initial display sequence to be other than the primary key sequence?
    [Note: It seems to work part (or all?) of the time under our 4.1 implementation.]
    Thanks,
    Howard
    I thought this one would be easy!

    Howard (DBA in Training) wrote:
    I have a Report Region with Type SQL Query and Source "SELECT * FROM <table>" where <table> has a primary key from a sequence. Under Report Attributes, I have Report Column "ST_NM" with Show and Sort checked and having a Sort Sequence of "1". I assume this is to set the iniital display sequence but regardless, the report rows display in Primary key order initially.
    To try it: http://apex.oracle.com/pls/apex/f?p=21997:2 with Dever/Ima9Dever
    1) How do I set the initial display sequence to be other than the primary key sequence?
    [Note: It seems to work part (or all?) of the time under our 4.1 implementation.]Standard reports store sort columns persistently across sessions as user preferences. It's likely that Dever user has at some point clicked to sort on the PK column and created a persistent preference. Try it with a new user that has never viewed the page before...
    See +{thread:id=2433320}+ for more on this, including how to reset it.

  • Report Attribute - Column Attribute - Sort

    I have a SQL Query (PL/SQL function body returning SQL Query) report. I have the number of returned limited to 100 rows (Report Attributes - Layout and Pagination - Max Row Count). When I run this report without any column sorts (none of the Column Attribute Sort columns are checked) it runs fast. If I set either the Sort Sequence, or check any one of the Sort columns, the report takes forever to run. This with only 100 rows on the report.
    Where is the sort being performed - Is the sort being performed within Oracle (meaning, in the database) or is it being sorted in Apex or on the Client?
    Note that there is no "order by" nor "group by" contained within the SQL - just a simple 2 table join (an inner join).

    Thank You, Thank You, Thank You.
    That is indeed the point I am trying to make.
    My report is a SQL Query (PL/SQL Function body returning SQL Query) and is based on information provided in several PopUp LOVs. The more LOVs used, the more information provided to the WHERE CLAUSE, and therefore the less data returned to the screen.
    When the End User produces a small report, they are likely to want to sort it.
    But when they bring back huge amounts of data, they don't want it sorted. Especially not automatically sorted.
    In most cases, this is happening when we are joining two or three tables with say 10 million rows on each table. The join condition is good (meaning there is not a Cartesian Product) but the resultant data is 10 million rows - something you not likely want to sort. Even with a limit on the number of rows returned (Report Attributes - Layout and Pagination - Max Row Count) to something reasonable, like 500, the 10 million resultant rows are first being sorted and then the first 500 returned.
    So, yes, a "sort-enabled" report should NOT automatically sort. Which is what is happening.
    Of course, it might be a good thing to have some sort of Variable that we could set on a page to decide if we want automatic sorting. On most pages, an automatic sort is great - as the amount of data returned will always be small.
    On the pages where I have this problem, it would be great to do the automatic sort when one or more of the PopUp LOVs are populated. So, within a "After Submit" process I might want to turn automatic sorting on.
    Hey, if we are going to ask for an enhancement/change, we might as well ask for something really flexible.

  • Limit the filesize upload and resize a blob image in a report

    I'd like to know how to do both.. I have a file browse that uploads images to my application. It's called P34_IMG1. I would like to limit the file dimensions to a maximum of 200 x 300 px (but it can be less) and have a limit of 1MB in filesize.
    As well as the above, I'd like to know how to resize this image into a 'thumbnail' of sorts that shows the image much smaller in a report. The image shows but they are too big. How do I resize them?
    Thanks much
    -J

    oh I didn't see this reply, Tony. Sorry.
    No I don't have the image like that in the report, the report's query is like this:
    select * from (
    select      "LOTS"."LOTID" as "LOTID",
          "LOTS"."LOTNAME" as "LOTNAME",
          "LOTS"."ADD1" as "ADD1",
          "LOTS"."ADD2" as "ADD2",
          "LOTS"."ADD3" as "ADD3",
          "LOTS"."COUNTRY" as "COUNTRY",
          "LOTS"."MESSAGE" as "MESSAGE",
          "LOTS"."APPSTATUS" as "APPSTATUS",
          "LOTS"."SENDERMESSAGE" as "SENDERMESSAGE",
          "USERS"."USERNAME" as "USERNAME",
             dbms_lob.getlength("IMG1") as "IMG1"
    from      "USERS" "USERS",
          "LOTS" "LOTS"
    where   "LOTS"."USERID"="USERS"."USERID" AND (UPPER("USERS"."USERNAME") = UPPER (:APP_USER)))
    where (
    instr(upper("APPSTATUS"),upper(nvl(:P40_SEARCH,"APPSTATUS"))) > 0
    )and the IMG1 column in the report attributes has the number/date format as IMAGE:LOTS:IMG1:LOTID::::::inline:Download. So I don't know how to use this to resize the images, unfortunately.

  • Sort problem in a report

    Hi,
    I'm using the sort on a report with 7 columns. For each column I've specified
    the sort sequence from 1 to 7. The last sort is a date field. If i sort now the
    last column and i change to next report side the sort change jump to the first column.
    Is there somebody who had also a problem like this?
    Greets,
    Tom

    You can check boxes to determine which columns can be sorted; if you check one or more boxes, you also need to set the "Sort Sequence" attribute under the "Report Attributes" tab of your SQL query region. So to use sorting you must.
    1. ensure you don't have an order by in your SQL statement
    2. check one or more "sort" boxes
    3. set the default order in one or more column in the "sort sequence" column
    Hope this helps,
    Mike

  • Resizing an image in Interactive report

    Hi All,
    I have a report showing number of columns one of which is BLOB image. Problem is when massive, the row can take well over half the screen.
    With firebug, I found that if I tweak add style attribute to IMG, (style="WIDTH:200PX;") then I can resize it.
    However I am not loss where to insert this. There is nothing in the column attribute of the Image column in interactive report that allows me for this.
    Would be grateful if someone can share a tip on how to resize image displaying on interactive report.
    Thanks.
    INFO
    I followed this tutorial: http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    Running APEX 4.1.1

    Hi,
    Put this Style in Page HTML Header
    <style type="text/css">
    .apexir_WORKSHEET_DATA  td[headers="IMAGE"] img // "IMAGE" ->Give Your Report Column Name
      width: 50px;
    </style>Brgds,
    Max.

  • ORA-01403 displaying image in a report

    Hello.
    I have a table with BLOB column that stores an image. I created a report on this table trying to display this column's images. I surround the column with dbms_lob.getlength() function in the SQL of the report and I use the following for the column's Number / Date Format in the "Column Formatting" section of the Report Attributes:
    IMAGE:PROJECT:PRODUCT_LOGO:PROJECT_ID::::::inline:Download
    This syntax is what makes things works for me in other areas of the application where I display stored images in a report. But not here. The report works, returning a number (representation of the getlength function returned value), as it should. As soon as I add the above Number / Date Format, I get:
    report error:
    ORA-01403: no data found
    What is different in this report from the others that work is that this report's SQL is a join of a number of tables, not a straight select on one table like the others. In the SQL, the tables are referenced by alias, so table PROJECT's PRODUCT_LOGO column is referenced as a.product_logo in the query's select clause.
    I don't see any other substantive differences.
    What could be the cause of the failure?
    Thank You
    Boris

    Thank You Scott for your reply.
    I was able to figure it out.
    In my report query, I forgot to reference PROJECT_ID, which is the primary key of the table by which the IMAGE mask is called. Apparently, it is necessary to awalys include the primary key in the query SELECT clause, where you actually need it in the report or not, just to make the image retrieval in the report work.
    Thank You
    Boris

  • Background Image on a Report Region

    Greetings,
    Is it possible to put a background image on a report region? Using the code shown below I can get an image on most other region types, but the code simply doesn't work on a report region.
    Thanks in advance for your help, Tony
    REGION HEADER
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left"
    background = "#WORKSPACE_IMAGES#image.jpg">
    <tr height="500px" align="left" valign="top">
    <td>
    REGION FOOTER
    </td>
    </tr>
    </table>

    cloaked wrote:
    Greetings fac586,
    Been reading up on CSS's. I guess the main aspect is to determine the CSS component that deals with the Tabular Form in the Template I am using and modify it. I would need to modify the background attribute of the Tabular Fom, right?
    Gotta crawl before I walk, so I am also assuming that I would modify the CSS initially with a hard-coded background image. Then, if I get that to work I would make the image dynamic based on the criteria in a database. Am I on the right track?
    Is there a common attribute/component in the Apex Template CSS's for Tabular Forms? I've tried to find it, but am not sure what I'm looking for.Tabular forms can be created using any report template&mdash;built-in or custom&mdash;so the CSS will differ by theme and template.
    Yes, you can define background images for report templates, but It's not appropriate to do what you're trying to do at the report template level. Templates are static and defined at design-time. Challenging Apex Page - Grid with 100+ items - Suggestions Needed. This needs to be dynamic and determined at run-time.

  • Set Default Report Attributes

    Hi,
    Is is possible to set the default report attributes for interactive reports so when I create a new one I don't have to go through and change the defaults. Basically I want to set the "Show Null Values as" variable to null rather than a dash for all newly created Interactive Reports, I know I can change the value once the report is created but I'd rather it default to null in case I forget to change it.
    I've searched though the interface and OTN with no luck, any ideas?
    Thanks in advance.

    Joe
    Standard reports (and hence the evil that is tabular forms) store sort columns persistently as user preferences. The <tt>apex_util.remove_sort_preferences</tt> method can be used to remove them, resetting reports to the default sort order. However this is not a precision instrument: it removes the user's sort preferences for all reports...
    It is possible to remove the sort preference for individual reports using the <tt>apex_util.remove_preference</tt> method by reverse engineering the required sort preference name from the admin user preference report.

  • APEX 3.0: Report attribute caching

    Hi,
    I saw that the cached report attributes (like Number of Rows) are discarded when they are changed in the APEX Builder. That's great and a big improvement compared to APEX 2.2, because in the old version you had to logout and relogin to see the changes to take effect.
    But :-)
    there seems to be a small flow in that fix, because the new settings only take effect if you do something with the report, eg change ordering.
    Steps to reproduce on the "Sample Application"
    1) Go to page 3
    2) Run the page
    3) Go back into the APEX Builder, click onto the "Report" link of the "Products" report
    4) Change "Number of Rows" to 5
    5) Run the page
    => Still shows 10 records
    6) Click on the heading of "Name" to change the ordering
    => Vola, now you have the 5 records
    I think the 5 should already show up at the first run of the page, that behavior could be confusing for people.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

    Hi Sharon,
    I'm really interested why this is 'sort of' by design, because the current behavior can be confusing if you don't know it.
    Thanks
    Patrick

  • Sort Images by average luminance -- possible?  Hints?

    Another edition of "Not that I know of".  :-)
    Is there any way to sort Images in Aperture by average luminance?
    Is there any way to determine the average luminance and save this to a custom metadata field?
    Bonus: hue?
    NB: using the Preview to determine average luminance or hue is OK by me  .
    Thanks in advance.
    --Kirby.

    Frank Caggiano wrote:
    Looks like with the current tools in Aperture there is no way to do this. You might want to look and see if there is any third party apps  but I'm not hopeful.
    I haven't found anything.  There is the app I mentioned in the similar thread in the OS X Dev forum:  CF/X Photo Mosaic.  It (surprisingly quickly!) creates a database of the images that will be used as tesserae in the making of photo mosaic, and allows the user to sort the image database by average color or average luminance.  I've asked their input.  There is no way to export the database, or — afaict — to use any of the information outside the program itself.
    Here's a screengrab from the manual showing images in the Photo Mosaic database with each image's average hue and average luminance displayed as a sample tile and a hex ordinal.  The luminance scale is 1 to 256 (in hex).  I'm not sure what the hue scale is (I guess it's 16 million).
    Frank Caggiano wrote:
      One of the new systems strengths is reported to be the ability to write extensions for the core image engine more easily then the current state of writing a plugin for Aperture. Perhaps something will get written then.
    We'll see.  I am holding my breath.
    Not .

  • Report attributes - layout and pagination

    When you set the pagination scheme to Row Ranges X to Y(with next and previous links), Number of Rows to 15 and Max Row count to 1000, I need to know what happens with the query. When the user selects the next (or previous) 15 records, does the region's query fire again and query all 1000 (or more) records?
    I hope this makes since. I just need to know if the application is selecting all the records over and over as the user move through the report.
    Thanks

    Thank You, Thank You, Thank You.
    That is indeed the point I am trying to make.
    My report is a SQL Query (PL/SQL Function body returning SQL Query) and is based on information provided in several PopUp LOVs. The more LOVs used, the more information provided to the WHERE CLAUSE, and therefore the less data returned to the screen.
    When the End User produces a small report, they are likely to want to sort it.
    But when they bring back huge amounts of data, they don't want it sorted. Especially not automatically sorted.
    In most cases, this is happening when we are joining two or three tables with say 10 million rows on each table. The join condition is good (meaning there is not a Cartesian Product) but the resultant data is 10 million rows - something you not likely want to sort. Even with a limit on the number of rows returned (Report Attributes - Layout and Pagination - Max Row Count) to something reasonable, like 500, the 10 million resultant rows are first being sorted and then the first 500 returned.
    So, yes, a "sort-enabled" report should NOT automatically sort. Which is what is happening.
    Of course, it might be a good thing to have some sort of Variable that we could set on a page to decide if we want automatic sorting. On most pages, an automatic sort is great - as the amount of data returned will always be small.
    On the pages where I have this problem, it would be great to do the automatic sort when one or more of the PopUp LOVs are populated. So, within a "After Submit" process I might want to turn automatic sorting on.
    Hey, if we are going to ask for an enhancement/change, we might as well ask for something really flexible.

  • Fail to parse SQL query after report attributes changes on sample app

    This errors occurs in the sample application istalled in Workspace PMW on the http://htmldb.oracle.com web site. Goto home page, edit Page 1, Select "Top Orders" in Region, select report attributes, change max count from 5 to 5 in "Layout and Pagination", apply changes, run page and parse SQL error occurs. Select "debug" and the following is shown regarding the query.
    0.10: query could not be parsed:
    SELECT a.ORDER_ID, a.ORDER_TIMESTAMP, a.CUSTOMER_ID,
    b.cust_last_name || ', ' || b.cust_first_name cust_name, NVL(a.ORDER_TOTAL, 0)
    FROM demo_orders a, DEMO_CUSTOMERS b
    WHERE a.customer_id = b.customer_id
    ORDER BY NVL(a.ORDER_TOTAL, 0) DESC order by 5 desc,5 desc
    failed to parse SQL query:
    ORA-00933: SQL command not properly ended
    I can't see that I'm doing anything wrong but maybe someone can shed some light on this!
    Thanks

    this is sort of an oversight on our part. what's going on is that the sample app installs with that order by clause in the query. at the same time, the report attributes page for that region has a default sort sequence value of "1 desc" (even though column heading sorting isn't enabled). when you go to that page and try to apply any change, htmldb tries to set things up correctly for you...and you end up with that double order by. the best way to avoid the issue is to remove the order by clause from the query on the Region Definition page.
    hope this helps,
    raj

  • Can we set the Background Image for a Report

    Hi,
    I am generating a report thru the web now i want to give the background image to the report, let me know if any body knows about this.
    Thanx

    hello,
    try the before reports value of your report-level properties. add the BACKGROUND attribute to the BODY tag to reference an image-file for the background.
    regards,
    the oracle reports team

  • Bug - Sorting Order in SQL Reports not Working?

    Today i defined a SQL Report in APEX and choose 3 columns for sorting the report.
    The order is like that:
    1. Category
    2. List Price
    3. Product Name
    When calling the SQL Report in a new session i expected to get a sorted report like defined.
    I got only the report like the last person who edited this report.
    It looks like that the Sort Sequence columns is not usable in SQL Reports.
    Here is an example based on the problems which i described:
    http://apex.oracle.com/pls/apex/f?p=40082
    below the SQL Report a screenshot is shown, where the Report Attributes (and the sort sequence) is displayed.

    OliverL
    Did you reset the pagination of the report you made the changes to?
    Normal behaviour is that APEX remembers per user per report the last sorting that was used.
    Including when a user clicked a column header to change the order from the default one.
    The sort preference are stored in preferences with a name like FSPapp_id_Ppage_id_Rinternal region_id_SORT.
    Nicolette

Maybe you are looking for

  • Why id this not working? Please Help...

    This part in my action performed is not working. the buttons on my second form is not responding at all!!! Please help ...      public void actionPerformed(ActionEvent ae)           if(ae.getSource() == itmAddD)                frmAddDriver.setVisible

  • Problem with 100% height

    I'm having a problem trying to get the LEFT and RIGHT DIV tags to drop down 100% along with the CENTER DIV tag. I don't want to use javascript. In all browser, except IE6, the DIV tags will fill 100% of the document window, but will not extend down w

  • HP x2301 monitor: flickering on gray color

    I bought x2301 about 4 months ago and since day one, it flickers whenever there's a chunk of light grey color displayed on screen. It gets even more obvious when I go from grey background to white background. It's connected via DVI to NVIDIA GeForce

  • Journal from payment wizard working only in LC

    I am using the payment wizard for outgoing payments, the wizard is working OK, but then when I go to the journal entry the debit and credit values are only in LC and not in SC (SC is showing 0).

  • Export multiple xml files(Indesignscript)?

    Hey guys, I have a rather complicated question about indesignscripting. I am tagging different elements in the document. However, they have to be in different xmls. So lets say: I have 3 pages in my document. On each page, different objects are being