Sort by columns once per session

Hi there, I am using apex 3.1 and I have a report generated by a pl/sql function. There are several columns on which the user might sort. Is it possible to reset the sorting preferences when the user logs in? (like: a process running once per session?)
thx in advance
Edited by: 814932 on 23-Nov-2010 08:00

You can use the <tt>apex_util.remove_sort_preferences</tt> method (although it is a bit of a blunt instrument). See the Admin guide for more information on user preferences.
To run it once per session, code the call as an Application Process with execution point On New Session After Authentication.

Similar Messages

  • Public and Authenticated App with Authorization Scheme once per session

    I have a question . . .
    Let's say I have an application and at the application level I have an authorization scheme (auth1). If auth1 is set up to evaluate once per session, does it authenticate for the public user, then pass me back to the page and then check then evaluate the auth1 scheme. Or does it evaluate the auth1 scheme, then log in, then return to the page. Is it the same regardless of authentication scheme (e.g. Oracle SSO).
    It may make a big difference. If the authorization sheme is based upon the user (most will be) then setting it to evaluate once per session can be a real problem. If it evaluates before the user logs in, then it won't really work.
    This is an even bigger question when the application does not have a authorization scheme at the application level and allows public pages. If a page that is not public has an authorization scheme set, and the user goes directly to that page, it seems to authenticate the authorization scheme and then logs you in, but does not re-evaluate authorization scheme after you are logged in. Is this accurate? I realize that I could set it up to evaluate for every page view, but I really only need it once after login.
    Is this clear?

    Anton,
    It seems that all authorization schemes that are set to evaluate once per session are evaluated with the beginning establishment of a session.Sort of correct. Authorization schemes don't get evaluated until the component that uses them is considered for rendering or processing. So if the authorization scheme is attached to a page, it won't fire until the page is requested. If another component uses that scheme first, the evaluation will happen then and will not happen again during the session.
    What if I have another page that is not public. If it is the first page I go to, what happens. Obviously, I get redirected to login, then login. Do the authorization schemes get evaluated at this point?Yes, assuming the authorization scheme is used by the page, the scheme is evaluated during the first rendering or processing of the page in the session, after the authentication step.
    Now, what if I have a page that is public, but also has an auth scheme (odd, but could happen). Now what happens, does the auth scheme get evaluated before or after login?During the rendering or processing of the page after the authentication step. For a public page, the authentication step is performed up to the point where it determines that no authentication is required.
    OK, now let's add in Application level auth scheme. I can have public or private pages. If I go to a private page, when does the app level auth scheme kick in? How about for a public page?When an application uses an authorization scheme, it gets evaluated before the authorization scheme (if any) for the page that is being requested, so the public/private property of the page doesn't matter.
    General advice: when an authorization scheme uses :APP_USER, it doesn't work well to have it fire once per session because it'll get run before authentication to the application occurs, which sets APP_USER. You can have such schemes fire once per page view and for PL/SQL function-type schemes, have them give a "pass" when the current page is the login page, that kind of thing.
    In addition, if the overhead of running a scheme is high, one can set an application-level item to indicate that a once-per-page scheme has already run satisfactorily. The PL/SQL-type schemes can access the value of such an item to skip the expensive part of the evaluation and return true immediately.
    Finally, the htmldb_application.reset_security_check API can be called in order to reset the "fired" status of all authorization schemes in the session, allowing them to be re-evaluated if/when they are encountered again in the session.
    Hope this helps,
    Scott

  • Once per session, connected anyway

    I have an authentication scheme that is set to once per session. The users are defined in oid and have to logon using sso.
    So far so good. But in following scenario it goes wrong.
    1. User enters the htmldb url
    2. User gets the logon screen from sso
    3. User logs in and is than forwarded to the application where the authorisation scheme says him he has no access and he is redirected to a public page that tells him this.
    4. the user presses the 'Back' key on the browser, so he gets the login screen again.
    5. he enters again his username and password, and enters.
    -> now he is logged in and gets the screen he is not allowed to.
    What goes wrong here? Why does the session not remember that this user has no access ?
    Grtz,
    Chris.

    Scott,
    The solution of htmldb_util.reset_authorizations works fine. But in the end we choose another option.
    We are using the error page now to display wether the user has no access to the application. It looks like the user has access to the error pag even if he has no access to any of the application pages. Now it works fine.
    Now the authorization also returns false.
    Tnx for the replies,
    Chris.

  • Dreamweaver CS4 on Win7x64 only starts once per session

    Hello.
    I use DW only occasionally so I didn't notice that whenever I exit DW I am unable to restart it during the same windows session.  If I try to open it a second time, nothing happens.  However, if I log off as a windows user and then log back in, I can run DW again (but only once).
    Does anyone else have this problem on windows 7 64 bit ?  Is there a work around ?
    If it matters, my version is 10.0 build 4117.

    Ok.  While trolling thru other posts, someone asked about using different compatibility settings.
    So, ..... I right clicked my desktop icon to start Dreamweaver and selected Troubleshoot compatibility.
    During the windows wizard that runs, I eventually established the successful compatibility settings "Compatibility mode: Windows Vista Service Pack 2"  and "User Account Control: run as Administrator".
    After saving these settings, I am now able to run DW multiple times without any problems.
    I will be interested to see if I do not experience the other Windows 7 problems I see in the forum postings.
    Compatibility settings may be a way to avoid these issues.

  • With a document open password - is there a way to ask only once per session?

    Here's my scenario:  User is reading a "password to open" document that contains links to other web pages, etc.  The user clicks on a link, goes to the new page, then uses the back button/back key to return to the password protected document, where they must type in the password to open again, and must do this every time they click a link then later attempt to return to the document. 
    Is there a way around the repeated retyping / reentering / rekeying the password?  (My guess is no, but I'll ask anyway).  The user did type in their password, most of the time just a minute or two earlier, before they clicked on the link in the password protected document. 
    P.S. I have a couple other questions, indirectly related (byproducts) to this general topic.  I'll post those in their appropriate forum, then edit this post with links to those posts.  FYI, the other posts are/will be:
    Is there a better way than manually adjusting each and every link in a document to use javascript and repeating that process each time the document is updated, to make links open in new windows, (when viewing a pdf from within a browser window).  [Edit:  here's that link:  http://forums.adobe.com/message/5055202#5055202 ]
    Is there a way from an html page or from something within a PDF document (at the discretion of the document's author) to open a pdf in the acrobat reader window instead of in the browser, without asking each user to change their reader settings?  [Edit:  I ended up asking this question in the same post listed above]

    Once the instance of Acrobat or Reader containing a password-protected PDF file has been closed, you can't avoid having to re-enter the password. If the links don't target a new tab or window, then the browser will unload the plugin - and aside from changing all the link targets, you can't prevent that.

  • Browser does not seem to prompt for more than once per session, to accept untrusted sites. I have to close/open firefox to visit multiple untrusted sites in one sitting. Is there a way to fix?

    I use firefox to connect to the console of different Sun/Oracle servers. The www pages are "untrusted" and I get a question to continue to connect or not. When I say continue, it pops up a window to either accept or deny the cert. This window, once I accept it, to continue to do my work. When I'm finished with that server and continue to another one, that window no longer pops up for me when another untrusted www page is loaded. But when I quit firefox, and then revisit the page, the dialogue pops up and I can accept the new cert and continue to work.
    I'm considering going back to the older version of firefox as this is severely impacting my day to day use of it. I'm still trying to see if I can get around it by fiddling with different firefox options.

    Thanks. I tested it, and found that I can create a bookmark in FolderA, and them manually copy it to FolderB, FolderC, and FolderD.
    Once that is done, I tried the old method of "Bookmarks" --> "Bookmark This Page" and added it to FolderE. When I did that, it deleted the copy in FolderD but left the other three alone!
    This is fine with me. I personally think this is a bug, because I don't think that Firefox should ever delete a bookmark without asking me (or at least, informing me). But now that I understand the algorithm, I can work around it. Thanks!

  • PCMICA Media Card Reader only mounts once per session

    After I restart and insert my PCMICA media card reader will show up on the desktop but only once. After I eject the card and reinstall it will not show up on the desktop. The card appears in the menu bar but no where else not on the desktop or in a finder sidebar. It acts like it is permanently ejected. The only solution is to restart which is time consuming during a photo-shoot (Sleep/Wake and Finder Relaunch do not solve this). I have two media card readers one for CF cards and a 4in1 for smaller cards. Both act in the same way and once one has been ejected the other wont mount as well. Both cards worked fine in system 10.3.9. System log does not show any difference in loading when it mounts and when it doesn't.

    Well, I tried the hardware test and now we know it is a software problem(hardware checks out fine).
    I checked out the Delkin website. That was disappointing. Looks like I need to buy more hardware to solve this one. Worse yet if I spend the $100 for two cards they wont work in my next laptop as I plan to get a MacBook as soon as PhotoShop is Intel ready.
    So now the question is what do I do with this growing mountain of unusable peripherals. My business is small but we've bought a lot of macs. Close to 50 now. We had a few before Y2K and just before we replace all the PCs with iMacs and G4's. System 8.6 was great and every printer and reader and camera and scanner and external storage device (some going back to 1989) worked great. Now that we have "upgraded" the software so we can do really complicated things like properly viewing web pages and send authorized email nothing works right. I have faxes (Apple 56k in a G4) that can't detect detect dial tone when faxing but can connect to the internet as a modem. Printers that print fine in TextEdit (PS fonts and all) but can't print out of Excel. Dont even get me started about fonts. The list keeps growing and the only answer I hear is to replace perfectly good hardware with new stuff. Then when I do I find the software wont work. (I had to use a old laptop with 10.3 to run the latest software from Version to set up a friends home DSL.) I need to get out of this loop it is costing more than it's worth.

  • Applet load once per session

    Hello All,
    I make a simple application has only 2 jsf pages(page1.jsp and page2.jsp) and I make a page template.
    in page template I put an applet as chatting applet. when I run page1.jsp the page is open and I found the applet but when I navigate to page2.jsp applet will reload again.
    I want when user open application the applet will load only once. if user navigate between pages I want this applet not reload again.
    How can I make this?
    I use JDeveloper 11.1.1.4.0
    Regards,

    Hi,
    Applets are implemented through an Applet tag on a page. If the page loads, an instance of the applet is created. In your case, you dismiss a page and the re-load it again. I am not sure what you are trying to do will work, but you can give partial navigation a try:
    http://docs.oracle.com/cd/E23943_01/web.1111/b31973/ap_config.htm#sthref409
    use onWithForcePPR
    This will perform navigation using an implicit iframe. Chances are that the template doesn't change and the applet thus stays. If this doesn't work then I think you need to work on a new strategy for setting up your chat application
    Frank

  • My rMBP HDMI display cuts out once per session

    I have a rMBP (15 inch) that I use mostly with the lid closed and connected to dual monitors, (both identical ASUS monitors with HDMI and DVI-D connections).  I use the Thunderbolt DVI-D adapter and a HDMI cable.  When either running Windows 7 via Bootcamp or using Mountain Lion, the HDMI connection goes dark for about 3-5 seconds when I first start using the computer, then the picture reappears.  The DVI-D connection is not affected.
    All software updates are current and I've switched monitors and cables to no avail.  Has anyone else encountered this issue?

    Thanks. We are using the same setup the salesman sad he had at home: Mac Mini as media server with TV as monitor. We bought the server, not for the services, rather for the two 500GB drives. We let the default services run when we first set it up. I suppose I could shut everything non-essential down and see what happens.
    I finally isolated the problem to today to either the HDMI cable, the miniDVI-to-HDMI adapter, or the Mac Mini itself. I would love for it to be just the adapter. Funny thing is the guy who sold us the system didn't know an adapter came with it so he sold us another one--which we promptly took back. Blergh!
    This was supposed to be an easy migration. Imagine the naivete!
    -starkravingchad

  • Start systemd --user once after first login, not per session?

    Hey guys,
    So I've been toying around with using systemd to manage user daemons and some oneshot processes, it seems like it could be really nice
    Here's what I'm thinking I would like to do:
    I would have two user targets, `console.target` and `graphical.target`.
    The console target will start things like pulseaudio, ssh-agent (envoy), transmission, stuff like that.
    The graphical target will start xorg and then other things like the WM, set the wallpaper.. you get the idea. Obviously the graphical target will want the console target.
    Now, the part I wanted to get some feedback on is this: I would like a systemd --user instance to only be started once after my first login, not once per session.
    So for example, I login from vt1 and it brings systemd --user up to the graphical.target. Then if I later SSH in from somewhere, it won't start a new systemd --user session (Ie, won't start pulse-audio, transmission-daemon, etc).
    However, if I haven't logged into my machine yet and I SSH in, it will start up systemd --user and will start the console.target. If I then later login via vt1 it will see that there's already a systemd --user session started and start the graphical.target
    Does this make sense? Is it a bad idea?

    You could make a column in the database, and when the
    information is set (emailed) make the value to be 0, then when they
    first register use a IF recodset("column_name") = 0 Then
    reponse.redirect("filloutpage.asp") end if, then when they fill out
    the info have a hidden form field thats updates the value to 1. on
    the login page after the first if make another IF
    recordset("column_name") = 1 Then response.redirect("index.asp")
    end if.
    i have forms that have three different redirect based on user
    input, and you could do the same thing you could add the one for
    the first time to dw made code, here is an example, you could
    change the request.form to a recordset value and it will work.
    If Request.Form("select") = "Self" Then
    MM_editRedirectUrl = "FridaySchedule.asp"
    Response.Redirect(MM_editRedirectUrl)
    End IF
    If Session("MM_AdminEdit") = "True" Then
    MM_editRedirectUrl = "FridayScheduleAdmin.asp"
    Response.Redirect(MM_editRedirectUrl)
    End IF
    MM_editRedirectUrl = "FridayScheduleDept.asp"
    If (Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0)
    Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    Request.QueryString
    End If
    End If
    Response.Redirect(MM_editRedirectUrl)

  • Web service request ....one db connection per session OR all share one...

    in servlet i use
    public void init(ServletConfig config) throws ServletException { }
    so it only gets the db connection once per session
    now that I am working on a web service....im not sure how to do something similiar
    I want to either have all request coming in to use the same ONE connection OR maybe one created per session
    I have way too many web service requests and it creates too many jdbc connections....what can i do to pervent this?
    I dont care if they have to wait longer;
    I just want to cut down the number of jdbc connections to 1 to 2
    any help appreciated, thanks

    You want to use a connection pool. If you just use one connection, your web users are likely to be waiting on the availabilty of the connection. A pool will let you set whatever maximum you want; 1 or 100...
    There are a number of database connection pooling options. One of the morepopular is DBCP, part of the Apache project, which is free and open source.
    http://jakarta.apache.org/commons/dbcp/
    There are other such "drop in" poolers and some database vendors are now supplying connection pooling in their drivers.

  • Redirected printers using Remote Desktop Easy Print driver work only once during session

    Hello all
    We are running Windows Server 2012 R2 Remote Desktop Services Sessions hosts with printer redirection allowed using only the Easy Print Driver, we have no other drivers installed on the servers. All client printers are redirected and can print fine, but
    only once per session! We have tested with several different client printers and they all work a single time in each session. After that the user needs to log off and then back on again to be able to print once again, but only once. Needless to say, our users
    are annoyed. If I look at the c:\windows\system32\spool\printers folder while jobs are printing, but failing, I can see the spool files appearing and disappearing as jobs are spooled. No errors in the event logs accompany the behaviour. Our clients are running
    Windows 7, 8 and 8.1. All exhibit the same problem. The error looks a little like what is described here:
    http://support.microsoft.com/kb/2925429
    While similar, this problem describes a scenario where Easy Print is not used, but XPS is, and since Easy Print is based on XPS and the behaviour is very similar, I am tempted to make a connection.
    I have checked all the usual stuff with permissions etc, and no manufacturer provided drivers are present. The problem appears on newly installed systems as well as one that have been running for some time. Restarting the spooler services does not resolve
    the problem. Actually I do not think it is related to the spooler service or driver framework at all, but rather is an Easy Print driver issue that is occurring much later in the process, if not I would see some errors in the logs and no jobs would print at
    all.
    Anyone ever heard of something like this?
    Thanks
    Morgan

    Hi Morgan,
    Based from your description, users can only print once during single RDP session, I suggest you check if this issue also happens locally.
    In addition, after the first print attempt, does any other issue exist on the RDP session?
    Is the server fully patched? If there are any available driver updates, please also apply them. If there are any third party software installed, try disable/uninstall them to see if the issue persists.
    You can also enable print auditing to get more detailed information about this issue.
    More information for you:
    Auditing Printing Events
    https://technet.microsoft.com/en-us/library/cc976774.aspx
    Logging Spooler Events
    https://technet.microsoft.com/en-us/library/cc976746.aspx
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • Display column titles only once per page

    Hello,
    I am a newbie to BIP (R12.1.3). Below is how the output data shows up in my custom template:
    Vendor type lookup : Expense
    Vendor no: A12345 Vendor Name: Test Vendor1 Vendor Category: Expense - Construction
    VENDOR SITE INVOICE# INVOICE DATE DUE DATE INVCT AMT REM AMT PAYMENT METHOD
    ======== ====== ========= ====== ====== ====== ============
    Kannapolis A#12345 03-MAR-12 15-MAR-12 1000.00 1000.00 Check
    Vendor no: B12345 Vendor Name: Test Vendor2 Vendor Category: Expense - Rents
    VENDOR SITE INVOICE# INVOICE DATE DUE DATE INVCT AMT REM AMT PAYMENT METHOD
    ======== ====== ========= ====== ====== ====== ============
    Test Site B#12345 03-MAR-12 15-MAR-12 1500.00 1500.00 EFT
    The column titles repeat for each vendor since the titles are in the for-each loop under the vendor grouping. However, is there a way to restrict the titles to show up only once per page on all the pages? I tried putting the titles outside the vendor grouping but with in the vendor type lookup grouping. It is displaying the titles only on page1.
    Thanks,
    Monkey

    Hi, could you try Inserting the code <?if:position()=1?> before the header of your template and the code <?end if?> after the header of your template.
    See the a sample code below:
    <?if:position()=1?>
    VENDOR SITE INVOICE# INVOICE DATE DUE DATE INVCT AMT REM AMT PAYMENT METHOD
    <?end if?>
    Thanks,
    mr_bip_learner

  • HT201303 How can I set up iTunes billing so that I get billed ONCE per download session rather than for EACH download I purchase?

    It's annoying getting seven, eight, ten, twenty direct billings from my bank account when I'd prefer a single one per session. Maybe this isn't possible to do, but it never hurts to ask!

    Contact Apple through iTunes Store Support

  • Is there any way to do a mass copy and paste of song titles from the "name" column to the "sort name" column? I know it can be done with individual titles but I have over 6,000 titles in my library.

    In iTunes, is there any way to do a mass copy and paste of song titles from the "name" column to the "sort name" column? I know it can be done with individual titles but I have over 6,000 titles in my library.

    Thank you. I have heard of Logic Pro 7, but I have never personally used it. I'm still growing in the world of Composition, and I know that it is something I will be studying in one of my Computer Music classes coming up for my degree. I think it is something I will look into getting once I can justify the price of it. I guess for the time being, I will continue to play and grow in my ability to use and take advantage of GB, and then see what I can do about or with Logic Pro when I'm ready. The thought of spending $1000 for a program is hard to bite, because I've already spent a lot to produce my music, not only electronic music, but also chamber music and so on. I had no idea it would be so expensive to dive deep into the world of composition! lol.
    Finale 2007: $500
    Sibelius 4: $500
    Jam Packs: $400
    Midi Keyboard Interface: $100
    PowerBook: $1700
    Printer for printing scores and analysis: $150
    Logic Pro 7: Oy!
    As you can see it adds up very quickly...that doesn't even include my personal instruments and study materials.
    Thank you for your input, as I haven't really worked much with LP, and therefore didn't know which features are available. I will talk with some of my Composition buddies, and professors and see what they have to say as well, and who knows, I may be able to get the express version through one of them.

Maybe you are looking for