RemovePopUp command from parent application (not the popup).

I am trying to remove a popup from the main application
instead of the popup window. This way the window will close when
they change tabs within the app or reclick the button. I can get it
to close from within the popup with this statement just fine:
PopUpManager.removePopUp(this).
But shouldn't I be able to just use the same command with the
object name to close it from the app itself, like this?
PopUpManager.removePopUp(helpinfopop).
I've searched this forum and Google and can't come up with
anyone doing this. Everyone closes the popup from within the popup
itself.
private function showHelp():void {
if(shHelp=="false"){
shHelp="true";
var helpinfopop:helpinfo =
helpinfo(PopUpManager.createPopUp(this, helpinfo, false));
helpinfopop.title="Help";
helpinfopop.showCloseButton=true;
helpinfopop.hscreen=allinfo.selectedChild.name;
PopUpManager.centerPopUp(helpinfopop);
else {
shHelp="false";
PopUpManager.removePopUp(helpinfopop);
Thanks in advance.
Chris

Dmitri - Thanks for the help, but I'm still having some
problems. I've tried the following two ways:
private function showHelp():void {
var helpinfopop:helpinfo; <------ MOVED IT UP
if(shHelp=="false"){
shHelp="true";
helpinfo(PopUpManager.createPopUp(this, helpinfo, false));
helpinfopop.title="Help";
helpinfopop.showCloseButton=true;
helpinfopop.hscreen=allinfo.selectedChild.name;
PopUpManager.centerPopUp(helpinfopop);
else {
shHelp="false";
PopUpManager.removePopUp(helpinfopop);
public var helpinfopop:helpinfo; <----- MOVED IT UP AND
OUT
private function showHelp():void {
if(shHelp=="false"){
shHelp="true";
helpinfo(PopUpManager.createPopUp(this, helpinfo, false));
helpinfopop.title="Help";
helpinfopop.showCloseButton=true;
helpinfopop.hscreen=allinfo.selectedChild.name;
PopUpManager.centerPopUp(helpinfopop);
else {
shHelp="false";
PopUpManager.removePopUp(helpinfopop);
In both scenarios, I get a new error stating that it "Cannot
access a property or method of a null object reference." In both
cases it is referencing the line: helpinfopop.title="Help".
I'm assuming I'm doing something else wrong. I was really
starting to get the hang of Flex. I've been using it for about 5
months now. But apparently I'm missing something.....
Thanks for the help so far. I look forward to your response.
Chris

Similar Messages

  • TS2755 is there a quick way to take a photo and send it from messages application on the computer

    is there a quick way to take a photo and send it from messages application on the computer

    Just the regular way. Take the photo and then open the Messages app and select that photo and send it. That does not seem hard.

  • Can I execute MySql's command from java application?

    Can I execute MySql's command from java application? And how?
    For example :
    load data local infile 'D:\\myData.txt'
    into table myTable
    fields terminated by ';'
    lines terminated by '\n';

    1. get the jdbc driver for mysql from the mysql site at: http://dev.mysql.com/downloads/connector/j/5.0.html
    2. follow the installation instructiions... which you'll also find in your mysql manual...
    Happy travels. Keith.

  • How to send sms port from Desktop applications to the Midlet?

    how to send sms port from Desktop applications to the Midlet?

    Depends on the API your SMS gateway provides, and may not even be possible. Even if you can send the SMS with a port specified, be aware that some carriers deliver the SMS without the port number, which will result in it going to the device inbox and so won't activate your MIDlet registered with the PushRegistry.
    I understand that you're working on a JavaSE application, but members who frequent the mobility forums might have more knowledge about this. Would you like me to move this thread there?
    db

  • I bought Mountain LIon but no dmg is downloaded. I can see the invoice from Apple but not the OS I supposed to receive. Is it a bugg?? I have a mac book air. Thanks

    xI bought Mountain LIon but no dmg is downloaded. I can see the invoice from Apple but not the OS I supposed to receive. Is it a bugg?? I have a mac book air. Thanks

    Thanks for the reply.
    However the trick is that it cannot download at all.I m asked to download the application. Then I put my Apple ID, then it start to download but just 1s... Then ....Nothing. No application, no error message... Just a nice invoice....

  • Is it possible to transfer video to iMovie from video app (not the library)

    Is it possible to transfer video to iMovie from video app (not the library)
    IPAD-IOS

    If you're asking if you can import video fror the iOS Videos app to iOS iMovie, the answer is no. You can only import what is in the camera roll.

  • JMS message from one application to the another appl in the same container?

    I have a question.
    Can I send JMS message from one application to the another application in the same container?
    If yes ...can you provide me info.
    I want to know in regards of EJB2.0 and EJB3.0.
    Thanks,
    Rahul

    So the receiver application is a Message Driven Bean, right?
    In your container, do you have a mean to ensure that it is correctly configured to listen the desired destination? Like an administrative console that would show the destinations, the number of pending messages, the number of active consummers...?
    btw what is the destination type? A queue or a topic?

  • How may I print out a picture from paper and not the photo tray?

    How may I print out a picture from paper and not the photo tray?

    From paper?  Do you have a digital image of it on your iPhone?
    "Photo tray"?  What do you mean here?  The iPhone does not have a photo tray.  Printers have trays.

  • HT201855 I only want my email deleted from my iPad NOT the sever...how can I do that? Thanks!

    I Only want to delete mail from my iPad not the server.  The memory on my iPad is almost gone and it is working slow.  I still want to look my mail up on my laptop.
    thanks!

    See this -> Using a POP account with more than one device - Apple Support
    The memory on my iPad is almost gone and it is working slow
    FYI: Email messages take up very little space so you should consider removing other items.
    See this -> See how much storage you've used on your iPhone, iPad, and iPod touch - Apple Support

  • When I try to open CS6 camera raw I get an error abou the parent application not bein active.

    Actually there are two problems. 1) When I try to open a picture in CS6 camera raw I get this error "Bridge's parent application is not active. Bridge requires that a qualifying product has been launched at least once to enable this feature. My second problem is that I'm unable to open Ps without getting a window to get the creative cloud. If I close the window it closed Ps.
    How do I fix these two problems?

    Can you open Adobe Reader by itself?  If so, try to disable Protected Mode [Edit | Preferenes | Security (Enhanced)].

  • The find... command from finder does not find my documents

    Hi. I have searched this topic and found lots of posts, particularly from spotlight not finding anything.
    In my case, neither the find.. command nor spotlight can find my word documents while I can find them manually in their respective folders. I tried the re-indexing solution with no success. I did not have the problem of computer indexing continuosly as describbed in some posts, and in fact, did not notice any change even after restart.
    I saw another popular link about resizing (?) the finder window, or something like that, which involve typing some text and saving it in the desktop... but wasn't sure if that would apply to my problem and since I am not an expert was worry it could make things worst as it has happened to some...
    by the way if it matters, the documents came from an ibook running Tiger...
    Thanks in advance for the answers.

    Since I have the time now, assuming that yes, this will improve find... capabilities, here are the questions in between text.Thanks for your patience. Half of the article is chinese for me:
    ARTICLE
    Want to tailor the Finder's Find (Command-F) window? Copy the following into TextEdit, make it plain text, and save it to the Desktop as default_smart.plist:....
    Q1: ONCE DONE, WILL I KEEP THIS ON DESKTOP FOREVER?
    This version of Finder's search box shows the user's home folder as a place to search, includes all system files, is taller than the original window, and the cursor displays in the search box. Note that the ViewHeight field is the difference between bottom and top. So you can adjust it, and the window's width, to suit your needs.
    To change the default Find window, run these commands in Terminal (don't type the $), pressing Return after each:
    $ cd /System/Library/CoreServices/Finder.app/Contents/Resources
    $ sudo cp default_smart.plist default_smart.plist.bak
    The first command changes to the proper directory, and the second one saves the original default search file, so you can restore the current behavior. Enter your admin password at the Password prompt when asked.
    Q2: RUN IN TERMINAL, MEANS SIMPLY OPEN TERMINAL FROM UTILITIES, TYPE THIS AND CLOSE IT. RESTART?
    To activate your modified search box, use this command:
    $ sudo cp /Users/username/Desktop/default_smart.plist default_smart.plist
    Replace username with your user's short username. To return to the original file, cd to that same directory in Terminal, then use this command:
    $ sudo cp default_smart.plist.bak default_smart.plist
    Q3: BOTH OF THE ABOVE COMMANDS ARE ALSO IN TERMINAL? NEW WINDOW? OR ALL 4 COMMANDS AT THE SAME TIME PRESSING ENTER TO SEPARATE THEM?
    [robg adds: You'll need to kill the Finder for this change to take effect. We've covered this sort of edit before (1, 2), but this one adds the 10.5-specific ability to search system files.]
    WHAT IS KILL THE FINDER?
    Thanks

  • Running Unix Command from WEB-APPLICATION

    Hi all,
    I want to run unix command from a java-based web application. the basic code part is this ---
    public class RunCommand
          public String runIt()
              String s = null, returnString = "";
              Process p=null;
              try
                       Runtime rt = Runtime.getRuntime();
                  p = rt.exec("sh testPOC.ksh");
                  p.waitFor();
                  BufferedReader stdInput = new BufferedReader(new
                       InputStreamReader(p.getInputStream()));
                  BufferedReader stdError = new BufferedReader(new
                       InputStreamReader(p.getErrorStream()));
                  // read the output from the command
                  returnString += "Here is the standard output of the command:<br>";
                  while ((s = stdInput.readLine()) != null) {
                      returnString += s;
                  // read any errors from the attempted command
                  returnString += "Here is the standard error of the command (if any): <br>";
                  while ((s = stdError.readLine()) != null) {
                      returnString += s;
              catch (IOException e)
                  returnString += "exception happened - here's what I know: ";
                  returnString += "error-> " + e.getMessage();
              catch(Exception e)
                returnString += "exception happened - here's what I know: ";
                  returnString += "error-> " + e.getMessage();
              return returnString;
      }this class is kept as an inner class. The control comes to its outer class, from servlet, from which the runit() is called. but the exception is occuring at line of p=rt.exec(.....). it tells "<command name> : not found transaction completed" [got this using getMessage() method].
    i am unable to show(and see, too) the stacktrace, because i don't have access to that test environment and its log. i can't run this in local because its windows one.
    now can anyone tell me, where is the problem. is there any limitation in web application server/container? this was successful when i used command prompt writing a .java file. Please help me. Thanks in advance...

    Friends, i've got, where the problem is.
    when we run a class file directly from a command prompt, we get an environment with that shell window. but for a servlet application running these kind of commands from a class creates kind of child processes. each and every command is executed as a child process of jvm and don't get those environment. we have 'PATH' variable in the environment. when a command (say, 'dir' or 'sh' or 'ls', etc.) is executed, the shell first search for that executable file (i.e. dir / sh / ls) in the given paths in the variable 'PATH'. this is not available for the child commands of jvm. hence the basic commands are searched in the current directory of the jvm and they are failed.
    i solved the problem giving full path of the commands. like :
    p = rt.exec("/bin/sh runningScript.ksh")

  • How to execute any cmd command from java application?

    Hi all,
    How to execute or call any command of cmd from java application??
    Is there any method to do so??
    Or, is it possible to do it using Runtime.exec() ??? And if so, how to use it, please explain with ab example...
    I'll highly appreciate....
    Thank you.

    If google would be the best option, then I would not be on Sun's forums and I would not have asked experts like you, sir !! :-)
    Neway, I got the solution from PhHein !!
    Good link indeed..
    Cheers..

  • Running Automator app/service as command from an Application

    I want to create an Automator app or service to be called from a script editor.  Which action would allow me to retrieve the filename/filepath that was being edited by that application?  Also, the editor has a "run command" feature that I planned to use to run the automator app.  What type of automator app should I create to be able to run it as a command?

    Friends, i've got, where the problem is.
    when we run a class file directly from a command prompt, we get an environment with that shell window. but for a servlet application running these kind of commands from a class creates kind of child processes. each and every command is executed as a child process of jvm and don't get those environment. we have 'PATH' variable in the environment. when a command (say, 'dir' or 'sh' or 'ls', etc.) is executed, the shell first search for that executable file (i.e. dir / sh / ls) in the given paths in the variable 'PATH'. this is not available for the child commands of jvm. hence the basic commands are searched in the current directory of the jvm and they are failed.
    i solved the problem giving full path of the commands. like :
    p = rt.exec("/bin/sh runningScript.ksh")

  • How to Execute Power Shell Command From Windows Application.

    Hi All Experts,
    I want to execute power shell commands from my windows application.
    Is it possible ?
    Please let me know your comments..
    Thanks.

    I have not tried this, but apprently it is easy as in the sample pasted below. please see this article for more details
    http://geekswithblogs.net/Norgean/archive/2012/09/19/running-powershell-from-within-sharepoint.aspx.
    Let me know how it goes...
    public string RunPowershell(string powershellText, SPWeb web, string param1, string param2) {
    // Powershell ~= RunspaceFactory - i.e. Create a powershell context
    var runspace = RunspaceFactory.CreateRunspace();
    var resultString = new StringBuilder();
    try
    // load the SharePoint snapin - Note: you cannot do this in the script itself (i.e. add-pssnapin etc does not work)
    PSSnapInException snapInError;
    runspace.RunspaceConfiguration.AddPSSnapIn("Microsoft.SharePoint.PowerShell", out snapInError);
    runspace.Open();
    // set a web variable.
    runspace.SessionStateProxy.SetVariable("webContext", web);
    // and some user defined parameters
    runspace.SessionStateProxy.SetVariable("param1", param1);
    runspace.SessionStateProxy.SetVariable("param2", param2);
    var pipeline = runspace.CreatePipeline();
    pipeline.Commands.AddScript(powershellText);
    // add a "return" variable
    pipeline.Commands.Add("Out-String");
    // execute!
    var results = pipeline.Invoke();
    // convert the script result into a single string
    foreach (PSObject obj in results)
    resultString.AppendLine(obj.ToString());
    finally
    // close the runspace
    runspace.Close();
    // consider logging the result. Or something.
    return resultString.ToString();
    Ok. We've written some code. Let us test it.
    var runner = new PowershellRunner();
    runner.RunPowershellScript(@"
    $web = Get-SPWeb 'http://server/web' # or $webContext
    $web.Title = $param1
    $web.Update()
    $web.Dispose()
    ", null, "New title", "not used");
    -Sangeetha

Maybe you are looking for

  • The core audio for Logic 8 has stopped working.

    I was successfully running Logic 8, Protools LE and Cubase on a MacPro with Leopard (10.5.5) and a MOTU traveler interface. I loaded on the Ignition Pack bundled with Protools LE (Mbox mini), including Melodyne/Reason/Live 6. This then stopped me ope

  • Setting up JDBC pool in WL 6.0 with DB2 7.1

    Hi all, Trying to setup a connection pool. Using WL 6.0 and DB2 7.1. I believe I've defined the pool correctly and added the db2java.zip file to the CLASSPATH. However, WL is giving an error message that it is unable to find 'COM.ibm.db2.jdbc.app.db2

  • Need to rebuild string programmatically having '&' in it.

    Gurus, I need to rebuild a string value programmatically which has '&' and insert the same into another table. this info is being passed to one procedure which will insert the reqd details into one table. Hence,procedure abc (p_input_id number,p_inpu

  • No love for the 810? : (

    Hello, I've had my 810 practically since T-mobile introduced it & must confess was leary of the windows phone in general. Since purchasing I have grown more and more in love with the phone & OS. As you are all aware the 810 has been dropped from T-mo

  • What to do?!?!?!?!?!HELP

    ok i found this fairly looking new Creative Zen Micro at a hotel by a computer, and i took it to the front desk and said that they would hold it and if no one came looking for they would give it to me, so i ended up with a (to me) brand new Zen Micro