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

Native Development

Reply
Developer
ekke
Posts: 1,510
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone
Accepted Solution

SystemCredentialsPrompt usernameEntry

I'm using the Cascades SystemCredentialsPrompt to get username and password

works fine to enter the values

but HowTo get the entered values ?

onFinished: {
      if (result == SystemUiResult.ConfirmButtonSelection) {
          console.debug("User: "+ usernameEntry)
          //.....
      } else .....
}

 from documentation I expected to get the entered value, but I'm getting

User: [object Object]

 

the dialogs sample app doesn't use the entered values

 

any idea ? or I'll submit an Issue

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: SystemCredentialsPrompt usernameEntry

I haven't tried that one yet, but will see if I can today. In the meantime, I wonder if you're getting tricked by the fact that it's a function, not a property... try usernameEntry() instead? (Either that, or you simply made a typo in transcribing your code above, and there really is a problem.)

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
ekke
Posts: 1,510
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: SystemCredentialsPrompt usernameEntry


peter9477 wrote:
I haven't tried that one yet, but will see if I can today. In the meantime, I wonder if you're getting tricked by the fact that it's a function, not a property... try usernameEntry() instead? (Either that, or you simply made a typo in transcribing your code above, and there really is a problem.)

Peter, you're right:

usernameEntry()

works.

 

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.