Dynamic model AMX in ADF Mobile

Hi guys,.

As seen in file AMX to design the user interface for ADF Mobile, but I just need to have a dynamic flow user interface
for example. When choosing fall down in the page (A) and jump to the next page (b) with the value control to show some of < amx:inputText > in the page (b)

How to make dynamic in amx?

Hello

have a bean managed in the Workflow page range. Bind the property made of components on the page to the same successful bean and have the bean by assigning the value of the field that is rendered true or false. That's how I'd do. A similar use case is here: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/m02-dynamicallyshowhidecomponents-1915399.pdf

Frank

Tags: Java

Similar Questions

  • Value amx:selectOneChoice ADF Mobile

    Hello!

    I dragged a datacontrol (list < mybean >) return on my amx page

    the WEB service returns a list of objects

    I created the selectonechoice, but as you can see in the picture there is no option to assign the value that will be when the user selects a value in the choice

    right now takes the index (the first item in the list is 0,1,2 and so on)

    I would attribute the id (from my object) as the value of the amx: Selectonechoice

    http://ImageShack.com/a/img801/3977/66m6.PNG

    the Assistant asks only the display not the value attribute

    Hello

    See http://www.oracle.com/technetwork/developer-tools/adf/learnmore/m08-selectmanchoice-selected-values-1940891.pdf

    Frank

  • Creating unlimited AMX Page ADF mobile?

    Hi guys,.

    As seen in the great workflow to create a static, but about unlimited application structure AMX Page how to create and how to push for navigation or other means.

    Maybe it is possible to create an unlimited application flow (like application of questions and answers that provide many pages of questions depends on configuration)

    Hello

    you want dynamic pages, not on an unlimited number of correct pages? There is no option to create an AMX pages on the fly. Too many dynamic content page there is no option to create in Java user interface components. You may be able to use an iterator and switcher to show the various components of rendering. However, this aspect must not rest directly on a managed bean because it does not have the link layer.

    Frank

  • Display a table in the ADF Mobile app

    The source of data for the mobile adf application I'm building is the Oracle database. I developed a SOAP web service to retrieve data from database. However, I do not understand how to map data from the web service to adf mobile application.

    I intend to display the data in a table on page amx of adf mobile application. Please advise me how to do this.

    To look at an amx:iterator to browse the lines.

    And it generates amx:table and rowLayout while doing it.

    http://docs.Oracle.com/CD/E35521_01/apirefs.111230/e26230/TOC.htm#AMX:rowLayout

  • ADF Mobile | call web service from Java. non-reflecting values in the AMX page

    Hi all

    I am using JDEv11124 with ADF Mobile extensions39.62.64.

    My use case is as follows.

    1. my application has 2 Pages a. Login home b.

    2. in the user login Page between user name and click on the "submit" button.

    3. on the homepage I displayed the company they joined.

    4. in the "submit" button is clicked, action defined in the support bean method will be called.

    5. by supporting the action bean method, I'll call the method of the Web Service to validate the entered user name, if the entered user name is valid, that I have to post its company name in the home page.

    6. I am moving back from the web service of datacontrol in Home.amx page

    7. calling web services from Java as follows:

    GenericType = result

    (GenericType) AdfmfJavaUtilities.invokeDataControlMethod ("Comp", null, "getCompany",

    pNames, params,

    PTypes);

    System.out.println ("after the call to the service" + result.getAttributeCount ());

    8. in the Java class, I get the response correctly (as the company designating the username entered as 'SOCIETY'), where when I navigate to the home page, I don't see any results for the method return (name of the company that dropped like OutputText in Home.amx)

    Did I miss something for this. or something more that I need to do to make it work?

    Please suggest.

    Thank you

    Vieira

    Hi all

    I was able to achieve this by executing my method in bean support.

    This code is as follows:

    AdfELContext adfELContext = AdfmfJavaUtilities.getAdfELContext ();

    MethodExpression me =.

    () AdfmfJavaUtilities.getMethodExpression

    "#{bindings.retreiveLocationInformation.execute}".

    (, Object.class, Class [] {}) new;

    me. Invoke (adfELContext, new Object [] {});

    Thanks to Luc Bors WebLog Luc Bors Weblog: ADF Mobile: implementation of "Pull to refresh" model

    Kind regards

    Vieira

  • ADF Mobile: place a phone call with code AMX

    How to place a call from phone with code AMX?    Why isn't when simple ADF Mobile is a development tool for MOBILE PHONES?

    Just use a goLink. Set the parameter to the URL ""such: any number> "."

    Rich.

  • ADF Mobile: How to pass usernameToken properties dynamically

    In ADF mobile we can set static values of the username and the password in the security configuration of the WSSE as binding for usernameToken properties. Is it possible to pass these values dynamically (for example) managed bean, or as an entry from the user interface?

    You use a charger BC of basic web service?
    If Yes: http://andrejusb.blogspot.be/2012/11/adf-mobile-secured-web-service-access.html

  • ADF Mobile (jdev 11.1.2.4.0) amx:inputNumberSlider

    Hello!

    As shown here hosted demo components ADF Mobile component Gallery

    He values possible for this components do not appear and the selected value. (unlike the adf)

    I was searching through its properties, but I could find anything, any ideas on how to solve this problem?

    Thank you

    Can clarify you your question?

    You want to see the number of the slide currently has?

    I guess that this component does not appear this info on a phone. It my show this if you use a tablet.

    To view the selected value, you can put an outputText somewhere and display the value property of the slider there.

    Timo

  • ADF Mobile: Models, reusable, declarative elements

    Hello

    Unfortunately, the developer's guide has no mention on the creation of templates, the reusable parts and declarative elements. ADF Mobile them currently support? Please enlighten us.

    Thank you
    Srini

    Not immediately.
    But you can use the deployment feature to develop reusable features which can be shared between applications.
    http://docs.Oracle.com/CD/E35521_01/doc.111230/e24475/deploying.htm#CHDCGBIE

  • ADF Mobile EL substring

    Hello!

    I shows this method (https://blogs.oracle.com/adf/entry/string_manipulation_functions_inside_el) that you import jstl functions and use the fn:substring, fn:length, etc.

    but I am applying it in an AMX:PAGE, but it does not work there at - it a way to apply the substring, indexOf to EL in adf mobile?

    line 48 shows: I tried #{fn:substring(row.url,0,5)} I need and I get 'number invalid EL incorrect Expression of the operands'}

    <?xml version="1.0" encoding="UTF-8" ?>
    <amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
              xmlns:fn="http://java.sun.com/jsp/jstl/functions"  
              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="Bienvenido #{pageFlowScope.usuario.nombres}" id="ot1"/>
            </amx:facet>
            <amx:facet name="primary">
                <amx:commandButton id="cb1" actionListener="#{viewScope.bLogin.salirAplicacion}"
                                   icon="/resources/img/out.png" iconPosition="trailing"/>
            </amx:facet>
            <amx:facet name="secondary">
                <amx:commandButton id="cb2" action="GO_LOGIN" icon="/resources/img/lock.png" iconPosition="trailing"/>
            </amx:facet>
            <amx:outputText value="#{deviceScope.device.name}" id="ot4"/>
            <amx:outputText value="#{deviceScope.device.platform}" id="ot5"/>
            <amx:outputText value="#{deviceScope.device.version}" id="ot6"/>
            <amx:outputText value="#{deviceScope.device.os}" id="ot7"/>
            <amx:outputText value="#{deviceScope.device.model}" id="ot8"/>
            <amx:outputText value="#{deviceScope.hardware.networkStatus}" id="ot9"/>
            <amx:outputText value="#{deviceScope.hardware.screen.width}" id="ot10"/>
            <amx:outputText value="#{deviceScope.hardware.screen.height}" id="ot11"/>
            <amx:outputText value="#{deviceScope.hardware.screen.availableWidth}" id="ot12"/>
            <amx:outputText value="#{deviceScope.hardware.screen.availableHeight}" id="ot13"/>
            <amx:tableLayout id="tl1" shortDesc="features-table" inlineStyle="width:100%;">
                <amx:rowLayout id="rl1">
                    <amx:cellFormat id="cf1" shortDesc="features-column" inlineStyle="width:100%;">
                        <amx:panelGroupLayout id="pgl1" layout="wrap">
                                <amx:iterator var="row" value="#{bindings.Return.collectionModel}" id="i1">
                                <amx:panelGroupLayout id="plam2" inlineStyle="width:33%;display:inline-block;"
                                                      halign="center" valign="middle">
                                    <amx:tableLayout id="tl2">
                                        <amx:rowLayout id="rl2">
                                            <amx:cellFormat id="cf2" halign="center" valign="middle">
                                                <amx:commandLink id="cl1" >
                                                    <amx:image id="i2" source="data:image/jpg;base64,#{pageFlowScope.usuario.img}"
                                                               inlineStyle="width:40px;height:40px"/>
                                                   <!-- <amx:setPropertyListener from="#{row.id}" 
                                                                             to="#{pageFlowScope.FeatureId}" type="action"/>-->
                                                </amx:commandLink>
                                            </amx:cellFormat>
                                        </amx:rowLayout>
                                        <amx:rowLayout id="rl3">
                                            <amx:cellFormat id="cf3" halign="center" valign="middle">
                                                <amx:commandLink id="cl2">
                                                    <amx:outputText value="#{fn:substring('hi how are you?',0,5)}" id="ot2"/>
                                                  <!--   <amx:setPropertyListener from="#{row.id}"
                                                                             to="#{pageFlowScope.FeatureId}" type="action"/>-->
                                                </amx:commandLink>
                                            </amx:cellFormat>
                                        </amx:rowLayout>
                                    </amx:tableLayout>
                                    <amx:spacer id="s2" height="25"/>
                                </amx:panelGroupLayout>
                            </amx:iterator>
                        </amx:panelGroupLayout>
                    </amx:cellFormat>
                </amx:rowLayout>
            </amx:tableLayout>
            
        </amx:panelPage>
    </amx:view>
    

    AMX pages aren't JSF you cannot use just other JSF/JSP features in them.

    A better approach would probably be to manipulating strings in a bean of support and have card field to this value of bean.

  • Problem with ADF Mobile on Android

    Hello

    I am trying to perform a very simple test with adf mobile on android emulator.

    But when I try to open the application, the startup screen never changes.

    Only when I go to the menu and go back to the application in the menu device, it shows the main screen.

    And...

    When I try to open a page very simple amx, the app launch a message that says:

    Failed to initialize the AdfcContext {classname: oracle.adfmf.framework.api.Model; method: pushPageFlowScope; params: ;}}

    Can someone help me?

    I use:

    Framework Mobile ADF oracle.adf.mobile 11.1.2.4

    SDK Android 22

    Message: http://db.tt/mIqcekCI

    Journal: http://db.tt/0frlguNq

    Thank you!

    Hi, there, a number of things to double check your settings of the emulator:

    • When the Android emulator configuration, make sure that the emulator emulates the ARM processor (armeabi - v7).  ADF Mobile works only with the ARM processors - device so the emulator.
    • Under Options, memory, please ensure that RAM is at least 768 or higher.  It is of course also constrained by the amount of memory that your development computer has, but in general, you should have at least 768 MB allocated.  ADF Mobile app itself will almost RAM of course, but there are lots of Android apps that are started in the background when the Android emulator starts.
    • Also make sure, there are 500 MB of internal storage configured - you can go as low as 200 MB, but the space will be quickly.

    Finally, compile/deploy again, please open JDeveloper menu Build - Clean all to clean up any left over deployment artifacts.

    Thank you

    Joe Huang

  • ADF Mobile: EL nested

    Hello

    I use ADF Mobile to develop a mobile application (so JDev, 11.1.2.3.0).
    Now, I am facing a problem of EL nested.

    I press a button and a display of witch popup opens an error/success message.
    My popup code:
    <amx:popup id="mess" inlineStyle="width:90%">
        <amx:panelGroupLayout id="pgl1" layout="vertical" halign="center">
            <amx:outputText value="#{viewcontrollerBundle.ACTIONDATE_ERROR}" id="ot2" rendered="#{bindings.message.inputValue eq 'ACTIONDATE_ERROR'}"/>
            <amx:outputText value="#{viewcontrollerBundle.TIME_ERROR}" id="ot3" rendered="#{bindings.message.inputValue eq 'TIME_ERROR'}"/>
            <amx:outputText value="#{viewcontrollerBundle.SUCCESS_REGISD}" id="ot4" rendered="#{bindings.message.inputValue eq 'SUCCESS_REGISD'}"/>
            <amx:outputText value="#{viewcontrollerBundle.ERROR_SAVING}" id="ot5" rendered="#{bindings.message.inputValue eq 'ERROR_SAVING'}"/> 
            <amx:panelGroupLayout halign="center" layout="horizontal" id="pgl2" rendered="#{bindings.message.inputValue eq 'SUCCESS_REGISD'}"> 
                <amx:commandButton text="#{viewcontrollerBundle.OK}" id="cb3">
                                <amx:closePopupBehavior popupId="mess"/>
                                <amx:actionListener binding="#{bindings.resetFeature.execute}"/>
                </amx:commandButton>
          </amx:panelGroupLayout>
          <amx:panelGroupLayout halign="center" layout="horizontal" id="pgl3" rendered="#{bindings.message.inputValue ne 'SUCCESS_REGISD'}">
                <amx:commandButton text="#{viewcontrollerBundle.OK}" id="cb4">
                                <amx:closePopupBehavior popupId="mess"/>
                </amx:commandButton>
          </amx:panelGroupLayout> 
      </amx:panelGroupLayout>
      </amx:popup>
    As you can see, I use mutiple output texts. I want to move it to only 1.
    I tried:
    <amx:outputText value="#{viewcontrollerBundle[bindings.message.inputValue]}" id="ot2" />
    And some variations as with one. or "but nothing seems to work.
    (I use a group of resources, because the application will be used in different languages)

    Any suggestions on how to fix this? Or another way to call the popup that can support the beams of resources?

    Thanks in advance.

    Hello.

    You can access all through Java code in a managed bean and bind your amx:outputText to one.

    Here is a code example:

    import oracle.adfmf.framework.api.Model;
    import oracle.adfmf.framework.contract.adf.NameValuePair;
    ...
    
        public String getMessage(String err) {
            Model mod = new Model();
            NameValuePair[] result = null;
    
           if (err.equals(ACTIONDATE_ERROR)) {
                result = mod.getValue(new String[] { "#{viewcontrollerBundle.ACTIONDATE_ERROR}" });
            }
           else if ...
    
           return (String)(result[0].getValue());
        }
    

    Simply create a binding method and assign bindings.message.inputValueas the parameter value.

    Best regards

    Frédéric.

  • ADF mobile application deployment: the Android Dalvik (.dex) file does not exist. (oracle.adfmf.framework.dt.deploy.android.deployers.ApkDeployer)

    Nice day

    I use Jdeveloper 11.1.2.3.0

    I'm getting following error when deploying my first app on the android emulator, please help me solve this problem. The exception log is the:

    [10: 50:12] update Android profile dependencies with FAR profiles created from application projects...

    [10: 50:12]-deployment began.  ----

    [10: 50:12] the target platform's (Android).

    [10: 50:12] early deployment of ADF Mobile 'FirstMobileApp' to Android application using the profile "ANDROID_MOBILE_NATIVE_archive2."

    [10: 50:12] check the State of the Android Debug Bridge server...

    [10: 50:17] Server Android Debug Bridge started.

    [10: 50:17] check a single Android emulator is online and connected to the ADB server...

    [10: 50:17] early deployment of ADF Mobile 'FirstMobileApp' to Android application using the profile "ANDROID_MOBILE_NATIVE_archive2."

    [10: 50:17] analysis of the dependence running...

    [10: 50:17] building...

    [10: 50:17] deployment of 3 profiles...

    [10: 50:17] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ApplicationController\deploy\ApplicationController.jar

    [10: 50:18] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ViewController\deploy\ViewController.jar

    [10: 50:18] start preparing the package...

    [10: 50:18] check the Application Controller project exists...

    [10: 50:18] checking dependencies of applications...

    [10: 50:18] Validation of the application XML files...

    [10: 50:18] Validation of the XML files in the ApplicationController project...

    [10: 50:18] Validation of the XML files in the ViewController project...

    [10: 50:18] copy of FARs in the application of the Mobile ADF framework...

    [10: 50:18] far from the source of the copy: ViewController...

    [10: 50:18] copy by far the source: ApplicationController...

    [10: 50:18] copy of model Android...

    [10: 50:48] copy of the framework resource files...

    [10: 50:48] copy of resource files java framework...

    [10: 50:57] copy of the common javascript files...

    [10: 51:02] deployment of counting files...

    [10: 51:02] copy of the application image files...

    [10: 51:02] copy of the ADF Mobile configuration files...

    [10: 51:02] .adf files...

    [10: 51:03] copy of file security related to the application of the Mobile ADF framework...

    [10: 51:03] Creation of preferences Android XML files...

    [10: 51:03] creating AndroidManifest.xml file...

    [10: 51:03] Creation of unsigned Android application file...

    [10: 51:31] compile the file of the Android resource identifier...

    [10: 51:33] create file classes.dex Android since the class files...

    [10: 51:33] update of Android application file not signed with content file and .adf DEX...

    [10: 51:33] Server Android Debug bridge closure...

    [10: 51:33] undeployment.

    [10: 51:33] - incomplete deployment.

    [10: 51:33] the Android Dalvik (.dex) file does not exist. (oracle.adfmf.framework.dt.deploy.android.deployers.ApkDeployer)

    Hello

    I found the answer to this error, it's like actually had reinstalled Studio Android, whereby a new directory has been created with the software, called SDK as sdk1. And in my tools-> preferences, path of the plate-shape and tools platform was given as the sdk (old directory). Now, I've updated the path in the new directory as sdk1 and it works fine.

    Best regards,

    Julien

  • ADF Mobile - Table attached views

    How to pass the new AMX view table as FK PK.

    Don't know how to do in this regard.

    Should we indicate a child view display criteria with Bind Variable from parent PK Table. If so, how.    (e.g. WHERE parent.pk = child.fk)

    Don't want to have a form of parameter, just taking the PK of the parent used as FK to child, like a Mobile view.

    User,

    Always mention your JDev version. Check out this blog: Andrejus Baranovskis Blog: Service Web master / detail ADF BC for ADF Mobile

    Arun-

  • ADF Mobile: Create contact

    I am trying to add the functionality of contact to create my mobile app and followed the instructions here - http://www.youtube.com/watch?v=kpkJDeRH2ys

    I created a bean managed and added the following code:

    {} public void newPhoneContact (ActionEvent actionEvent)

    DeviceManager device = DeviceManagerFactory.getDeviceManager ();

    Contact = new Contact();

    ContactName, contactName = new ContactName();

    contactName.setFamilyName ("Doe");

    contactName.setGivenName("John");

    contact.setName (contactName);

    ContactField phoneNo = new ContactField();

    phoneNo.setType ("mobile");

    phoneNo.setValue("815-000-0000");

    ContactField [] phoneNos = new ContactField [] {phoneNo};

    contact.setPhoneNumbers (phoneNos);

    Contact newContact = device.createContact (contact);

    }

    When I run the application, nothing happens, and there is no error message in the logs. Page AMX code is:

    "< amx:commandButton id ="cb6' icon="/images/add_contact.png '.

    actionListener="#{viewScope.newContact.newPhoneContact}"/ >

    I don't know if I'm missing something here.

    Any help is appreciated.

    Thank you

    I checked this with success in JDev ADF Mobile 11.1.2.4.39.64.64 against XCode 5.0.2 & iOS Simulator 7.0 11.1.2.4.0 and separately 4.2.2 Android API level 17.  It works on both platforms.

    Please indicate which versions of platforms and software that you use, you deploy too.  More information the better.  It is also important on iOS when first invited to allow the application to access the contacts on the unit you click Yes.

    CM.

Maybe you are looking for

  • I can't open new tabs. None of the 'new tab' icon, Ctrl-T or file-new tab works. How can I fix?

    they simply do not work.Click the icon - no new tabCTRL-T - no new tabfile-> new tab - no new tab FireFox 3.6.20--Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; RV:1.9.2.20) Gecko/20110803 AskTbTRL2/3.12.5.17640 NET_mmhpset (.NET CLR 3.5.30729) Win/

  • Not enough memory to complete this operation.

    I had a glance through the assignments to the title of this topic and no solution to the error that I am experiencing. My LabVIEW application runs on a windows 7 PC and receives messages from an application running on tha RT PC LabVIEW TCP/IP.  These

  • Problems of Internet connection with Windows CE 6.0

    original title: frustrated I have a netbook with windows ce 6.0 and I tried each troubleshooting method that could think about my internet provider which is clear. The problem is when I'm at work I can use wifi there without any problem, but at home

  • Download of the printer Mac address

    I have a 6600/6700 officejet all in a printer, scanner and fax that is currently executing a software for windows and mac os x. computer disc it loads only mac os x 10.5, 10.6, v10.7, version 12.14.0 and loaded down our windows successfully. The prob

  • Professional windows to windows 8 pro Windows

    We are a medical office of small business, to comply with the Hippa requirements we are switching to a new software of medical records with an oct 01 go live date all our PC family win7 premium and new software requires Windows 7 Professional, which