Oracle ADF Mobile Taskflow - mobile

I am working on Oracle ADF Mobile application.
In application, First screen is the Login Screen. On the successful login, I have to redirect the user to the second screen.
I am not getting how to redirect the Login Screen (view) to the Second screen (view) only on the successful login?
Which condition I should have to write for Control Flow Case?
Please help. Thanks in advance...:)

I would suggest you first run through the ADF Mobile tutorial here:
http://docs.oracle.com/cd/E18941_01/tutorials/buildmobileappscontent/adfmobiletutorial_1.html
Basically in your taskflow you give the flow a name, and then in your page's button you associate the action property with that flow name.

First go through the following tutorial.
http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_57/jdtut_11r2_57.html
To redirect the Login Screen (view) to the Second screen (view) only on the successful login you have to use Router Component.
Enjoy learning.

Related

How to read element on Page when its loading in selenium?

I am trying to automate a Gmail login Page where I face one issue.
Replication steps:
Update User Name and Password
Click on Sign Button.
There will be "Loading Page" before the main Inbox Page. I need to validate that this Loading page appeared after the sign-in click and before Inbox Page in Gmail.
Please suggest a solution for this.

Redirecting to previous page without reloading

I have a question that suppose, I have an Admin Dashboard page, on which I have given a list of users. clicking upon a particular user the details of corresponding user is shown on a different page (say on userDetails.jsp). Now I have a back button on userDetails page, Clicking of which I need to redirect admin to the last visited page that is Admin Dashboard page, I have one solution that I can "Reload" the previos page on clicking back button, but then I feel that there is the overhead of calling a server side API, retrieving all the data, Again redraw the whole admin dashboard page even when there is no change made in the userDetails[because it is read only page, modification is not allowed there]. Is there anyway that I can make user of cache or anything else so that I will not need to go to the server to fetch all the data again. I am using spring MVC, angularjs, Thank you.
On your button's click event add the following code:
$window.history.back();
make sure to use $window rather than window since you're using AngularJS

Remove back button Sencha Touch 2

I am using Sencha Touch 2 to build an application. I am initially loading the navigation view in the view port and then pushing the login view. After login it takes to the main page. Here I have a back button, which when clicked goes back to the login page. How can I prevent this? I googled a lot but could not find an effective answer. Any help would be greatly appreciated.
My first attempt would be to add the login view directly to the Ext.Viewport instead of pushing into the navigationView. Then, once the login process is completed, you have to destroy the login view so you can add the navigationView to the Viewport.
This way the login view wont be in the navigationView stack.
Hope it helps-

How to use a Backbone view in bootstrap modal for login and perform task after login?

I have a backbone view call LogOnView. In my LogOnView A user can login using username and password. There exist all type of server and client side validation. I want to use this view in a bootstrap modal when a user click a button in another view. I can add all the content LogOnView into bootstrap modal-body like this
$('.modal-body').html(new LogOnView().el);
N.B. I am enabling the Bootstrap modal dynamically that means from a view (using javascript).
$('#LogOnPopUp').modal('toggle');
By this content of LogOnView is successfully added to Boostrap modal. And also login and validation is ok as it ok in LogOnView. But I need to find a way to do another work when user Login successfully. That means when an user successfully login the modal popup will close and another task will need to done in this view.
So what can I do in this aspect? Any advice will be appreciable.
N.B: (summary/similar criteria )
It's all the same as facebook like. When anyone like a content of other website using facebook account. A user click in like button then a modal popup is opened and after logged in there his like is confirmed.
I want to do something like this using my LogOnView into bootstrap modal.
I'm not sure I understand your question. But if you want to execute an action once some work has been done (i.e. logging on, in your case), you can handle "doing things after" using jQuery Deferreds and promises: http://api.jquery.com/category/deferred-object/
I've written 2 posts on the subject, if this is the route you want to use:
http://davidsulc.com/blog/2013/04/01/using-jquery-promises-to-render-backbone-views-after-fetching-data/
http://davidsulc.com/blog/2013/04/02/rendering-a-view-after-multiple-async-functions-return-using-promises/

How to handle Refresh and Reset in WPF application in MVP application

I am developing an windows UI application in WPF with MVP architecture with C#.
The application will interact to sqlserver and displays the data to the user.
I have 2 buttons REFRESH and RESET. which refreshes the page and resets the page to the home page respectively.
As I searched in few forums,navigationservice is recommeneded,but I couldnt see navigationservice.refresh() command
Refresh should refresh the page (current page) and the reset should reset to the homepage as per my appication.
Please help me in doing this.
Thanks
Ramm
You need to create custom commands for each of your buttons. The RefreshCommand can reload the data bound to your view, and you can use the ResetCommand to call the NavigationService to navigate to your home page.

Resources