ADF Mobile: How Fund selectAll feature component < amx:selectManyChoice >.

Hi all

I use version 11.1.2.4.0 version jdev.

I created an amx page where I create component selectmanychoice but problem, it's that there is no option as selectAll who select the option all presented in the list

so, how I do this?


any link tutorial


Thank you

Manish

HI Manish,

I tried something like this in one of my scripts:

public EditionLov [] getDepartments() {}

checkBoxUpdate();

EditionLov d [] = null;

d = (EditionLov []) s_editions.toArray (EditionLov [s_editions.size ()]) of new;

return d;

}

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Public Sub checkBoxUpdate()

{

Object checkAll = AdfmfJavaUtilities.evaluateELExpression("#{pageFlowScope.checkboxSelection}");

If (checkAll! = null)

{

Boolean b = checkAll (Boolean);

AdfmfJavaUtilities.setELValue ("#{pageFlowScope.checkboxSelection}", null);

int size = s_editions.size ();

for (int i = 0; i)< size;="" i++)="">

try {}

Edition EditionLov = s_editions.get (i);

edition.setMark (b.booleanValue ());

}

}

}

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

{} public void selectAllEdition (ValueChangeEvent valueChangeEvent)

Boolean flag = false;

Flag = ((Boolean) valueChangeEvent.getNewValue ()). BooleanValue();

ValueExpression veIter = (ValueExpression) AdfmfJavaUtilities.getValueExpression("#{bindings.departmentsIterator}",Object.class);

AmxIteratorBinding iteratorBinding = (AmxIteratorBinding) veIter.getValue (AdfmfJavaUtilities.getAdfELContext ());

AdfmfJavaUtilities.setELValue ("#{pageFlowScope.checkboxSelection}", Boolean.valueOf (flag));

iteratorBinding.getIterator (.refresh ());

}

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please try this and let me know if it works.

Kind regards

Deepak

Tags: Oracle Mobile

Similar Questions

  • ADF Mobile: How to upgrade chart dvtm

    Hello

    I'm developing an ADF Mobile application that has component dvtm:graphLine. When the application is paused (user switches to another application, for example) and open the application again at a later date, should automatically refresh the chart to display the current data. I put in place of the page life cycle and function to activate it, I try to refresh the iterator. However when I open the app, suspend and open again, the chart says "No Data", even if the iterator is updated (I can follow in web service log) how can I update the graph to display the data updated? Another way of saying, how can the chart automatically update us when the underlying iterator is updated?

    Kind regards

    You might have better luck if you post an example of code, like how you refresh the iterator. Have you tried using the PropertyChangeSupport notification?

  • ADF MOBILE: how to add an item in the list without refresh the entire list

    Hello

    I am using this method to add an item to a list (I've already added the item to the data model):


    providerChangeSupport.fireProviderCreate (String providerKey, int newRowKey, object newValue);


    I don't want refresh the entire list, rather, I want to just add a new item to the list, that's why I want to use this method.


    I want to know, what value should I use for the second argument? i.e. 'int newRowKey '.


    Thank you


    Hello

    the event of change of provider in your case seems to actually create a new line. So the int is the rowKey (index PK or line) of the new line. There is no other choice to simply add an element to a list (ADF Mobile provides no component handles)

    See: Embedded Java/ADF for beginners: ADF Mobile: refresh your valuable data

    Frank

  • ADF Mobile: How user Bind for Backing Bean UI elements

    Hello

    Is it possible to access UI element such as the PanelGroupLayout of the bean of ADF Mobile support? I would like to gain access to its properties and methods.

    Thank you

    estt wrote:
    Thank you for your response. We expect hide or show a PanelGroupLayout according to the preferences. If the user defined in the preferences, the necessary information, we will hide the Panel, show otherwise.

    You can set an attribute in your bean that contains the value 'true' or 'false' and use this attribute to the attribute that is made for your PanelGroupLayout component.

  • ADF Mobile - How will I know which device is using my application?

    Hello, I am developing an app in adf mobile and I need to know if a device running that this application is a mobile phone or tablet, there no way to know what device is running in my application?

    Thank you!

    deviceScope is where you get that kind of thing. Found a tutorial that should help you get started.

    https://blogs.Oracle.com/mobile/entry/tablet_layouts

  • 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: How can I insert parts pure html in a page of amx?

    How can I insert parts pure html in a page of amx?

    There is one tag verbatim which is used to display html markup, but I don't know how to use it. Can someone give an example? I want to use a canvas tag.

    Thank you

    Something like this should work:

         
       

    ]]>

       
  • ADF mobile: how to download a file by using the adapter remains api

    Hello

    I want to download files using the adapter. How would download files like PDFs, images (png, jpg...) etc... Some code would be appreciated.

    Thank you

    Ok

    After days of headaches, there is a way to send files using the adapter and the code above for the side server. Even if it's a big fall in mobile ADF perspective they have no api for this.

    To download a txt file, you can simply copy and paste the text file into a string and have the string supplemented with appropriate limit values and padding values ('\r\n') before and after the string.

    To transfer a binary file, you must convert the file to a base64 string, then put it in the form mentioned above.

    then you can send it as follows:

    restAdapter.send (fileString);

    Don't forget to add the appropriate headers.

    content type

    and

    definitions of values to the limits

  • ADF MOBILE: How to get selected line of an iterator in java

    Hello

    I'm calling this function:

    providerChangeSupport.fireProviderChange (String providerKey, int currentRowKey, object newValue);

    to update an individual line in an iterator.

    What value should I use for the parameter 'currentRowKey '?

    It is just the index of the line?

    If this is not the case, what is the value, and how do I get it?

    Thank you.

    Hello

    Try

    ValueExpression expression = AdfmfJavaUtilities.getValueExpression ("#{bindings.getMyIterator}", Object.class);

    AmxIteratorBinding amxIterator = expression.getValue (AdfmfJavaUtilities.getAdfELContext ()) (AmxIteratorBinding);

    BasicIterator basicIterator = amxIterator.getIterator ();

    GenericType line = (GenericType) iter.getCurrentRow ();

    YourEntity entity = row.getDataProvider ((YourEntity));


    Frank

  • ADF Mobile: What is the AmxAccessorIteratorBinding line item?

    I can get the iterator, but the methods give no idea.

    What I'll throw it AmxAccessorIteratorBinding.getCurrentRow or BasicIterator.getCurrentRow?

    None Returns a specific type, all are subject.

    When I capture in propertyListener, it's the same...

    < amx:setPropertyListener from = "#{bindings.srvIterator.currentRow} '"
    to = "#{pageFlowScope.CurrentRow}" type = "action" / > "

    Any ideas? What is the exact type of throw a line item?

    I'm not 100%, I understand your problem, but that's what you're looking for?
    http://adf4beginners.blogspot.be/2013/01/ADF-mobile-how-to-iterate-over-all-rows.html

  • ADF mobile component SelectOneChoice seems disabled on my amx page

    Hello experts,

    I have a class that loads selectItem table for the SelectOneChoice component.

    In my amx page, I set the value selectItems as pageFlowScope.productDefBean.serviceCategorySupplier.selectItemList as below. When I debug application I see getSelectItemList returns the array with elements as expected on my custom ServiceCategorySupplier.

    But mobile screen waiting countinously.

    "< amx:selectOneChoice value =" #{bindings.selectItemList1.inputValue} "label =" #{bindings.selectItemList1.label} "id ="soc2">

    < amx:selectItems value = "#{pageFlowScope.productDefBean.categorySupplier.selectItemList}" id = "si3" / > "

    < / amx:selectOneChoice >

    If I create DataControl of ServiceCategorySupplier class and use on my page as links, mobile screen is not locked. Component SelectOnceChoice seems this time to the people with reduced mobility. You can see tag amx with this case.

    "< amx:selectOneChoice value =" #{bindings.selectItemList1.inputValue} "label =" #{bindings.selectItemList1.label} "id ="soc2">

    < amx:selectItems value = "#{bindings.selectItemList1.items}" id = "si3" / > "

    < / amx:selectOneChoice >

    What could be the problem?

    Thank you...

    import com.accmee.mobile.pojo.ServiceCategory;

    import com.acme.structure.util.datalist.SimpleListSupplier;

    import java.util.ArrayList;

    to import java.util.Collection;

    import java.util.List;

    Import javax.el.MethodExpression;

    Import oracle.adfmf.framework.api.AdfmfJavaUtilities;

    Import oracle.adfmf.framework.api.GenericTypeBeanSerializationHelper;

    Import oracle.adfmf.framework.exception.AdfException;

    Import oracle.adfmf.javax.faces.model.SelectItem;

    Import oracle.adfmf.util.GenericType;

    SerializableAttribute public class ServiceCategorySupplier extends SimpleListSupplier

    {

    public ServiceCategorySupplier (boolean blankItemApplied)

    {

    Super (blankItemApplied);

    }

    public ServiceCategorySupplier()

    {

    Super();

    }

    Public Sub loadList()

    {

    Try

    {

    MethodExpression = me AdfmfJavaUtilities.getMethodExpression ("#{applicationScope.loginBean.loadCategories}", List.class, new class [] {});

    List categories = (List) me.invoke (AdfmfJavaUtilities.getAdfELContext (), new Object [] {});

    itemList.addAll (getConvertedToSelectItemList (categories, true));

    }

    catch (System.Exception e)

    {

    e.printStackTrace ();

    throw new AdfException (e.getMessage (), AdfException.ERROR);

    }

    }

    public String getListName()

    {

    return of the 'categories ';

    }

    public static Collection getConvertedToSelectItemList (list, boolean blankItemApplied)

    {

    Collection convertedCollection = new ArrayList();

    SelectItem selectItem = null;

    If (blankItemApplied)

    {

    selectItem = new SelectItem();

    convertedCollection.add (selectItem);

    }

    ServiceCategory serviceCategory = null;

    for (int i = 0; i < list.size (); i ++)

    {

    GenericType (GenericType) = list.get (i) serviceCategoryType;

    serviceCategory (ServiceCategory) = GenericTypeBeanSerializationHelper.fromGenericType (ServiceCategory.class, serviceCategoryType);

    selectItem = getConvertedToSelectItem (serviceCategory);

    convertedCollection.add (selectItem);

    }

    Return convertedCollection;

    }

    public static getConvertedToSelectItem (superEntity ServiceCategory) SelectItem

    {

    SelectItem selectItem = new SelectItem();

    selectItem.setLabel (superEntity.getName ());

    selectItem.setValue (superEntity.getId ());

    return selectItem;

    }

    public SelectItem [] getSelectItemList()

    {

    SelectItem [] sItemArray = (SelectItem []) getItemList () .toArray (new SelectItem [getItemList () .size ()]);

    Return sItemArray;

    }

    }

    public class ServiceCategory

    {

    whole ID private;

    private String name;

    description of the private channel;

    private parentCategoryID entire;

    private childCategoryID whole;

    kind of Integer private;

    private transient PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport (this);

    public ServiceCategory()

    {

    Super();

    }

    public void setId (Integer id)

    {

    Integer oldId = this.id;

    This.ID = id;

    propertyChangeSupport.firePropertyChange (oldId, "id", id);

    }

    public void addPropertyChangeListener (PropertyChangeListener l)

    {

    propertyChangeSupport.addPropertyChangeListener (l);

    }

    public void removePropertyChangeListener (PropertyChangeListener l)

    {

    propertyChangeSupport.removePropertyChangeListener (l);

    }

    public Integer getId()

    {

    return the id;

    }

    public void setName (String name)

    {

    String oldName = myIdName;

    myIdName = name;

    propertyChangeSupport.firePropertyChange ("name", oldName, name);

    }

    public String getName()

    {

    return the name.

    }

    public void setDescription (description of the chain)

    {

    OldDescription this.description = string;

    This.Description = description;

    propertyChangeSupport.firePropertyChange (oldDescription "description", description);

    }

    public String getDescription()

    {

    return description;

    }

    public void setParentCategoryID (Integer parentCategoryID)

    {

    Integer oldParentCategoryID = this.parentCategoryID;

    this.parentCategoryID = parentCategoryID;

    propertyChangeSupport.firePropertyChange ("parentCategoryID", oldParentCategoryID, parentCategoryID);

    }

    public Integer getParentCategoryID()

    {

    Return parentCategoryID;

    }

    public void setChildCategoryID (Integer childCategoryID)

    {

    Integer oldChildCategoryID = this.childCategoryID;

    this.childCategoryID = childCategoryID;

    propertyChangeSupport.firePropertyChange ("childCategoryID", oldChildCategoryID, childCategoryID);

    }

    public Integer getChildCategoryID()

    {

    ChildCategoryID return;

    }

    public void setSort (kind of integer)

    {

    Integer oldSort = this.sort;

    This.sort = sort;

    propertyChangeSupport.firePropertyChange ("Sort", oldSort, sort);

    }

    public Integer getSort()

    {

    return of sort;

    }

    public void setPropertyChangeSupport (PropertyChangeSupport propertyChangeSupport)

    {

    PropertyChangeSupport oldPropertyChangeSupport = this.propertyChangeSupport;

    this.propertyChangeSupport = propertyChangeSupport;

    propertyChangeSupport.firePropertyChange ("propertyChangeSupport", oldPropertyChangeSupport, propertyChangeSupport);

    }

    public PropertyChangeSupport getPropertyChangeSupport()

    {

    return propertyChangeSupport;

    }

    }

    brgds,

    A litle update worked for me.

    Code snippet below

    Public Sub loadItemList()

    {

    SelectItem selectItem = null;

    itemList = new SelectItem [list.size ()];

    ServiceCategory serviceCategory = null;

    for (int i = 0; i)<>

    {

    GenericType (GenericType) = list.get (i) serviceCategoryType;

    serviceCategory (ServiceCategory) = GenericTypeBeanSerializationHelper.fromGenericType (ServiceCategory.class, serviceCategoryType);

    selectItem = getConvertedToSelectItem (serviceCategory);

    itemList [i] = selectItem;

    }

    }

  • ADF Mobile: Can I add Badging to the features of Mobile?

    Nice day:

    I'll put up the Push Notifications.  Is this possible in ADF Mobile badge function icons?  Here is my goal.  When a Push Notification comes in the badge number is displayed on the icon of the application.  After that the user launches the app I want to display badges for each feature that requires attention.

    Use case: A Manager has the badge number 40 on the application icon.  When the application is launched, I want this number be broken down into service level badging.  For example: the Manager must answer the following questions: 15 claims, 5 applications for leave, 2 requests for home work, etc...

    I looked and didn't see any documentation.  I'm under JDK 7_55, JDev 11.1.2.4, XCode 5.0

    Thank you for your expert opinion on how to proceed,

    Tree Strepek

    Function icon badges is not supported, otherwise get listed in the documentation.

    http://www.Oracle.com/pls/as111240/search?remark=quick_search&Word=+badging&PartNo=

  • 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 (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

  • 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

Maybe you are looking for

  • iPhoto und remote control

    Kann der of mit man Laufwerk eine Dia-Show taxes (loss/weiter) remote control?

  • Is it useful to 512 MB of RAM to 2 GB - Equium L20

    I Equium L20-198 that have Intel Celeron M 370 / 1 Mb L2 cache and 512 RAM. I was wondering is it worth to upgrade to 2 GB RAM to increase performance in 3D using programs such as Max and Auto CAD 3D with this Celeron processor? This update is going

  • ProBook 470 company G1 64-bit drivers

    Hello I am currently undertaking a task of building of a HP ProBook 470 G1 on Ent of Windows 7 64 bit... I'm having problems with the drivers for it (as expected), I wonder if anyone can help with the driver either exact or compatible for: Hardware I

  • Need to create useful reports from the results of TestStand (.mdb) database

    Any help is greatly appreciated! We need create reports from the results of TestStand (.mdb) database.  I was not able to find much online. Details: In 2014 TestStand, we have configured to use Access database management system.  Otherwise, the datab

  • Why iexplorer.exe appears in the Manager of tasks so I have all the windows open?

    I am currently using Mozilla Firefox as my browser and use Internet Explorer only when necessary, but everytime I open the Task Manager I see several process iexplorer.exe with a high percentage of CPU use and memory, even when I'm not on the interne