Transmission of data between the clarification of the screens

Hi, thanks for taking the time to help

This issue has been raised before. But he never seems to be a direct response to this problem.

I have two screens. The first screen has a button and a LabelField. The button pushes a new screen with a timer on this subject. I'll start the timer on the second screen. Now, I want to pass the value of a that time, as a string, return on the first screen to be placed in the LabelField.

May I ask, how can I do this please?

PS. is it possible to pass by reference in Java... I'm a newb as you may have guessed.

"This issue has been raised before. '" But he never seems to be a direct response to this problem. "

"I am a newb as you might have guessed."

I think that these two points are related.  In other words you don't know how to do what you want because you're new to Java.  And for more confusion, there are at least 3 different ways to do it.

One way is to static variables, as the previous poster suggested.  I personally would not recommend that approach, as for me using methods and static data is kind of anti paradigm object (at least it seems that way to me).  Just it's just personal.  YMMV.

Think in terms of purpose, at its core, a screen is just an object.  It is understood by the system to provide an intervention of the user interface, but it is above all an object.  A part of the question you ask here is:

"I have two objects.  .... Now I want to spend a time value, as a string, the second object, the first object. »

A simple answer to this question is to use a ' getter '.  If 1 object creates the object 2, then an intervention takes place 1 item then gets the value of the object 2.

So that's part of the problem solved, in a friendly manner of the object.  Now the second part:

"The button pushes a new screen with a timer on this subject. I'll start the timer on the second screen. Now, I want to pass the value of a which time... »

I assume that you need not the return value in the Second screen until the user has closed the second screen?  In this case, when you tap on the screen, use pushModal.  Then the control is returned to the statement after the pushModal when the second screen is closed.

Now the third part of the process:

"to be placed in the LabelField.

If you have a reference to the LabelField, then you can 'set' the value you have in the second screen using your getter.  This code would run after the pushModal.

Job done...

Other variations on this include having 2 screen be a reference to the display 1 function and update the value directly.

But my favorite is not having the data in a Screen object.  Have a data object that contains the value of the timer, have getter and gets of the setters on this data object then Screen2 sets and screen 1.  Both screens are in need of a reference to this data object.  But the big advantage of this approach is that if theer is Screen3, who also wants to see this same value of the timer, so it can be given a reference to the data object and all three screens will see the same value, because it is the same value, without effort.

Tags: BlackBerry Developers

Similar Questions

  • Problems with the transmission of data between the screws

    Hi all.

    I have a question where my program slows considerably during the race.

    The program is a producer-consumer, where I have the main consumer loops and loops producer for USE comms, measure the output power, input for measuring the power, thermal control, etc..

    Regarding the issue, the measures of output loop takes readings and transmits the data to a separate VI which remains running (measure of output processor). This VI summarizes and on average the data and also displays data for the operator to see details if necessary. The operator shows and hides the front panel of this VI with a button on the main program. This VI also returns the summary data to the main VI, where it is read by my loop of consumer.

    The main measures output VI loop takes about 200mS to run when the program is first started. Less than a minute, it is 400 MS, and it's all downhill from there.

    I've isolated the problem to the way I pass data back (I think). I couldn't find a way to pass the reference of the queue between two screws not connected by wires. I open a reference to the VI processor and use Ctrl Val.Set and Get to pass the data back. If I take the intersection of the Subvi data, there is no slowdown.

    My questions are:

    (1) why the data passing by invoking a node of the control on the target would cause the downturn?

    (2) how would I get/pass information of queue between the two screws are not connected?

    (3) Alternately, could I start the VI processor in my main program, run and pass data in and out of it? I want to keep it running, because it is also part of the user interface.

    I don't know that I have not explained this very clearly. I took some screenshots of my code, but don't see how to download here.

    Thanks in advance,

    Jim


  • Copy data between the custom dimension members or scenario

    Dear Experts,

    I'm back with my silly question.
    Is there anyone know how to copy all the data (not only entity currency) between members in the custom dimension? Our HFM application has a different type of data because the type declaration (legal and audit). Whenever we arrived with our legal data, we copy our legal consolidated data for verification. We tried to create a formula (using hs.exp) to move data from legal to check, but apparently, this formula should be write inside Sub calculate (). Is not supposed, we do not want to run the copy data every time that the user click on calculate.

    We also perform copy data between the scenario, as actual to Budget. This activity also needs all the data consolidated and final.

    So the condition for the copy of data are:
    -data must be consolidated
    -Copy all the data, including the adjustment

    Is there a formula or a way to copy the data that can be triggered individually (click 1 rules that run only copy data) by the user?

    Thank you very much for your kind response,
    -Anna

    Hi Anna,.
    As you say, you cannot trigger different parts of rules to run in HFM. Instead, you use a condition. In your case this condition might be guided by the management of the process. You can use a combination of GetSubmissionPhase, review status , and ReviewStatusUsingPhaseID functions that returns the current process management level and presentation details: phase. To me, it seems that as soon as you have finished legal, you complete a part of your process cycle and enter another stage of verification. Here are the parts of your publishing process, if you have defined a process in HFM management or not, which means that you should consider using it.

    -Kostas

  • How to filter dates between the current date and the number of dates past

    Hello

    On the answers, how can I do to return a report that contains data between the current dates and 31 days in the past?

    Users want to connect display the report and the report should show only data 31 days to the date of the day... How would I be able to set it up on the answers that since I have not access to RPD?

    Please let me know

    Thank you

    use the date filter between current_date and timestampadd (sql_tsi_day, -31, current_date)

    fixed

  • Satellite P - grains of dust between the screen and before

    Hello.

    After a few weeks of suddenly, I have a speck of dust between the screen and front end.
    How can he get there and so I have to send in the laptop to the service?

    Greetings from the Germany and sorry for my bad English.

    Hello

    I think that it of difficult to say something about it, but I think that in this case, you can't do anything. The only chance is in touch with an authorized service provider because technicians can disassemble the laptop and check this box. If you disassemble the notebook you will lose you warranty so I n t this

    If you don't know where is the nearest ASP, you can search here:
    http://EU.computers.Toshiba-Europe.com > support & downloads > find an authorized service provider

    Simply contact the technicians. You will see that it s interesting to talk with them a little and they are friendly. ;)

  • Exchange of data between the internal and external labview code

    Sorry for a simple question.

    I have a TestStand sequence that uses units/tests written in LabVIEW. The sequence is extermnally began with a stand alone LabVIEW program. I need to establish simple exchanges of information between units of the sequence LabVIEW and LabVIEW external code.

    Information are simple strings will eventually be sent in both directions.

    Please advice what commumnication path needs to be implemented.

    Unfortunately, arttempts to search OR site Internet (or Internet) result in a large number of irrelevant information. Probably, I can't shape appropriate keywords. There is therefore a need for your help.

    Thank you

    _Y_ wrote:
    [...] It takes by presenting some initial information (e.g. username) in the sequence [...]

    Use a Message from the user interface of query for the data (data available in the user interface, executing sequence requires it).

    _Y_ wrote:
    [...] and view the status of intermediate/final level in the user interface.

    Use a Message from the user interface to transmit these data to the display (data available in the execution of sequences, Which requires it)

    Norbert

    EDIT: Btw, you should use TestStand user to nicks track management. This gives you more options and security than some custom stuff implemented in the user interface.

  • Exchange of data between the main VI and sub - VI

    It is my first attempt to build a comprehensive program and hope you can help me.

    The idea is to load a set of data and to perform several calculations and operations on them, find themselves in the creation of a report file.

    What I want to do is to build a main VI which contains the data, and several sub - vi to do the math, dynamically loaded in a subgroup of experts (for the simple user interface). I thought about this architecture because I'm sure I'll have to change the calculation of VI, and I don't know how I'm going to need, so I can just add an another calc VI to the plugin dir and load it. The thing is, I have to keep moving data back from the main VI to the Subvi and maybe even between sub - vi. Is there an easy (or not so hard) how? I thought about queues, but sometimes the data is to be sent to more than a subvi, and I can't have a queue for each. The idea that I get is like a network producer-consumer mode BOX: the main VI produce some data and all those interested in this data use. Then they send the results back (as a "producer") and all stakeholders in the response it consumes.

    Attached, is a "skeleton" of what I intend to do.

    There are several ways you can accomplish this. First of all, you can use the Start Asychronous Call, which will provide a component of connector for you. So, it is easy to wire the reference to it. You could also implement a global functional (also known as a motor of action) to access the event reference. It is the approach we use for our shared events. If you have lines between the main VI and ths Subvi you to format a particular message reference. However, I don't think that this approach would correspond to what you are doing.

  • Transmission of data via the Ad Hoc network in LabVIEW

    Hello

    I'm trying to transmit some data (position, speed, etc.) a laptop computer to a host computer.

    The laptop and desktop have the card installed wireless so I thought this would be a good

    the idea of transmitting data via Wi - Fi using TCP.

    However, the problem is that there is no router/modem in the area where the laptop is sitting

    so, I create a network of Ad-hoc (computer to computer) between the laptop and the desktop computer.

    Then, I use "ipconfig/all" in the Windows command prompt to extract the IP as follows.

    IP address wireless laptop: 169.254.165.72

    IP address Wireless Desktop: 169.254.102.126

    Desktop Ethernet IP address: 129.94.229.230

    I then use the code example in the TCP library named 'Data Server.vi' and "Data Client.vi."

    I listen on port 6340 times the wireless and ethernet desktop on the side map server.

    And on the side of the customer, I opened a connection to port 6340 169.254.102.126 IP address.

    However, the connection cannot be granted. Anyone know why this is the case?

    Note: I have disabled all firewalls.

    Interesting, when 2 computers are connected to the same modem, their IP addresses

    differ only by the last number (e.g. XXX.XXX. XXX.123 vs XXX.XXX. XXX.256), but when an ad

    the House of Commons network is established, their IP addresses have 2 numbers that are different. (XXX.XXX.

    102,126 vs XXX. XXX.165.72) I wonder if this has nothing to do with the failure.

    Thanks for all your help.

    Ron Liou

    I somehow this job.

    What I've done

    -Once again set up an Ad hoc network for the labtop and Office

    -verification of the IP address is always the same

    > Portable wireless IP address: 169.254.165.72

    > Portable wireless subnet mask: 255.255.0.0

    > Wireless Office IP address: 169.254.102.126

    > Wireless Office subnet mask: 255.255.0.0

    -switch on the ICS of the ethernet on the desktop card

    (This resulted in an IP different addresses assigned beng)

    > Portable wireless IP address: 192.168.137.21

    > Portable wireless Subnet Mask: 255.255.255.0

    > Wireless Office IP address: 192.168.137.1

    > Office Wireless Subnet Mask: 255.255.255.0

    Now I use the ip address of office (192.168.137.1) to open the connection

    and it works! ??

    I am very pleased with the fact that it works but I would like to have one

    explanation on why it takes an ICS.

    Thank you!

  • Sharing data between the host computer stores in different groups.

    I read in several places that sharing of data warehouses between the host in different groups is possible, but I don't get the warm and fuzzies when the hosts are different versions.

    vCenter is 4.1

    Group Alpha is 4.0 vmfs 3.33

    Bravo of cluster is 4.1 vmfs 3.46

    My goal is to move the virtual machines that meet the specific criteria of group Alpha for Cluster Bravo then the availability of flowing freely between clusters.

    The only concern I have is when adding Cluster Bravo to the same host of 3PAR alpha value of Cluster sharing all the data store, Cluster Bravo will try to reformat to vmfs 3.46 break Cluster Alpha to see the virtual machines stored in the warehouses of shared data?  I don't want to present the old warehouses of data to the new cluster only break from old cluster.

    Hello vmsjsn

    ESX/ESXi 4.X supports all versions of VMFS file system.

    Using your example of Alpha and Bravo. Kudos to will write more Alpha. you will be able to cross all hosts on the shared storage.

  • Synchronization of data between the tables of towing

    HII
    I have two database 1 and both of the databases of database 2 have citizen of table (citizen_ssn, citizen_name) with the same structure
    Ok

    and I create the link of database database 1 into database 2 (link name: link1)
    and I have another link for 2 to 1 of the databases database (link name: Link2)
    I want to synchronize data between two tables
    in other words, I want to when new record adds database1 go base2 and check if this folder exists (using citizen_ssn) or not, if it exists then add the record only in database1
    otherwise add record base1 and base2.

    and if there is record inserted into database 2, I'll go to database1 and check if it exists, it exists to add recording base2, if not add it in base1 and base2

    can I do this in real time or not.
    Thank you...

    I don't see how you have an infinite loop. If you insert a row into database1, the trigger will fire and verify the existence of the line of base2. If the line exists in base2, nothing happens. If the line does not exist, then a line will be inserted in base2, after what the relaxation in base2 fires that will check the existence of the line in database1 and, since it is, won't do anything.

    What Miss me?

    HTH
    Srini

  • Copy data between the cubes

    I need to copy data between two cubes (using a business rule). I can do using Partition/replication? If so, anyone have an example on how it's done? I am currently using @XREF, but that does not transfer data for the blocks that do not already exist in the database target.

    I am very new to this so will get a detailed description.

    Thanks for your help.

    You cannot view a partition copy of a business rule. It is intended for the statements of calculation. I guess you could do a jexport or a dataexport and have a batch file that looks for the existence of the file and made a load of it. I don't know that it's a good solution, but if you need to execute a business rule, it might be a way. Of course, you could include the replication in the maxl scriot that is triggered by the creation of file.

  • The distribution of applications and data between the disk SSD and HDD

    I recently installed an SSD in my Macbook Pro (late 2011) instead of the DVD player. I want to install OS X on it, by replacing the current OS X on the original hard disk, I will continue to use for storing files. How should I allocate its use in car? OS X and applications on the data files on the hard disk of 500 GB and SSD?

    The first series of instructions will partition and format the newly installed SSD disk then install OS X on it. The second block will help you configure OS X on the SSD with your data on the HARD drive.

    Clean Install of El Capitan on a new disc

    1. Restart the computer. Immediately after the chime, press Command + Option + R until a globe appears.
    2. The Utility Menu appears in 5 to 20 minutes. Be patient.
    3. Select disk utility, then click on the continue button.
    4. When loading disk utility, select the drive (generally, the entry Out-bumpy) in the list aside.
    5. Click the Partition tab in the main window of disk utility. A panel will fall.
    6. Set the GUID partition scheme.
    7. Define the type of Format Mac OS extended (journaled).
    8. Click on the apply button, then click the fact when it is active.
    9. Quit disk utility and re-enter the Utility Menu.
    10. Select reinstall OS X and click on the continue button.

    How to use an SSD with your HARD drive

    If you want to use an SSD as boot with your existing HARD disk drive, as the disk 'data', here is what you can do.

    After installing the SSD, you need to partition and format the SSD using disc utility disc. Then install OS X on the SSD. Once installed OSX boot from SSD. Startup disk preferences to set up the SSD as the boot volume.

    Open the preferences users and groups. Click the lock and authenticate you. Or CTRL - RIGHT click on your username account list in the sidebar and select Advanced Options in the context menu. You will see a field called "Home dir: ' on the far right, you will see an Edit button. Click on it. In the file dialog box, navigate to the location in house now located on the HARD disk (disk HARD/users/user_name /.) Select the folder, click the Open button. Restart the computer, as shown. When the computer starts, it will now use the home located on the HARD drive folder.

    Another more technical method involving the Terminal and the alias is discussed in depth here: using OS X with a SSD and HDD - Matt Gemmell configuration. It's my preferred approach because I can choose which records of the House, I want to on the HARD drive and I don't want to. For example, I like to keep Documents and library files on the SSD because I frequently access their content.

    Make sure that you keep the bootable system entirely on your HARD drive where you need it.

  • DK 31 Pier transfer of data between the computer of the Z1

    31 Dk can transfer data to the computer you to the Z1 and Z1 to computer you or this loading dock is only intended to load?

    And if it's possible transfer of data, it can be if.connecting of damage to computer?

    Hi GustavoSR91,

    Welcome to the community! Since you are new, please make sure that you have checked our Forum.

    I can advise that this device does not allow this feature, load only the functions.

    I hope this helps.

    Don't forget to mark messages that responds to the topic as accepted Solution.
    If you find any useful position, press the laurels.
    What are your thoughts on this forum? Let us know by making this short film survey.

  • Marshall plan: how to pass data between the main field and sub-application

    Hello

    I'm trying to load a Flex 3.5 application in Flex 4. In the process, I need to move a strong local typed object from main application to the loaded swf file. And I also have to pass a rope and a bitmap of application sub to the main application. Have an example to show how to pass data in the application domain?

    Thank you

    SW

    Define scaleContent = true, set a breakpoint on SWFLoader.as:doScaleContent and

    see if he thinks there's a swfBridge.

  • Ability to share data between the classes?

    I have a panel that uses a local SQL database to display information from a lookup table. Now I want to add a button to see more information on another panel of different SQL tables, but it is related to the information on the first Panel that will always be open. How can I pass the field key of a Panel to another so that it shows the correct data? I have each working independently, can't simply coordinated. I imported two classes on the two panels. When I try to 'join' the panels on the key field, I get no data in the second Panel. Thanks for your suggestions.

    "ibmaris" wrote in message
    News:gfag28$H39$1@forums. Macromedia.com...
    > I have a panel that uses a local SQL database to display information
    > of
    > a searchable table. Now, I want to add a button to display more
    > informaton
    > on another panel of another table SQL, but it is bound to the
    > information on the first panel which can still be opened. How can I pass
    > the key
    > the field from one Panel to the other so that it shows the correct data? I have
    > have
    > each work independently, not everything can get coordinated. I imported the two
    > classes on the two panels. When I try to 'join' the panels on the key field
    > I get
    > no data in the second Panel. Thanks for your suggestions.

    http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.PDF

    Q3

Maybe you are looking for