Double-click listitem for opening URLs in the Application of MAF

Hello

I developed a demo application in which I have a data in the arraylist and I showed in the listview layout amx. Now, on each element of the list, I superimposed golink component for opening URLs outside the application.

Here's my amx page code:

< amx:listView var = value ' row' = "#{bindings.generalFeeds.collectionModel} '"

fetchSize = "#{bindings.generalFeeds.rangeSize} '"

selectedRowKeys = "#{bindings.generalFeeds.collectionModel.selectedRow} '"

selectionListener = "#{bindings.generalFeeds.collectionModel.makeCurrent} '"

showMoreStrategy = 'autoScroll' bufferStrategy = 'viewport' id = "panel1".

inlineStyle = "background - color:rgba (0,0,0,0.0);" ' > '.

< amx:listItem id = "li2" >

< amx:panelGroupLayout id = "pgl.

inlineStyle = "margin: 0;"  Padding: 4%; padding-top: 2%; padding-bottom: 2%; ">

< amx:tableLayout id = 'tl1' inlineStyle = "width: 100%;" height: 50%; "width ="100% ">

< amx:rowLayout id = "rl2" >

< amx:cellFormat id = "cf9" width = "100 percent;" >

< amx:outputText id = "ot31".

inlineStyle = "make-weight: bold;" do-size: 18px; grid-rank: auto; Color: #666666; »

value = "#{row.tital}" / >

< / amx:cellFormat >

< / amx:rowLayout >

< / amx:tableLayout >

< / amx:panelGroupLayout >

< amx:goLink id = "gl5.

inlineStyle ="width: 100%; left: 0px; Top: 0px; opacity: 0.0; float: left; position: absolute; background-color: red; height: 100%; »

URL = "#{rank." URL} "/ >"

< / amx:listItem >

< / amx:listView >

Side of the problem:

(1) I have to double-click the list item for the opening of url that I provided by the golink component. On one leg, his does not work.

(2) when I clicked on a list item, it shows me a flag and when I double click on it, once again, it shows an indicator.

(3) issue even with directly by double clicking it, it shows a two indicator.

Please help me.

Kind regards

Siddharth

Yes, update your js to include this

{showJavaCallBackPopup = function ()}

var url = arguments [0];

If (device.platform = 'Android') {}

navigator.app.loadUrl (url, {openExternal:true});})

} else {}

Window.Open (url, "_system");

}

}

Tags: Oracle Mobile

Similar Questions

Maybe you are looking for