Category Archives: ADF Mobile

How to refresh the Iterator from the Managed Bean in ADF Mobile applciation.

When we want to programmatically refresh the Iterator “addressBookResultIterator” the was added in the AMX Page Bindings section from the Managed bean, we need to use the below code – //refresh the addressBookResultIterator to reflect the changes in the UI … Continue reading

Posted in ADF Mobile | Tagged , , , , | Leave a comment

How to Exit the application from the Managed bean in ADF Mobile.

When we want to exit the application programmatically from the Managed bean we need to use the below code – AdfmfContainerUtilities.invokeContainerJavaScriptFunction(“mobile.search.Customers“, “navigator.app.exitApp()“, new Object[] {}); “mobile.search.Customers” is the FeatureId in which we are using this code. You can get the … Continue reading

Posted in ADF Mobile | Tagged , , , | Leave a comment

How to execute the method that is added into the AMX page bindings section from the Managed bean.

We have a method “updatePocEmpView1” added in the AMX page bindings section and want to execute it from the Managed bean. We need to use the below code – AdfELContext adfELContext = AdfmfJavaUtilities.getAdfELContext(); MethodExpression me = AdfmfJavaUtilities.getMethodExpression(“#{bindings.updatePocEmpView1.execute}”, Object.class, new Class[] … Continue reading

Posted in ADF Mobile | Tagged , , , | Leave a comment

How to get the loggedin Username from the Security context in AMX page and in the Managed bean in ADF Mobile application.

When we use the BasicAuth option for the Login page in ADF Mobile and when the User logged-in to the Mobile application – To displayed the logged-in user in the AMX page – <amx:outputText value=” #{securityContext.userName}” id=”ot1″ /> To get … Continue reading

Posted in ADF Mobile | Tagged , , , | Leave a comment

How to Setup ADF Mobile application on Android For Release Mode in Jdeveloper.

If you have begun developing mobile apps with ADF Mobile on Windows, you have already begun deploying onto the Android Emulator and/or a physical Android Device on hand. To speed up the deployment process and overall performance of the ADF … Continue reading

Posted in ADF Mobile | Tagged , , , , | Leave a comment

How to SET the value for a parameter in PageFlow scope and how to READ the same value in the PageFlow scope.

To set the parameter value (USER_NAME) in the PageFlow scope we need use the setPropertyListener component as shown below – <amx:commandLink text=”#{bindings.submittedBy.inputValue}” id=”cl1″ inlineStyle=”text-align:justify; width:95%; color:Fuchsia;”> <amx:setPropertyListener id=”spl1″ from=”#{bindings.userName.inputValue}” type=”action”  to=”#{pageFlowScope.USER_NAME}”/> </amx:commandLink> Here we are storing the Customer name (#{bindings.userName.inputValue}) … Continue reading

Posted in ADF Mobile | Tagged , , , , , , | Leave a comment

How to format the DATE and display in the AMX page uisng ADF Mobile.

The Date to be displayed in the format MM-DD-YYYY in the AMX page. To achieve this we need to use the <amx:convertDateTime> with in the OutputText as shown below – <amx:panelLabelAndMessage label=”#{viewcontrollerBundle.LAST_UPDATE_DATE}” id=”plam5″    inlineStyle=”font-weight:bold;”> <amx:outputText value=”#{bindings.lastUpdateDate.inputValue}” id=”ot6″> <amx:convertDateTime pattern=“MM-dd-yyyy“/> </amx:outputText> … Continue reading

Posted in ADF Mobile | Tagged , , , | Leave a comment