XControl component reference access

Hi all,
We have an XControl that contains a graph.  Is there anyway of getting a reference to that graph out of the XControl?
We have a task that should be updating the XControl graph using the XControl data update, but due to a bug in LabView 8.5.1 our controller can't contain a reference to the XControl as part of its state data.
If our task can't hold a reference to the XControl, it should be able to hold a reference to the XControls graph and update the graph using the property node.
Any ideas?
Best regards
Phill

It possible to acces the references of the objects inside the x-control.
First you need to add a reference to the state data.
Then add a read-only property to acces this reference form you caller VI
Last in your Facade VI you have to write the needed reference into the state data, and set State Changed? to TRUE.
Now you can acces to reference and all its property.
I've added an example as well
Regards Patrick
Attachments:
XControls.zip ‏92 KB

Similar Messages

  • Component reference point in ultiboard

    The default setting for component reference point is the center of PIN 1 of the part. however, for many SMT machines, it reference to the center of the component (not a pin). 
    How doImodify it without going through every component in the database?
    Solved!
    Go to Solution.

    The PIN 1 reference point gets used for positioning the part on your layout. When you export the centroid file, you will see the coordinates for the center of the component.
    I prefer to know where that center is so I don't get surprised by oddball SMT coords. This is yet another reason why we maintain our own corporate database of footprints, with the reference point set to the center (or nozzle pick-up point) of the component. 

  • Remove MXML Component reference from memory

    Hi Folks,
         I have a problem with component reference when it is open by PopupManager.
    I opened the mxml file thru PopupManager and close using PopUpManager.removePopup() method. But the reference of the mxml file still in the memory. If I opened it again and again means i have experienced performance issue.
    Have anyone solve this problem should be much appreciated.
    Thank You
    Arun P. Ganesh

    Hi Arun Ganesh,
    You also need to remove all the eventListeners associated with the PopUp before you close your PopUp. Otherwise you wil faced the performance issue the same way you are facing since the eventListners associated with the PopUp will not be removed when you close your PopUp instead you manually need to remove all the Listners before you close your popup otherwise your old listeners in adddition to new listeners exist as how many times you open and get multiplied.
    You can also refer to the thread that I have posted.
    http://forums.adobe.com/thread/670772
    http://forums.adobe.com/message/3293012#3293012
    Thanks,
    Bhasker Chari
    Message was edited by: BhaskerChari

  • Object and reference accessing for primitives, objects and collections

    Hi,
    I have questions re objects, primitives and collection accessing and references
    I made a simple class
    public class SampleClass {
         private String attribute = "default";
         public SampleClass()
         public SampleClass(SampleClass psampleClass)
              this.setAttribute(psampleClass.getAttribute());
              if (this.getAttribute() == psampleClass.getAttribute())
                   System.out.println("INSIDE CONSTRUCTOR : same object");
              if (this.getAttribute().equals(psampleClass.getAttribute()))
                   System.out.println("INSIDE CONSTRUCTOR : equal values");
         public void setAttribute(String pattribute)
              this.attribute = pattribute;
              if (this.attribute == pattribute)
                   System.out.println("INSIDE SETTER : same object");
              if (this.attribute.equals(pattribute))
                   System.out.println("INSIDE SETTER : equal values");
         public String getAttribute()
              return this.attribute;
         public static void main(String[] args) {
    ...and another...
    public class SampleClassUser {
         public static void main(String[] args) {
              SampleClass sc1 = new SampleClass();
              String test = "test";
              sc1.setAttribute(new String(test));
              if (sc1.getAttribute() == test)
                   System.out.println("SampleClassUser MAIN : same object");
              if (sc1.getAttribute().equals(test))
                   System.out.println("SampleClassUser MAIN : equal values");
              SampleClass sc2 = new SampleClass(sc1);
              sc1.setAttribute("test");
              if (sc2.getAttribute() == sc1.getAttribute())
                   System.out.println("sc1 and sc2 : same object");
              if (sc2.getAttribute().equals(sc1.getAttribute()))
                   System.out.println("sc1 and sc2 : equal values");
    }the second class uses the first class. running the second class outputs the following...
    INSIDE SETTER : same object
    INSIDE SETTER : equal values
    SampleClassUser MAIN : equal values
    INSIDE SETTER : same object
    INSIDE SETTER : equal values
    INSIDE CONSTRUCTOR : same object
    INSIDE CONSTRUCTOR : equal values
    INSIDE SETTER : same object
    INSIDE SETTER : equal values
    sc1 and sc2 : equal values
    ...i'm just curios why the last 3 lines are the way they are.
    INSIDE SETTER : same object
    INSIDE SETTER : equal values
    sc1 and sc2 : equal values
    how come while inside the setter method, the objects are the same object, and after leaving the setter method are not the same objects?
    Can anyone point a good book that shows in detail how objects, primitives and collections are referenced, especially when passed to methods. Online reference is preferred since the availability of books can be a problem for me.
    Thanks very much

    You are confusing references with objects.
    This compares two object references:
    if( obj1 == obj2 ) { // ...Whereas this compares two objects:
    if( obj1.equals(obj2) ) { // ...A reference is a special value which indicates where in memory two objects happen to be. If you create two strings with the same value they won't be in the same place in memory:
    String s1 = new String("MATCHING");
    String s2 = new String("MATCHING");
    System.out.println( s1 == s2 ); // false.But they do match:
    System.out.println( s1.equals(s2) ); // trueIf you're using a primitive then you're comparing the value that you're interested in. E.g.
    int x = 42;
    int y = 42;
    System.out.println(x == y); // trueBut if you're comparing references you're usually more interested in the objects that they represent that the references themselves.
    Does that clarify matters?
    Dave.

  • Make public property of a component and access it from another component?

    Component "alpha.mxml"
    propriety: mapevent_mapready
    Component "beta.mxml"
    <alpha:alpha mapevent_mapready="some_function()" />
    how?

    Hi leonapster,
    Say in your component alpha.mxml
    <!--alpha.mxml -->
    <AlphaComponent>
         public var mapevent_mapready:Boolean=false;
    </AlphaComponent>
    <!-- Beta.mxml -->
    <BetaComponent>
    <mx:Script>
         private function init():void
              //Now you can access the mapevent_mapready property of Alpha Component as below:
              var bool:Boolean = alphaComp.mapevent_mapready;
         alphaComp.mapevent_mapready
    </mx:Script>
    <alpha:alpha id="alphaComp" />
    </BetaComponent>
    Thanks,
    Bhasker

  • Copy of Standard Page throws error Unable to find component reference

    I have copied a Standard Page to custom package to modification after importing when I try to run the page I get the following error.
    oracle.apps.fnd.framework.OAException: oracle.adf.mds.exception.MDSRuntimeException: Unable to find component with absolute reference = /oracle/apps/asn/opportunity/attributesets/Opportunity/Opportunity_Number, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1960)
    But I am able to successfully run it in my JDev .
    Any pointers will help.
    Thanks in advance.

    Hi,
    You need to change the function call to point your new page in place of old one.
    Thanks
    Anoop

  • Flex Component kit accessibility

    Hi All,
    I was hoping that the F.C.K . would create components that
    are accessible in flex however it seems not so. The UIMovieclip
    class seems to implement the IFocusManagerComponent:
    class UIMovieClip extends MovieClip implements
    IDeferredInstantiationUIComponent, IToolTipManagerClient,
    IFocusManagerComponent, IStateClient
    So I would expect it to work however it just doesn't -- the
    flex app just wants to keep hogging the focus all the time!
    Has anyone done this? Help very welcome!
    Ged

    Hi Glenn,
    Thanks for the tip. Installing the FLEX 3 component kit
    solved the problem with accessibility / focusing text inputs in
    F.C.K components inside flex. This worked for flex apps compiled
    with Moxie M2 and Flex 2.0.2. .
    The info on installing the new version 1.1 component is
    pretty confusing so for the benefit of others:
    To install the FLEX 3 Component kit first install the Flex 3
    Beta or SDK then browse to the installed folder:
    C:\Program Files\Adobe\Flex Builder
    3\sdks\moxie\frameworks\projects\flash_integration here you will
    find the MXP file to install the commands. They install over the
    version 1.0 commands and add an extra command "make flex containor"
    which is used for integrating flex content into a flash app.
    PS) The flash CS3 accessibilty panel does not seem to work so
    watch out for compile errors when exporting the SWC. If you use the
    panel to provide a tab index it will not compile. These are
    documented elsewhere.
    All the best,
    Ged

  • Why XControl's reference is invalid?

    There are 60 XControls on front panel.I get their reference by a subvi and then output their label text by property node.It's ok when vi run in labview 8.5 IDE.Then I build the program to exe file.The refrence is invalid when I run the exe file .So what's wrong about the exe file?
    Thanks!

    I hava sloved my problem .The problem occured when a common reference  translated into special reference .Jsut like the image:
     When running the exe file,CargoBlock reference is invalid.But I change the method that gets CargoBlock reference ,as follows:
    The problem disappears...

  • Missing component to access (read) a PDF file Adobe reader 8

    When I try to open a PDF file it says there are some missing components to complete the operation and it sends me to the Adobe Web page (Adobe Acrobat plug in Finder) I already asked to the author of the file and followed his installation instructions but the problem remains. If I try to open it in some other computer the error message specifies the component filter/MBAS:ash is missing.

    I am getting the same message, "Filter/MBAS:Ash:", that you posted on Adobeforums.com. Did you find out where to get the missing component? If so, I would appreciate your help.
    Norm

  • Error in service call of Portal Component while accessing CRM iview

    Hi Experts,
    When I'm trying to open the iview, i'm getting portal runtime error.  Below is the log I found.  I check the permissions and everything looks fine.  We have migrated from EP6 to EP7 EHP1 SP8.  This iview is working properly in EP6 but throwing error in EP7.  Kindly let me know how to resolve this issue.
    Exception ID:02:43_05/09/11_0009_109976350
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : pcd:portal_content/com.scc.scc/vcr/com.ids.scc.vcr.crm_link/com.ids.scc.vcr.crm_link.Roles/com.scc.sapbpe.salesrep/myApplications_dlren_0/CRM/quotations/com.sap.pct.crm.sal.my_favorites_sales_documents
    Component class : com.sap.pct.crm.core.favorites.list.ListPortalComponent
    User : TESTUSER
    at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:973)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:343)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:355)
    at com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:310)
    at com.sapportals.portal.navigation.workAreaiView.doContent(workAreaiView.java:293)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:375)
    at java.security.AccessController.doPrivileged(AccessController.java:246)
    at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:388)
    at com.sapportals.portal.prt.core.async.ThreadContextRunnable.run(ThreadContextRunnable.java:164)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)
    at java.lang.Thread.run(Thread.java:770)
    Caused by: java.lang.NoClassDefFoundError: com.sap.pct.crm.core.objectlinks.ObjectLinkGenerator (initialization failure)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
    at com.sap.pct.crm.core.favorites.list.ListDynPage.onContainerCreate(ListDynPage.java:547)
    at com.sapportals.pct.util.pdv.PDVDynPage.doProcessBeforeOutput(PDVDynPage.java:171)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:127)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    ... 15 more
    Thanks in advance,
    VV.

    Hi,
    check whether note 1291058 applies for you.
    Check whether your Stacks and SPs / Business Packages matched correctly with maintenance optimizer.
    Got this error only once while implementing a new portal, it was due to a corrupted deployment, so probably some of the XSS JAVA Components got corrupted.
    EDIT: "Caused by: java.lang.NoClassDefFoundError: com.sap.pct.crm.core.objectlinks.ObjectLinkGenerator" really looks like something with the JAVA deployment went wrong. Java Stack can't find a class definition in PBO... you haven't modified anything with NWDS/NWDI or have you?
    regards, Lukas
    Edited by: Lukas Weigelt on Sep 7, 2011 1:22 PM

  • Use XML as a component reference

    I'm trying to load a series of custom components into an mxml using an XML as my reference. In PHP I would simply eval() the object name and that would be that. Flex doesn't have an eval. I'm wondering if there's a way for me to do something like this:
    function readXML(theXML) {
         for each(var x in theXML.children()) {
              var newComp = eval(x.@name);
              myViewStack.addChild(newComp);
    Anybody?

    Well, almost...
    TypeError: Error #1034: Type Coercion failed: cannot convert [myCustomContainerName]$ to mx.containers.Canvas.
    The custom containers are created using the Canvas class. I even tried using "as Canvas" after calling the getDefinition. Nothing seems to work. I've been at this for HOURS now and I'm feeling really stupid. I'm going to attach my source this time.
    Thx.
    I'm not sure the attachment worked so:
    public function drawComponents(x:XML):void
                    mainViewStack = new ViewStack();
                    for each(var y:XML in x.item) {
                        if(ApplicationDomain.currentDomain.hasDefinition(y.@name) == true) {
                            var newChild:Canvas = new Canvas();
                            var newLabel:String = y.@label;
                            newChild = Canvas(ApplicationDomain.currentDomain.getDefinition(y.@name));
                            newChild.label = newLabel;
                        } else {
                            Alert.show("not defined");
                        mainViewStack.addChild(newChild);

  • Flash UI Component Reference Point-Can It Be Changed?

    When an image loads into the UI Component with the scaleContent parameter checked, it centers itself. With scaleContent unchecked, the images import in at the upper left corner If Is there a way to have the images load in at the upper right point? I, of course, changed the Registration/Transformation Point but this has had absolutely no effect. I'm using CS5 if it matters. Thanks for your help.

    no you can not.
    it's best to order it with the maximum RAM allowable.
    as for the storage, you can always buy an external drive and save your files there.

  • Partial Trigger - component reference

    When you specify a partial trigger property using the "Edit Property: PartialTriggers" dialog the referenced component sometimes has 2 or 3 colons in front of it, e.g.
    PartialTriggers: "::searchLink ::orgLink"
    Can anyone explain the significance of the colons and why they are sometimes not present?

    Thanks for input all. Worked it out having spotted the text at the bottom of the editor which says: "* indicates a naming container"! So I think,
    - no colons means the referenced components are in the same container.
    - 2 colons means they're in the parent container.
    - 3 colons means they're in the grandparent container.

  • Component reference in atg

    Hi Guys
    In atg why higher scope components should not refer to lower scope components
    but is is possible vice versa
    give me small example

    964906 wrote:
    Hi Guys
    In atg why higher scope components should not refer to lower scope components
    but is is possible vice versa
    give me small exampleA global scope component should not point to request or session scope why because session scope component will be associated to particular session once the session is expired then session scope component is garbage and similarly request scope component will be for a particular request after that will be destroyed. On the other hand global scope components will be live untill the application is running so whenever any request/session components refer to it nucleus can easily provide.
    hope it helps

  • Swing Component to access a Servlet

    Hi All,
    I am new to the technology of java and servlets.
    We have a Web Application which runs on the JSP and Servlet technology using a BEA Weblogic Server.
    User(Client) connects to the server with Login.jsp by providing a valid user-name . The server in returns downloads an Applet from the server . From here-onwards all communications to the server happens via the applet.
    What I want to do is that, I don't want to communicate to the server using the browser and then through applet. Instead I want to write my own application using AWT/SWING and then connect to the server using java.net class.
    I have the code of the Applet and hence I can duplicate it's functionality in "MyApplication".
    Since I have very less experience, in Java related technologies , I just thought I will introduce my idea in this forum. Is this doable. How should I start to get ahead in this. Since the servlets keep throwing HTMLS will I be able to parse them in some so that I can make similar kind of GUI as it comes in the browser window?
    Any information with this regards will be apprecaited.
    Regards,
    Amol

    Hi Jamie,
    Thanks a lot for the quick response.
    My my main question is that are Desktop softwares written to communicate with Web Application Servers.
    is it a workable solution.Are softwares written in that fashion.
    Also how can I call COM server APIs from Java.
    Warm Wishes,
    Amol

Maybe you are looking for