Alert on the noob - question on function?

Salvation day very early for me in Flex (no Java either!).

I have a function to obtain data from a Web service that works very well. However, I'd like put some parts of the result in a public variable. It seems to me do it in the wrong place, but I don't know how corrrectly. The line that me travels upward in the following code is "userName = SessionMgr.sessionLogin.lastResult.getItemAt (0) .first_name. The error indicates that lastresult is null.
BTW, I can get the lastResult relevant points to be displayed in a TextArea OK.
TIA :-)

< mx:Script >
<! [CDATA]
Import mx.states.State;
public var userName:String
private void clickHandler(event:MouseEvent):void {}
switch (currentState)
{case "loggedIn":}
currentState = ";
codeEntry.text = ";
passwordEntry.text = ";
break;
by default:
SessionMgr.sessionLogin.send (codeEntry.text, passwordEntry.text)
userName = SessionMgr.sessionLogin.lastResult.getItemAt (0) .first_name
currentState = 'loggedIn '.
break;
}
}
[]] >
< / Mx:Script > text

The noob has figured out - he had to learn the async stuff and the manipulation of the results

Tags: Flex

Similar Questions

  • Alert about the NOOB - interface DIY to labview circuit suggestions?

    Good afternoon everyone,

    Long story short, I did not use labview in years and years and years.  I wrote code built-in to most and c# and the design material since my days of recording data.  As fate would have, I just become used by a very very large company that seems to have a love with Labview interest, so I will use to automate some tests and other whatnot.  For everything that I have, it is clear how to go.  I'm more concerned about how I could make interface labview for personalized, switches, relay, simple stuff like that stuff.  Maybe just control and not proofreading.

    So my question is, is there, and if so, what is it, a circuit interface that would allow me to plug and interface to a piece of custom circuitry.  I'm guessing a series or USB or maybe even an interface chip FTDI or something would seem logical.  I can do everthing beyond that, I don't want to go down rabbit hole if there is a proven simple circuit already out there.  I know there are few interfaces (myDaq?), you can buy, but I'm hoping to find a way that I can't buy anything and I can just incorporate some little project that I do.

    I googled around and have yet to find anything.  A general topology is good, a schema is better, a diagram with code source (if necessary) is ideal.

    So what you know?  and thanks in advance.

    What is and Arduino? They are cheap and once you have something doesn't work, you can load the bootstrapper Arduino Atmel virgins and incorperate into your design.

    It is predefined code LabView as cominucates with an Arduino and use it as a simple Board DAQ/DIO. That is, it must always be teathered it do not program the Arduino to run stand alone.

    https://decibel.NI.com/content/groups/LabVIEW-interface-for-Arduino

  • Noob question: autonomous AIR .bar files?

    Sorry for the noob question, yet to learn these things from the air. When we create a .bar file, it is the only file position, does it include the runtime air, flash, etc, etc, or is it always require an accumulation of air / flash runtimes on the device? THX.

    The .bar file does not include the time of execution because the runtime is already preinstalled on the Playbook.

    Air is really integrated into the PlayBook so you don see the difference between a native app or an Air application.

  • NooB question: Cup titles and a schedule of transfer

    Let's say I have tons of tracks.  In the Middle, I find I want to firm up a few seconds of footage.  I can cut, or delete the clip, but I still have to select all the following clips and make sure they move upward.  There must be a smarter way of removing a few seconds of footage and moving upward?

    Sorry for the noob question, I searched on google and didn't know what to look for.  I am open for more information that can help me to tighten my research thus.  See you soon.

    The answer will probably depend on more factors:

    Are there in your Timeline, Clips above the area of the Clip you want to Trim?

    What you want to happen to those?

    Are you only concerned to "strengthen" the Clips on the same video track where you cut, or Clips on other tracks video too?

    It is likely that the tool Edit Ripple, or Rt-click and Ripple delete, will do what you want, but who can count on the other Clips on other tracks, and video that you need.

    Good luck and please let us know a little more.

    Hunt

  • D.I. box noob question

    Hi all

    Sorry for the noob question, but I need something clear up if possible. I was about to buy a box for injection and then had a query on them, and if I actually could benefit in this scenario...


    Fig 1. is how I currently record.

    Fig 2. is how I would do it with di direct box

    diag.jpg

    My question is... in this configuration, the d.i. box would make a difference to the signal? or he would only make a difference if I was going to live guitar to box, the sound card?

    Thank you for all your help.

    In my opinion you have basically three alternatives for the recording of the guitar:

    1. get an amp excellent sound, recording with a microphone, or more, in a room of good survey.

    Challenges: you'll probably need a studio proper, or at least no neighbours, because it could become LOUD. It takes time and experience of mike a good amp and even microphones expensive (several). Result depends on the acoustics of the room more than you think.

    Another way here, is to get/build an isolation area around your amp, which will be a kind of micro studio for it, allowing you to play hard and with a good tone, but in a more controlled environment. Many advantages for this make. Unfortunately, the expense can also be 'pro' - but I don't know there are DIY solutions.

    2. record of the amp 'dry' via either its line (send FX will also) or use a ' soaking power allowing you to put the amp (some sounds so much better AMPS), but with a low volume in the room. You can connect the device of soaking directly, or give the speaker the "tame" signal and mike the amp without disturbing the neighbors that it now. Good power soaks don't come cheap (?). Dry recording, for example by not using mike, often sounds like this: dry. It depends on your style of music, but an electric guitar should probably be considered an acoustic instrument. Instead of a diaphragm in wood, it has a speaker. The sound, often, we want to achieve is an amp of good sounding in a good room, which is an acoustic sound. You simply cannot get to an exit row or direct to a soaking of output power (not president). He needs treatment.

    3 use a program like GuitarRig, Amplitube etc. No installation required, regardless of the size of the room and acoustic sound (except that the acoustics of the room always will affect listening!) or mike. The software simulates the amps, effects and even mic configurations; added the "airplane" that you will not get a direct connection. Once again, according to your style. If I were Bill Frisell or Jim Hall, i.e. anyone with an as most of their music very "naked" guitar sound, I probably does (but these guys have access to the great engineers too...), but in a pop idom / mixed rock with other instruments and certainly to do demos, that's actually what I would recommend. Especially for us space challenged who have neighbors and an infinite time either. No, you will not look like 'all the world'; It's garbage in French - garbage out as always (many are disappointed by the present, but some are happy, it is always the case)

    All you need is a sound card with an instrument of entry. If you have a * good * sound card already who is not entered instrument, you can consider a DI box. Otherwise I'd say it's redundant.

  • Noob question: Playbooks all have the same performance?

    I know... noob question. I am to complete my first game PlayBook and before I submit the app store I wanted to make sure that hardware performance will be the same on all the playbook or will it be something because of the performance issues on a per-device basis? I hope that this will be similar to a console where you can expect stable performance. THX.

    All devices (currently) work the same in the same conditions.

    That does not mean, however, that you can treat it as a console.  A console runs only a game and nothing else (in general).

    The PlayBook can run multiple applications, and among other things, a user can 'Behavior of the Application' setting configuration Mode Showcase, default, or standby, what determines if your application runs or stops when it is idle.  If they are in window mode, they may have other things at the same time.

    To a first approximation, however, "even in the world" is probably correct, for now.  Don't forget there will be different tablets in the future, with specification different but compatible with your app... not quite like a console there where many games is basically orphaned (or requires a port) when a new generation comes out.

  • Need some tips to merge the two table-manipulation functions

    Hi guys!

    Thanks to Johnsold, Helmut O'Brian and Jcarmody, who helped me through a string function complicated (for me, the noob of LV), I got away with my project and I'm very close to its end.

    As I've described it here I wanted to explore an array of words combined with-, i.e. C1 - C10. Help, when I arrived, I was able to do. I also learned a few things and was able to do the following:

    Original array: new table:

    R1                                                       R1

    R2                                                       R2

    C1-C3                                                  C1

    K1                                                       C2

    C3

    K1

    I have this:

    Original array: new table:

    R1                                                       R1

    R2,R4,R7                                             R2

    C1                                                       R4

    K1                                                       R7

    C1

    K1

    I was also able to combine these two functions

    Now, back to my problem.

    Until now, it was just a 1 d array that I worked with. In fact, it's a 2D array, I read a. CSV file:

    As you can see there are a few places where things is combined with either - or by commas. I need to widen the first column as described above and as resolved in the thread I mentioned. Fact! No problem. I extracted the first column in table 1 d. Then expand it. Now, I need to replace in the original array and also expand all.

    It should then look like this:

    Then I only need to copy the position of the R6 line and paste it in the empty fields:

    I enclose below two screws. Start by opening the main.vi. Then copy.vi. I tried to describe the problem here too. You can see what I've accomplished and what is missing.

    Tasks:

    1. replace the column expanded in the original array and expand all.

    2 copy the needed lines.

    In the main.vi, I do the 1 d expansion, but I have the problem with the expansion of table 2D. In copy.vi, I managed to copy the lines. If this part is done.

    Basically, I need some advice on enlargement that I do and how do I get the 2D table also expanded. Because I have not much experience, I feel more comfortable working with 1 d arrays. But I can't seem to get any further with this 1 d-> expansion 2D.

    I also really can't seem to find a smart way to implement my function of copy-line-in the main.vi.

    P.S the joint screws are manufactured in LV2010.

    Fortunately, I can attend some courses of basic home OR here in Norway, but so far, I'm still learning and I think that sometimes, I try to do things that are way out of my League

    I don't know what I did but it works now

    Thanks for the help, same!

    You are even welcome!

    Have attached the file if anyone wants to see what I did.

  • The power spectral density function counts inaccurate amplitude caused by the window function?

    I'm new to this forum, so please let me know if this would correspond better to a different discussion forum.

    Here's the question:

    I would like to know if the power spectral density function ("FFT PSD for 1 Channel.vi") automatically compensates for the loss of the amplitude of entry caused by the window function.  In other words, is a specific window correction factor applied within the PSD vi or do I apply manually?

    Details of the background:

    I tried to answer the question myself by generating a sine wave sampling, it as it is periodic in record time (i.e. 0 to each end of recording time).  The frequency of the sine wave was such that the frequency would exactly correspond to a spectral line in the PSD.  Then I generated the PSD of the sine wave twice: once using a Hanning window and once using a rectangular window (not on average in both cases).  The rectangular extent of the PSD with windows to the frequency of the sine wave is 1.5 times the size of the PSD with a Hanning window applied.

    The experience above indicated to me that a manual setting of the PSD output for the function of window was necessary, however, I repeated the above experiment using random vibration data and does not clear 1.5 x factor.  I have also been informed by his colleagues that the PSD should set for the window function.

    Thank you for your comments.

    Spectral leakage.  When you use a finished sample data from the spectrum resulting is the convolution of the spectrum of the signal as if it extended indefinitely in time with the spectrum of the window.  Even if you do not use a window function, you actually have a rectangular window the same width as the sample size.

    Draw out of the VI PSD with all style of trace to show points to the data points. Turn off Auto scale on the X axis, and expand the graph around your pic. Look at the results of different windows.  In any case, there are several values non-null.  With actual sampled data of limited duration, you will never get the idealized line spectrum.

    If summarize you the output spectral value remains close to 3.2 for all windows.

    Lynn

  • Memory from the Flushing call library function node

    I use the function call library (COLD LAKE) node to load some dll dynamically in a same vi.

    I use a loop for to send the DLL files or a table to COLD LAKE to load the different dll.

    For the first iteration, the COLD LAKE works very well, but for the second iteration and so on can not replace the output variable, and continue to repeat the result of the first iteration.

    Is there anyway to clear the memory of COLD LAKE, so that I will get the correct result for DLL 2nd and so on?

    I understand your message, you have different dll, which returns an array of LabVIEW.

    This table can be of different sizes according to the DLL you are calling.

    I think that you are having a general misunderstand about LV memory management. I think that your comments refer to the data space LV has allocated for the table, this has nothing to do with the DLL itself said!

    LV works memory about conservative. So if you allocated a data space, execution of a new of the same VI will try to reuse this dataspace. So the tables are not released if the VI will slow.

    That being said, the table itself will not reduce its size.

    The only question I have on this: you still have all the available values? If the new call returns the three values (out of 33), is the rest 30 items "the old value"?

    For ANSI C dll - it is common that the DLL also returns a scalar value "arraysize". If you got that, you can use the Array subset function to retrieve valid values.

    Norbert

  • Windows Live Alerts to the email address and the password, date of birth, ect... to veryify the e-mail account is active for real?

    Victorinox original title: Windows Live Mail alert.

    WIndows Live Alerts to the email address and the password, date of birth, ect... to veryify the e-mail account is active for real?

    Hello

    The question you have posted is better suited to the support of Windows Live Mail. I recommend you ask your question to the Windows Live Mail support for assistance.

    Hope the helps of information.

  • CSA - alert when the host stop voting

    I would like to know when a host stops polling in the MC of the CSA. Is it possible to create an alert to send an e-mail or an SNMP trap when an agent has not interviewed in the MC for a certain period of time?

    -Mike

    Hi Mike,.

    A quick solution for now is to create a set of events and email alerts using the event type ' Management Center: did not actively polling hosts find ' that will send you a list of inactive hosts. The event is generated every 24 hours and contains all hosts not activelty of the vote.

    Guests are considered as inactive if they missed three polling intervals or not questioned the MC in the past 24 hours.

    No more digging away I don't know other options.

    Tom

  • I have published my muse built Business Catalyst site and all from the 'Site in the web browser view' function in the program of the Muse does not work. Screen comes up with a message that it cannot locate the page and suggests I check the ip address.

    I recently published my muse built the Business Catalyst site for preview and all from the 'Site in the web browser view' function in the program of the Muse does not work. Screen comes up with a message that it cannot locate the page and suggests I check the ip address.

    Hello Jimw93000314,

    Are you preview site in the edge browser? When you preview the page in the browser Muse create a local server to give you the preview in the browser. With the edge browser, there was a reported issue to access the local server.

    Please click the link below that shows the steps to enable the browser to edge.

    http://StackOverflow.com/questions/30334289/cant-open-localhost-in-Microsoft-edge-project-spartiate-dans-Windows-10-APER cu

    I'm sure this will help.

    Kind regards

    Vivek

  • Closure on the arguments of a function

    I know it must be simple, but I'm apparently not find good Google search terms.

    I have a function called foo, in which I want to pass any number of arguments.  Each argument will be the name of a page element.

    For example: foo ('P21_CUST_NAME', 'P21_CUST_CITY', 'P21_CUST_ZIP');

    I want to iterate (loop) over the arguments and values of each test item.    Foo will return a string like. y.n.y. that will be searched to find all occurrences of. n. If all occurrences of. n. lie, then the page is not fully completed, and I'll show you a red icon.

    I want to build this as a multi-purpose function that can accept a number any arguments.  The logic in the loop (i.e. null or not) is not at issue here.  I can do it without problem.  I just need to know how a loop on all of the arguments passed in foo, if there is an argument, or three or twenty-seven.

    Thoughts, please?

    Apex 4.2.3.00.08

    Mark T. says:

    I was unclear in my use of the word "function".  I want to define a function in JavaScript, not PL/SQL.

    In this case, iterate over the elements of the arguments object:

    function foo () {
      for (var i = 0; i < arguments.length; i++) {
        alert(arguments[i]);
      }
    }
    
  • How to get an alert when the collector stops working?

    Hello. My clients are sometimes problems with the collection of data by vCops of vCenter Server. When they enter the GUI, all objects are grey, and there is no historical data for a certain period of time.

    After you restart the VAPP vCops the collection usually starts again.

    My question is if it is a good way to get an alert when the collection stops. This would certainly raise the quality of this product.

    in fact, these alerts exist - they are of type "administrative alerts".

    Are you sure that you do not get them?

  • Quiz results and pursue the key question

    I currently use CP7 and have created a quiz.  Once the user finishes the last question of the next slide give them the chance to return to the last slide in learning (so they can navigate further if they wish), or continue.  There are some other javascript on the slides so features like the ability to email your comments about the course or other... (it's an unimportant detail).

    If the user continues to the result of the captivate quiz slide.  I've hidden the continue button in the field of scrap and given the statement of the user to close the browser, which then brings them to the LMS which seems to be completed the course very well.

    Is it an ok practice?  I read everywhere in the forums and it seemed that perhaps it wasn't a good way to end a learning module.  Someone at - he comments or experience that could shed some light on this?

    Thank you

    Brian

    Normally this button continue, like most buttons on question slides, as essential functions: when you click the actions that you specify in the pass/fail test settings will run, and the quiz is considered to be complete. I certainly wouldn't recommend out this button. If you don't have a default score slide, the actions will be performed after the last slide in the question, but say you that you have a slide of score. Create at least a custom partition slide, if you do not want to have this button continue. You mention JS, that is not at all an unimportant detail. If you want to replace the built in functionality of the slide to score in this way, it is OK for me, but do not use this slide to score in this case.

    Question Question slides in Captivate - Captivate blog

    Question Question slides - part 2 - Captivate blog

Maybe you are looking for

  • Satellite A300 crash at startup

    Got an A300 - 1J1 which, at normal startup, hangs at the busy thing Green Windows with a damaged screen bar.Starts in SafeMode Ok. I tried to check the disk, but hangs on reboot. F8 computer repair breaks down.Have tried resetting the bios, always fa

  • Some game programs won't open full screen.

    I have a wide screen 22 inch and Doom3, Tiberium Sun, Armada2, etc won't open full screen. I have set myself properties to optimize, but still have the same problem.  Doom3 and Armada2 fill the screen from top to bottom, but there are black bars on t

  • I am facing some problems with my PC, I don't know why everything went past so angry like that?

    * Everytime I open my PC: 1 - the wallpaper changes to a certain environment. 2-i can not find 'my computer', 'user file' and 'Network' of the icons on the desktop (and when I click on update, too). 3. several programs does not work as "internet expl

  • Required fields ISE 1.3 Sponsor Portal

    Hello in version 1.2 of ISE, it was possible to say that some fields are required such as name or company. I can't find this setting in version 1.3 of the ISE. Concerning Filip

  • Restrict the insert, update, delete the other user table

    I created a new database user. I have granted the privileges system into a TOAD.Select any tablealter any tabledelete a tableI found that account can select, alter, drop table arrays of other schema. So how I can limit the which account to modify, re