Can navigation decision be made programmatically without user clicking?

I am using JDeveloper 10.1.3.4, and have a question about custom page flow -- programmatically forking to one of the pages based on user data.
I have a table that contains a number of columns storing data about users. I created a view object (LoggedInStudent) from this table and overrode the prepareSession() method in the application module.
When a student logs in, the first thing the application does is that the prepareSession() method passes the student's user ID to the LoggedInStudent view object's SQL statement to reduce the view cache to just one row that belongs to the logged-in student.
The very next thing the application needs to do is to navigate the user to one of five pages based on the data in that one row of LoggedInStudent. And this is where I get stuck.
In the faces-config.xml diagram, I added a JSF page (welcome.jsp) with a navigation case from welcome.jsp to each of the other five pages, put a command button on the welcome.jsp page, and in the context menu of this button chose "Create Method Binding for Action".
In the Welcome.java file, whichever navigation from-outcome name the commandButton1_action() method returns, is the next page the user will be navigated to, very nicely. All that needs to be done is to get that row of LoggedInStudent, examine the attributes in it, write the logic and return the right from-outcome name. The only problem is: how to get that row in this Welcome.java class?
Or, could page flow navigation be done from the application module? How? In the application module that one row of the LoggedInStudent is available at finger tips.
I am a newby with JDeveloper. 10.1.3 is page-centric and navigation seems to be neater and easier then in 10.1.2. In the demos online all navigation is event-driven: if there are five pages the user can go to from the current page, there are probably five buttons or links, it is the user who makes the decision which one to click. I believe JDeveloper should also support programmatically making the decision on which next page to navigate to.
I would appreciate it a lot if some experienced developer can help me out, and many thanks in advance.
Newman

Hi,
you can access everything what you defined in your Model project also in your Welcome.java file, that basically is called managed bean. for example how to access the instance of the application module you can see here in the documentation: http://download.oracle.com/docs/cd/B32110_01/web.1013/b25947/bcservices.htm#sthref681
google more in this forum how to access your view object and current row and value of attribute in similar way...
regards,
Branislav

Similar Messages

  • Can I pause my project when the user clicks?

    Hello all,
    I am working on a project using Cp4.
    My project plays automatically without user interaction.
    I need project to be paused when the user clicks on a clickbox at run time & it should play when the user again clicks the same clickbox.
    I can pause the project by adding a clickbox and applying the property "pause the project until user clicks.
    But it must be a user wish interaction whether to pause or play.
    Is that possible ? How could I make my work done ?
    Regards,
    Kartik.P

    Hello,
    I tried it out and it works all right. If you do not want a button, you can also replace this by a click box (that is invisible), perhaps covering up the whole slide and instruct the user just to click on the slide to pause or to 'un'-pause.
    As for the construction of the Advanced action (do have a couple of tutorials, but they are for CP5):
    Open the dialog box from Project Actions
    Be sure to be on the tab Advanced Actions and choose Create a new action from the dropdown list
    Name the action
    Double click on the first statement, it has to become red
    Use the spacebar to open a list, and choose Assignment
    From the first dropdownlist choose Variable rdcmndPause
    From the second list (after the =) choose Value
    Type in 1 for the value
    From the third list choose the minus sign
    From the fourth, choose again Variable and from the list choose rdcmndPause
    Save the action
    It is a bit clumsy, but the result should look like this:
    Lilybiri

  • Applet getting focus without user click

    I'm writing an applet that takes keyboard input, but I can't get it to start accepting key presses until the I click on it to give it focus.
    The applet is running in a webpage in IE.
    Can an applet in a webpage get focus on it's own, without having to have the user click on it?

    A combination of the suggested solutions gives the Applet focus about 50% of the time. I guess this is the best result I can get, and I'm satisfied with it. Thanks!
    In start()
    setVisible(true);
    requestFocus();
    requestFocusInWindow();
    requestFocus();
    In paint()
    if (mFirstPaint)
    mFirstPaint = false;
    setVisible(true);
    requestFocus();
    requestFocusInWindow();
    requestFocus();
    }

  • How can I pause a slide until the user clicks a button?

    I wish to pause a slide until the user clicks a button (which I've created out of a Smartshape). The thing is that I haven't added a click box object over the smartshape but have only set the smartshape properties to "Use as Button". If I were to add a clickbox object, I would get a "Pause project until user clicks" in the options section of the properties. However in using a smartshape as a button, I cannot find this option. I am using Captivate 6. Seems strange as I would have expected to see the same checkbox option even if I were to use a smartshape as a button but I dont. Can't someone help me and let me know if I'm missing something.
    Of course I could use a clickbox over my smartshape to achieve what I want, but I want to avoid thsi for two reason:
    I want to avoid adding another object when I dont need it.
    My smartshape is a right arrow (indicating "Begin"), and I dont want a squarish click box sitting on top of a triangle because that just shows the hand pointer even if the cursor isn't exactly over the arrow button because it enter the clickbox area.
    Thanks,
    Sean

    Select the Smart Shape button , go to Properties > Timing accordion > Pause After and set the number of seconds from the beginning of the slide for it to pause.

  • Can I create a file periodically without user input?

    I am trying to create a file without having a user select the directory or file name. This is needed because I want to run a test for a number of days and create a new text file each day. I do not want to have someone set the file path and name. i want it done automatically. I am using a date vi to get the new file name everyday but I still get a dialog box. Can anyone help me with so I do not get the dialog box? Thank you for your time.
    Ron Deavers, CLD

    If you wire full path to file path, you should not get dialog.
    Try this example: http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=EECA254B0EC70B87E0340003BA7CCD71&p_node=%20DZ52027&p_submitted=N&p_rank=&p_answer=&p_source=External
    I think it is what you need.
    Cheers
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • Can I keep the CC value when user click the REPLY TO button in outlook?

    Hi all,
    I have set the CC value when I send email out. But when user reply the received email, the CC value will be displayed in the TO field. If anyone knows how can I keep the CC value unchanged when user reply the received email?
    Thanks very much.

    It depends entirely on the mailer they're using, you have no control over it.

  • Can You Play Multiple Playlists Without User Intervention

    Can you stack and play multiple playlists? ie if you had three playlists of 50 songs each, could you pick all three, play all the songs in the first playlist, when it is finished move automatically to the second playlist play its songs then automatically move to the third without user intervention? And if so, can you play each of these in shuffle mode?

    There's no "impromptu" method of doing so that I know of.
    As far as un-impromptu methods (it's always fun inventing words), it will depend on whether you want to listen to this mega-playlist on an iPod or just with iTunes.
    If it's just with iTunes, you can go to the File menu > New Folder command and create a new folder which we can call the Mega-Playlist folder. Drag the three playlists in question into that folder. When you select that folder and press Play, iTunes should go through all the songs.
    If it's on an iPod, since Folders don't transfer over from iTunes, the only solution I know of would be to create a Smart Playlist with iTunes that will -
    Match any of the following rules:
    Playlist is the first playlist +
    Playlist is the second playlist +
    Playlist is the third playlist.
    Synching this mega-playlist to your iPod will allow you to select it from the Playlist menu.
    Shuffle mode would shuffle songs from all three playlists together, not shuffle songs from the first playlist before moving on to shuffling songs from the second playlist before shuffling songs from the third playlist.

  • HT5625 I have shared an apple id with my daughter over the past several years.  She is in college now and our music tastes aren't quite the same.  Is there a way that I can extract my music to a new user id without closing out my daughters?

    I have shared an apple id with my daughter over the past several years.  She is in college now and our music tastes aren't quite the same.  Is there a way that I can extract my music to a new user id without closing out my daughters?

    You can't transfer music purchased from the iTunes store to another ID.  You can, of course, create a new ID and start using that for purchasing your music.  Just create the ID, then go to Settings>iTunes & App Store, tap the existing ID, sign out, then sign back in with the new ID.
    If your issue is that music purchased by her on her device is automatically downloading to yours, you can turn this off by going to Settings>iTunes & App Store, and turning Music off under Automatic Downloads.  Then you can continue to share the same iTunes ID without continuing to automatically download each other's purchased music.

  • I made an album just now. I went back to delete the pics from my camera roll but my only option is to "delete everywhere." I want to leave them in the new album I made..  How i can delete them from camera roll without deleting from other Album i made

    I made an album just now. I went back to delete the pics from my camera roll but my only option is to "delete everywhere." I want to leave them in the new album I made..  How i can delete them from camera roll without deleting from other Album i made

    The way that I understand that it works, is that the photos are not copied into the new albums, instead it just points to the photos - the number of photos on the iPad in Settings > General > About doesn't increase when you create new album so I assume from that that it isn't copying the photo, just pointing to it. So if you delete the photo from the camera roll you will therefore also be deleting all the pointers to it

  • I'm using the iPhone 5. IOS 7 operating system. I'm having problems gyroscope. Does an adjustment can be made programmatically?

    I'm using the iPhone 5. IOS 7 operating system. I'm having problems gyroscope. Does an adjustment can be made programmatically?

    said article below....
    HT1747: iTunes: How to remove and reinstall the Apple Mobile Device Service on Mac OS X 10.6.8 or Earlier
    Learn about iTunes: How to remove and reinstall the Apple Mobile Device Service on Mac OS X 10.6.8 or Earlier

  • Can a pdf be made to disable itself after 12 months? So the user has to download a current pdf ?

    Can a pdf be made to disable itself after 12 months? I am interested in sending a pdf formatted price list to a customer, but after 12 months I want the pricelist pdf to disable itself, so the individual has to download a current version of the price list.  Is this possible?

    May be possible with following server product:
    http://www.adobe.com/products/livecycle/rightsmanagement/

  • Creating "Back" Navigation in a Branching Project Without the Playbar or a TOC?

    Hello,
    I've been struggling with accomplishing a very simple goal: in my Captivate project, I want there to be a "Back" button on every single slide that sends the user back one slide based on their navigation history throughout the slide.  The playbar must be disabled, and I don't want the user to have to deal with a Table of Contents.
    Because this is a somewhat complex branching project, using the "go to previous slide" selection for a button will not work -- this simply sends the user one slide back in the filmstrip, and that might not be where I want them to go.
    Using the "go to last slide viewed" selection for a button also will not work.  This creates an infinite loop in which once the user clicks the "Back" button on one slide, they will go to the previously viewed slide, but when they click it again, they will return to the original slide.  For example, repeatedly clicking this Back button will send the user from slide 2 to slide 1, then slide 1 to slide 2, then slide 2 to slide 1....etc.
    Basically, all I want is an internet browser-style back button within my project.  I figure this is a fairly common thing that project creators want to do, so I checked for any available widgets that might offer the desired functionality, but I've come up with nothing.
    It would seem as if my only hope lies in two potential places: either the execute Javascript selection for buttons, or Advanced Actions.
    Before I dig too deeply there, I was wondering if anyone had a simple solution for this very basic problem.  I've looked around the forums, and this particular thread looks very relevant: http://forums.adobe.com/message/4575291#4575291 .  In that thread, it looks like the original poster just decided to create a separate swf for each of the linear branches of their project.  For my project, this would be a most inelegant and clutttered solution.
    Anyone have any ideas?  If I must use Advanced Actions / variable creation, could you point me in the right direction?  I'm on Captivate 5, by the way.  Thanks.

    Indeed this issue has come up several times over the years, because some authors would like Captivate content to work in much the same way that other web-based content playing in a browser does.  When users see content in a browser, they expect there will be a Back button that takes them to the last-visited slide. If they just keep clicking that Back button, they expect it will retrace their path through the content.
    What happens under the hood in the browser is that it stores all the URLs that the user visited in an array of sequential values, which allows the browser to retrace the user's path.
    Captivate currently has no built-in array facility available to authors for this purpose.  Captivate variables can only store one value.  Advanced Actions are not powerful or flexible enough to build the kind of programmatic loops that would allow you to traverse a series of variables to try and duplicate typical Back button functionality.
    It might be possible to do all of this using some fancy JavaScript coding, but you (or someone that owes you a favour) would need decent coding skills to pull it off.
    I think it would be great to log an enhancement request with Adobe for a couple of Advanced Actions to be added for this need.  Perhaps we could call them Go Back History -1 and Go Forward History +1.  These would just reference an internal array somewhere in the bowels of Cp where the History is kept.  Then all authors would need to do is choose this as a button action or an action in a conditional advanced action of some kind.

  • Creating a jar file without user compliation

    Hi, i got a problem here and i do not know how to go about doing it, any help will be much appreciated...
    I need a JAR file in my integration bin shell
    this bin shell will read my JAR file
    The user will create the MAIN class file with something call a template engine specifying some stuff that can be changed
    after which together with some existing .java class files, one .XML file(which the user specify with template engine) my program is to compile them automatically without user intervention and produce the JAR file.
    any suggestions? thannks

    Hmm, this sounds to me like a task for build tool like ANT.
    If you absolutely need to do this yourself look at java.util.jar and into the programmatic interface of javac (get the JDK source code distribution for this).

  • Workflow Tasks spontaenously changed their start date without user input.

    The issue I have is that a task list with a workflow attached to it spontaneously added major versions to over 200 items that changed the 'start' and 'end' dates. The user's name who was tagged as the one doing the update was not using sharepoint or even
    at his computer for the time that this occurred.
    Not all of the tasks in this list were affected and I can't find a pattern as to why -
    I have seen this happen before at a different agency/installation where a user's name appeared suddenly on fresh updates a year and a half after he retired and was removed from the system.
    Any ideas as to what might have happened?
    Any suggestions on how to revert over 200+ task items to their previous version programmatically without having to edit each individual one? 

    Hi,
    As I understand, you want to know why the task will change the start date spontaneously and how to revert your 200+ task list items version.
    How do you remove the user from the SharePoint 2013? And what permissions did the users have before you removed them?
    Check if there is a rule that will change the start date spontaneously in the workflow attached with your task list, or if there is customer code or solution that will change the start date spontaneously.
    If you want to revert the version of your task list items, you can achieve it by PowerShell script.
    The article below is about how to restore versions by PowerShell script.
    https://gallery.technet.microsoft.com/office/Restore-and-clean-up-f3c712fd
    Best regards
    Sara Fan
    TechNet Community Support

  • HT3529 On ipad3, wifi only, how can I send messages to non iOS users?

    On ipad3, wifi only, how can I send messages to non iOS users?
    I have MacBook, and iPhone 4 as well

    Your're wrong on the overly sensitive part. I couldn't care less about android or some other stuff that you are comparing, what i do care about... enough to take the time to explain, is that your view on things colors the choices you make.
    You clearly state your decision making process and the marketing is doing their work on you.
    You think in terms of comparisons and competitors and that will always get you. The truth is, I'm glad Apple finally focused on how "something makes you feel" with iOS 7. There is so much truth in that one sentence!
    There is so much noise out there about screen size, n core processors and price comparisons you can never get a good feel of what the product really is. By the time you figure out you were taken on a marketing hike, a new model comes out and the story starts all over again. (think of the nokia 40 megapixel camera, or the quad core samsung, those are exagerations to impress the consumer) Imagine the size of the jpg's on that phone, all those megapixels with the quality of a phone camera, ridiculous. Soon we will have 12-core phones with 7 inch screens, and people being led into thinking you can do everything on it, "one thing to rule them all", buy now! I saw a woman on the metro the other day with a 6' phone, I swear the thing was almost half the size of her head.
    It's almost 2014 and you are complaining you can't send sms(which is a 25 year old technology by the way) with this new device. All your friends are using outdated tech and because you want to talk to them you want outdated tech too. Sms is insecure, easily snooped upon and recorded, the carrier charges for it and charges more for international sms, and so on... and on... internet chat has been free since the 1990s and it's about time it got free on our phones too.
    Just forget about it. Enjoy other people taking the decisions, you can't take yourself, for you. Trust them, see if it fits, care about life, act emotionally when you "feel" like it. You deserve that, you are human, take the feeling home with you, share it with others.
    Who cares if it's the 2014 edition or quad core... I gave my old iPad 3 to my grandmother so I could call her on Facetime. I bought the iPad Air on a whim, I just "felt" I wanted it. After a couple of weeks she thought about asking me if she could call my brother in the UK too, and how much it would cost. I said it was free, and she looked at me in disbelief. She is now calling my brother weekly by herself... she is 78. Can you imagine that... all I did is give her my "old" iPad.
    Buying the iPad Air was the single best decision of my life, not because of the size or the weight or even iOS 7 (i do enjoy them by the way) but because it made me give my old iPad to my grandmother.
    She doesn't even understand how it works, I figured it would be too much useless stuff to mention... it just does! Here put your finger here and here, then tap the name... wait for him to answer. Unbelievable!!!
    PS. I figured the best gift I can make is give my old Apple devices to people who would never in a million years buy one for themselves. You see them in shops, they are our mothers and friends... they look at the huge prices and they would never give that much to themselves, they feel they don't deserve it. They gave me money to buy all the useless cr@p I ever wanted in my youth, the least I could do is gift them my "old tech" to enrich their lives. Going to buy a 5S soon and give my 4S to someone for free, but it's going to be someone I care deeply about, deeply enough to change their lives.

Maybe you are looking for

  • Schedule line quantity

    Hi All, A sales order is created with 0 confirmed schedule line quantity. At the time of creating delivery if stock is available system creates delivery else doesn't create delivery. Now for some materials system is not creating delivery eventhough s

  • 1. How to view my work full screen? 2. How to make "F" keys behave proper?

    Hello All, Two softball questions for FCP batting practice: 1. Somewhere along the way, I came across an explanation on how to make my canvas full screen. I found a post mentioning View, External Video, and something about cinema (not in front of it

  • Passing parameter between Components

    I have two components in different applications.  One is use to display details to an employee and the other shows a manager a rollup of employee's detail information.  There is a button on each employee in the manager view where the manager can disp

  • Can't Get Images to Line Up Horizontally Within Div

    I'm making a Fluid Grid Layout webpage. The bottom div contains 4 square images in a horizontal line. In the mobile mode, I want these 4 images to remain in a horizontal line and shrink to fit. I tried Block - Display - Inline-Block and I tried Block

  • Leave request in Work flow

    Dear All Could you please throw a light on this  Leave approval through Work flow    . leave request should goes to concern supervisor how we can configure  in the SAP  could you please tel me  is it relating to functional or technical 1 if the conce