read textfield on the next screen

Then. I am very new to programming and a hard time to find an answer to my question because I don't know anything specific to search again.

I have a textfield on my first screen named txtPrice and txtQuantity and a btnCalculate button. How to multiply these on the next screen?

I tried to set the fields for two text as a public variable on the screen, but the value entered on the roll screen1 does not grow above screen2.

Could someone please provide an example of how to do this.

Thank you!

Welcome to the forums and emissions of BlackBerry.

This kind of thing is not something is not specific to BlackBerry, and it might pay to read some more information about Java programming., otherwise you'll beat Java and BlackBerry trying to learn things.

Anyway, in this case, probably the best thing to do is actually pass values through to display 2 as part of the constructor.  So in your treatment for your press the button, you'll have something like

Price of the string = txtPrice.getText ();

String quantity = txtQuantity.getText ();

Screen2 newScreen = new Screen2 (price, quantity);

UiApplcation.getUiApplication () .pushScreen (newScreen);

And you Screen2 constructor would look like

Public Screen2 (price, amount of String String) {}

.....

}

You will need something like

float quantityFloat = Float.parseFloat (quantity);

to put strings into numeric values, you can multiply.

But like I said, learn java on the Blackberry is a challenge.  I would try to get some skills in Java on a PC (which is much more friendly learner) before developing on the BlackBerry.

Tags: BlackBerry Developers

Similar Questions

  • Text for the username variable input area moves to the next screen when you click

    I assigned a username variable to a text entry area. If I mouse click inside the text box to enter a name, I am taken to the next screen. In other words, the entry text box seems to act like a button. Is there something I need to change in the Properties window to prevent this?

    Hi Eddie,.

    You have 2 possible actions: a by clicking on the button (success), a when you click outside the button (the rest of the slide) which is a failure. And you can attach an action at a time. The default action for both is 'Continue', which means that the head of reading which has been suspended by the button, will continue. You don't want that to happen if the user clicks on the button, but outside the key (like by clicking in the field ETB). This is the reason why recommended Manish allows you to change the action for failure to 'No action', which means that nothing will happen if the user clicks outside the button. He can then click in the text field and type its entry.

    Lilybiri

  • the "next screen" buttons are invisible, making it impossible to navigate beyond the first page of what either. Help please!

    One no matter what website I connect to, if I need to navigate to another page after the first there is usually some sort of bo or the button at the bottom of the page to click to go to the next screen. The button/box has disappeared from all the websites I visit, so I can't really do a lot online. Help.

    Many issues of the site can be caused by corrupted cookies or cache. To try to solve these problems, the first step is to clear cookies and cache.
    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Go to Firefox > history > clear recent history or (if no Firefox button is displayed) go to tools > clear recent history.
    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click the clear now button.

    More information can be found in article to clear your cache, history, and other personal information in Firefox .

    This solve your problems? The report please come back shortly.

    At this site never displayed properly on this computer using Firefox?

  • Could not go to the next screen

    Hi all

    I'm trying to move to the next screen in my application with the two references that I entered the first screen of my application. Here's the code for this situation:

    Rather using the == try using equals function (s1.equals (s2)) of a string... then it will work!

  • Captivate 7 How have hit (right arrow) to make the simulation to move to the next screen

    I'm building a simulation and need some keystrokes to create the action to move to the next screen.  Example: The user is prompted to press the right arrow key to make the screen to move to the next screen.  I have to be able to set up failure messages when the user presses an invalid key.  I don't know what I should use.  I tried text boxes, but they need to be entered in the text.  Thanks in advance

    CTRL is a combination key... will not work as a shortcut key, even for ALT and SHIFT. System expects another key in combination with these keys.

  • Screen by moving to the next screen prematurely

    I have several boxes to click on my screen. The user must click on the transparent boxes click to enlarge the images. I also have a button "Next" set up.

    Ideally, I would like the user to click on all the boxes to click, and then click the next button to continue to the next page.

    Instead, the screen advances to the next screen until all boxes are clicked. (For example, it continues after a click in the 2nd box). Area click each is put in place so that the screen is paused until the user clicks on it, and the next button stops earlier in the screen. (Thus, when looking at the timeline, break next icon comes before breaks for click boxes).

    How should I set the boxes and then button so that it won't happen?

    Thank you!!

    Hello

    The option remains on the slide is probably the culprit here. Click pause at the end of their time in slide boxes. So if they are for the rest of the slide, they only will pause at the end of the slide and will not be staggered.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Time before you click to the next screen

    On my lates project, I noticed that when I click the clickbox I created, it takes a few seconds before the screen goes in reality.

    It does this on each screen in this project so it must be some settings somewhere.

    Here is the link

    http://robertensing.com/help/Windows_7.html

    Can someone help me on this one?

    Thank you

    Robert E

    Hello

    My guess is that you have to 'Continue', chosen as the action of the clickable object. You probably want to change the action 'go to the next slide.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Stop Non-fond sound when you go to the next screen

    We have just imported the swf file. We do not want to import the .cp file because sometimes there are 70 leaders in a demo, and we don't want all these files in a 'lesson', but what happens if a student wants to stop a demo and advance through the lesson. Audio continues to play. What is the answer? Thanks for any help! (We use a LMS system that doesn't bind us to other files internally. We can only access multiple files via the LMS menu, and often a 'lesson' will contain several 'demos '.

    the imported file contains the audio right?

    If this is the case then add a secondary flash file to the next with screen
    stopAllSounds();

    Who will cancel any noise that can be pulled through. You may have to add to each screen if you allow your user to progress to any screen they choose.

    Hope that helps.

  • Go to the next screen

    Hi all

    I developed a screen with a selection of buttons that you can click on the use of the navigationClick method. Is there a code I can add to each field button that allows the user to press the key "Enter" on the keyboard to also click on the button?

    Thank you

    You can use keyChar (key char, int status, int time):

    protected boolean keyChar(char key, int status, int time) {
        if (key == Characters.ENTER) {
            // ... code here
        }
        return super.keyChar(key, status, time);
    }
    
  • Install Windows 8 on external drive Thunderbolt - Windows could not prepare the computer to begin the next phase of installation

    Hi all

    I'm at my wit's end trying to install windows 8. Let me start at the beginning: I used to have windows running on my Mac Pro ssd internal 8.1, installed via bootcamp. It worked well for a while, and then refused to start, gives me a blue screen KERNEL_SECURITY_CHECK_FAILURE. Despite some advice from lonely T, I was unable to fix and ended up wiping the partition and relocation, again via bootcamp. Yet once again, it worked for a few months, then the same problem. I made this one last time, and it only lasted 2 days... So I gave bootcamp.

    I think that the hybrid MBR partition scheme that implements bootcamp is the culprit, but I don't really have evidence to substantiate this claim. In any case, I tried to install windows in EFI mode. (If I understand correctly, the hybrid MBR is set up to allow windows to install in legacy BIOS mode, but that windows 8 may now install efi, which supports my Mac Pro mode.) My Mac is the new Mac Pro (end of 2013, trash in shape), and I can say short UEFI 2.0 (I have the latest efi update from apple installed).

    The method I'm trying:

    1. create a new partition in HFS + on my external drive using disk utility. The drive has now it's efi partition and partition empty 750Go I want to install windows a 1.25 TB storage partition that I use with my mac. It has a GPT. I formatted HFS + and no FAT, because I think that disk utility creates the same hybrid-MBR as training camp every time a FAT partition is created.

    2. use gdisk to confirm that the disc does not have a hybrid-MBR. (sudo/dev/disk1 gdisk watch MBR: protection)

    3 restart my mac and hold the possibility to put in place to bring up the boot efi menu.

    4. Select the EFI_Boot DVD icon (that's the windows 8 install dvd that I have in my superdrive USB drive)

    5. go in the menus of the disk selection screen installation and delete the partition in HFS +, I created to install windows on (the format option is not available)

    6. now select "Unallocated space" on the good drive and click Next.

    The problem:

    Partitioning seems to go ok (there is no feedback on this basis, but it proceeds to the next screen, and all new partitions expected are there if I check diskutil list later). He said it is "copy of windows files", but then stops with the error "Windows has no prepare the computer to start the next phase of the installation." To install Windows, restart the installation. "If I restart, I can start the same process all over again and get the same result.

    The Question:

    How I get this error and get windows install?

    Extra pieces:

    • The first time it happened I assumed it was the new sip / thing "without roots" in El Capitan, causing problems, then I disabled, but I still get the same error.
    • After reviewing the diskutil list output after one of installs it without success, I found that a labeled EFI partition has been created after my storage partition (the original efi partition was still there in the upper part of the disc).
    • I have windows 8.1 installed now bootcamp on my internal ssd. It was planned to use it and winToUSB to put windows on my crush, but I found that it only works with usb2. I do not have installed could cause problems with the installation on another disk.
    • Before say you I can't run windows on an external, yes you can, and many people have. I read windows sees thunderbolt internal disks.
    • I read a few other posts on this and other sites on this problem, but could not find a pertitnant solution to my situation. I found one that suggested to remove the efi on my disk partition, but that seemed like a bad idea, so I didn't try.
    • I write this at 1 in the morning after a day spent in front of the computer trying to get this working, so please excuse typos typing or other. I am pleased to provide you with any pertinant information helping you will help me.
    • Thank you!

    The other thing I tried also almost succeeded:

    Although I prefer to get the method above works, because it seems the most promising, is something else, I've tried that I thought worth mentioning. If you offer advice pertaining to this method rather than the above, I would appreciate it if you could explicitly declare that at the top of your answer. Thank you.

    I tried to install windows on the physical disk using vmware and virtual box. The instrutctions I followed for this can be found here: http://www.andrewsavory.com/blog/2011/2156 (the only thing different, it's because it's on an external drive, I created the Fat 32 partition manually using disk utility). The first time (using vmware) installation seems to go off without a hitch, but I couldn't get my computer to see the windows partition as bootable with the boot efi menu hold-option regular refined or with system preferences-> startup disk. I think that I was using always inadvertently a hybrid-MBR at this stage. I tried to repeat this new beginning with the first two steps above to avoid the hybrid-MBR. But now when I try to create the virtual machine based on the gross vmdk, it starts to copy the files then says not sufficient permissions and fails. I don't know if it's a permission with the disk or the hard problem. I tried chmod 777 and chown $USER of the vmdk disk (/ dev/disk1s3) does not.

    Wow, that was a long post...

    1. when a second drive is detected by the Windows Setup program, he wants to create his own brand of EFI (104 MB) and not to mess with the Mac EFI (200 MB). You can force it to use the EFI to the Mac using Diskpart commands.

    2 instead of HFS/FAT32, create a piece of 750 GB free space and it should only get a new MSR/MSD, without the part of EFI.

    3. on your VM method, the link you have is quite old. You have a MP 2013, with references to the 2010 Mac alumni and is a bit too archaic to be useful. http://forums.macrumors.com/threads/install-a-Windows-7-partition-on-Mac-OSX-Wit hout-optical-car-or - usb.1836959 / #post... seems to work for many and can be useful for a test. It also uses Winclone.

    4. you can also try http://bleeptobleep.blogspot.com/2013/02/mac-install-windows-7-or-8-on-external. html .

  • The Welcome screen freeze

    I use Vista and now my laptop screen was immobilized on the Welcome screen and goes no further.  I can't get to the next screen by doing a Ctrl alt del.  The causes?  Solutions?

    Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     

    If restore work not and you do not have a Vista DVD from Microsoft, do a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use it.

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner: http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    See you soon.

    Mick Murphy - Microsoft partner

  • Text input button to the bottom of the next image

    I'm trying to understand how:

    1. One person entered information in the input text
    2. They hit the Enter key and
    3. It moves to the next screen.

    It there a way to do this?

    You can use a listener to detect the keyboard entries and have a function that checks to see who has been registered.  The code for this is shown below.  In respect to attaching it in the textfield, it depends on what kind of condition, you intend for IT. Maybe you just need a conditional around this line that checks if the input textfield object contains another type.

    Stop();

    var keyListener:Object = new Object();
    Key.addListener (keyListener);

    keyListener.onKeyDown = function() {}
    If (Key.GetCode () == 13) gotoAndStop (nextscreen);
    }

  • iPad 2 frozen screen cannot drag screen to the password screen

    MY second series iPad screen is frozen. He gets daily updates everyday. I can't slide to get to the next screen, but in the password. I trie to turn the unit off and when I get to the screen to swipe the power, I can't drag to close. How can I solve this problem?

    There are some helps out here If your iPhone, iPad or iPod touch won't turn on - Apple Support

  • My mouse is stuck on the main screen (add pictures)

    I'm used to 2 monitors, and I want to keep it this way. So I implemented a QUANIX monitor I have via HDMI to my Sprout.

    I have extension success of two monitors. but my mouse cursor is stuck in the main screen of Sprout.

    If I drag a window to the next screen, the window can move to the second monitor. but my mouse cursor is stuck on the first monitor.

    How can I solve it?

    Please help me... T_T

    (You can see in detail through below the images)

    monitor 1: HP all-in-one

    Monitor 2: horizontal HP

    Monitor 3: MON-SIS330 (QNIX QX2400)

    Current value of monitors

    captured when dragging a window to the next monitor

    I can find the solution to another post. Sprout Service stop and I can't success using extended display.

  • HP Envy 15 black laptop after the login screen.

    The laptop was working OK up to now just get a black screen after login. I can hit Ctrl alt del, but nothing happens

    Hello

    Try the following - this implies that you are under Windows 8/8.1.

    Stop of the laptop and leave it like that for 10 seconds.

    Tap here to f11 as soon as you press the power button until you see a message "Windows is loading.

    On the next screen, select your Keyboard Layout and on the next screen, select Troubleshooting.

    Select 'Advanced Options', and then select System Restore.

    Click on yourcurrent system O and then wait as the system restore window opens.

    Pick a point to restore at least 48 hours before that this problem occurred first and then proceed with the system restore.

    Kind regards

    DP - K

Maybe you are looking for