Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
shoaib_perception
Posts: 12
Registered: ‎03-28-2012
My Device: 9650
My Carrier: Vodafone
Accepted Solution

how to close webworks.ui.filepicker in code

Hi,

 

I am currently working on blackberry webworks project and i am using webworks filepicker extension for file selection.

 

Each and everything working fine but i have overriden back key functionality and now i want to close filepicker on back key.

 

Now my problem is back key is fired and i also got it but how to close file picker.

 

Is there any code like "webworks.ui.file.close".

 

Any help is really appreciated.

 

Thanks,

Mijaki Shoaib

Please use plain text.
BlackBerry Development Advisor
Nukul
Posts: 115
Registered: ‎06-06-2011
My Device: 9800
My Carrier: Rogers

Re: how to close webworks.ui.filepicker in code

Firstly the filePicker comes with a cancel button which is why I am confused about your question.

where does your back button appear after the file picker is invoked?

 

either way you can close any child card using 

https://developer.blackberry.com/html5/apis/blackberry.invoke.html#.closeChildCard

 

 

@nukulb
Please use plain text.
Contributor
shoaib_perception
Posts: 12
Registered: ‎03-28-2012
My Device: 9650
My Carrier: Vodafone

Re: how to close webworks.ui.filepicker in code

Hi,

 

First of all thanx for your reply.

But my problem is, i want to close file picker on back key and go to last page from where i have opened file picker.

 

And one more thing, i have tried your code but it is not working.

Please suggest any other solution.

 

Thanks,

Mijaki Shoaib

 

 

 

 

 

Please use plain text.