Reset the sort sequence in classic reports.

I have a classic report with two sortable columns, product number (sequence 1 type) and the name of the product. If the sort order is changed by a user, subsequent executions or the report tracks appear with the last sort order of the report.
For example;
The user runs the report and change the descending sort of the product name.
B the user running the report for the first time and sees the report in the product name descending sort order.

I gave the name of the product a sort sequence 2, but it made no difference.

The sort order can be reset or updated?

Thanks for any help,
Dave

Hello Dave,

> How the sort order can be reset or updated?

You use the APEX_UTIL. Procedure REMOVE_SORT_PREFERENCES - http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/apex_util.htm#CHDHDFHB.

Kind regards
Arie.

-------------------------------------------------------
Be sure to mark the appropriate fix/useful messages. For the long term, it will benefit us all.

Tags: Database

Similar Questions

  • Break the formatting in a classic report

    Version 4.1.1.00.23

    13 Classic Blue theme

    Hello

    I'm having a problem trying to get the value of the column in the row of the total instead of the column header.

    Here's what I mean:

    pdm_phase.png

    What I want is for the value "Of Initiation" to show instead of "Name of PDM stage" so that the line would be ' Initiation Total:'

    Break formatting is currently:

    break_formatting.png

    When I try to use the "when a break column display use this format, subs #COLUMN_VALUE # use" and put #COLUMN_VALUE # Total: I receive:

    pdm_format.png

    Can someone help me get the Total to the value of the column?

    Can what additional information I give?

    Thank you

    Joe

    Joe R wrote:

    No idea who is possible in the current version?

    # Classic reports are the child ginger step of the components of the APEX. No love. Little improvement.

  • ISO: tutorial for the selection on the top and a classic report on background

    I tried to find a tutorial about it; I know that I've seen, but cannot re - locate and frustrates me because I know there are and I don't have you guys something bothers when I KNOW that it is documented...

    I would like to learn more about having a box of selection on top of a LOV and, after making a selection, a report of items appears under the area of selection.

    The LOV is from Table1; the report is from Table2
    Table2 has a column which refers to Table1.

    I know I can get comparable results form an IR, but I would like to know how to do the reverse. Preference by construction of the page (not through an Assistant), so that I learn the process and logic.

    I tried to "wing" by creating 2 regions (html on top, with an element of selection as select with bid and the classic report on the merits;

    Can you please direct me to the tutorial?

    Thank you
    Marion

    Hi Marion,.

    Try this: [http://download.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/rprt_query.htm#BGBEEBJA] it is referring to an earlier version of the Apex - new version explains interactive reports instead.

    Andy

  • Reset the DW CC to Classic view, see and create library items (was: libiary elements)

    Hi stepped how to reset adobe cc to Classic view, in the drop-down list area I do not have these options, or y at - it another way to see and create libiary items

    perchfishtrout wrote:

    Hi to all the other versions of Dreamweaver there was the active panel containing the items in your library, which is what I'm looking for.

    In CC, go to window > assets to open the components window, and then click the icon of a book on the lower left of the window for library items.

    You can reorganize your windows as you want by dragging the tab named each window for the edges of your application framework, or the edges of other windows. When the edge of the window or frame is highlighted, release the tab to lock it in this position. Once you have all your windows and palettes defined as you want, go to the window > workspace layout > new to save your layout.

  • Select the line of the classic report to pass the value to another classic report on the same page

    Hello

    First a few details about the environment - I use the image of the last download oracle VM developer days to oracle.com. This includes DB version 12.1.0.2 and version 4.2.5.00.08 Apex. For the question although I don't know the specifics of the versions that are relevant.

    What I want to do an apex page which includes an analytical section at the top, followed by a section of retail slot - a line is selected / highlighted at the top which causes the relevant lines in this summary line is displayed. Its screen basically a master-detail - however the source of these two sets of data is just a query - is not a table.

    The query at the top of the page is something like

    Select * summary

    and the section below is

    Select * from details where id = (the value of the id clicked in the summary above)

    This feels like it should be really easy (and indeed, it is for the tables through the apex of master-detail Wizard) - but I can't understand when the two sets of data are the result of queries.

    I can't seem to make reference to the elements of the page when it comes to a report and I think that I might need to go down a kind of dynamic route of actions and jquery, but I don't get very far very fast. I found some notes that seem similar, but nothing which does exactly what I want. The function APEX_APPLICATION to browse a table also doesn't seem to be possible for the output report that I could see (tags are not there) - what is relevant for the forms?

    I hope that I have explained that quite simply.

    Can anyone help?

    See you soon,.

    Rich

    You link column can be just a null value in the sql code, if you want. Change the column and head down to the link attributes.

    Text link: "Click me" (source of sql using #MY_COL columns or #)

    Target: URL

    URL: javascript: $s ('P1_ITEM', #ID);

    Then have onChange dynamic action on P1_ITEM which updates the State. Do not forget to present the value of session state (either property right under the sql or pl/sql prior to update action report). The database needs to know the value of browser before running the query.

  • Link of the conditional column in classic report

    I am tring to display a link in a column only if another column has a value in the same row. However, the column, I try to display conditionally must call a javascript function when the click on (it pops up a modal window) and it must include an image.

    My report request is

    Select

    AC. C001,

    AC. C015

    apex_util.prepare_url ('f? p = & APP_ID.:4: & SESSION.: &. DEBUG: P4_PARCEL_ID:' | ac.c001) LINK_URL,-my link conditional image onclick

    Of apex_collections ac

    WHERE collection_name =: P3_COLLECTION_NAME

    Report of the attribute COLUMN BINDING settings are:

    LINK ATTRIBUTE: < img src = "" #WORKSPACE_IMAGES #fff_report.png "/ >"

    URL: javascript:mymodal('#LINK_URL#','View_Comments')

    It works, but it shows the picture report.png on each line of the report. I need to combine the link attribute and the url in the statement select with a CASE to view statement conditionally cela but I can't get the good constructed string... can help any one?

    I'm looking for

    SELECT

    case if ac.c015 is not null then

    apex_util.prepare_url ('f? p = & APP_ID.:4: & SESSION.: &. DEBUG: P4_PARCEL_ID:' | ac.c001) LINK_URL (add on the image and appeal of javascript...?)

    on the other

    null

    end LINK_URL

    Of...

    Thank you

    Andy

    Hi Andy,.

    It works for me, it will help to prepare the good instruction box with pictures and without images

    Select 'Remove from cart' of the double

    -Sunil Bhatia

  • I'm on the 4.1.1.00.23 Apex vesion. I've created a classic report and I am trying to sort. Here's how I'm trying to sort by column name. I have TotPGPV with sorting sequence 1 desc and NewTOTPGPV with sorting sequence 2 desc. I have Count1, Count5 with t

    I'm on version 4.1.1.00.23 of the APEX. I've created a classic report and I am trying to sort. Here's how I'm trying to sort by column name. I have TotPGPV with sorting sequence 1 desc and NewTOTPGPV with sorting sequence 2 desc. I have Count1, Count5 with the sort column. What I'm asking is when the report is run can column sorting to default Count1 and Count5 descending instead of the ascendant. I don't see anywhere to set the default value for the sort column.

    Hi - on the report of the page attributes - that you show in your attached screenshot - you can select the columns to sort on the sort sequence as well as the direction of the sort, i.e. for a given column, you can choose to allow sorting on this column, what position this column must be in the sort sequence and whether to sort Ascending or descending by default (i.e. '1' means sort this column first and bottom-up and "1 desc") sort this column first and downhill). Don't forget that once you click on one of the headings of column during execution, it changes your sort settings and these settings are stored in your preferences, that is, they are used again the next time you log in your application and rerun the report.

    Kind regards
    Marc

  • Sort a hyperlink column in the classic report

    4.2.1

    THM2:

    Hi I have a classic report with a hyperlink column. And I need enable sorting on this. What I did is

    Select '< a href = "somelink" >' | party_name | "< /a > ' party_name party_name table.

    However, I just need to show the hyperlink column in the report. Couple of questions

    1. How can I create party_name-based sorting logic using the updated classic sorting standard? Given that all a hyperlink names begin with < - sorting is random. I added the second party_name column an active by default sort on it, but given that the column can not be shown, is not a good way.

    2. I was wondering if there is another way to sort this classic report hyperlink column as shown in the hyperlink and sorting is enabled on the report?

    Thank you!

    ryansun wrote:

    Hi Fac586 - Yes, the requirements are not of the same report. We have several pages with the same type of aspect, however, some of them have a different feature. In this case, Yes, I too simplified it so that easier to understand. I use the hyperlinks on query sql rather that the link of the column is because we have about 5 unions in this query from different sources and each of those interviewing him, having a hypertext link and additional formatting like "BOLD", color etc, under certain conditions. Query1 will return only the party_name, the second query United would have hypertext links, the third would fat etc. The union of the request is not made to take into account this feature, but because of the nature of the data.  While the apex feature works very well, the only question I hit is the hyperlink column sorting in a classic report. Where the simplified question. Individual responses, I've had have been very useful and have been applied successfully.

    In this case, the request for a classic report that has column link, how to sort would work it would be on a regular character column.

    Option 1 (deeply inelegant): Generate an HTML comment containing the sort at the beginning of the column value. The value must be sortable using the character comparison semantics, so dates must follow the format YYYYMMDD, numbers padded to the same length with zeros etc: Re: problem with the Date command

    Option 2A: Expand the Expression HTML technique described in your previous thread (marking dynamically of columns in a "BOLD" for the highest value report) to include the tags.

    Option 2b: Use the HTML Expression technique described in the previous thread to include custom data attributes and use these to add links to dynamic actions.

    If this is done on several pages, and then create a view all the necessary logic and the columns which you can keep it in one place.

  • Custom classic report sorting of columns

    I have a classic report in version 4.2.5 which displays the following values in a column:

    9 (4)

    33 (17)

    When I click on the column header and make a descending sort of the 9 just before the 33 because it deals is a string.  JQuery Data Tables can correctly sort numbers with $, (, commas, etc...)  Do the same with a classic report of APEX is anyway?

    https://DataTables.NET/examples/basic_init/table_sorting.html

    Please update your forum profile with a real handle instead of 'user10730448 '.

    See Re: form/sort issue report

  • Highlight the line in the classic report

    Hi all. Is it possible to highlight only one row after the click of the mouse in a classic report? Perhaps with the help of JavaScript (or jQuery). Version of the APEX - 4.1.x

    view Denes Kubicek ApEx BLOG: line highlight selected to highlight a current row of the report

    See also Notes on Oracle: APEX: select a record in the report - with dynamic Action

    Can solve your problem.

    Leave.

  • Select row column in classic report default beat all

    Hello

    Based on my previous thread how can I do the same task in classic report.

    I followed your previous link to all select and clear the all check box.

    even he just not all checked when the page loads.

    Please help with this too.

    Hi Maxence,

    CORINE wrote:

    Hello

    Based on my previous thread how can I do the same task in classic report.

    I followed your previous link to all select and clear the all check box.

    even he just not all checked when the page loads.

    Please help with this too.

    The answer lies in the previous thread: Select the row column in report default heartbeat intractive all

    I hope this helps!

    Kind regards

    Kiran

  • Set the size of the image in an interactive report


    Hello

    I'm under APEX 4.1 on Oracle 11 g.  I'm trying to resize images in the infrared or a classic report to 100px x 100px.  The images are different, but all dimensions bigger than the size I want to display.  The images are stored images as.jpg, and I need to access it via a URL.  I have this in my select statement: "< img src =https://aaa.bbbbb.edu:10056/inbpics/' |" ' " I00 | substr (spriden_id, 5, 5) | '. JPG > ' pic and it tries to display the image, but it displays the image at its original size.  I try to add the values for height and width in the query, as: "< img src =https://rand.wvnet.edu:10056/inbpics/' |" ' " I00 | substr (spriden_id, 5, 5) | '. Height JPG width 100 = 100 = > ' pic but the image is not displayed because it adds height = 100 at the end of the path to the image.

    I know I could create thumbnails of images, but there are thousands of images with more added constantly, and it would be too much work to try to catch up.

    Is there a way to set the height and width of an image in a report?

    Thank you

    Bob

    Hello

    Modify your query to include 'class' for images.

    'https://aaa.bbbbb.edu:10056 / inbpics /' | 'I00 ' | substr (spriden_id, 5, 5) | '. JPG > '

    Now put after the CSS in the HTML Page header or page footer.

    Kind regards

    Hari

  • Classic report, query does not work

    Hello

    I have a query that allows to choose from a table manufacturing exists in the other. It works in another query editor. But not in the Apex or in classic report page.

    SELECT q.user_name, COUNT (*) say
    OF kom_qabz.kom_qabz q
    WHERE q.amount IS NOT NULL
    AND THERE ARE
    (SELECT 1
    FROM: kom_qabz.kom_qabz_history
    WHERE h.copy_time > = TO_DATE ('20120803', 'YYYYMMDD') - 1
    AND h.copy_time < TO_DATE ('20120803', 'YYYYMMDD')
    AND h.qabz_number = q.qabz_number
    AND h.seriya_id = q.seriya_id)
    GROUP BY q.user_name

    Is there any problem?

    Hello

    Has received the kom_qabz schema for the workspace of the application when you generate the report?

    See you soon,.

  • Report not initially sorted as defined by the ratio of the attributes 'sort Sequence.

    I have a region of relation of Type SQL query and the Source ' SELECT * < TABLE > "where < table > has a primary key of a sequence. Under report attributes, I report column "ST_NM" with show and checked sorting and having a sort sequence of '1 '. I guess it's to set the iniital display sequence, but no matter, state lines appear in the primary key order initially.

    To try it: http://apex.oracle.com/pls/apex/f?p=21997:2 with Dever/Ima9Dever

    (1) how to set the initial to be other than the primary key sequence display sequence?

    [Note: it seems to work (any?) of the time in our application 4.1]

    Thank you
    Howard

    I thought this would be easy!

    Howard (DBA in training) wrote:
    I have a region in relation to the SQL Type of query and the Source ' SELECT * FROM '.

    'where '.
    has a primary key of a sequence. Under report attributes, I report column "ST_NM" with show and checked sorting and having a sort sequence of '1 '. I guess it's to set the iniital display sequence, but no matter, state lines appear in the primary key order initially.

    To try it: http://apex.oracle.com/pls/apex/f?p=21997:2 with Dever/Ima9Dever

    (1) how to set the initial to be other than the primary key sequence display sequence?

    [Note: it seems to work (any?) of the time in our application 4.1]

    Standard reports store sort columns with persistence in the sessions in the Preferences of the user. It is likely that Dever user has at some point clicked to sort on the column PK and created a persistent preference. Try it with a new user who has never seen before the page...

    See + {: identifier of the thread = 2433320} + to learn more about this, including how reset it.

  • Default sort of the classic report does not seem to work

    4.2.1

    THM 2

    I have a classic report consisting of an underlying sql with 3 unions. The columns include a party_name (varchar) and two numeric fields.

    for example only select total_cost, cost_to_company, party_name, apex_item.checkbox2(1,party_id)

    (

    Select a.party_id, a.party_name party_name, a.cost_to_company, table a.total_cost when certain conditions

    Union

    Select a.party_id, a.party_name party_name, a.cost_to_company, table a.total_cost when certain conditions

    Union

    Select a.party_id, a.party_name party_name, a.cost_to_company, table a.total_cost when certain conditions

    )

    In our real-world scenario, these three applications are on different tables and different even if some elements are all the same (including the type of data, etc.), where the union

    Because I need activate sorting using the report attributes. I put the tri reporting attributes such as 1 - total_cost desc, 2 - Party_name growing.

    However, when we run the report, if the total_cost for different parts is 0, the sorting should be based on party_name. That does not seem to happen. It still sorts out randomly. I'm wonderingm if it's because there are trade unions and no order of in the query.

    No idea how to solve this problem?

    Nothing to do with unions.

    It looks like it is connected to your thread previous marking dynamically of columns in a "BOLD" for the highest value report. Is it? If so, where are the links generated to conditionally and other HTML elements? They are more likely to cause sorting problems. Instead of posting question after question about one aspect of the problem after another, you get a solution much faster together by creating an example on apex.oracle.com and specifying the complete requirements.

Maybe you are looking for