Move to another page of amx from EPCO 12.1.3 java code. MAF

Hello

I am to go to the rest service in oracle MAF, I will get the response from the server remains in a java class. If the response is successful, I want to redirect to another page. How can I achieve this. Please help me.

Thank you and best regards,

Christelle N.

Hello

I found the solution.

«"" "AMX page:»»"»

text Disabled = "#{!}" Bindings.sendLoginDetails.Enabled}"="sendLoginDetails. "

ID = "c1" >

In the class of data control (which u create in the following way: right-click on a class in which you want to do as a class of data, click components to model, and then on Create data control)

public void sendLoginDetails() {}

If (Response.equalsIgnoreCase ("Success")

{

() AdfmfContainerUtilities.invokeContainerJavaScriptFunction

AdfmfJavaUtilities.getFeatureName (),

"adf.mf.api.amx.doNavigation,"

(New Object() {"SUCCESS"});

}

}

In the task-flow - accordingly:

            Success.AMX

       

            Login

           

                SUCCESS

                loginsuccesspage

           

       

What the above code does is, if the response received from the server is successful, it redirects to another page comparing the key that you provide to us. For example in the code above, I gave HITS like key (new Object() {"SUCCESS"}) is compared to "SUCCESS" and redirects to success.amx who has the activity id ""loginsuccesspage "."

Thanks & best regards,

Christelle N.

Tags: Oracle Mobile

Similar Questions

  • Oracle of the MAF: How get text of a page from the amx and show them in another page of amx

    I created a simple form using amx as below:

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < amx:view xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    ' xmlns:amx = ' http://xmlns.Oracle.com/ADF/MF/AMX "xmlns:dvtm =" http://xmlns.Oracle.com/ADF/MF/AMX/DVT ">

    < amx:panelPage id = "pp1" >

    < amx:facet name = "header" >

    < amx:outputText value = "Header" id = "ot1" / >

    < / amx:facet >

    < amx:facet = "primary" name >

    < amx:commandButton id = "cb1" / >

    < / amx:facet >

    < amx:facet = "secondary" name >

    < amx:commandButton id = "cb2" / >

    < / amx:facet >

    < amx:panelFormLayout id = "p1" >

    < amx:inputDate id = "i1" label = "Date" / >

    < amx:selectBooleanCheckbox id = "s1" label = "CheckBox" / >

    < amx:selectBooleanSwitch id = "s2" label = "Switch" / >

    < amx:selectOneRadio id = "s3" label = "Radio button" >

    < amx:selectItem id = "s4" / >

    < / amx:selectOneRadio >

    < amx:inputText id = "i2" hintText = 'enter something '.

    Label = "Edit Text" > < / amx:inputText >

    < amx:inputText id = "text1" label = "" enter password: ""

    secret = "true" / >

    < / amx:panelFormLayout >

    < amx:commandButton id = "c1" text = "Send" action = "getFormDetails" > < / amx:commandButton >

    < / amx:panelPage >

    < / amx:view >

    I want to extract the text entries, check box, option button, and display them in another page of amx. Please help me.

    Hello

    Here is an example.

    Assuming that there is a taskflow (as feature) which uses two activities with the name View1 and view2, with a case of View1 to View2 control flow is getFormDetails.

    code View1.AMX:

    "http://www.w3.org/2001/XMLSchema-instance" xmlns:amx ="http://xmlns.oracle.com/adf/mf/amx"

    xmlns:dvtm ="http://xmlns.oracle.com/adf/mf/amx/dvt" >. "

    value="#{pageFlowScope.TestBean.userNameValue}"/ >

    code View2.AMX:

    "http://www.w3.org/2001/XMLSchema-instance" xmlns:amx ="http://xmlns.oracle.com/adf/mf/amx"

    xmlns:dvtm ="http://xmlns.oracle.com/adf/mf/amx/dvt" >. "

    TestBean.java (which is located in pageFlowScope).

    mobile plan;

    public class TestBean {}

    private String _userNameValue;

    Private boolean _checkboxValue;

    public TestBean() {}

    }

    {} public void setUserNameValue (String _userNameValue)

    This ._userNameValue = _userNameValue;

    }

    public String getUserNameValue() {}

    Return _userNameValue;

    }

    {} public void setCheckboxValue (boolean _checkboxValue)

    This ._checkboxValue = _checkboxValue;

    }

    public boolean isCheckboxValue() {}

    Return _checkboxValue;

    }

    }

    Arun-

  • When Gmail loads up to everything first he moves to another page of gmail inbox immediately?

    As the title says...

    I click firefox or run it from a keyboard shortcut and loading Firefox gmail inbox, Inbox just page load automatically to another page which is still both the Inbox.

    He does not have to do until that some revisions of firefox there is.

    I don't think that there is no built-in Firefox feature to redirect a Home tab after loading. As long as the page loaded is on the Google site, I guess the second charge is a redirect initiated by Google for its own reasons, whatever they may be.

  • How can I take a single selected image to a slide show to move to another page?

    I have a slideshow of images from which a user must select a (for example, the image that is featured in a lightbox after successively the thumbnail) and then go to another page for more details on this image, with the same image again, and where I want to incorporate some html to provide more options based on the selected image. How to pass the name of the object from one page to another? How do I detect that a user has selected an image?

    I tried to place each image in the table light as a hyperlink to a new page and also tried to settle his legend as a hyperlink, but none of these ideas seem to work (at least in the preview).

    Any suggestions please? I work in Muse CC 2014.

    Creating a hyperlink from the text of the legend should work. Try the preview: file/preview in the browser to test Site.

    (I tested it using Preview and file/Preview Site in the browser and it made a link to the page that I've assigned)

  • How to generate the primary key element and move to another page?

    How to make the primary key value to another page in a table?

    Form on T_ITEMS 2.png

    Hello

    I am a beginner in the apex,

    Please, now I want to add the primary key to page 1 for item id in page 2...

    Notice:

    Before, I created (process of pl/sql in the rendering of page @ after the header section) to get the id of secuance.

    BEGIN
    :P17_ID := seq_t_items_id.NEXTVAL;
    END;
    
    
    

    primary key is generated for the element ID of page 1... BUT When I update 'page 1' I see error and solved when shut down my browser and open it again...

    Please help me to...

    1. Generate a primary key (article id @ page 1)... without refresh error. ?
    2. Pass him (item_id) on page 2

    Thank you all for...

    Sorry I'm beginner in apex,

    I don't know how Pass value of the item_id TO page 1 page 2 "in the form ID", turn to the first PHOTO... .
    Help me..

    Thank you

  • How to move from one page to another page

    Hi all

    We have a report, in that if I click on the username to go to another page,
    in this page, I created a guest and a single report, he must select groups (prompt) and this page only to see the report

    How to provide as page, when the user clicks on user_name in the report (can make us on navigation option in the column property?)


    Thank you

    scope and everything later, but why you want to use variable presentation only?

    We can make this column is invited in the target report and pass right?

  • Firefox prevented this page from auto redirection to another page

    Firefox prevented this page from auto redirection to another page
    I get this message every time I go to the new search page. I'm if tired after you press the F - ING allow it's not funny. Cannot Fire fox remember the pages of dam that go? Every time freaking that I go to a new page that the accessories and I have to click allow. I would like to get rid of this for good so if you can help me it's cool, if not then bye. I'll explore for browser. I can't take more. In addition, when I read that page moves upward again and I have to click on authorize again.

    Try this: Firefox button > Options > Options (or tools > Options) > advanced > general, uncheck 'warn me when Web sites try to redirect or reload the page'

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    You use obsolete, and is no longer supported version of Firefox (version 3.5.5) which is likely to have many problems of security and stability. Upgrade to the current version.

    Also see-> https://support.mozilla.org/en-US/kb/common-questions-after-upgrading-firefox-36

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • When I open sites or click on a link and go to another page I get an error indicating that Firefox prevented this page from rederecting automatically to another page

    When I open sites or click on a link and go to another page, I get an error indicating that Firefox prevented this page from automatically redirecting to another page. That would be a problem in the settings?

    To make the message does not, Options > Advanced Options > general, uncheck "warn me when web sites try to redirect or reload the page.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • Will not play netflix movies - goes to another page of netflix.

    Firefox 4 refuses to play Netflix movies streaming. They worked well in the latest version of Firefox 3 I had yesterday. I added a few security and blocking of modules but disabled then those other than the ones I had used with the previous version. Netflix recognizes my account but when I click on the button "resume play", or if I select a movie and he say to play, it is by default to another page of Netflix with instructions of some sort - it will not play streaming videos.

    I've just updated to the new Firefox and would not be able to stream my Netflix movies. I was getting an error code associated with Silverlight. I called Netflix and they had me turn on my story and that solved the problem. Their technical support, said the history/cookies must be enabled to stream movies. I hope this helps! (I also followed the prompt on the screen of Netflix with this error code to remove my old registered certificates, etc.).

  • How can I make Foxfire quit gives me the message Firefox prevented this page from automatically redirecting to another page?

    When I'm on some sites Firefox gives me the message Firefox prevented this page from automatically redirecting to another page? and then I have to click on allow. This happens on every page on some sites. How can I make this stop all together?

    Tools-> options-> advanced-> general, then uncheck the warn me when websites try to redirect or reload the page

  • How can I move these indicator and the control to another page?

    How can I move these indicator and the control to another page? I page Kontrol and those on Installningar page, move!

    Or I want to hide them Kontrol page, how can I do

    Thank you

    Hi q8.

    move: select the controls, move them out of the container tab, drag them into the appropriate page of the tab container

    Hide: Terminal controls (!) right click, select "hide"...

  • you need to remove the license from computer to move to another PC.

    you need to remove the license from computer to move to another PC.

    It is all the information that I have and you can get on the product. I don't know when and who has been sold, or whose key is. Asked me to pass the software of an older laptop to a new laptop.

    Good luck with that.  Without a legitimate serial number, you're stuck.

    Download the Pro or Standard of X, XI or Acrobat DC versions

    Nancy O.

  • How nagivate values from one page to another page as well assured in different modules like po and pon

    How nagivate values from one page to another page as well assured in different modules like po and pon?

    I tried using the session values, hashmap, and Transaction. But none worked.

    Please help me on this.

    Dilip thanks.

    My problem is solved.

    I solved the issue.using the main concepts of java.

    By importing a package into other package and then instantiate the required class.

    Kind regards

    2793235.

  • Move a file to the muse from one computer to another that I will lose all related is pdf! How to solve it?

    Move a file to the muse from one computer to another that I will lose all related is pdf! How to solve it?

    Hello.

    Please try following steps to recreate a link to the PDF files.

    1. move and place the PDF file all missing in the any folder to the new computer.

    2 open the Control Panel file Muse and hit open assets of Windows > assets

    3. right click on a missing PDF file and choose repeat the link.

    4. Select the correct file to recreate a link and it will connect all the missing files in the folder.

    Let me know if you were talking about something else.

    Concerning

    Vivek

  • I move to another company and I end my adobe membership. I could move my account and someone else joining in this company? I mean if they could take over from my account and how?

    I move to another company and I end my adobe membership. I could move my account and someone else joining in this company? I mean if they could take over from my account and how?

    Hello

    I see that you have a subscription individual creative under the enamel even cloud as with forums.

    Unfortunately there is no way to transfer your account / membership to another person, you will need to get cancelled.

    Please contact support by calling/chat for cancellation requests and billing queries:

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    You can also check the help below document:

    https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

    Please go through the Adobe - General conditions of subscription as well.

Maybe you are looking for

  • PPTP VPN does not work on Iphone Personal Hotspot

    Hello I've just updated to iOS 10 yesterday and now all my devices I use to connect to the personal hotspot on my iphone are not able to establish PPTP VPN connections. I was aware of the PPTP client are disabled in the iOS, but has actually blocked

  • Satellite L40 - 14N - RAM who do I take for an upgrade?

    Hello, I have a Satellite L40 - 14N with 1 GB of RAM, and I'm using Vista. I have been informed that a bit more RAM would be better so I think to upgrade. On the Toshiba product page, it says that the maximum is 2 GB, and now I'm wondering if it is b

  • Windows XP and built-in microphone does not work

    I had reviewed similar topics, but I couldn't find a clear solution. My laptop is XP and has a built-in microphone.  I tried Skype and the microphone does not work.  It was not used in the past2 or 3 years, but it has been running at the same time. 

  • HP Officejet Pro 8500 has v. 8500 has more

    Is could someone please tell me what are the differences between these two models? I checked the plug., and all I can find is a difference of RAM (64 MB c. 128 MB); is there something else, and the difference of memory will affect the print quality?

  • Windows Media Player is unable to update the library.

    I ripped several CDs and I still have to go into the music folder to play instead of them showing upward in the library. I spent 2 weeks trying to get this answer. Keep saying Windows contact Dell and Dell says that they have nothing to do with it. S