Oracle ADF Mobile #{row.index} is Not Supported After Installing Upgrade Patch

October 10, 2013

You had a great application working in ADF Mobile, you updated to the latest ADF Mobile patch, and then suddenly the actions you perform on a list item aren’t working anymore?

We had an ADF Mobile application, developed in JDeveloper, that worked great. In that application there is a list of items, and when you click on a list item, the header of the Panel Page changes to the name of the selected item.

Everything worked really well. We upgraded the Oracle ADF Mobile extension plugin, and suddenly this functionality stopped working!

When clicking on a list item, the item’s name was supposed to appear on the Header of the page, but after the upgrade this has not been happening.

We went over the code and we noticed that the #{row.index} code set  under the  “Set Property Listener” property was circled with a red border. This means that #{row.index} is not supported anymore. We replaced #{row.index} with #{row.rowKey} across our whole project, and now everything is working as it should be.

To sum it up: Search your code for appearance of  #{row.index} and replace it with #{row.rowKey} so you won’t have similar issues!

After this went to print our ADf Guru Steven Davlar shared his code for a more generic solution that will work if the view object have a primary key as well. See his comments below.

His suggested code is:

change amx:setPropertyListener   from=”#{row.rowKey}”  type=”action” to=”#{bindings.<view>Iterator.iterator.currentIndexWithKey}” id=”spl2″ />

Comment if you have an other patch or upgrading issues!