Cairngorm & Problems with Shared Components

Thanks in advance for any help. I still consider myself a
newbie, so please excuse any stupid errors that I make in
describing the problem I am having.
I am working on a Cairngorm app, the framework of which has
been handed to me. I have a component that can be used to either
enter or "update". Update is in quotes because what really happens
is that the old record is voided and a new one is entered -- but
the user is oblivious to this.
This component, which wraps and submits the data, is
instantiated twice in the app. Each instantiation is accessed via a
different "link". The problem: each time the user enters or
"updates", 2 records entered. I watch it in debug, two RPC's and
two results. I assume that this is because the component is
instantiated twice and, for the life of me, I cannot figure out how
to prevent this. I
I have tried a couple of things 1) created two sets of events
(Cairngorm & Completion), one for submit and one for modify,
but because the command expects a Cairngorm event of a certain
type, it can't handle both without a bunch messing around. I tried
using one initial Cairngorm event (submit) and two distinct
completion events, but no go. I am thinking about now creating two
commands .... ???
Actually, this is not a new problem. I am a bit under the gun
here, so when it came up before, I duplicated all the code,
including everything related to RPCs (DTOs, commands, etc.) but
this is becoming a nightmare to maintain and is bad, bad, bad ....
Any suggestions? This cannot be a completely uncommon thing?

I am not sure why you need to instantiated the component
twice. A component can broadcast several different events of the
same Type. For an example:
broadcaster.broadcastEvent(WidgetEvent.ENTER, new
WidgetEvent(widgetVo));
broadcaster.broadcastEvent(WidgetEvent.UPDATE, new
WidgetEvent(widgetVo));
Are you sure the component doesn't broadcastEvent 2 calls for
a each click? Perhaps one is being fired off in a subclass and the
other in the super class?
"...but because the command expects a Cairngorm event of a
certain type..."
The command expects a Event Type. Cairngorm will deserialize
your custom event into a Event type with the following properties:
public var type:String;
public var data:Object;
So the data will property will hold your custom Event. And
you would set that as an instance var in the command.

Similar Messages

  • Problems with Logical Components

    Hi All,
    I am having problems with Logical Components with our project. We are implemeents SAP HCM and we have defined a logical component Z_ERP for the ECC server. now when you look at the transaction from SOLAR02 it seems they also have a logical Component SAP Learning Solution that is assigned to them. what could be the cause of this???

    Hi Trevor,
    If you brought them in from the Business Process Repository, the logical component is going to be the default one. If you want to use your own, you need to replace the default one with yours.
    You can do this in SOLAR_PROJECT_ADMIN by going to the System Landscape tab > Systems tab > highlight the SAP Learning Solution logical component row > press F4 > replace it with Z_ERP.
    If for some reason SAP Learning Solution isn't listed as a logical component you may have to add it, you can also just go to SOLAR02 > Edit > Replace Log. Comp > Enter SAP Learning Solution in the top box and Z_ERP in the bottom one > click Save.
    regards,
    Jason

  • My host name changes every few days, since Xmas adding a macbook its changed 6 times. Do I need to stop this? Does it cause problems with sharing between the iMac and macbook?

    my host name changes every few days, since Xmas adding a macbook its changed 6 times. Do I need to stop this? Does it cause problems with sharing between the iMac and macbook?

    There are several possible causes for this problem.
    1. Two (or more) computers on the local network have the same Bonjour name, such as "X's-MacBook-Pro.local".
    2. You have two simultaneous connections to the same local network: probably Ethernet and Wi-Fi. If applicable, disconnect the Ethernet cable or turn off Wi-Fi.
    3. A Mac wakes from sleep due to network traffic. This is due to a bug in OS X that may only affect some models.
    4. A device that gets its network address from the router wakes from sleep, and the address it was using before has been assigned to another device.
    5. A third-party wireless router has incompatible settings or firmware. In that case, refer to the manufacturer or ISP for support. Restarting the router may help, temporarily.
    6. See also this support article.
    Rename the computer in the Sharing preference pane.

  • TPC 2012 - Problems with shared variable

    Hi,
    I tried to program simmilar thing to this one http://zone.ni.com/devzone/cda/tut/p/id/5548 on TPC 2012. But it doesn't work.I can see that both programs on my laptop and TPC are working(I've added an additional counter with display), but I cannot see any effect on TPC when I change the value of shared variable on my laptop. I use LabView 8.6 with Touch Panel Module. My question is what are the exact steps to run such application on TPC2012? Are they the same as for TPC 2006?
    I've noticed following issues:
    1.I cannot deploy the program from Project Manager(there is an information that maybe TPC Service is not started. - I've found such information about TPC Service http://digital.ni.com/public.nsf/allkb/DE177828D27A14A48625734E00768B66 but in fact I cannot find Start » All Programs»National Instruments » NI TPC Service » NI TPC Service Manager 1.0 Does it mean, that the TPC Service is not installed and the programm with shared varibles won't be working or can I start it somehow in another way? Do I need to have TPC service installed on TPC2012?
    Until now, I've built the project and sent it through FTP to TPC(the folder was /TEMP) and then started it.
    2.Ping works OK
    Thank you in advance for any hints how to solve this problem.
    Martin

    Well no problem, but I'm frustrated with this issue... I've tested many things and nothing. Just to help someone else as I in the future, these are my sources:
    http://forums.ni.com/t5/LabVIEW/TPC-2012-Problems-with-shared-variable/m-p/1009631/highlight/false#M...
    http://digital.ni.com/public.nsf/allkb/28536DE7E2D9E98B8625770B00738920?OpenDocument
    http://zone.ni.com/reference/en-XX/help/372507B-01/lvtpcgsm/tpc_install_sharvar/
    http://zone.ni.com/reference/en-XX/help/372507C-01/lvtpcgsm/tpc_install_sharvar/
    http://digital.ni.com/public.nsf/allkb/23532363F4905EC28625727A00730B80?OpenDocument
    http://forums.ni.com/t5/FieldPoint-Family/TPC-2006-Not-Listed-in-Targets-and-Devices/td-p/566325
    http://forums.ni.com/t5/LabVIEW/MAX-can-t-detect-TPC-2106T/td-p/831524
    http://zone.ni.com/devzone/cda/tut/p/id/5868
    http://digital.ni.com/public.nsf/websearch/28B748B9697B79E18625725A00009066?OpenDocument
    http://digital.ni.com/public.nsf/websearch/D1726990DCEB82E4862570F20069C57D?OpenDocument
    http://digital.ni.com/public.nsf/allkb/3B469103BBDD4CE48625726000665B36
    I hope find some hint..
    Fabian León
    Certified LabVIEW Associate Developer

  • Problem with shared objects synchoronization.

    I encountered a small problem with shared objects.
    I'm working on a program that creates chat rooms of a fixed
    size of 30 users. When the 31th user comes, a new room is created.
    The idea is that the client first connects to the first room
    and checks if it's full by connecting to shared objects. If it is
    full, connection is closed and process is reapeated on a new
    instance of the application.
    I use a function to connect to an instance, which takes as a
    parameter a number (1 for instance room_1, 2 for room_2, etc). The
    function itself creates the necessary Netconnection and
    sharedObject objects.
    If a room is full, Netconnections and sharedObjects are
    closed and function is called again with another number.
    I have no problem for connecting to the first room, but after
    closing the first connection and connecting to the new room, there
    seem to be some problems with the shared objects (especially,
    OnSync doesn't seem to execute again after the connection to the
    shared objects of the new instance).
    I was wondering if you had any ideas what could cause this.
    Is it the use of the same variable names for connecting at two
    different shared objects?
    Here is the function :
    function initStreams(room) {
    client_nc = new NetConnection();
    client_nc.connect("rtmp://192.168.0.4/Elearning/room_"+room);
    in_ns = new NetStream(client_nc);
    in_ns2 = new NetStream(client_nc);
    Replay_video.attachVideo(in_ns);
    out_ns = new NetStream(client_nc);
    out_ns2 = new NetStream(client_nc);
    in_ns.play("my_recorded_stream");
    users_name = SharedObject.getRemote("users_name",
    _root.client_nc.uri, false);
    users_name.connect(_root.client_nc);
    users_language = SharedObject.getRemote("users_language",
    _root.client_nc.uri, false);
    users_language.connect(_root.client_nc);
    users_picture = SharedObject.getRemote("users_picture",
    _root.client_nc.uri, false);
    users_picture.connect(_root.client_nc);
    users_finger = SharedObject.getRemote("users_finger",
    _root.client_nc.uri, false);
    users_finger.connect(_root.client_nc);
    I you need more info, I can post more of the code on the
    forum.
    Any help would be really appreciated

    I don't see any onStatus events in the code you posted above.
    If you're defining the onstatus event outside the function, that's
    the problem. When you define the shared object, you also need to
    define it's onStatus event handler.
    Also, you really should wait for the onStatus event of the
    netConnection before you connect your sharedObjects. If you try to
    connect the SO before the netConnection is established, the SO will
    never connect.

  • RSL Problems with DataVisualization Components and Flex 3.4 SDK

    After discovering that the 3.4.1 SDK included with Flash Builder Beta 2 seems to be incomplete (missing the data visualization components and some of the signed swz files).
    I've attempted to install the latest official build SDK into Flash Builder 4 and I'm running into a problem with the RSLs for datavisualization.swz.  I did have to locate the datavisualization components on adobe.com an coppied them into the apporpiate directories.
    Error #2046: The loaded file did not have a valid signature.
    Failed to load RSL http://...com/flex/rsls/datavisualization_3.4.0.9271.swz
    Failing over to RSL http://...com/flex/rsls/datavisualization_3.4.0.9271.swf
    The app run fine but it isn't caching the RSLs.  Is this a known problem with attempting to use an older build of the SDK with Flash Builder or is there something else going on?  I previously was building this project with Flex 3.2 but I figured while I was at it to upgraded to the latest official 3.4 SDK.

    So I've added the suggested lines to the flex-config.xml and it doesn't help.  I had to alter the path to the swf and swz slightly to get it to match the pre-existing entry for the framework.swz so I have the following rsl entries in my config now:
      <runtime-shared-library-path>
          <path-element>libs/framework.swc</path-element>
          <rsl-url>framework_3.4.0.9271.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>framework_3.4.0.9271.swf</rsl-url>
          <policy-file-url></policy-file-url>
       </runtime-shared-library-path>
      <runtime-shared-library-path>
          <path-element>libs/datavisualization.swc</path-element>
          <rsl-url>datavisualization_3.4.0.9271.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>datavisualization_3.4.0.9271.swf</rsl-url>
          <policy-file-url></policy-file-url>
       </runtime-shared-library-path>
    If I have everything set to be merged into code or have the "Use local debug runtime shared libraries when debugging" checked then the message doesn't appear.  But the minute I attempt to load the swz from same directory as the app or crossdomain like previously I'm getting thie same basic message even with manually coping the swz to the output directory or having the checkbox for "Copy library to deployment path" box checked.
    Error #2046: The loaded file did not have a valid signature.
    Failed to load RSL datavisualization_3.4.0.9271.swz
    Failing over to RSL datavisualization_3.4.0.9271.swf
    I've verified that all the copies of the swz are exactly the same and that no corruption is taking place as all the copies of the swz have the same md5 of 8b3138326f85d4b5b1aae9866f3909c0.  I figured that 3.4 has been out long enough it would be a known issue is there was a problem with how the swz is signed and I'm unable to locate any such beug reports.  I can't be the 1st person to try loading 3.4's datavisualization components as an RSLs.
    The corresponding section of of .actionscriptProperties file for the RSL is currently this
    <libraryPathEntry index="4" kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/datavisualization.swc" useDefaultLinkType="true">
       <crossDomainRsls>
         <crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="datavisualization_3.4.0.9271.swz"/>
         <crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="datavisualization_3.4.0.9271.swf"/>
       </crossDomainRsls>
    </libraryPathEntry>

  • Solution to the "Disappearing Comments" problem with shared reviews

    I've been having repeated problems with users losing their comments on shared reviews, hosted on my webDAV server. After tearing my hair out for days, I wanted to share the simple fix to this issue, plus another tip:
    DON'T USE PERIODS OR SPACES IN FILE NAMES. Use hyphens and underscores instead.
    Illegal characters seem to gradually corrupt the file to the point where potentially every comment can get overwritten with a blank .xml file, permanently losing all your comments.
    My wish to Adobe is that they would put a pop-up warning at the time of saving a file for shared reviews, something to the effect of:
    "WARNING! saving a shared file with a space or a period could result in data corruption when shared over network drives or webDAV. Do you want to replace illegal characters with underscores?"
    My other tip is this:
    If using a webDAV server as I am, be sure to use the IP address rather than the domain name when specifying the location of the server.

    With all the issues you describe, I would search for something conflicting with Mountain Lion.
    Have you booted into Safe Mode and checked to see if it works correctly there? It will take a while to boot, and it will run a bit slow, so just look for the issues you described above. If they don't appear, you've got something installed that is causing the issues.

  • Problem with shared column mapping

    I have a problem with mapping different fields onto the same column. In most cases Kodo handles it very well but one tough case it does not
    Modification references contract N-1 using contract_id field
    Contract back references two modifications out of all modification owned by THIS contract (last_modification and executed_modifcation)
    when both modifications are not null it works fine since I make sure both fields point to modification owned by the same contract
    hovewer when I set one of the fields (executed_modifcation) to null (after it was not null) Kodo attempts to set not only executed_modifcation field to null but contract_id as well. Which obviously not desired
    I understand that it is a pretty hard corner case. Do you think you can handle it or it is a dead end?
    Attached are my files

    Abe,
    I fully agree with your analysis. In my case we can use precedence of direct
    mappings over reference mapping in null situation.
    However as you noted, there are cases when we have only references and so
    you can not say which mapping is more important. However since we are
    resolving NULL issue here, I am not sure we need to know precedence of
    references - not null case should always take precedence. In other words:
    priority 1: direct mapping
    priority 2: not null reference
    priority 3: null reference
    Of course all three cases are subject rule of not changing value of shared
    column
    "Abe White" <[email protected]> wrote in message
    news:[email protected]...
    I admit that I didn't go through all your metadata, but I do believe that
    3.0 final will handle this case. My plan is to implement updates such
    that direct field mappings always take precedence over foreign key
    mappings.
    Let's say column CONTRACT_ID is used by int field contractId and is
    also used by field lastModification as part of an FK to a Modification
    instance (which I believe is close to your mapping). Because contractId
    is a simple field rather than a foreign key, Kodo will give it the final
    say on nulling/defaulting the CONTRACT_ID column. So if you null the
    lasetModification field, CONTRACT_ID will retain the value of the
    contractId field. Any non-null value of the lastModification field will
    stilly have to jive with the contractId field, though, or else we'll
    throw an exception like we do currently when you try to set 1 column to
    multiple values.
    I believe this solves the common case of shared
    columns between direct mappings and FK mappings. There are other cases
    in which multiple FK mappings overlap on certain columns, and this does
    not solve nulling problems in those instances. However, I think those
    cases are very rare and not worth the effort. Correct me if I'm wrong
    and your situation actually is one of sharing columns between multiple
    FKs and no primitives after all.

  • Problem with shared services,, cannot load "assign access control"

    i m using 11.1.1.3 version of EPM.
    I have configured Essbase with Shared Services.
    When I do right click on application on shared services and select "Assign Access Control" , it gives "loading.." .it remains same for hours..
    I re configured essbase ,, but problem remained same...
    Could you please suggest what I can do assign filters to users.

    Have you given maxl a try:
    grant filter appname.dbname.filtername to user;
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Having Problems With Sharing & Permissions in Finder

    I am using a Mac Mini (mid-2011) running Lion Server 10.7.4.
    I have noticed lately that when I check files the Sharing & Permissions portion using Get Info on my files I find that there are two lines for each user on my compuer.  The first set of lines says Read & Write which I actually selected.  The second set of lines says Custom.  When I check I have the list Read & Write, Read, Custom.  When I try to change Custom I cam select new option No Privileges Info.  For the other users I am able to delete the extra line once I select No Privileges Info.  However even though I have more than one line I cannot delete the extra line for the main user.  I will try and delete the extra line for the main user logged in as someone else that has what I have defined as admin privileges (reason I have more than one user).
    This really concerns me because this issue is causing problems with me adding or removing files as needed in the terminal.  When I try I get this funky error:
    Dubious permissions on file (skipping): filename with duplicate entries for a user.
    This is happening more and more even though I am not changing the file permissions that I am aware of.
    Any help would be appreciated.

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Back up all data now. Before proceeding, you must be sure you can restore your system to its present state
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the Recovery screen appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens. You’re not going to reset the password.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • Problems with many components

    Hi everybody, I am building a GUI using swing, everything is ok, but some times the OutOfMemoryError() occurs. I have 256 Mb in my PC, but in my application I use a lot of components too.
    Does any body know how can I manage the memory and free the space that is not in use????
    Thanks in advance.

    Hi!
    I've the same problem with some of my applications. What I do is to set the max heap for the java virtual machine. I work with jdk 1.1.8, and the line command parameters are:
    java -ms14m -mx60m my_application
    where -ms is the initial memory heap and -mx is the maximum memory heap. You can increase them if you continue having memory problems.
    About freeing the memory, try searching in the forum for "garbage collection". There are some recomendations to do that.
    Hope it helps!
    Regards

  • Problems with sharing

    Hi, 
    I'm Building a Windows 2008 R2 Enterprise server for a schoolproject. 
    And i have problems with making the shares work.
    I've used the share and Storage Managment to share the folders. 
    But with the testing of the share somethings gone wrong.
    I can open the folders and documents but i can't create of modify new data. 
    My share permissions are Change and Read. 
    My permissions in the acces controle list are : List folders content, Read and Write. 
    I've tried the change the settings and sharing over and over again. 
    But i can't get set in the right way. 
    I'm Building the server with VMware Workstation 8
    So Helpp!!

    Please note that this is Directory Services Forum and your request is regarding Files and Folders management.
    I would recommend asking them in File Services and Storage forum: http://social.technet.microsoft.com/Forums/en-us/home?forum=winserverfiles&filter=alltypes&sort=lastpostdesc
    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
    Get Active Directory User Last Logon
    Create an Active Directory test domain similar to the production one
    Management of test accounts in an Active Directory production domain - Part I
    Management of test accounts in an Active Directory production domain - Part II
    Management of test accounts in an Active Directory production domain - Part III
    Reset Active Directory user password

  • Installing PSE12 encounters problem with Shared Technologies

    Can you help me
    I can't install PSE12 on my computer (Windows 7) : installing stops with a message about a problem with installing Shared Technologies
    I don't know what is Shared Technologies. Is it downloaded with PSE 12?
    Thanks

    Hi,
    Could you please share the logs from the location(s) mentioned below:
    %temp%\PREInstall.log, PRE11.log,
    PDApp.log,
    amt.log,
    C:\Program Files\Common Files\Adobe\Installers\<*PRE11*>.log.gz
    I'd be able to comment & suggest better once I have the logs but meanwhile, you might like to upgrade the Adobe Application Manager from the following location just to rule out any incompatibilities or upgrade failures of AAM:
    Win: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4773
    Mac: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4774
    Thanks.

  • Problem with JSF components

    I am having problem with myfaces tomhawk components in a portal environment
    They work fine as a standalone web application
    When we make it a portlet, they render properly, but the pagination and links in the calendar components are not working
    They submit the page to the server, but does nothing

    Hi,
    WLP 9.2 will be using the Sun RI for JSF portlets. We are going to certify with Apache MyFaces post GA.
    The Beta drop of WLP 9.2 is coming soon and you will be able to do more around development.
    We appreciate you taking the time to review the product and provide feedback.
    Regards,
    --alex                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problems with shared albums

    I had problem with some albums shared from other person: I did see the name of the album, but I didn't see photos.
    So I decided to turn off and on the option "Condivisione foto" intending to reset the sharing system, but I lost all shared albums except "Streaming photo"
    What can I do to see again my shared albums (some shared by me and some shared by others)?
    OS X Yosemite 10.10.1 - iPhoto 9.6
    Thanks

    According to the hover over on the double arrow it indicates "Backup/Synchronization Pending".  I rebooted the machine and the photoshop startup screen got stuck on the logging in photoshop.com.  I launched Elements organizer and went to preferences and reset my userid and password (they haven't changed I just re-typed them).  It then logged in and the sync started to work.  So it was apparently not logged into photoshop.com?  It would be better if it told me that it was having problems accessing photoshop.com or something like that.

Maybe you are looking for