10g: reset sortcriteria on table when page is opened

I have a master page and a detail page, and in the detail page the user is allowed to sort the table. When in the master page a new master is chosen the data for the detail page is changed, and sometimes the column that was sorted by is not even shown anymore (because the values will be empty for this particular master), but the table is still sorted according to the user's choice, and the sorting now looks random.
I want to remove the sorting criteria, and sort according to the order by clause that was specified in the view object, and I want to do this when the page is opened.
How?
Wendy

I was able to control sorting criteria in one of my apps by adding the following to the beforePhase() method override in a PhaseListener that I added to the app via the faces-config.xml file:
            if (arg0.getPhaseId() == PhaseId.INVOKE_APPLICATION) {
                //  set default sort to priority column on af:table.
                String lCurrentPage = FacesContext.getCurrentInstance().getViewRoot().getViewId();
                if ("/app/mypage.jsp".equals(lCurrentPage)) {
                    CoreTable myTable = (CoreTable)EL.get("#{MyBackingBean.MyTable}");
                    List<SortCriterion> lDefaultSortList = new ArrayList<SortCriterion>();
                    lDefaultSortList.add(new SortCriterion("MyVOAttrName", true));
                    myTable .setSortCriteria(lDefaultSortList);
            }It's not EXACTLY what you are looking for, but studying it might get you closer to where you want to be.

Similar Messages

  • I started setting up a web page with iWeb. Auto play box is checked, but music will not play when page is opened.

    I started setting up a web page with IWeb.
    Several proplems so far:
    1) Auto Play box checked for music, but music does not start when page is opened.
    2) Can't get Quicktime "start/stop" slide to start and finish a section within a long piece of music (classical for example).  How does one work the slide bar to do this?

    Yes the audio file plays on the iWeb page when I click the play button.  I even made sure it played both without the “little boxes” that surround the icon (don’t know the technical name for those), and when I click the music icon without the little boxes.
    I did note that the iTunes window that appears when I open the Inspector is not highlighted until I click the music icon and those little boxes appear.  Then the Start/Stop, Auto Play,  Loop, and Show Movie Controller are highlighted —  and work properly.
    One other thing.  I see that the iWeb icon I am working from says “Domain copy.sites2.”  Does that have a bearing on anything?

  • Have numerous labels with designed borders as background to add name/ subject etc. "New" Pages only loads the names and seems to destroy all the designs when page is opened. Not happy!

    Have numerous (Avery A4 page format) pages of labels with designed borders as background  to add name/ subject (English - Mathematics etc)
    "New" Pages only loads the names and seems to destroy all background border designs when page is opened.
    The borders of each label show in thumbprint but when opened the border has gone. When the page is closed the borders no longer show in the thumbpint.
    When earlier version of Pages is selected to open the labels it says latest version of Pages is needed!
    What a mess up, it seems to be all too clever!!
    Not happy!

    That is what the App Store reviews and ratings are for.
    Let other potential "upgraders" know.
    Meanwhile use Pages '09 which should still be in your Applications/iWork folder.
    Peter

  • Transaction details is not showing when page is opened from alert mail

    Dear all,
    Hope you are well enough.
    I am facing a problem that i have a search page and after searching i am opening the details page.
    There are many region for different type of data and all are showing accurately.
    But the problem is that i am also opening this DetailsPG.xml from workflow mail where a link is give of that particular transaction.
    When the page is opened then all sections are showing the data correctly except one region.
    But i have done the following task in ProcessRequest() method
    1.Get the transaction id.
    2.Execute the view for that particular transaction.
    3.Correctly mapped the attributes.
    Is there any checking needed that from which responsibility the page is opening?

    You need to have a JFrame to add your components to.
    For example, make your class extend JFrame and set your main panel the ContentPane (assuming that all your components have been added to this panel).
    public class SimpleSender extends JFRame {
    this.setContentPane(JPanel1);
    this.setVisible(true);
    }

  • Download link results in empty worksheet when page is opened

    Hi,
    Sometimes when a report page is opened, the download (.csv) link results in an empty excel worksheet. Users have to submit the page and then the data is downloaded. Why does it happen?
    Thanks.
    Andy

    See this explanation of the problem:
    http://apex.oracle.com/pls/otn/f?p=31517:117
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Content does not display when page first opened

    Hi All;
    I have a contenta are/region which I have divided into multiple tabbed areas. I have two main tabs that divide the content into two major topics. Within each of these main areas I have added 4 to five tabs. One set for example holds a calendar, another tab a news release area and a third a content area for holding multiple folders of a department's documentation. The problem I am encountering is that when I first bring up the page all I see are the tabs and no matter what tab area is exposed the content within it is not displayed. For example, I start with the Calendar tab active (the calendar does not display). I then click on to say the document area, which displays all of its content's correctly. When I return to the calendar tab the calendar is displayed. My question... how can I ensure that the calendar (or any other tabbed area's content is displayed when the user first brings up the page?
    PS. This is a hot topic since I will be demoing my pages to my managers next week in an effort to convince them that Oracle Portal is the way to go.

    When I email the page to our server, the href links are missing.
    You email the page to the server?  What does that mean?
    MaureenHayslett wrote:
    I am using CS3 on Mac OS 10.6. The page previews perfectly in Safari. When I email the page to our server, the href links are missing. For example, the banner doesn't use the correct font, and the background color the the whole page is missing. Please go to http://www.crhcarchives.org/links.html
    All of the other pages on the website look correct. Thank you.
    Look at the source on that page.  There is virtually no styling on it....
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
    <style type="text/css">
    <!--
    .style16
         {font-size:14px}
    -->
    </style>
    </head>
    There is nothing telling the page which fonts to use, or which colors to use.  Are you sure you have uploaded the correct page?

  • CSS delay when page is opened

    I have set up a site with an external style sheet, my client
    is complaining about the split second when the page is viewed
    before the style sheet kicks in, (an un-styled webpage) . Does
    anyone know a way around this? They are demanding it to be amended,
    I really don't know what else to say to them!!! Please help!
    Anyone!

    .oO(sarah booth)
    >I have set up a site with an external style sheet, my
    client is complaining
    >about the split second when the page is viewed before the
    style sheet kicks in,
    >(an un-styled webpage) . Does anyone know a way around
    this? They are demanding
    >it to be amended, I really don't know what else to say to
    them!!! Please help!
    Doesn't matter. Say that this is a quite usual thing in the
    WWW and that
    the users don't really care about it, so why bother?
    There are many things that you simply can't control, for
    example the
    order in which requested external resources like images and
    stylesheets
    finally arrive in the browser. If the CSS comes somewhat
    delayed, the
    browser might already render the naked HTML in order to show
    something
    to the user, which is a good thing. The same happens with
    images. You
    can't expect a browser and the users to wait until the entire
    page with
    all included resources has been completely downloaded before
    it is
    rendered.
    So instead of trying to fix non-existing problems, focus on
    the really
    important stuff like usable, accessible content and
    appropriate markup,
    because these are the things that _do_ matter.
    Micha

  • A" to view warnings click or open a document "box cant be moved when pages are open

    This box has suddenly appeared and I cannot move it will get rid of it when I open Pages,
    It just comes with a warning;- to view mornings click or open a document?
    Any ideas thank you

    The same started happening with me today. It happens on opening Pages, so not a dialog box anywhere else as nothing is opening. I can go on to open a blank document, but the diaglog box is still on the top of the document, new message is "There are no warnings for this document", but I still can't get rid of the box

  • I need help with resetting my ichat. When i try to login now it wont let me... it says "AOL Instant Messenger password" and then "iChat can't log in to ... because your login ID or password is incorrect. How do I reset this if I cant log in?

    I need help with resetting my ichat. When i try to login now it wont let me... it says "AOL Instant Messenger password" and then "iChat can't log in to ... because your login ID or password is incorrect. How do I reset this if I cant log in? When I try to press online the same thing pops up and I have no way of logging in or asking for help.

    Hi,
    iChat (it would help to know which version) can accept Apple IDs as valid AIM Screen Names.
    However if you have iChat 5 or earlier you cannot use ones ending in @me.com or @icloud.com issued by iCloud. (they can be used in iChat 6 or Messages as these versions make a double login to AIM and Apple to allow the use of the password).
    In addition if you are using an Apple ID for an AIM Screen Name the password still needs to keep to the 16 character limit that AIM has.
    AN @mac.com name can be used on any version of iChat  (Until the 30th June 2014)
    As it does not need a double check with Apple you can use it to log in to the AIM Web pages
    Login here with an AIM Name registered at AIM or and @mac.com name and see if you get any suspended account messages.
    Sometimes account can be suspended. Usually because something has triggered the "Unusual Activity" item.
    About a year ago many @mac.com users that travelled out of their own country found themselves suspended when they got home.
    If the Name checks out of if an Apple ID the password in known to be 16 characters or Less then do this:-
    In Lion upwards open a Finder Window and use the Go Menu whilst holding down the ALT key.
    Select the Library that appears in the menu list.
    Navigate to Preferences.
    (If you have version earlier than Lion the just navigate to ~/Library/Preferences (that's the Library in you Home - Little House icon - folder)
    Fnd com.apple.ichat.aim.plist (even if you are using Messages)
    Drag the file to the Trash and Restart the app.
    7:39 pm      Thursday; May 29, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • When trying to open a link in the page I am on and open it in a new Tab the browser stops responding.

    I open the browser and the Hime Page opens as expected. When I open a link to an item or article on the page in a new Tab Firefox stops responding and thye top line on the screen shows that to be the case. The only way to resolve the issue is to exit or close Firefox and start again. This has just started yesterday (Oct 12) as before that the process worked fine.
    When I open a new Tab and then type in a new web site it will open and allow access with no problem, provided I have not open a link as outlined in the first paragraph. I can open several tabs in this manner and Firefox works as expected. But if I try to link from any page and open in a new Tab i get the "not responding" situation again.
    After closing Firefox so I can restart it, the browser will open but the first screen will be a blank tab rather than my home page. I can open web sites and Firefox proceeds as expected as long as I do not try to open a link from within the page in a new Tab. I get the same "Not responding" situation.
    If I immediately close Firefox after it opens without my homepage and then restart it then my home page will open as expected.
    I have not made any changes to programs or setups in Firefox or on my computer in the immediate time before the problem started.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • SkillBuilders Modal Page not opening when click edit link in a Manual Tabul

    Hello,
    This thread is related to a recent thread I created (Column Link is not working on a Manual Tabular Form I am using Apex 4.1.1.00.27, Oracle DB 10.2.0.5.0.
    In summary, I have a collection that retrieves the information from the EMP table, a manual tabular form based on that collection, and a link in the DEPTNO field that branch to another page with a Form based on the DEPT table.
    What I want to accomplish is to call the DEPT Form as a modal page that opens from my EMP Page.
    What I did so far:
    1. DEPT Page uses the popup template and branch to itself.
    2. The Link Attribute of the Link Column (DEPTNO) is set to: onclick= *"return false;"*
    3. I created a DA using jQuery Selector: *td[headers="LINK"] a*. Action: SkillBuilders Modal Page plug-in. URL Location: Attribute of Triggering Element. Attribute Name: href. Event Scope: live (Dynamic in Apex 4.2).
    4. Changed the Application Security to Allow Embed in Frames.
    My problem is that when I click the DEPTNO column, is it not opening the Modal Page.
    I created an example on apex.oracle.com in case some of you want to look into it:
    Workspace: EDIAZJORGE
    Username: test
    Password: test123
    App Name: Sample App
    App Number: 12231
    I appreciate any help.
    Thank you,
    Erick

    You were using a wrong jQuery selector. There are no columns with headers "LINK". Evidently, you want the modal to open through clicking the icon in the "DEPTNO" column, so all that is required is to change the selector to
    td[headers="DEPTNO"] aYou can always easily test your selectors when you use a tool like Firebug. Simply run the selector in the console, and it'll show you all selected object. In your case, executing $('td[headers="LINK"] a') showed nothing. Dropping "a" still gave nothing. At that point i was pretty sure there were no columns with such a header...

  • When I select a "compose email" from my GoDaddy email page, it opens up another whole Foxfire window. I can't seem to have it open into another tab instead.

    When I select a "compose email" from my GoDaddy email web page, it opens up another whole new Foxfire window. I can't seem to have it open into the existing Foxfire window but just another tab instead.

    Firefox diverts most new windows to tabs, but there is an exception when a website uses a script to specify the window's dimensions or removes some toolbars. To remove the exception, you can make a change under the covers. This could be awkward for genuine dialog windows that don't make sense to view in a separate tab, but if you find it more annoying than useful, you can easily switch back.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (3) Confirm that the '''browser.link.open_newwindow''' preference is set to its default value of 3 (divert new windows to a tab instead), or right-click > Reset to get that value
    (4) Double-click the '''browser.link.open_newwindow.restriction''' preference and change the value from 2 to 0 (that's a zero) and click OK
    Any luck?
    For future reference, the possible values for the window/tab preferences are:
    <strong>(A) browser.link.open_newwindow</strong>
    3 = divert new window to a new tab (<u>default</u>) (checked*)
    2 = allow link to open a new window (unchecked*)
    1 = force new window into same tab
    <strong>*</strong> First checkbox in Options &gt; Tabs
    <strong>(B) browser.link.open_newwindow.restriction</strong> - for links in Firefox tabs
    0 = apply the setting under (A) to ALL new windows (even script windows)
    2 = apply the setting under (A) to normal windows, but NOT to script windows with features (<u>default</u>)
    1 = override the setting under (A) and always use new windows
    <strong>(C) browser.link.open_newwindow.override.external</strong> - for links in other programs
    -1 = apply the setting under (A) to external links (<u>default</u>)
    3 = open external links in a <u>new tab</u> in the last active window
    2 = open external links in a <u>new window</u>
    1 = open external links in the <u>last active tab</u> replacing the current page

  • How can i display the values in a table when i press enter

    hi,
    I have three text boxes and a table with three columns in a jsp page.When i keyin some values in the text boxes and press Enter these values should be dispalyed in the three columns of the table.When once again if i key in the text boxes with some other values these values should also be displayed in the table columns in another row.Can it be done.Pls help me.Hoping for a reply.
    Thanks
    Naveen

    hi
    just go through the Code below:
    this helps you but this works in IE only.
    <html>
    <head>
    <script language="javascript">
    <!--
         function show(frm) {
              Show.innerText = frm.desc.value;
         } // closing the function show()
    //-->
    </script>
    </head>
    <form name="testform">
    <textarea name="desc" rows="3" cols="20"></textarea>
    <input type="button" name="buttsub" value="Submit" onClick="javascript:show(this.form)">
    <br>
    <table width="500">
    <tr><td bgcolor="#e6e6e6">
    <div id="Show"> </div>
    </td>
    </tr>
    </table>
    </form>
    </html>
    Cheers
    rambee

  • Ipod shuffle 1GB Re: how to resurrect a dead shuffle? Nov 5, 2008 4:42 AM (in response to Ipod shuffle 1GB) there is no sound cant find in Itunes not in showing in drive's list please tell me how to restore or reset red light showing when try to power on

    Ipod shuffle 1GB
    Re: how to resurrect a dead shuffle? 
    Nov 5, 2008 4:42 AM (in response to Ipod shuffle 1GB)
    there is no sound cant find in Itunes not in showing in drive's list please tell me how to restore or reset red light showing when try to power on or conect with USB....
    If you can plz help to fiX it
    thanx 
    intel pc , Windows 7, core 2 Dule Core

    Here is the answer: go to http://support.apple.com In the search box at the top left type in the number 304996 and hit enter. This will bring you to a page with 4 solutions. Click on solution number 1 and follow the instructions. This should fix it.
    bigdogdan

  • Can tables in Pages 5.5.1 be set up to fit Avery labels?

    Can tables in Pages 5.5.1 be set up to fit Avery labels?  I've tried to adjust the margins and the cells to sizes listed on the package, but I can't get them to fit properly.  Also, when I try to copy information (return address with three lines of data) from one cell to another to fill in the page, the information ends up with one line each in three different cells.  How do I keep it all together?

    I'm sure it can be done in Pages but I find it easier to use the Mac version of Avery Design & Print software which can be downloaded free from http://www.avery.com/avery/en_us/Help-Center/General-Help/Avery-Design--Print.ht m
    It will import information saved in Excel or csv formats which you can do from Numbers or other spreadsheet software.

Maybe you are looking for

  • For all the Mac users...

    If you haven't tried the widget download for album artwork, it is awsome!!!! It automatically finds the artwork in amazon after typing the name. Open iTunes and start the desired album playing, open the widget and search the artist, select the album

  • Capturing multiple elec signatures and processing in PS

    anyone have a cool workflow to capture a bunch of signatures to be later  used in PS for creating a collage of a sports team...each photo will  have the players signature... I'd like to ideally use my ipad to capture  and then move to PS where I can

  • Sleep mode Vs Shutdown

    Do you leave your I Mac on 24/7 or turn it off before going to bed ?

  • CRM 2013: Format and C# code to add attachment

    I have created a very simple custom entity. I want to be able to add attachment to this entity record. Now I have 2 questions 1) What kind of field should I create and  how do make it available in the entity form. 2) What would be the simplest C# cod

  • Mini's firmware file not found when trying to restore   HELP!!!

    i just got my ipod mini serviced today because it was acting funny when it was fully charged or had some battery it would shut down saying no battery power. The guy at the store restored my ipod on his MAC system. I use WINDOWS system and when i trie