Checkbox event disables checkboxes

Hi,
I am building a Search Component for the KM Using in NW 04 Stack 14.
In the Search Component I User Checkboxes to search in predefined Taxonomies.
To make it more easy to our Customers there should be a Checkbox to Search in all of these predefined Taxonomies. This Checkbox is per default enabled.
When a user select one of the other checkboxes for a single taxonomie search the checkbox should be automatically disabled.
At the moment I use the code below to create the checkboxes.
I tried the function setOnClick, but I don’t know the correct syntax to deactivate a checkbox by clicking another one.
Perhaps someone of you can help me.
Thanks
Sascha
private Component createCheckboxes()
                    Checkbox AGS = new Checkbox(Search_WL.m_buzzwords[1]);
                    AGS.setText(Search_WL.m_buzzwords[1]);
                    AGS.setChecked(false);
                    AGS.setTooltip(Search_WL.IndexTooltip[1]);
                    Checkbox BS = new Checkbox(Search_WL.m_buzzwords[2]);
                    BS.setText(Search_WL.m_buzzwords[2]);
                    BS.setChecked(false);
                    BS.setTooltip(Search_WL.IndexTooltip[2]);
                    Checkbox EDV = new Checkbox(Search_WL.m_buzzwords[3]);
                    EDV.setText(Search_WL.m_buzzwords[3]);
                    EDV.setChecked(false);
                    EDV.setTooltip(Search_WL.IndexTooltip[3]);
                    Checkbox FS = new Checkbox(Search_WL.m_buzzwords[4]);
                    FS.setText(Search_WL.m_buzzwords[4]);
                    FS.setChecked(false);
                    FS.setTooltip(Search_WL.IndexTooltip[4]);
                    Checkbox KHM = new Checkbox(Search_WL.m_buzzwords[5]);
                    KHM.setText(Search_WL.m_buzzwords[5]);
                    KHM.setChecked(false);
                    KHM.setTooltip(Search_WL.IndexTooltip[5]);
                    Checkbox MAKO = new Checkbox(Search_WL.m_buzzwords[6]);
                    MAKO.setText(Search_WL.m_buzzwords[6]);
                    MAKO.setChecked(false);
                    MAKO.setTooltip(Search_WL.IndexTooltip[6]);
                    Checkbox VSS = new Checkbox(Search_WL.m_buzzwords[7]);
                    VSS.setText(Search_WL.m_buzzwords[7]);
                    VSS.setChecked(false);
                    VSS.setTooltip(Search_WL.IndexTooltip[7]);
                    Checkbox VPS = new Checkbox(Search_WL.m_buzzwords[8]);
                    VPS.setText(Search_WL.m_buzzwords[8]);
                    VPS.setChecked(false);
                    VPS.setTooltip(Search_WL.IndexTooltip[8]);
                    Checkbox Vertrieb = new Checkbox(Search_WL.m_buzzwords[9]);
                    Vertrieb.setText(Search_WL.m_buzzwords[9]);
                    Vertrieb.setChecked(false);
                    Vertrieb.setTooltip(Search_WL.IndexTooltip[9]);
                    Checkbox Alle = new Checkbox(Search_WL.m_buzzwords[0]);
                    Alle.setText(Search_WL.m_buzzwords[0]);
                    Alle.setChecked(true);
                    Alle.setTooltip(Search_WL.IndexTooltip[0]);
                    GridLayout grid = new GridLayout();          
                                        grid.setWidth("100%");
                    grid.addComponent(AGS);
                    grid.addComponent(BS);                    
                    grid.addComponent(EDV);
                    grid.addComponent(FS);
                    grid.addComponent(KHM);                    
                    grid.addComponent(MAKO);
                    grid.addComponent(VSS);
                    grid.addComponent(VPS);                    
                    grid.addComponent(Vertrieb);
     grid.addComponent(Alle);
                    return grid;

Hi Sascha,
You can implement a javascript function to disable the other chekboxes one you click a particular chekbox. You can call this javascript function on the onClientClick of this checkbox. So when you click this checkbox all the other chekboxes will get disabled.
in the javascript function you can write something like this..
document.forms[0].<%= compId %>.enabled = false;
you can get the dynamic id of the HTMLB component from your java class like this.
compId = pageContext.getParamIdForComponent(chkBox);
where pageContext is the IPageContext.
hope it helps
cheers
Kiran

Similar Messages

  • How to properly disable a button after click or can an event disable itself?

    Can I disable  MouseEvent.CLICK after I clicked it?
    I am relatively new to coding and it seems to me as a mistake that an event will disable itself?
    Is it ok or is it prone to some mistakes?
    mainNav_buttonsGroup_mc.Products_btn_mc.addEventListener(MouseEvent.CLICK, onClick_Products_btn);
              function onClick_Products_btn(event:MouseEvent) :void {
                        gotoAndPlay("products");
                        mainNav_buttonsGroup_mc.Products_btn_mc.removeEventListener(MouseEvent.CLICK, onClick_Products_btn);
      Products_btn_timeLine.play();
    The idea is that I want to disable a button after it is clicked.

    The approach will work.  The event is not disabling itself.  The event is the occurence of the CLICK interaction.  The event listener is designated to detect that happening.  The event handler function for that listener is disabling the event listener.

  • Tree itemOpen event disable

    Hi,
    Is it possible to not allow expansion or collapse of a node in a tree based on a condition?
    My problem is that on click of a tree item I display some text fields corresponding to the clicked item which can be modified by the user and updated. In case the user modifies the fields but doesn't update (click the update button), he shouldn't be allowed to expand/collapse any nodes in the tree. I put a check after the itemOpen even is fired but by the time the program flow reaches the handler function for itemOpen the expansion has already happened.
    Any suggestions to prevent this?
    Thanks,
    Abhishek

    Hello,
    I think the event you're looking for is not "Drop", but "Drag Ended".
    This event will give the result of a drag action ("Drop Cancel", "Drop Move" or "Drop Copy").
    Kind regards,
    André
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • How to disable registration for a past event

    Hello community,
    Please help.
    I know I've seen something written or a tutorial on how to make past events disabled for registration in the events module, but now I can't find them to save my life. It seems obvious that this should be the default situation (what business in the world wants to allow users to register for a past event?), but I'm willing to make mods until Adobe figures this out.
    Please tell me this is possible. And PLEASE let it not be a massive hassle! My client has daily events (basically daily admission) and creating each day separately is already a hassle after I sold them on BC functionality. For them to have to delete each event daily so that (their often elderly) personage won't get the day wrong and purchase for a past date is something I don't want to tell them they have to do.
    I'm using a modified web form with payment to allow multiple registrations.
    Thank you in advance!

    Your sister needs to disable iMessage on her iPhone if the iPhone is still available if she hasn't already done so.
    If she has, does she have iMessage enabled with the same Apple ID on another iOS device or on a Mac as was used to activate iMessage on her iPhone?

  • Where to store and later import an event and project again?

    The boxes with events and projects are becoming overloaded so i want to remove them from there.
    But how to remove and how te restore if i want to alter things or go further in an earlier made project/event?
    Thanks,
    bruce

    You can use the Event Manager X application to selectively activate or deactivate events and projects.
    You can also do it manually: create new folders, say "Final Cut Events (Disabled)" and "Final Cut Projects (Disabled)", beside the normal "Final Cut Events" and "Final Cut Projects" folders.
    When FCP X is NOT running, drag any events or projects that you want to disable to these new folders. FCP X will now only see the ones remaining in their original locations.
    If you want to use them later on, just move them back (again, when FCP X is NOT running).
    (Note: the above procedure is exactly how Event Manager X works, though the folders it creates may have slightly different names, the principle is the same; it just presents a nice interface with checkboxes for you to select the events and projects and then silently moves them as needed)
    Message was edited by: Luis Sequeira1

  • [CS3][JS] beforeClose event listener problem

    Hi all,
    I want my script to do the following: every time when a user closes a document, I wish for "Check Spelling..." dialog box to show up and after the user finishes spell-checking, the document should be closed.
    But instead, if I have one document open, I get an error: Error Number: 53762, Error String: Action is not enabled, and if more than one document open, the dialog opens in the wrong document.
    As far as I understand, the problem is that the menu action is invoked AFTER the document has already been closed – it is quite clear that opening the dialog with no documents open makes no sense – that’s why the error occurs.
    Does anybody know how to solve this? Why beforeClose event type doesn’t correspond to its name? The scripting guide states: “beforeClose – Appears after a close-document request is made but before the document is closed.”
    Here is the script:
    #targetengine "session"
    main();
    function main(){
       var myEventListener = app.addEventListener("beforeClose", myCheckSpelling, false);
    function myCheckSpelling(myEvent){
       app.menuActions.item("Check Spelling...").invoke();
    Kasyan

    Thank you Ole.
    I've been at it for about 6 months.
    I am providing 3 modules. All modules are in 1 folder. That's why the ScriptPath & Department variables.
    FYI: app.pdfPlacePreferences.pageNumber was used solved issues with InEvenScript plugin for CS2. That plugin was NOT handling a loop call. To solve it, I've used a variable to turn ON & OFF the handler. "Import" is used in the OPEN script, and that will execute the event!
    1) Startup. I trimmed it for you but I kept the orignal OPEN-Event disabled. See PrePressEVENT.
    2) PrePressTEST. It's a trimmed version of the actual PrePressOPEN. But it makes InDesign crash. FYI: PrePressOPEN works perfectly when triggered manualy (Script Panel).
    3) PrepressEVENT. Disabled in Startup, I am using this one so I can debug the EVENT and do actual work at the same time. Until it crashed of course.
    The window.add() is what makes it crash. Without it, fine. But if removed myDoc = app.activeDocument points to the wrong one!
    Thank you in advance. Hope this is clear enough.
    Module STARTUP
    =====================
    #target indesign
    #targetengine "session"
    app.scriptPreferences.version = 5.0;
    //******************** BEGIN Main ********************
    var myScriptName = app.activeScript.fsName;
    var myScriptPath = app.activeScript.path;
    var myErrorStyle = "*****Error while Updating!"
    var myMsgStyle = "*****No UpDate! (Delete to Reset)";
    var myDept = "PrePress";
    //*** Initialize SCRIPT Variables
    app.scriptArgs.clear();
    app.scriptArgs.set("Department", "PrePress");
    app.scriptArgs.set("ErrorStyle", "*****Error while Updating!");
    app.scriptArgs.set("MsgStyle", "*****No UpDate! (Delete to Reset)");
    app.scriptArgs.set("Event_Path", myScriptPath); //***Path to InEventScript Plug-In
    app.scriptArgs.set("Event_Test", myScriptPath + "/"+myDept+"TEST.jsx"); //*** Debugging MODULE
    app.scriptArgs.set("Event_Open", myScriptPath + "/"+myDept+"OPEN.jsx");
    app.scriptArgs.set("Event_Close", myScriptPath + "/"+myDept+"CLOSE.jsx");
    app.scriptArgs.set("Event_Copy", myScriptPath + "/"+myDept+"COPY.jsx");
    app.scriptArgs.set("Event_Clean", myScriptPath + "/"+myDept+"CLEAN.jsx");
    app.scriptArgs.set("Event_Print", myScriptPath + "/"+myDept+"PRINT.jsx");
    app.scriptArgs.set("Event_App", myScriptPath + "/"+myDept+"APPPreferences.jsx");
    app.scriptArgs.set("Event_Doc", myScriptPath + "/"+myDept+"DOCPreferences.jsx");
    //*** Initialize GLOBAL Variables
    app.pdfPlacePreferences.pageNumber = 1; //***Flag to PREVENT InEventScript Plug-In RECURSIVE (Loop)
    SkipWRDS = new Array;
    //*** REMOVE all EVENTS
    app.eventListeners.everyItem().remove();
    //******************** EVENTS ********************
    //app.addEventListener("afterOpen", EventOpen, false); //STILL INDESIGN CRASH with OPEN !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    var tmp = "List of Events loaded\n----------------------\n";
    var myEvents = app.eventListeners;
    for (var cpt = 0; cpt < myEvents.length; cpt++)
    tmp += "Event : " + myEvents[cpt].parent.name + "\tType: " + myEvents[cpt].eventType + "\n";
    //alert ("\tPREPRESS Area\n\t\==========\n\n"+tmp);
    alert ("\tTEST Area\n\t=======\n\n"+tmp);
    //******************** END Main ********************
    //****************** FUNCTIONS Definitions ********************
    function EventOpen (itsEvent)
    var myExeSrcFile = new File (app.scriptArgs.get("Event_Open"));
    if (myExeSrcFile.exists)
    if (app.pdfPlacePreferences.pageNumber == 99999)
    app.pdfPlacePreferences.pageNumber = 1; //***Flag to PREVENT InEventScript Plug-In RECURSIVE (Loop)
    else
    app.pdfPlacePreferences.pageNumber = 1; //***Flag to PREVENT InEventScript Plug-In RECURSIVE (Loop)
    // itsEvent.preventDefault();
    // itsEvent.stopPropagation();
    itsEvent.parent.windows.add(); //*** Doc. has no Window!!!
    myExeSrcFile.open ('r:(read)');
    app.doScript(myExeSrcFile, ScriptLanguage.javascript);
    myExeSrcFile.close();
    else
    alert ("Error! Missing File:\n\n" + myExeSrcFile.fsName);
    return;
    Module PrePressTEST
    =====================
    #target indesign
    //#include "PrePressLIBRARY.jsxinc"
    app.scriptPreferences.version = 5.0;
    //******************** BEGIN Main ********************
    if (app.modalState) //*** Alert already displayed
    exit();
    if (app.pdfPlacePreferences.pageNumber == 99999)
    app.pdfPlacePreferences.pageNumber = 1; //***Flag to PREVENT InEventScript Plug-In RECURSIVE (Loop)
    exit();
    if (app.documents.length == 0)
    exit();
    var myDoc = app.activeDocument;
    //*** ALL DOCUMENTS PREFERENCE
    myDoc.textPreferences.showInvisibles = true;
    myDoc.viewPreferences.showRulers = true;
    myDoc.layoutWindows[0].transformReferencePoint = AnchorPoint.centerAnchor;
    alert (myDoc.name);
    //******************** END Main ********************
    Module PrePressEVENT
    =====================
    #target indesign
    #targetengine "session"
    app.scriptPreferences.version = 5.0;
    //******************** BEGIN Main ********************
    var myEvents = app.eventListeners;
    var tmp = "\nList of Events removed\n------------------------\n";
    for (var cpt = myEvents.length-1 ; cpt >= 0 ; cpt--)
    if (myEvents[cpt].eventType == "afterOpen")
    tmp += "Event #" + cpt + "\tType: " + myEvents[cpt].eventType + "\n";
    myEvents[cpt].remove(); //*** There MAY be MORE than 1 instance.
    //******************** EVENTS ********************
    app.addEventListener("afterOpen", EventOpen, false);
    tmp += "\nList of Events loaded\n----------------------\n";
    var myEvents = app.eventListeners;
    for (var cpt = 0; cpt < myEvents.length; cpt++)
    tmp += "Event : " + myEvents[cpt].parent.name + "\tType: " + myEvents[cpt].eventType + "\n";
    alert ("\tTEST Area\n\t=======\n\n"+tmp);
    //******************** END Main ********************
    //****************** FUNCTIONS Definitions ********************
    function EventOpen (itsEvent)
    // app.scriptArgs.set("Event_Listener", itsEvent.parent.toSource()); //*** PASS Argument
    var myExeSrcFile = new File (app.scriptArgs.get("Event_Test"));
    if (myExeSrcFile.exists)
    if (app.pdfPlacePreferences.pageNumber == 99999)
    app.pdfPlacePreferences.pageNumber = 1; //***Flag to PREVENT InEventScript Plug-In RECURSIVE (Loop)
    else
    app.pdfPlacePreferences.pageNumber = 1; //***Flag to PREVENT InEventScript Plug-In RECURSIVE (Loop)
    EventInfo (itsEvent);
    itsEvent.preventDefault();
    itsEvent.stopPropagation();
    itsEvent.parent.windows.add(); //*** Doc. has no Window!!!
    myExeSrcFile.open ('r:(read)');
    app.doScript(myExeSrcFile, ScriptLanguage.javascript);
    myExeSrcFile.close();
    alert ("Executed...");
    else
    alert ("Error! Missing File:\n\n" + myExeSrcFile.fsName);
    return;
    function EventInfo (itsEvent)
    var myString = "Handling Event: " +itsEvent.eventType;
    myString += "\r\rTarget: " + itsEvent.target + " " +itsEvent.target.name;
    myString += "\rCurrent: " +itsEvent.currentTarget + " " + itsEvent.currentTarget.name;
    myString += "\r\rPhase: " + GetPhaseName(itsEvent.eventPhase );
    myString += "\rCaptures: " +itsEvent.captures;
    myString += "\rBubbles: " + itsEvent.bubbles;
    myString += "\r\rCancelable: " +itsEvent.cancelable;
    myString += "\rStopped: " +itsEvent.propagationStopped;
    myString += "\rCanceled: " +itsEvent.defaultPrevented;
    myString += "\r\rTime: " +itsEvent.timeStamp;
    alert(myString);
    function GetPhaseName(myPhase)
    switch(myPhase){
    case EventPhases.atTarget:
    myPhaseName = "At Target";
    break;
    case EventPhases.bubblingPhase:
    myPhaseName = "Bubbling";
    break;
    case EventPhases.capturingPhase:
    myPhaseName = "Capturing";
    break;
    case EventPhases.done:
    myPhaseName = "Done";
    break;
    case EventPhases.notDispatching:
    myPhaseName = "Not Dispatching";
    break;
    return myPhaseName;

  • Problem in integration event administration

    hi
    whenever i click on "Integration Event Setting" in "Integration Event Administration" i get following error
    Internal error: Directory does not exist(SBL-ODS-00208)
    i have Integration event enabled in my company profile
    because of this error whenever i run a workflow which has an action of creating Integration event i get the same error.
    Thanks and Regards

    The solution I have is below, not sure if the user is on a demo pod or not but most likely they will need to contact CSR to have integration events disabled and then re-enabled.
    Q: When I try to go to the Integration Event Settings, I get the following error message: Internal error: Directory does not exist(SBL-ODS-00208)
    A:
    I have seen this complaint several times. I believe it has to do with the way the demo system is set up.
    Please contact customer care, its a problem with how the system is setup and there is a sequence of steps they need to follow to fix this.
    Sean Duffy

  • Flash Player 11.4.402.265 and Firefox 15/15.0.1 Not Compatible?

    I have mentioned this in two recent posts, but wanted to start a new thread to call attention to what I believe is an important issue.
    Starting with the update of Firefox 15, and continuing into version 15.0.1, my Firefox browser has logged a series of "silent" crashes.  By silent I mean that there was no visible sign that a crash had taken place.  I found out about them by typing about:crashes into Firefox's address bar.  (I actually do this about once per week just to make sure that there are no problems that should be addressed.)
    All of the crashes--and there were dozens--were "empty" in that no source could be identified.  Specifically, the following appeared at the top of each crash report:
    Firefox Crash Reports [@ EMPTY: no crashing thread identified; corrupt dump ]
    In addition, the crashes were intermittent.   I checked this out by constantly checking for new crashes after calling up various web sites.  For instance, I would would go to Google News, check for a crash report, go to a feature story, check for a crash report, watch a YouTube video, check for a crash report, close Firefox, open it, check for a crash report, etc.  What I found was that I often would visit 20 or more sites before a crash report was filed; however,  an average of  ten crashes appeared daily--again, all with NO indication of what had caused the crash. 
    At first, I could see no pattern, so I troubleshooted by enabling/disabling hardware acceleration for both Firefox and Flash Player, enabling/disabling cookies, enabling/disabling JavaScript, etc. I spent several hours doing this.
    I also scoured the various Firefox "help" forums, but it seemed that the same answers appeared on all of the forums, and they pretty much echoed the troubleshooting steps I had taken. (It seems that the major issue now is the fact that hardware acceleration causes Firefox 15.0.1 to crash for many users.)
    Finally, I noticed that I had been on a site containing an embedded flash video, just prior to a crash.  (Interestingly, I never received a crash report after watching a YouTube video on YouTube.)   I then tried disabling Protected Mode in Flash Player, which worked several months ago after the new "sandboxing" provision was introduced, and was found to be incompatible with the then-version of Firefox. So far, this has stopped all crashes.  After three days of normal usage and surfing, there have been no reports, whereas, prior to doing this, I was averaging at least one per hour. 
    This leads me to believe that the designers of the  latest version of Firefox have either omitted whatever code string was used to fix the problem that occurred last June, or some new, incompatible code has been included.    Either way, I think that this should be looked into by BOTH Adobe and Mozilla as soon as possible--but especially by Mozilla, since Flash Player 11.4.402.265 worked just fine with Firefox 14.0.1.
    It should be noted, by the way, that I did a recent check of Firefox's "top crashers" and the empty crash report is by far the most common--over 877,000 at the time I checked.  If I understood the graph, there has been an escallation since the introduction of version 15.0.  How many of them are silent, and therefore, unnoticed by the users, is anyone's guess, but I suspect that I'm not the only user on the planet this is happening to.
    In case it's needed, I'm using:
    Windows 7, Home Premium Service Pack 1 (Windows Classic user interface)
    Firefox 15.0.1
    Flash Player 11.4.402.265
    Hardware Acceleration disabled for both Firefox and Flash Player
    Since all of my crash reports, prior to disabling Protected Mode, were useless, I have deleted them.
    Ortho_Fan
    Message was edited by: Ortho_Fan  ADDED -- 9/15/12 --   I periodically check Windows 7's "Performance Monitor" and noticed today that one of the "silent crashes" was picked up by Windows.  The following details were posted:
    Description Faulting application name: firefox.exe, version: 15.0.1.4631, time stamp: 0x5047f9c5 Faulting module name: xul.dll, version: 15.0.1.4631, time stamp: 0x5047f93b Exception code: 0xc0000005 Fault offset: 0x0010e567 Faulting process id: 0xc58 Faulting application start time: 0x01cd90439a1b1c12 Faulting application path: C:\Program Files (x86)\Mozilla Firefox\firefox.exe Faulting module path: C:\Program Files (x86)\Mozilla Firefox\xul.dll Report Id: a2ad4a6b-fc37-11e1-830c-e0cb4efc1b05
    This appeared before I disabled Flash Player's Protected Mode, but coincides with one of the empty crashes reported in Firefox.  I know nothing about Windows crashes, where to find the reports, etc.

    Hi schützenkönig:
    Many thanks for posting!  As you can see, I made my initial post over a week ago, and since there were no responses, I thought perhaps I was the only one this was happening to!
    In any event, disabling Protected Mode is the only way I've found to prevent the crashes from happening.
    I posted about this on the mozillazine forum -- http://forums.mozillazine.org/viewtopic.php?f=38&t=2551745&sid=7e877237158ffdc560789fb668c 858c0 -- but didn't get very far.  Apparently, Firefox is blaming Adobe and has no plans to do anything about it.  I was given some reassurance, however, by the comment that adblock plus offers protection from harmful flash content.
    By the way, I made a follow on post when I downloaded the latest version of Flash Player -- 11.4.402.278  -- http://forums.adobe.com/message/4708561#4708561
    Unfortunately, it did nothing to fix the problem.
    Ortho_Fan

  • ThinkCentr​e M92z - Displaypor​t not responding

    I work for a school system & we had an issue with a couple of ThinkCentre M92z not booting up. We went in & reimaged them, but now they will not recognize the Displayport port. We use a DP to VGA dongle for our classroom projectors & they were working. I have tried to update the drivers but that did not help. Any ideas?

    Support tells me that this model does not support 'wake on alarm' via WMI.
    I'm trying to configure the settings with CFGWIN.exe’ 
    When I capture the M92z settings with this tool I get the following output
    Wake from Serial Port Ring,Disabled;[Optional:Primary,Automatic,Disabled​]
    Wake Up on Alarm,Daily Event;[Optional:Single Event,Daily Event,Weekly Event,Disabled]
    Hardware Password Manager,Enabled;[Optional:Disabled,Enabled]
     So I can enable Wake Up on Alarm only I can't configure it?
    When I capture the bios settings from a M93z I get the following extra lines
    Wake Up on Alarm,Daily Event;[Optional:Single Event,Daily Event,Weekly Event,Disabled]
    Startup Sequence,Automatic;[Optional:Primary,Automatic]
    Alarm Time(HH:MM:SS),12:55:00
    So why doesn't the M92z allow this?
    Also I can't find the bios manual for the M92z only for the M92/M92p/M82 that tells me Wake on alarm isn't supported.

  • Can keyboardEvent and mouseEvent work in the same .swf file?

    I'm nowhere near an expert on Flash or action script, so this is probably a simple thing to solve. But so far I haven't figured it out.
    I put together a rather simple interactive .swf file using graphical "buttons" to navigate through different screens. Afterwards, I was told to add in two keyboard events as well: one to navigate to the next screen and one to restart the .swf file.
    Using the keyboard to navigate the way I explained above works fine--that is, until I use the mouse to click on a button. Once I do that, the keyboard events no longer work. For example, if I start off the .swf file by pressing the Space bar on the keyboard to navigate to another page, it works fine. If I then press the "R" key on the keyboard to restart the .swf file, that works fine as well.
    However, the first time I click on one of the buttons on the stage to navigate to another screen, the keyboard events no longer work. I can press the Space bar, and nothing. I can press the "R" key to restart the .swf file, and nothing. It's as if using a mouse event disabled the keyboard events or made the .swf file stop "listening" for keyboard events. The only way I can get the keyboard events to work again is by clicking somewhere on the stage and THEN pressing the appropriate keyboard key. I'm guessing that's because I put the focus back on the stage, maybe?? (again, not an expert here)
    My code is ridiculously simple, and it's on the first frame:
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey);
    function onKey(event:KeyboardEvent):void
        if (event.keyCode == Keyboard.SPACE)
            gotoAndPlay(currentFrame + 1);
         if (event.keyCode == 82)
            gotoAndPlay(1);
    Is there anything I need to do to this to make sure the .swf file is always "listening" and registering the keyboard events?
    Thanks..

    use:
    trace("defined");
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey);
    function onKey(event:KeyboardEvent):void
    trace(event);
        if (event.keyCode == Keyboard.SPACE)
            gotoAndPlay(currentFrame + 1);
         if (event.keyCode == 82)
            gotoAndPlay(1);
    test by clicking one of your buttons and watching the output panel for "defined".  if you don't see that, you're not defining a keyboard listener when that button is clicked.  if you do see it, then click a keyboard key.  (if you're testing in the flash test environment make sure you disable keyboard shortcuts.)   if you fail to see the keyboardevent trace, you're removing or disabling your listener after it's defined.

  • How do I check authority for a screen element

    Hello friends,
    I've been assigned to work on the following problem:
    In an ABAP  program, in fact PAI of a screen, I must add the authority check for a screen element (which is based on a Z table element).
    That is to say, some users must be allowed to edit the screen element, while the others are only allowed to display.
    I was told to look at the AUTHORITY-CHECK statement. It talks about ID and FIELD and other stuff. I find this statement very cryptic and I have no idea what these things are and how to use them. So the questions are:
    1) Can I use it to restrict the ability of changing contents of a screen element?
    2) If yes how do I do it? That is to say, what ID, FIELD, value, etc. do I use?
    3) If not, how else can I do this?
    Your help is greatly appreciated.

    Hi Goharjou,
    Answers to your questions:
    1) Can I use it to restrict the ability of changing contents of a screen element?
    Yes you can use AUTHORITY-CHECK to restrict the ability of changing contents of a screen element.
    2) If yes how do I do it? That is to say, what ID, FIELD, value, etc. do I use?
    Let me explain you with an example. Assuming your screen field is ZTABLE-COLOR and will have values such as 'GREEN', 'BLUE', 'RED', etc.
    Depending on the authorization of the current user, you can restrict the access such as 'CREATE', 'CHANGE' and 'DISPLAY'. Let us talk about creating an authorization object later. First let us assume that there is an authorization object you have created named 'ZAUTH_COLOR' with two fields 'COLOR' and 'ACTVT'. The field 'ACTVT' is a standard SAP feature for checking the above authorization. The possible values are '01' (Create), '02' (Change) and '03' (Display). The field COLOR is your field we spoke earlier.
    In the PAI event, you will check authorization through the following statement (for example you want to check whether current user has got change authorization for the color entered):
    AUTHORITY-CHECK OBJECT 'ZAUTH_COLOR'
      ID 'COLOR' ztabe-color                                     "This will be color entered by user
      ID 'ACTVT' '02'.                                                 "Change authorization
    IF sy-subrc NE 0.
    *& Here do whatever you want like setting a flag and
    *& later in the PBO event, disable some functions / screen-elements
    *& Or raise an error message straight away
    *& or raise an information message and remove whatever color
    *& user has entered for which authorization is not there 
    ENDIF.
    Now let us talk about how the authorization object will be created and how system knows that the current user has such-and-such authorization for the color in subject:
    Through SU21 tcode, you will create the authorization object ZAUTH_COLOR with two fields
       (1) COLOR
       (2) ACTVT
    Maintain possible activities checking all of them '01', '02', '03'.
    Provide the above information to your BASIS administrator. Your Basis admin will assign this authorization object to the user through roles and assign appropriate values for the user profile. e.g. user1 will have authorization for only ACTVT='03' (Display), user2 will have ACTVT=* (all activities), etc. As a developer, you dont have to worry about this. All that you need to do is create the auth-object, communicate to the administrator and change your program to incorporate AUTHORITY-CHECK statement.
    3) If not, how else can I do this?
    Not applicable
    Hope the above helps you and solves your problem.
    Regards
    Suresh Radhakrishnan

  • What is source and fix? Avast blocks repeated attempts to connect to malicious websites. Infection Process Pathway: C: Program Files\Common Files\ComObjects\(Firefox) update.exe

    Hello,
    I am running XP pro-32 bit, with a Dell GX270 3Ghz processor.
    I keep getting repeated clusters of Avast pop-ups (whether or not Firefox or any browser is open), that tell me that Avast has blocked me from going to a malicious website. Here is a typical Avast Infection notification:
    URL: http://www.zoosexshow.com/?x
    Process: file://C:\Program Files\Common Files\ComObjects\(Firefox) update.exe
    Infection: html:Iframe-inf
    After a solid week of work doing scans and running fixes, deleting and re-installing programs - we have neither identified nor fixed this problem. Since the process path identifies (or implicates) the Firefox update.exe file as the source of the problem, do you Firefox folks have any familiarity with the source or fix for this problem?
    Avast, Malwarebytes and Spybot scans find nothing. To see an array of specific specialized and sophisticated scan reports, and attempted fixes that have all failed to identify or fix this problem, below is a direct link to my (3 pg) thread on the bleepingcomputer.com forum (where my username is Daveinsk):
    http://www.bleepingcomputer.com/forums/topic440353.html
    I am hoping that you may be familiar with this problem, and/or its fix. Please help if you can.

    Hi schützenkönig:
    Many thanks for posting!  As you can see, I made my initial post over a week ago, and since there were no responses, I thought perhaps I was the only one this was happening to!
    In any event, disabling Protected Mode is the only way I've found to prevent the crashes from happening.
    I posted about this on the mozillazine forum -- http://forums.mozillazine.org/viewtopic.php?f=38&t=2551745&sid=7e877237158ffdc560789fb668c 858c0 -- but didn't get very far.  Apparently, Firefox is blaming Adobe and has no plans to do anything about it.  I was given some reassurance, however, by the comment that adblock plus offers protection from harmful flash content.
    By the way, I made a follow on post when I downloaded the latest version of Flash Player -- 11.4.402.278  -- http://forums.adobe.com/message/4708561#4708561
    Unfortunately, it did nothing to fix the problem.
    Ortho_Fan

  • Windows 7 Offline files behaviour - automatically making 'shortcutted' files available

    I am a sysadmin with a few Windows 7 Professional machines in our network.
    The current setup for our users is folder-redirection, with offline files enabled for users with laptops (some of which are said Win7 users).
    This works fine, just, any shortcut files that are in the users profile (that are made available offline) make the target of the shortcut available offline aswell. Though I see the benefit of this, it is not a behaviour we want.
    For example if user 'dave' has a shortcut on \\server1\users\dave\desktop, that points to \\server2\files\shortcut_target.doc (i.e. a directory we don't want to have offline file behaviour with) - it will make both files available offline.
    I'm positive it is related to shortcuts, as the files are always shortcutted somewhere in the users profile and the majority of these files come from word's recent documents folder, and other similar folders for different program.
    If theres anyway to change this behaviour please let me know, even if it is just a registry edit.
    Thanks Dan

    Hi,
    “For example if user 'dave' has a shortcut on
    \\server1\users\dave\desktop, that points to
    \\server2\files\shortcut_target.doc (i.e. a
    directory we don't want to have offline file behaviour with) - it will make both files available offline.”
    Based on my knowledge, Windows only synchronous the shortcut in this offline folder. What do you mean “it will make both files available offline.”
    For further research, I suggest you may enable sync log and try to repro this problem. Then move to Event Viewer -> Applications and Service Logs ->
    Microsoft -> Windows -> OfflineFiles, right click SyncLog and chose “Save all event as…” to export these event log.  Here is my e-mail:
    [email protected].  You could contact me, then
    I would assist you for this problem.
    Please refer following to enable SyncLog:
    How to enable the "SyncLog Channel"
    ===========================================
    Offline Files defines four event channels through the Windows Event Viewer.
    The channels are listed under the following hierarchy in the left-most pane of the viewer,
    Event Viewer -> Applications and Service Logs -> Microsoft -> Windows -> OfflineFiles
    If you see only one channel in the event viewer it will be the "Operational" channel. The remaining channels are known as Analytic or Debug
    channels. The Windows Event Viewer does not display these additional channels by default. They must first be enabled.
    To enable Analytic and Debug logs, highlight the "OfflineFiles" entry in the Event Viewer left pane. Select the "View" menu and check the
    option titled "Show Analytic and Debug Logs".
    While four channels are defined, only two are currently in use in Windows 7.
    SyncLog Channel
    ================
    This channel is of the "Analytic" type as defined by the Windows Event viewer. Because this is an "Analytic" channel, you must enable the
    channel before events are generated to the associated log. To enable this channel, right click on the "SyncLog" entry in the left pane of the Event Viewer. Select the "Enable Log"
    option.
    This may also be configured using the channel’s Properties page, also accessible through the Event Viewer. When you no longer want
    to collect SyncLog events, disable the channel using the same method ("Disable Log" option).
    The purpose of this channel is to generate events specific to synchronization activities within the Offline Files service.
    This may be helpful when questions arise about why a particular item is or is not being synchronized or questions about why a particular
    sync operation is failing.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • EBS is creating users in OID, when it shouldn't. Wrong profiles?

    I'm integrating EBS 12.1.6 with OAM 11g and OID11g. I've got Single Sign On working fine, but I noticed that when a user is created in EBS, it automatically gets created in OID too.
    My users will be manually created in both OID and EBS through other processes so I really just need them to be linked. I registered the instance and oid with provisionType=4 (bidirectional sync no create).
    I have these profile options set:
    Applications SSO Auto Link User: Enabled
    Applications SSO Login Types: Both
    Application SSO LDAP Synchronization: Enabled
    Applications SSO Enable OID Identity Add Event: Disabled
    Link Applications user with OID user with same username: has no value
    But I can't find documentation on what these various options do.
    Anyone have any experience with this?
    Thanks very much
    Alex

    I'm integrating EBS 12.1.6 with OAM 11g and OID11g. I've got Single Sign On working fine, but I noticed that when a user is created in EBS, it automatically gets created in OID too.12.1.6?
    But I can't find documentation on what these various options do.Integrating Oracle E-Business Suite Release 12 with Oracle Internet Directory and Oracle Single Sign-On [ID 376811.1]
    Using the Latest Oracle Internet Directory 11gR1 Patchset with Single Sign-on and Oracle E-Business Suite [ID 876539.1]
    Troubleshooting Oracle Access Manager and Oracle E-Business Suite AccessGate [ID 1077460.1]
    Which Attributes Get Propagated From EBS to OID When One Is Implementing SSO With Applications [ID 1267512.1]
    Oracle Application Server 10g with Oracle E-Business Suite Release 12 Troubleshooting [ID 380487.1]
    "Applications SSO Auto Link User" (APPS_SSO_AUTO_LINK_USER) Profile option doesn't work and still ask to manually link the user [ID 399117.1]
    Thanks,
    Hussein

  • Dgz.dll not found worked fine till today. Loaded 4.11 bata and still same error

    Question should read VGJ.dll not found. Then said reloading the program may correct.
    I downloade the bata verion of 4.11 and still get the same error with both 3.6 and 4.11?

    Hi schützenkönig:
    Many thanks for posting!  As you can see, I made my initial post over a week ago, and since there were no responses, I thought perhaps I was the only one this was happening to!
    In any event, disabling Protected Mode is the only way I've found to prevent the crashes from happening.
    I posted about this on the mozillazine forum -- http://forums.mozillazine.org/viewtopic.php?f=38&t=2551745&sid=7e877237158ffdc560789fb668c 858c0 -- but didn't get very far.  Apparently, Firefox is blaming Adobe and has no plans to do anything about it.  I was given some reassurance, however, by the comment that adblock plus offers protection from harmful flash content.
    By the way, I made a follow on post when I downloaded the latest version of Flash Player -- 11.4.402.278  -- http://forums.adobe.com/message/4708561#4708561
    Unfortunately, it did nothing to fix the problem.
    Ortho_Fan

Maybe you are looking for

  • This makes no sense - Can't switch phone?

    There's a bit of history behind this so to get proper context here's what has happened so far 1) After 14 months, my original moto droid died so VZW sent me a replacement pre-owned....that didn't work. They then sent another one.....that also didn't

  • Back order report based on delivery schedule

    hi friends. i have 2 line items  with delivery date  ordered qty  confirmed qty     delivery qty        balance qty(order - delivery)                                                              (wmeng)         (bmeng)              (vsmng)           

  • Buttons in movie clip don't work consistently

    I'm using Flash navigation in Dreamweaver. Most of the buttons work, except for a bunch that are in a movie clip. They sometimes load the right page, sometimes not at all. I'm using Flash CS3 and ActionScript 2.0. This is what I have on the buttons:

  • Wifi only works near router - Iphone5

    So, I am currently living in Spain.  I went on vacation for 3 weeks back to the USA for the holidays.  When I came back to Spain, my Iphone 5 will no longer connects to my home wifi unless I am in the same room as the router.  This was never a proble

  • How do I get rid of album covers when I want lists?

    I just downgraded to iTunes 11.  I can only get actual lists in Playlists, but not in "Music". Clicking on a category just fills the window with basically  information-free album covers(Not all of the contents even HAVE covers) rather than informatio