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

Java Development

Reply
Super Contributor
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd

Re: how to get selected item listfield and goto next page?.

change your listener like: then reply me

FieldChangeListener btnPinjaman = new FieldChangeListener() {
		
		public void fieldChanged(Field field, int context) {

                     if(field == pinjBtn ){
			UiApplication.getApplication().pushScreen(new SejarajPinjaman());
			
			}
		}
	};

 

Contributor
Posts: 10
Registered: ‎06-10-2013
My Device: 8520
My Carrier: indosat

Re: how to get selected item listfield and goto next page?.

[ Edited ]

i have tried it, but still error on colored red(xmlparsing)

 

UiApplication.getUiApplication().popScreen(new xmlparsing());

 

in xmlparsing.class that extedns UiApplication.

 

when i tried to change to other class who extends MainScreen it work. why?.

 

Super Contributor
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd

Re: how to get selected item listfield and goto next page?.

now try that code 

Screen screen = UiApplication.getUiApplication().getActiveScreen();
				        UiApplication.getUiApplication().popScreen(screen);

 

Developer
Posts: 121
Registered: ‎05-31-2012
My Device: 9900
My Carrier: Airtel

Re: how to get selected item listfield and goto next page?.

[ Edited ]

Please go through the basics--

 

http://www.blackberry.com/developers/docs/4.1api/net/rim/device/api/ui/UiApplication.html

http://www.blackberry.com/developers/docs/7.0.0api/net/rim/device/api/ui/Screen.html

 

You can only pop a screen(a class that extends Screen or FullScreen or MainScreen) by using popScreen method.

 

I wonder why you are extending xmlparsing with UiApplication?

 

 

Rishikesh Singh
Contributor
Posts: 10
Registered: ‎06-10-2013
My Device: 8520
My Carrier: indosat

Re: how to get selected item listfield and goto next page?.


Achin wrote:

now try that code 

Screen screen = UiApplication.getUiApplication().getActiveScreen();
				        UiApplication.getUiApplication().popScreen(screen);

 


i have tried code above,. and when i click button, back to previous screen.

Developer
Posts: 121
Registered: ‎05-31-2012
My Device: 9900
My Carrier: Airtel

Re: how to get selected item listfield and goto next page?.

[ Edited ]

First clarify what you really want to do in xmlparsing class ?

As i dont think you need to extend it with UiApplication.

Rishikesh Singh
Contributor
Posts: 10
Registered: ‎06-10-2013
My Device: 8520
My Carrier: indosat

Re: how to get selected item listfield and goto next page?.

ouu..

so only class that extends Screen/FullScrenn/MainScreen that can pop screen?.

 

i just following xmlparsing tutorial and i don't understand diffrence class that extends UiApplication or MainScreen


rishikeshsinghpbh wrote:

Please go through the basics--

 

http://www.blackberry.com/developers/docs/4.1api/net/rim/device/api/ui/UiApplication.html

http://www.blackberry.com/developers/docs/7.0.0api/net/rim/device/api/ui/Screen.html

 

You can only pop a screen(a class that extends Screen or FullScreen or MainScreen) by using popScreen method.

 

I wonder why you are extending xmlparsing with UiApplication?

 

 


 

Developer
Posts: 121
Registered: ‎05-31-2012
My Device: 9900
My Carrier: Airtel

Re: how to get selected item listfield and goto next page?.

[ Edited ]

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

so only class that extends Screen/FullScreen/MainScreen that can pop screen?.

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

YESSSSS.

 

I think you have just started on BB, please go through basics first instead of parsing XML.


You can visit the previous links for Screen and UiApplication.

 

Thank You

Rishikesh Singh
Contributor
Posts: 10
Registered: ‎06-10-2013
My Device: 8520
My Carrier: indosat

Re: how to get selected item listfield and goto next page?.


rishikeshsinghpbh wrote:

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

so only class that extends Screen/FullScreen/MainScreen that can pop screen?.

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

YESSSSS.

 

I think you have just started on BB, please go through basics first instead of parsing XML.


You can visit the previous links for Screen and UiApplication.

 

Thank You


yes, i'm newbe in BB developement,.

 

ok, thanks rish.

Developer
Posts: 121
Registered: ‎05-31-2012
My Device: 9900
My Carrier: Airtel

Re: how to get selected item listfield and goto next page?.

Always Welcome.

 

Please note some forum rules --

 

>Initiate a new Post for new problems,

>First try to search the forum for your problem. If you not get the solution then only post new thread.

>Also close any post which solves your problem by giving likes and accepting that as a solution.

 

Thank You.

Rishikesh Singh