Problem with multiple instances of same module

I want to call the same module in several different
viewstates. Based on a variable for each viewstate the module
returns different results. Here is a shortened version of my code:
private var lm:linkModule;
private function moduleHandler(promotion:String):void
lm = linkModule(lm1.child);
lm.initHandler(promotion);
<mx:ViewStack id="estonishViewStack" width="100%"
height="100%">
<mx:Canvas x="0" y="0" width="100%" height="100%"
id="saleView" label="Sales">
<mx:ModuleLoader id="lm1" url="modules/linkModule.swf"
ready="moduleHandler('sale');" />
</mx:Canvas>
<mx:Canvas x="0" y="0" width="100%" height="100%"
id="seasonalView" label="Seasonal">
<mx:ModuleLoader id="lm1" url="modules/linkModule.swf"
ready="moduleHandler('seasonal');" />
</mx:Canvas>
</mx:ViewStack>
Is there a more elegant (shorter) way to code the
actionscript function other than a number of "if" statements based
upon the variable or module id?

Thanks for the comment. I purposely used the same id in the
example. I need to call the same module in about 10 different
viewstates. I was wondering is there a way around 10 different "if"
statements in my moduleHandler function with lm1.child, lm2.child,
etc.
Possibly some way to write the function with lm(i).child?
Then I give each component a different component name.

Similar Messages

  • Problem with multiple instances of shared printers being installed on client computers when the spooler service is started

    Hello,
    We have Windows Server 2012 and clients using Windows 8.  We've been having some printer problems for awhile now that I haven't been able to figure out for the life of me.  The main problem is the fact that printers are installed on computers automatically
    once the drivers are installed.  The side-effect of multiple instances of each printer showing up is very annoying but I suspect fixing the initial problem will resolve this secondary one.
    Here is the rundown:
    We add the shared printers on logon to the clients using the GPO thus installing the drivers locally.
    Whenever the spooler on the client is restarted with the drivers installed, all of the
    shared printers that were previously installed get duplicated 5 more times (for a total of 6 instances of each shared printer) on the "Devices and Printers" page.  This happens
    all the time.
    Removing them only fixes the issue temporarily, as soon as the spooler or computer is restarted, it seems these shared printers are somehow found on the network and the duplicates return.
    Two of these printers are located on different clients, installed locally and shared while the other three are all installed on a server and shared through it.  The issue is the same on all of them.
    Cleaning the spooler completely (registry and files from C:\system32\spool) fixes the issue temporarily as well since, as soon as the drivers are reinstalled, the issue occurs again.
    I've tried many things (disabling the GPO, editing the GPO, printer shares, registry, etc.) and searched tirelessly online for a cause and solution but I'm stumped.  Does anybody have any idea what might be causing this problem and how to resolve it?
    Thanks for your time!
    Update #1: I just tried adding the NoNetCrawling option in the registry found in this article -> http://support.microsoft.com/kb/320138/en-us
    I couldn't find the same for Windows 8 unfortunately.  I also tried disabling network discovery and all other sharing options to no avail.
    Update #2: I tried isolating the computer to a different subnet and restarting the spooler and, sure enough, the issue didn't occur.  This proves that the issue is network share related.  Also, as soon as I change the IP back to the regular domain
    subnet one, the multiple printer instances re-appeared again.
    Update #3: I just tried doing the same thing but on the server where the printers are installed and shared and, sure enough, despite being in a different subnet, the issue occurred.  This leads me to believe there is a setting on this server at fault.
     Question is, which one?

    We have deployed a brand new Active Directory domain for a customer. ALL the servers without exception are Windows 2012 R2 and all clients are Windows 8.1 32bit VDI clients.
    The issue that we have is around network printers. 
    We are deploying 4 printers  from a Windows 2012 R2 Server via the print management/Deploy Printer and assigning that to a GPO. The printers are deployed to the Computers which should mean that the users get all 4 printers which they then should be allowed
    to set their default and personal settings for that printer.
    Our printers are deployed like this:
    1. Created security group
    2. Assigned VDI computers to the security group
    3. Created GPO to reflect security group
    4. Modify GPO to do security filtering based on computer group membership
    5. Deployed 4 x printers through Print Management to the GPO on a per machine basis
    However, on the users Devices and Printers screen we are not seeing the 4 printers. For some users
    they see duplicates of all 4 printers so e.g they can have upwards of 8 or more. Other users have no printers displayed whatsoever. The next time they log off or restart they then have a different amount of printers displayed.
    If they try and set the default then it will set and the next time they check the default may have moved to another printer even without logging off or back on.
    Now, where this gets strange is within an application such as MS Word 2013 or Notepad if they use the file and print menu the printers will be listed, even if the user has no printers displayed in Devices and Printers. If the users selects a printer then they
    can then print OK.
    If we check HKCU\Printers||Connections then the CORRECT 4 printers are showing as to what is being deployed via the GPO so I know that the Windows 8.1 terminals are receiving the correct printers from the GPO.
    To try and correct this over the course of the week we have deployed the printers via Group Policy Preferences to the user and then the PC to no avail. Currently we are using the Print management\Deployed Printers to deploy all 4 printers to the computer via
    the Computer GPO.
    I believe that this issue is related to the display somehow in Devices and Printers rather than a GPO or print server issue as we can see via the registry the clients are receiving the 4 correct mentioned printers as shown in the registry. 
    FYI: We only have around 30 users and all users are getting this problem. All users are receiving the same GPO's and have the same few apps installed, Office 2013, Adobe Reader etc.
    What we want is for the computers to receive all 4 printers. All users should be able to use all 4 printers but the user should be able to select their particular default, depending where they are located or what they are printing that particular day. Their
    particular default should persist after reboot. (We have 2 x Copiers and 2 x HP Laserjets) All users have redirected documents and desktop but the rest of the profile is on the VDI and persists after their reboot. The profile is not roaming as the user is
    assigned a particular VDI.
    After a week of scratching our heads with this we are open to suggestions and any would be appreciated.
    We have tried following the issues on this thread to no avail either as they still return.

  • Urgent - problem with multiple users on same page

    Hi all,
    I have got an big problem with my app:
    when several users are using the same page, the action launched by USER_A affects the page displayed and used for USER_B.
    If there is only one user using the page, there is no problem at all.
    The webapp is deployed on Tomcat or JBoss and the problem remains the same on both.
    Thank you for your help.
    PS: I am not accurate because I don't know what to paste here.

    In fact, all my page beans are in REQUEST scope...
    The only bean in Application scope is the standard applicationBean created by Creator itself.
    We use one Bean in session scope which contains another class.
    I will try to explain our common process:
    - when logging into the app, the session Bean stores user data (rights for using app,...);
    - when navigating in the app, the user can search data, modify them and create one (if he has the right to do it);
    - to define the screen, we use a lot the beforeRenderResponse();
    - when viewing a data, the user can choose to modify it, so depending on the action, the page is in "CONSULT" mode or "MODIFY" mode. In the second one, he can display new gridPanel (as a subform) to populate datatable.
    The problem is obvious while using this grid: my grid can disappear if someone else has validated his form before me and if my page goes trough the beforeRender of my page.
    It is not really clear. If needed, i can give access to our application to show the problem (and msn adress too to talk about it).
    Thank you

  • Server 2012 - Problem with multiple instances of RDS looking to the same license server. Server Pools requiring the wrong servers.

    Hi All,
    I have two domains, prod.local and test.local.  On prod.local, I have a license server living on the connection broker.  I have created a two way trust between the domains so that the RDS instance on test.local can use the license server on prod.local.
     When I first setup the RDS instance on test.local and point it to use the license server on prod.local everything appears to work, all servers recognize the license server.  
    However when I log off and back on, and click the RDS dashboard in test.local, the Remote Desktop Services overview states I need to add every server from prod.local to the server pool.  This is bothersome because the Remote Desktop Services on test.local
    is still functioning, but I am no longer able to manage it.  When I add the servers from prod.local to the server pool I am displayed the setup for prod.local instead of test.local
    Is there a way around this?  Can I use the same RDS license server key multiple times?
    tldr: Using a different domain's license server causes my RDS instance in Server Manager to display the wrong RDS farm.

    Hi Nathan,
    Thank you for posting in Windows Server forum.
    Please check the required ports must be opened on firewall.
    - To issue RDS Per User CALs to users in other domains, there must be a two-way trust between the domains, and the license server must be a member of the Terminal Server License Servers group in those domains.
    - To restrict the issuance of RDS CALs, you can add RDS Host Servers into Terminal Server Computers group on RDS Licensing servers.
    - Configure RDS licensing server on all RDS Host Servers in each domain/forest. You can do it through RDS host configuration snap-in or through a group policy. 
    - Add administrators group of each domain/forest in the local administrators of RDS licensing server. This way, you’ll not get a prompt to enter your credentials when you’ll open RDS host configuration snap-ins in trusted domains/forests.
    More information:
    Best practices for setting up Remote Desktop Licensing (Terminal Server Licensing) across Active Directory Domains/Forests or Workgroup
    http://support.microsoft.com/kb/2473823
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Ethernet Problem with Multiple users on same Mac

    Hi, sorry i advance for my english. I am writing from italy.
    I have an imAc with 2 users profiles on it. one profile is administratoe, and the oter a standard user.
    I also have a time capsule configured to connect to my network with the ethernet cable. the cable is plugged in the wan pot, the configuration is "bridged" and i use as a router a linksys wifi router.
    well. suppsung that i am logging in with one of my users and access to time capsule wirelessly, it shows me the disk content.
    i then swith to the other user without logging off the first one and then access time capsule where i see the same folfder and i can access it. so everything works fine.
    in the case i connect my mac with ethernet (disabling airort) to my linksys router, ifuser 1mounts time capsule, user 2 can't access it if user 1 does not unmount.
    why so?
    i need to switch from user 1 to user 2 without logging off, and i don't understand why it works wirless and not with ethernet..
    thak you
    paolo

    In fact, all my page beans are in REQUEST scope...
    The only bean in Application scope is the standard applicationBean created by Creator itself.
    We use one Bean in session scope which contains another class.
    I will try to explain our common process:
    - when logging into the app, the session Bean stores user data (rights for using app,...);
    - when navigating in the app, the user can search data, modify them and create one (if he has the right to do it);
    - to define the screen, we use a lot the beforeRenderResponse();
    - when viewing a data, the user can choose to modify it, so depending on the action, the page is in "CONSULT" mode or "MODIFY" mode. In the second one, he can display new gridPanel (as a subform) to populate datatable.
    The problem is obvious while using this grid: my grid can disappear if someone else has validated his form before me and if my page goes trough the beforeRender of my page.
    It is not really clear. If needed, i can give access to our application to show the problem (and msn adress too to talk about it).
    Thank you

  • Problems with multiple devices using same apple ID

    I have a Macbook, iPad and iPhone. After doing an IOS update now my devices keep saying I cannot use that same appleid because it's already taken. I cannot find away around this and want to know experience of others

    That warning occurs only if you try to create a new Apple ID using an email address already in use. An existing Apple ID can be used with mutiple devices. 
    What exactly did you do when you got that message?

  • Problem with multiple Toplink/JPA apps in same server

    Anyone have experence of running serveral Toplink/ EJB-3 Web apps in the same server (OC4J, alas)?
    We seem to get a problem with the second app failing to initialise toplink, with an entity not found message. Each app runs OK on it's own.

    Yes, they access the same datasource and most of the tables overlap.
    We're thinking it might help to have common entity classes and put them in a shared library, but I don't know if this is relevant (setting up shared libraries complicates testing and tends to snowball, I reckon we need about 15 jars all told).
    I''ve had some funnies on OC4J before which I think may be to do with it's use of ClassLoaders, for example I initially put persistence.xml in the libary jar with the data model, but for some reason I get the entity not found error that way. It only seems to work if it's in the classes folder.
    For the moment we're getting arround the problem with multiple OC4J instances in the server.

  • How to create multiple instance on same database

    Hi ,
    I would like to know how to create multiple instance on same database . I know that some people use database configuration assistant to do this but i could not figure out how they did it.
    Any how if some one can help me with this and can give me links of this it would be great help for me.
    Thank you for reading my problem and helping me !
    Amil
    please if possible mail me on [email protected]

    How to create multiple instance?????Do you mean multiple instances on the same database, or multiple databases on the same machine ?
    I m new to this field....
    Willin to learn a lot about oracle....Then it wouldn't be bad reading a bit of Database Concepts

  • JDev 11g: Multiple Instances of Same Application Using Same AppModule !?

    Hi Everyone,
    I'm having difficulties with multiple instances of taskflows and their application modules.
    I have a main application which has two separate instances of a taskflow (another application with it's own appmodule). I would like for the two separate instances to use separate instances of their application module but that is not happening.
    How can I set this up ? I would like instance 1 to have it's own application module and instance 2 to have it's own as well.
    Any thoughts ?
    Mark

    Seems like I have found the solution.
    In the taskflow there is a property named data-control-scope and I set it to isolated instead of the default (shared) and this seemed to do the trick.
    I can now have two instances of the same taskflow running with different ApplicationModules
    Cheers,
    Mark

  • Safari 5.0.4 Problem with multiple overlaying plugins

    Hi!
    I experience an issue only in Safari on a webpage with multiple overlaying plugins. The overlaying plugin will not render in the browser. For instance, on the mainpage there is a flash-banner. When logging in it opens an iFrame overlaying the banner. This login-frame contains java, but Java will not render or load in Safari. Everything is ok in other browsers and a peculiar thing is that the problem only occurs in Safari on certain types of Macs like MacbookPro and iMac. The ordinary MacBook displays everything ok.
    The problem must be related to plugins overlaying cause if i resize or zoom in the browser, it may render. If i go to another subpage without the flash-banner, the java-login appears ok. On another subpage it opens an iFrame containing Flash, but the background is also flash. The same problem again. Flash in the iFrame won`t render.
    A workaround is to make Java open in its own process (through the Java control panel), but this aint good since all MacBookPro- and iMac-users have to do this. Flash doesn`t have this option either.
    When Safari 5.0.4 was released, the changelog said: "Improved stability for webpages with multiple instances of plug-in content".
    Updates Safari on several different Macs, but the problem consists.
    Anyone know anything about this?

    Hi,
    I use ClickToFlash to get around the overlays.
    http://clicktoflash.com/
    Gives you complete control over Flash content.
    Carolyn

  • How to use/sync single data (file) across multiple instances of same application

    Currently we have an application (a diagram editor), that have the ability to save and load (serialize) its state in a xml file.
    Now we want this application to behave like Microsoft OneNote application. Where multiple users have the ability to access the same file.
    Later we may also need to enhance with other things like, (1)what is changed and who changed it, (2)option to resolve conflicts if any.
    I came to know about sync framework to resolve this. so far, i have not tried it.
    All i want is,
    Virtually single file should be edited by multiple instances of same application.
    We need a dll (sync framework) that does following
    It takes complete responsibility of file handling.
    Using this dll, each instance of the application will notify their own changes.
    Each instance of the application should have the ability to detect the changes that is recently made (when, who, what are the changes).
    My question:
    Will sync framework be suitable for this requirement?
    If so, is there a demo application that represents this?
    - Jegan

    Seems like I have found the solution.
    In the taskflow there is a property named data-control-scope and I set it to isolated instead of the default (shared) and this seemed to do the trick.
    I can now have two instances of the same taskflow running with different ApplicationModules
    Cheers,
    Mark

  • UCCE with multiple instance

    Hi everyone,
    I have a plan to install UCCE 8.0 with multiple instance in my lab environment.
    I'm not sute that, do I have to use hosted model or use enterprise and just create multiple instance on it.
    Actually, I want to implement multi-tenant , I'm not sure because I see that enterprise model also can add more than 1 instance.
    And if I use one of this model, could anyone tell me that what server I have to separate.
    Thanks in advance for your help.
    Regards,
    Tinnakorn

    Hi Tinnakorn,
    The Cisco Unified Contact Center Hosted (Unified CCH) solution is largely the same as Unified CCE, but it supports multi-tenant or shared servers to manage multiple customer instances. That is the reason you see the capability to add multiple instance, even in UCCE.
    All Unified CCE systems are deployed as a single instance (using the same instance name and number in setup) across all the Unified CCE components.
    Please refer to UCCE SRND for more details.
    Thanks,
    Hitesh

  • Can we have Multiple Instance on same Node in Oracle 10g RAC

    Hi All,
    I am planning to implement the RAC in Oracle 10g.Before that i have one doubt regarding RAC.
    My question is "Can we create multiple Instance on Same node(Server) ?"
    is it possible.
    Any ideas or thoughts would be apperciable.
    Thanks in Advance.
    Anwar

    This is where it is important to keep the separation between 'database' and 'instance'.
    A database is the set of files that contains the data (and the redo, control files, etc). A database does nothing by itself, other than take up lots of disk space.
    An instance is theCPU cycles (running software) and the memory to control the database.
    In Oracle RAC, you can have as many instances controlling one database [at the same time] as you want (within reason). Each instance must be able to access the disk(s) that contains the database.
    These multiple instances can be on the same computer (effectively taking up a lot of server memory and CPU for nothing) or they can be on separate computers.
    If they are on separate computers, the disk subsystems must be able to be shared across computers - this is occasionally done using operating system clusterware and is the main reason why clusterware is required at all. (This is also the toughest part of the pre-requisites in setting up a RAC and is very vendor dependent unless you use ASM.)
    These instances need a communication connection to coordinate their work (usually a separate network card for each computer) so they do not corrupt the disk when they are trying to access the same file, and possibly the same block, at the same time.
    In a RAC configuration, instances can be added, started, running, stopped and removed independent of each other (allowing a lot of high availability) or can be started and stopped as a group.
    Each instance gets it's own SID, which is in no way any different than a non-RAC SID. It's just the name of a service that can be invoked. The neat thing is that the SID
    a) helps the DBA keep things straight by lettiung us talk about 'instance A' (the Oracle software to be running over on computer A) vs 'instance B' when starting, stopping and managing;
    b) helps the application by providing targets that can be listed in the TNSNAMES.ORA [against one service alias], which is used by ORacle Networking to provide automated load balance or failover (instance/SID a is not available, I guess I'll try the next in the list)
    Hope that helps the concept level a bit.

  • Sql server with multiple instance

    hi  All,
    i want  to  install sql server with two instance   and i want  to assign two  separate is  ips   for  both   default instance  and named  instance   and  both   should  work like
    two different server
    note:  If i  logged  with  one  ip(default instance)   it should  show  its  own  databases  not both or  named   instance  databases
    thanks 
     chintala

    Hi chintala,
    According to your description, if you want to assign the two different IP to stand for default instance 
    and named  instance, I recommend you set up aliases on a SQL Server with multiple instances. For example, a physical server is named WinServer and 2 instances of SQL Server named WinServer and WinServer\instance1.
    We need to add 1 IP addresse to the WinServer, there is one IP address already assigned to WinServer, 192.168.1.1, by adding one new IP's, 192.168.1.2 .
    We need to move into DNS to configure our host names and aliases.  The physical machine must be steup as a static IP in DNS. SQLAlias1, which point to the default instance on WinServer, will be setup as a DNS with an address of 192.168.1.1.
    SQLAlias2, which will point to WinServer\Instance1, will be setup as a new Host (A) record in DNS with an address of 192.168.1.2.
    When everything has been completed on the DNS side, you need to open up SQL Server Configuration Manager on WinServer and configure the protocols for each instance one at a time, restart the 3 SQL services.
    For more information about how to set up aliases on a SQL Server with multiple instances, you can review the similar article.
    http://kevine323.blogspot.com/2013/08/setting-up-aliases-on-sql-server-with.html
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Running multiple instances from same oracle home

    Hi Gurus,
    I am preparing for OCA 11g examination. I had a question about running multiple instances from same oracle home. While reading the book I came across a statement about database control which says "If there are several database instances running off the same Oracle home, then each will have its own Database Control instance".
    Now I assume that this statement implies multiple instances accessing the same physical database (which as per my knowledge can happen only in case of a RAC).
    I am not able to understand how exactly can you have multiple database instances in a single oracle home. I have installed Oracle 11g on my computer whose oracle home is +"D:\oracle\product\10.2.0\db_1"+; now this directory houses all the binaries (executables and folders like admin,bin, etc) for the oracle instance that I have installed (the instance name is ocp1). Now if I am to install or create another Oracle Instance (say ocp2) in the same home, wont there be a conflict of binaries of the two instances in the same home ?
    Basically,it makes sense if db_1 folder is further split into multiple folders, one for each instance (for example, one for ocp1 & one for ocp2); each of these folders will then contain the binary files, libraries,etc for its own instance; but, this is not the case, here db_1 houses all the binaries directly under it ...
    The other question which stems from the statement I mentioned above is that if having multiple instances running from same oracle home accessing the same physical database, can this arrangement be called RAC at all; or does RAC dictate that you cannot have multiple instances that are accessing the same database have to be installed on physically separate machines and so you cannot have two RAC instances (accessing same physical database) installed on the same computer ??
    I hope my questions are not too much confusing ... !!
    Cheers,
    Sudripta

    Hello,
    "If there are several database instances running off the same Oracle home, then each will have its own Database Control instance".This is true, and also means each instance will have its separate database (i.e. dbf files etc.) & separate DB Control. Usually in this case you create several instances on the same node.
    Now I assume that this statement implies multiple instances accessing the same physical database (which as per my knowledge can happen only in case of a RAC).You are correct about RAC where several instances (usually running on separate nodes) access the RAC.
    More info:
    1 Oracle Home - 1 Database - 1 SID is possible.
    1 Oracle Home - Many Databases - Many SID is possible.
    1 Oracle HOme - 1 Database - Multiple SID is possible and this is called RAC.

Maybe you are looking for

  • ORACLE 11g win64 installation on Windows 7

    Hello, Could anyone help me in knowing whether the ORACLE 11G win64 is the right version to install on Windows 7?

  • Wait for move complete not waiting for timeout

    Hi, I am running a small rotary stage with a 7358 motion controller. Occasionally when I command a new position, the "wait for move complete" seems to get triggered almost immediately even though the move is not complete. Since I have put in a "halt"

  • Form validation for sql submission

    is there a way i can take the fields of my forms and replace any instance of ' with /' so that it can be submitted to my Postgres database successfully? i've come across a basic javascript function that replaced "a" with "z" and i tried modifing that

  • WRT54G v8.00.5 Wireless Security Unchangeable

    I have noticed on a newly purchased router that if you try to enable security it continues to default back to disable. It acts like it is going to change to what you select, but then it flips right back to disabled when the page refreshes. I have upd

  • Workshop and CVS

    Hi, Has anyone been successful in linking up workshop 8.1 with CVS. I get this weird message when I try. I am using the pserver option. add starting... Usage: cvs add [-k rcs-kflag] [-m message] files...      -k     Use "rcs-kflag" to add the file wi