Panel.visible=true doesn't seem to work when logged in.

Hello,
I’m tryin to make a flex application. When a user logs in there appears an extra panel. I’m trying to make this work with pnl.visible=false and when logged in pnl.visible=true. But somewhere there must be an error cause the panel is not seen, when logged in. On the base state you have a login button which shows the loginstate when clicked. There you can give username and pass and a button which starts the function checklogin(event). All the code in this function works, except the pnlmonbeheer.visible=true., because when you log in successful and you go back to the base state and you then go to the ‘statetoeristingelogd’ state, the panel is still not visible. Here the code:
private function checklogin(evt:ResultEvent):void
                        if(evt.result.loginsuccess == "yes")
                        _user = this.username.text;
                        currentState = "";
                        this.lblwelkom.text="Welkom " + _user;
                        pnlmonbeheer.visible=true;
                        if(evt.result.loginsuccess == "no")
                        mx.controls.Alert.show("Invalid username/password");
The other button on the base state leads you to the state ‘statetoeristingelogd’. The panel ‘pnlmonbeheer’ that I want to make visible is on this state and is set invisible because of visible=”false”.
<mx:State name="statetoeristingelogd" basedOn="statetoerist">
                  <mx:RemoveChild target="{button3}"/>
                  <mx:AddChild relativeTo="{panel2}" position="lastChild">
                        <mx:Panel  visible="false" x="0" y="348" width="250" height="111" layout="absolute" title="Beheer Monumenten" borderColor="#DEE438" backgroundColor="#B9BBBC" backgroundAlpha="0.7" id="pnlmonbeheer">
                             <mx:Button x="8" y="6" label="Toevoegen" width="115" click="showaddmon();"/>
                             <mx:Button x="133" y="6" label="Updaten" click="showupdatemon();"/>
                             <mx:Button x="8" y="39" label="Verwijderen" click="deleteRow();"/>
                        </mx:Panel>
                  </mx:AddChild>
Somehow the panel stays invisible
Can someone help me please, thank you in advance..
    

hi,
enterState="pnlmonbeheer.visible=true"
add this event in your state as following
<mx:State name="statetoeristingelogd" basedOn="statetoerist" enterState="pnlmonbeheer.visible=true"> 
if pnlmonbeheer becomes visible then it means pnlmonbeheer dont have visibility from the function checklogin because it may be not added yet to the stage during the state change so you may set its visibiliy on enterState event
regards
   ATIF

Similar Messages

  • Bridge Offset Nulling Doesn't Seem to Work With SCC-SG24

    Does anyone know if the DAQmx "Perform Bridge Offset Nulling Calibration" vi works with the SCC-SG24 modules?  We have used our NI-9237 module in the past to acquire dual-channel load cell (thrust & torque) measurements, and calling that vi does a fine job of zeroing out the values before applying the load.  However, it doesn't seem to work when we try to take the same measurements using an SCC-SG24 module.
    We are able to zero the values manually, by using the nulling resistors and potentiometers in the SCC-SG24.  But, whether the nulling resistors are installed or not, we are not able to zero the values using the "Perform Bridge Offset Nulling Calibration" vi.  Running that vi does induce a significant offset in the values, but it is not the correct offset needed to bring the values to zero.  For example, with no load applied, a torque reading before running the vi may be +1090 in-lbs, and be "zeroed" to -465 in-lbs after running the vi.  Running the vi multiple times (to check repeatability) always brings us back to approximately -465 in-lbs.
    An additional issue (not sure if it's related or not) is that if we try to run this vi to offset just one of the channels in the task (such as just thrust, but not torque) it will still induce a small offset in the other channel, which doesn't seem right.
    I guess I'm not clear on whether the subject vi is performing an operation on the hardware, the software, or both, so I'm not sure whether the SCC-SG24 modules may not be compatible with this vi?
    Thanks for any help you can provide.

    Hello Dhruser1,
    I think that the DAQmx Perform Bridge Offset Nulling Calibration should work for the SCC-SG24 module.  Take a look at this article:  Removing Large Initial Offset for Load Cell or Strain Measurements with SCXI-1520 or PXI-4220 in particular it mentions that using this VI in addition to the auto zero can introduce an offset.  If you're doing both these is likely the cause.
    Also, when you specify specific channels using the channels input are you also setting the "skip unsupported channels to false?  If not this may be why it affects other channels.
    I hope this helps, and if not please feel free to post back with an update after trying these things.
    Cheers,
    Brooks

  • SetDocument doesn't seem to work correctly

    I'm obviously using the setDocument method for my JTextField incorrectly, but how? The DocumentSizeFilter works correctly, allowing only the number of characters I specify, but the DigitDocument.insertString(...) doesn't seem to work at all (it should allow for only digits to be entered into the JTextField).
              AbstractDocument doc;
              pafTextField = new JTextField();
              pafTextField.setDocument(new DigitDocument());
              pafTextField.setPreferredSize(new Dimension(30, height));
              doc = (AbstractDocument)pafTextField.getDocument();
              doc.setDocumentFilter(new DocumentSizeFilter(2));The DigitDocument class:
    public class DigitDocument extends PlainDocument{
         public DigitDocument(){
              super();
         public void insertString(int offs, String str, AttributeSet a) throws BadLocationException, NumberFormatException{
              try{
                   System.out.println("String str = " + str);
                   int i = Integer.parseInt(str);
                   super.insertString(offs, str, a);
              catch(NumberFormatException e){
                   // do nothing because a user input was not a digit
                   Toolkit.getDefaultToolkit().beep();
    }the DocumentSizeFilter code:
    http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/DocumentSizeFilter.java

    didn't try the abstract doc, but why not combine the two
    something like this
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.text.*;
    class Testing extends JFrame
      public Testing()
        setLocation(400,300);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JTextField tf = new JTextField(new DigitDocument(2),"",10);
        JPanel p = new JPanel();
        p.add(tf);
        getContentPane().add(p);
        pack();
      public static void main(String[] args){new Testing().setVisible(true);}
    class DigitDocument extends PlainDocument{
      int maxChars;
      public DigitDocument(int chars){
        super();
        maxChars = chars;
      public void insertString(int offs, String str, AttributeSet a) throws BadLocationException, NumberFormatException{
        try{
          System.out.println("String str = " + str);
          if(this.getLength()+str.length() > maxChars) throw new NumberFormatException();//<----
          int i = Integer.parseInt(str);
          super.insertString(offs, str, a);
        catch(NumberFormatException e){
          // do nothing because a user input was not a digit
          Toolkit.getDefaultToolkit().beep();
    }

  • Annotations - InheritanceType.TABLE_PER_CLASS doesn't seem to work with GF

    Hi there,
    I'm using the toplink essentials jar file with a stand alone J2SE application. I'm using annotations for ORM with Toplink implementation
    What I want to achieve is to map the base class objects to one table, and sub class objects to a different table. Currently - both tables (and objects) have the exact same structure, but I use inheritence in order to identify where should the object be registered. Thus I'm trying to map an inhertiance using TABLE_PER_CLASS type.
    It doesn't seem to work:
    My classes look like this:
    Base class I want to map to REGION table:
    @Entity
    @Table(name="REGION")
    @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
    public class Region implements BaseBusinessObj
    @Id
    @Column(name = "REGION_ID", insertable = false, updatable = true)
    @GeneratedValue(generator = "regionSeq")
    @SequenceGenerator(name = "regionSeq",
    sequenceName = "GSM_REGION_ID_SEQ", allocationSize = 1)
    private int m_regionId;
    @Column(name = "REGION_NAME")
    private String m_regionName;
    Subclass with exact same structure I want to map to GFR_REGION table which has the exact same database table structure as REGION:
    @Entity
    @Table(name="GFR_REGION")
    public class GfrRegion extends Region
    This doesn't work. The Toplink adds entities of the GfrRegion to the REGION table and does not recognize it should go to the GFR_REGION table.
    What am I doing wrong?
    Thanks,
    Michael

    Hi all,
    Any news about the support for TABLE_PER_CLASS in TopLink/EclipseLink ?
    The main question is what was the reason for making this an optional strategy for mapping in the specs ? Both OpenJPA and Hibernate have it and there are cases when this is usefull.
    From EclipseLink perspective, how difficult would be to add this ? I didn't have a chance yet to closely examine the codebase for EclipseLink, but some architecture diagrams with some design decisions explained would help to community to better understand the product and make improvements.
    Thank you,
    Mircea

  • Wacom Tablet doesn't seem to work all of the time?

    I have a Wacom Intuos 3 tablet, not more than a year old. I recently installed it onto my Macbook Pro and it worked fine, but when I unplugged it and came back to work with it later, it doesn't seem to work. The mouse doesn't respond to where I click on the pad.
    So, I've reinstalled this a couple of times and was able to make it work perfectly, but today when I went back to work in photoshop, it doesn't seem to be responding again.
    Does anyone have any tips? I know that Leopard likes you to eject USB devices instead of just pulling them out of the slot, but I don't see anywhere to eject it.
    Does anyone know what's up?

    Downloaded a driver from website, tablet works now.

  • Safari on my iPhone 6 running 8.02 doesn't seem to work right. Some Java scripts don't show correctly and they do on other browsers I have downloaded. I tried almost everything and nothing seems to work to fix it. Please help.

    Some websites like the one of my college uses JavaScripts and they seem to load correctly to a certain point but then not really. For example in one it would say select an option from the left menu. And I do it hut nothing happens. But when I go to the same website in another browser on my phone. The JavaScript works completely and allows me to see whatever I was clickig on that menu. I have seen that there are other websites being affected too. I tried clearing my cookies and data. even restarted my phone. And doesn't seem to work. I don't know how change the configuration any more to make it work like normal. At first I thought it was my school's website but it never got fixed. And now I realized is my safari browser! I wanna keep using it since I am really familiar with It. If someone knows how to fix this please let me know!
    Thanks

    You can reset the SMC and see if that helps. If it's a unibody or Retina, follow the method for "a battery you should not remove yourself."
    http://support.apple.com/kb/ht3964

  • I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?

    I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?    

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • I'm travelling and trying to back up my new iPhone to iCloud. I have sufficient storage, am connected to wifi and it's plugged into a power source and yet it doesn't seem to work. Can anyone suggest what I'm doing wrong?

    I'm travelling and trying to back up my new iPhone to iCloud. I have sufficient storage, am connected to wifi and it's plugged into a power source and yet it doesn't seem to work at all. I'm currently in India. Could that be the cause or can anyone suggest any reason why this wouldn't work?

    "gets stuck" - are there any error messages?
    If you get the error "Backup not successful" and you've tried deleting the last backup and trying to back up manually without luck, try the following test:   Go to...
    Settings>iCloud>Storage & Backup>manage Storage, tap your device name in the Backups section, then look under Backup options.  Turn off all apps from backup and then do a manual backup.  If that doesn't work, then this post will not help.  If the backup works, then go back to the app list and turn some on and try another backup.  If successful, keep repeating these steps.  If it fails at some point, then try to zero in on the one app that seems to make the backup fail.  (I had this problem and found one app failing, probably due to a corrupt data file.)
    This process will take time, but if a backup works with no app data being used but clearly fails with the original settings, then somewhere in the mix of apps is a "bad" one.

  • Pdfmark code in MS Word 2008 doc doesn't seem to work properly to create Named Destination

    Hi all,
    I've been having trouble with creating Preview-compatible Named Destinations in Acrobat 9.x (see http://forums.adobe.com/thread/770470?tstart=0).  Distiller, on the other hand, appears to create compatible Destinations, so as a last-ditch effort, I tried to go back to my original source file (Microsoft Word 2008 document) to use Distiller's pdfmark functionality, to see if maybe I could finally get a PDF with Preview-compatible Destinations.
    Following instructions found elsewhere on this forum, I went into Word and inserted the following field into a test location in my document:
    PRINT "[ /Dest /testdest /View [ /XYZ null null null ] /DEST pdfmark"
    This field code is supposed to then cause a pdfmark to be inserted into the resulting PostScript and/or PDF files.  Distiller is supposed to understand this and turn it into a Named Destination called "testdest."  However, it doesn't seem to work - I don't see the pdfmark code in the PS file, and the PDF file doesn't have any Named Destinations in it.
    I'm using Acrobat 9.x on Mac OS X 10.6.5, so I tried this two different ways:
    1) Using the "Print to Adobe PDF" workflow (which replaced the "Adobe PDF Printer" from previous OS/Acrobat versions) - this automatically generates a PDF via (presumably) an API call to Distiller... and
    2) Using the "Print to Postscript" workflow to generate a PS file, which I then ran through Adobe Distiller.
    In neither case did I end up with a named destination in the PDF file, as I was supposed to.  In case #2, even the Postscript file didn't have a pdfmark embedded in it.  Thus, I'm assuming that perhaps this is particular issue may be a problem with MS Word 2008 rather than with Acrobat... but I'm hoping someone might have a clue as to how to fix it.
    I welcome ideas on how to get Word 2008 to properly output pdfmark code, so that Distiller will pick it up and properly embed a Named Destination into the PDF...
    Thanks in advance.
    (If anyone has ideas about the Preview-compatible problem, linked above, that would also be great!)

    You're suggesting that it was never fixed from Word 2004 to 2008?  Possibly.  I wonder if it's fixed in Word 2011?  Anyone know?  But is it really a Word problem, rather than a Distiller issue?
    I appreciate your offer, though I do have access to Word on Windows (2003, I think), so I could try Distilling there... I only worry about formatting, since there are minor differences (e.g. font kerning, etc.) between Mac and Windows that are subtle, but sufficient to create formatting issues for very long documents (e.g. pushing figures onto the wrong pages, etc.).  That would be a rather big problem.
    The question remains whether this is an issue with Word or Distiller, though... and whether it's fixed in Distiller X and/or Word 2011.
    Adobe, care to comment?
    I'd really love to find a proper Mac solution, if one exists... it would be rather a slap to Mac users if a solution doesn't exist.

  • Hi I'm running Addressbook and cannot clear previous entry easily when searching my data base of around 5,000 contacts.    I prefer to view in All contacts on a double page spread with details on the right page.  Searching doesn't seem to work correctly i

    Hi I'm running Addressbook and cannot clear previous entry easily when searching my data base of around 5,000 contacts. 
    I prefer to view in All contacts on a double page spread with details on the right page.  Searching doesn't seem to work correctly in this view.
    It's always the second search that is problematic.
    I've tried typing over and all it seems to do is confine the search to the the entries that have come up for the previous search.
    I've tried to use the x to clear the previous entry and then type the next search, same problem.  The only way seems to be to move from "All Contacts" to "Groups".  Then the searched name appears and I can return to All Contacts to see full details.
    Surely three key press' are not the way it's supposed to work?
    FYI
    Processor  2.7 GHz Intel Core i7
    Memory  8 GB 1333 MHz DDR3
    Graphics  Intel HD Graphics 3000 512 MB
    Software  Mac OS X Lion 10.7.3 (11D50d)
    Address book Version 6.1 (1083)
    MacBook Pro, Mac OS X (10.7.1), 8Mb RAM 2.7Ghz i7

    AddressBook experts are here:
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion#/?tagSet=1386

  • I have Adobe Design Standard CS6 purchased 2013 with serial number but cannot find to download it onto a new mac laptop. When I try and add the 24-digit serial number to my account it doesn't seem to work?

    I have Adobe Design Standard CS6 purchased 2013 with serial number but cannot find to download it onto a new mac laptop. When I try and add the 24-digit serial number to my account it doesn't seem to work?

    CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS6: http://prodesigntools.com/adobe-cs6-direct-download-links.html

  • TS5183 My Iphone has a problem with the microphone it doesn't seem to work! so there for i can't use Siri anymore..:-( this has been playing up for some time now.

    My Iphone has a problem with the microphone it doesn't seem to work! so there for i can't use Siri anymore.. this has been playing up for some time now. But as my wife & I had a baby 7 Months ago I have not found the time to pop in to the apple store until today (8/12/13) and they told me that they couldn't help as it's out of it's warranty by 57 days
    Can antone help me? is there something i can do, apart from buying a new iphone!

    Have you got Siri turned on in settings/general/restrictions?

  • My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    Thank you both for your responses but my daughter was reassured by the salesman in the iStyle store (official Apple store in the UAE) that iMessages would work but conceded that FaceTime wouldn't. My iTunes account is registered in the uk and my daughter's iPhone has iMessages even though she bought it (and uses it) in Dubai. Can anyone else throw any light on this?

  • Can a use a partitioned external hard drive to create a disk image? I tried, doesn't seem to work using disk manager.

    Can a use a partitioned external hard drive to create a disk image? I tried, doesn't seem to work using disk manager.

    OK, it's very bad computing to use a backup disk for anything but a backup. The reason being is if/when the HD crashes you will have lost not only all your backup but the data files. While I commend you for wanting redundant backup, you really need separate EHDs for doing so. Format each EHD using Disk Utility to Mac OS Extended (Journaled) using the GUID parttition. When you connect, OS X will ask if you want to use that drive as a Time Machine backup drive, select yes and then let it backup. On the second EHD format the same way however do not use TM as a backup, this time I'd suggest an app such as SuperDuper or Carbon Copy Cloner to make a clone of the internal HD. Leave both EHDs connected and TM will backup new or changed files automatically on a hourly basis. The clone you will need to set to backup on the schedule you want. For example I have my SuperDuper EHD set to backup only changed or updated files at 2AM every day.
    The advantage of a clone is that if the computers internal HD crashes you can boot from a clone and continue working, TM will not do that but it's great for keeping an archive of all files. So if you want a version of a file from many months ago, TM will help you locate and restore it.

  • I used to be able to download files from the Harddrive of my Sony Handycam, but now it won't let me import them while going through "log and transfer."  I have tried to update my settings, but this doesn't seem to work.  Any help would be much appreciated

    I used to be able to download files from the Harddrive of my Sony Handycam, but now it won't let me import them while going through "log and transfer."  I have tried to update my settings, but this doesn't seem to work.  Any help would be much appreciated

    Hard Drive:  The Hard Drive is on my camera (Sony Handycam)
    Just needed some info on what is going on with your particular system.
    Knowing the exact camera model will also assist us.
    If this camera is standard AVCHD you should be able to connect with USB to Mac with FCE open and use Log and Transfer without all the fiddling around converting etc.
    What FCE does during ingest is convert files to AIC. (Apple Intermediate Codec)
    FCE cannot read the individual files in the BDMV folder, that's why all the converting is required when you use that method.
    BTW: regards formatting drives/cards/memory on cameras; it is wise to use the actual device to format rather than a computer. This is a prime cause of read/write goof ups with solid state media. This applies to still or video cameras.
    Keeping the COMPLETE card/memory structure in tact is vital for successful transfers.
    Try here for some trouble shooting tips:
    https://discussions.apple.com/message/12682263#12682263
    Al

Maybe you are looking for

  • Can someone please help me? I tried everything.

    Hello everyone. I am facing trouble with my iphone 4s with the software ios5.1.1. I get a pop up whenever I download using my iphone 4s saying This is not a test user account. Please create a new account in the sandbox environment. [Environment: Sand

  • Synchronize question

    When programing servlet, I found out there is some concepts I do not understand very well; so would like to ask to make clear. I have a servlet in which a service will go to database to obtain a file name; then generating file object and return back

  • Can I use macro key in Adobe Illustrator?

    Hi all, I thought of buying this keyboard http://steelseries.com/products/keyboards/steelseries-apex-raw-gaming-keyboard It is a keyboard with macro keys. I wonder if these macro keys can be used in Adobe Illustrator. I want to bind several keystroke

  • Lightbox images open in new page

    Instead of opening on same page with opacity effects, it takes over the whole page & i have to click back to go back to the site. Hope i clearly stated the issue & someone can help.. Thanks!!

  • Can still hear sounds even with the headphones plugged in.

    When I plug my earpiece in you can still hear it. Its not the earpiece cause I've tried a few.