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
Highlighted
Visitor
Posts: 1
Registered: ‎05-17-2011
My Device: 9700
My Carrier: programmer

How to use pushscreen in ScriptableFunction?

[ Edited ]

help please;

 

 I want to use pushscreen in ScriptableFunction.

but don't excute pushscreen in ScriptableFunction.

 

 

this source :

 

 

       ScriptableFunction nFilterInit = new ScriptableFunction()
       {
           public Object invoke(Object thiz, Object[] args) throws Exception
           {
               if(args.length > 0)
               {
                   System.out.println( "=====excute=====");
                    //don't excute
                    UiApplication.getUiApplication().pushScreen( new TestScreen() );

                   System.out.println( "=====excute=====");
               }
               return Boolean.TRUE;
           }
       };
      browserField.extendScriptEngine("blackberry.init", nFilterInit);