Obtaining reference to VO inside DataAction

Greetings,
I'm trying to get a reference to a view object from inside a DataAction subclass so I can execute a client method. In the executeImpl method of the DataAction, I have the following code:
ViewObject vo = actionContext.getBindingContainer().getApplicationModule().findViewObject("ViewObjectName");I then attempt to cast vo to the desired subclass. When I do, though, I get a ClassCastException.
Inspecting the vo variable, I find that the class of vo is oracle.jbo.common.ws.WSViewObjectImpl. I can find no documentation on this class. How do I get to my view object?

I've got the same problem.
Did you find a solution ?
Tanx

Similar Messages

  • Obtaining References of Controls Inside of Tab Controls

    Does anyone have a way to detemine the id/index number of a control on a tabbed front panel? If there is no front panel I can use the menus: Edit, Set tabbing order. Then I can use this index in the block diagram of a sub-vi to update the control on the main fornt panel with data from the sub-vi as it runs. Yet, if you do the same thing on a front panel with a tab display, only the tabbed pages are indexed, as opposed to the individiual controls and displays. 
    Thanks.
    Brian

    I have a way of updating a control on the main vi by using an open vi reference to the main vi in my sub-vi (see code below). This is working fine for situtations where the main vi does not have a tab control. With this vi that you gave me, how can I reference a specific control in the table, such as the 3rd control on the 3rd page..and more generally the n-th control on the n-th page such that my "2" below is correct. Currently I just wire a numeric to an index array and the value is then sent to that control. the trouble that I am having is in the "get all controls" & "pick the control" part below. With the tab control on the front panel, I cannot simply wire a numeric like I did below with the "2".

  • Re: Unable to obtain reference to plan in distributedenvironment

    An interface is just a definition of attributes and methods it contains no
    code.
    The code is in the class that implements the interface therefore even if you
    can pass an objet
    reference as an interface you better be sure that the object that will use
    it has access to the
    implementation. It works when it is not distributed because all of the code
    is on the client therefore
    is accessible. Once distributed the partition containing PlanSO does not
    have the library wich
    contains the code for PlanTester therefore it cannot execute code in
    PlanTester. If you
    want to do this and not put PlanTester in the same Plan as PlanSO I think
    you can copy the library wich
    contains the code for PlanTester on the server partition and it will not
    give you a deserialization error
    because now it can find the executable code.
    This could also probably happen with inheritance for example you have a
    class defined in plan A (ClassA)
    and plan B (wich has plan A supplier) contains a sub-class of ClassA
    (ClassB). Now in one partition you
    create a ClassB then pass it to another partition in a method call of
    signature Something( p1 : ClassA ).
    ClassB will fit in ClassA so you can do this (it will compile). But if the
    partition on wich you are calling
    Something() does not have access to the code in plan B then you will get a
    deserialization error.
    Hope this helps a little.
    Christian Boult ([email protected])
    Programmeur - Analyste
    Influatec inc.
    -----Original Message-----
    From: [email protected] <[email protected]>
    To: [email protected] <[email protected]>
    Date: Friday, April 16, 1999 8:25 AM
    Subject: Unable to obtain reference to plan in distributed environment
    >
    Forte Folks,
    I have run across a supplier plan problem that I think I can explain, but
    would like confirmation and maybe further explanation on.
    The scenario:
    I have three plans (PlanClasses, PlanSO, and PlanTester).
    PlanClasses has classes that PlanSO and PlanTester use, including an
    interface called Observer.
    PlanSO has the Service Object and the class that the service object
    implements. It has PlanClasses as a supplier.
    PlanSO has a method called subscribe(Observer client).
    PlanTester is a test client. It has PlanClasses as a supplier. It
    implements the Observer interface, and calls the subscribe method on the
    PlanSO passing itself as an Observer to the SO.
    Anybody see the problem yet?
    I run this scenario locally and everything is dandy.
    I run this scenario distributed and I get a deserialization exception. The
    PlanSO cannot deserialize the test client object that I had passed as an
    Observer because it cannot find a reference to the PlanTester plan.
    If I put the test client class in the PlanSO plan and partition the
    application the same way, it works. The service object needed a reference
    to the test client class even though it is getting passed as an Observer
    interface.
    Has anybody run into this before? Can anybody give me further details on
    why forte has this problem?
    I get the same exception whether the distrubted runtime property on the
    client is allowed or not allowed. If it is set to not allowed, shouldn't
    only an OID be sent across, and no serialization need take place? If the
    object is serialized, I guess it does make sense that you would need the
    details of the implementation of the interface (da class) to deserialized
    it.
    Note: I used this pattern instead of Forte events because I am going to
    expose the SO as a CORBA interface. Right now, for the forte clients that
    use the SO, I am registering for forte events which are posted by the SO to
    get around this problem.
    Thanks for any responses,
    Chris Henson
    www.atgs.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    An interface is just a definition of attributes and methods it contains no
    code.
    The code is in the class that implements the interface therefore even if you
    can pass an objet
    reference as an interface you better be sure that the object that will use
    it has access to the
    implementation. It works when it is not distributed because all of the code
    is on the client therefore
    is accessible. Once distributed the partition containing PlanSO does not
    have the library wich
    contains the code for PlanTester therefore it cannot execute code in
    PlanTester. If you
    want to do this and not put PlanTester in the same Plan as PlanSO I think
    you can copy the library wich
    contains the code for PlanTester on the server partition and it will not
    give you a deserialization error
    because now it can find the executable code.
    This could also probably happen with inheritance for example you have a
    class defined in plan A (ClassA)
    and plan B (wich has plan A supplier) contains a sub-class of ClassA
    (ClassB). Now in one partition you
    create a ClassB then pass it to another partition in a method call of
    signature Something( p1 : ClassA ).
    ClassB will fit in ClassA so you can do this (it will compile). But if the
    partition on wich you are calling
    Something() does not have access to the code in plan B then you will get a
    deserialization error.
    Hope this helps a little.
    Christian Boult ([email protected])
    Programmeur - Analyste
    Influatec inc.
    -----Original Message-----
    From: [email protected] <[email protected]>
    To: [email protected] <[email protected]>
    Date: Friday, April 16, 1999 8:25 AM
    Subject: Unable to obtain reference to plan in distributed environment
    >
    Forte Folks,
    I have run across a supplier plan problem that I think I can explain, but
    would like confirmation and maybe further explanation on.
    The scenario:
    I have three plans (PlanClasses, PlanSO, and PlanTester).
    PlanClasses has classes that PlanSO and PlanTester use, including an
    interface called Observer.
    PlanSO has the Service Object and the class that the service object
    implements. It has PlanClasses as a supplier.
    PlanSO has a method called subscribe(Observer client).
    PlanTester is a test client. It has PlanClasses as a supplier. It
    implements the Observer interface, and calls the subscribe method on the
    PlanSO passing itself as an Observer to the SO.
    Anybody see the problem yet?
    I run this scenario locally and everything is dandy.
    I run this scenario distributed and I get a deserialization exception. The
    PlanSO cannot deserialize the test client object that I had passed as an
    Observer because it cannot find a reference to the PlanTester plan.
    If I put the test client class in the PlanSO plan and partition the
    application the same way, it works. The service object needed a reference
    to the test client class even though it is getting passed as an Observer
    interface.
    Has anybody run into this before? Can anybody give me further details on
    why forte has this problem?
    I get the same exception whether the distrubted runtime property on the
    client is allowed or not allowed. If it is set to not allowed, shouldn't
    only an OID be sent across, and no serialization need take place? If the
    object is serialized, I guess it does make sense that you would need the
    details of the implementation of the interface (da class) to deserialized
    it.
    Note: I used this pattern instead of Forte events because I am going to
    expose the SO as a CORBA interface. Right now, for the forte clients that
    use the SO, I am registering for forte events which are posted by the SO to
    get around this problem.
    Thanks for any responses,
    Chris Henson
    www.atgs.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Obtaining reference to a specific client

    How can we obtain reference to a specific client?

    There are five primary ways to obtain a reference to a remote object:
    0. It can be returned by a lookup of a remote registry
    1. It can be read from an ObjectInputStream
    2. It can be the result of a method call
    3. It can be passed as a method argument
    4. It can be broadcast over the network via UDP
    Essentially, a remote object reference is no different than any other serialisable object.
    John

  • How to obtain reference to IVsBrowseObjectContext from VSPackage?

     
    I've developed small extension that modifies content of csproj files. I follow standard pattern to get the Project object:
    var dte = GetGlobalService(typeof(DTE)) as DTE2
    var selectedProjects = (Array)dte.ActiveSolutionProjects;
    var project = (Project)selectedProjects.GetValue(0);
    However Project interface is not sufficient for my purposes (checking items metadata, reinserting items) and I had to fallback to using MSBuild's Project class like this:
    var msBuildProject = new Microsoft.Build.Evaluation.Project(project.FullName);
    ModifyProjectsContent(msBuildProject);
    msBuildProject.Save();
    ProjectCollection
    .GlobalProjectCollection
    .UnloadProject(msBuildProject);
    This chunk of code is executed whenever an item is added/renamed/removed to the project.
    This works fine however there is caveat - VS detects that file has been changed and prompts to reload project which bad because I want it to happen silently. This approach also does not play well with batch modifications or source control tools. And finally
    it is just ugly.
    So I decided to check how others are doing it, in particular how does nuget adds its properties. I found out that it uses UncofiguredProject object that retrieve MSBuildProject as following:
    var project = .....
    var solution = GetGlobalService(typeof(IVsSolution)) as IVsSolution;
    IVsHierarchy hierarchy;
    solution.GetProjectOfUniqueName(project.GetUniqueName(), out hierarchy);
    var context = project as IVsBrowseObjectContext;
    if (context == null)
    var hierarchy2 = project as IVsHierarchy;
    object extObject;
    hierarchy2.GetProperty((uint)VSConstants.VSITEMID.Root, (int)__VSHPROPID.VSHPROPID_ExtObject, out extObject))
    Project dteProject = extObject as Project;
    context = dteProject.Object as IVsBrowseObjectContext;
    var unconfiguredProject = context.UnconfiguredProject : null;
    After unconfigureProject is obtained reference to msbuild project obtained like following:
    var service = unconfiguredProject.ProjectService.Services.ProjectLockService;
    using (var x = await service.WriteLockAsync())
    await x.CheckoutAsync(unconfiguredProject.FullPath);
    ConfiguredProject configuredProject = await unconfiguredProject.GetSuggestedConfiguredProjectAsync();
    var buildProject = await x.GetProjectAsync(configuredProject);
    // can modify buildProject here
    await x.ReleaseAsync();
    await Task.Run(() =>
    unconfiguredProject.ProjectService.Services.ThreadingPolicy.SwitchToUIThread();
    project.Save();
    I tried the same approach however I could not obtain IVsBrowseObjectContext from Project reference.
    What am I doing wrong? Why the same code works for nuget but does not work for my extension?

    If you want to obtain a reference to the Package object within VSPackage MSVS extension, you can do something like this:
    class MyPackage :
    Package
        private static
    MyPackage _instance;
        public static
    MyPackage Instance
            get
                if(_instance
    != null)
                    _instance
    = new MyPackage();
                 return _instance;
    class SomeOtherClass
         void Whatever()
               // use MyPackage.Instance

  • Obtain reference to the IPortalComponentRequest in TagLib

    Hi,
    I created a custom Taglib in a Portal Component according to the tutorial http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40599e45-8cf9-2910-cbaa-d4cd8e15ff34?QuickLink=index&overridelayout=true.
    Now I need to obtain a reference to the IPortalComponentRequest in the doStartTag method.
    Does anybody know how to do this?
    Best regards,
    Dominik

    Hi,
    I found it by myself. To whom it may concern. You obtain a reference via:
    IPortalComponentRequest req= (IPortalComponentRequest) pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);
    Thanks and best regards,
    Dominik

  • How do I reference an EJB inside anothe EJB ,both are on different hosts

    Hi,
    I want to reference an EJB on one host inside another EJB in another
    host. Even if i hardcode the url of the host on which the EJB is
    deployed , it gives me the error regarding the no such ejb found.
    I would appreciate your help.
    Thanks

    Robert,
    We've been trying to implement this type of multi-server setup for some
    time now. Our application consists of 260+ EJBs with a large team of
    developers actively working against it. The business logic in our
    application puts the EJBS in a highly interrelated situation. This
    degree of interrelation makes it necessary for each developer to deploy
    the entire application before any work can get done.
    Starting a weblogic server, on a Windows Workstation, with 260+ beans is
    very time consuming. But to get around this development bottle neck, we
    are attempting the same scenario described in this thread. We have
    recently upgraded from WL4.5.x to WL5.1 SP8. With WL5.1, we get the
    CommunicationException seen previously in this thread. But the Error
    message in WL5.1 is less descriptive. The 5.1 error message is missing:
    WL6.0 Error Text: "This error could indicate that a component was
    deployed on a cluster member but not other members of that cluster. Make
    sure that any component deployed on a server that is part of a cluster
    is also deployed on all other members"
    It is obvious that weblogic's clustering depends on classes being
    available to each server in the cluster, including the ejbc generated
    _WLStub classes.  To me, it seems wrong that a weblogic server can only
    use standard JNDI to lookup HomeInterfaces on other weblogic servers if
    the hidden _WLStub classes are available to both servers.  I say this
    because non-weblogic clients have JNDI lookup abilities without these
    requirements. This whole experience was frustrating because all along
    I knew that the solution was simply to take the hacker route and put the
    classes in the the client classpath. I guess I just want to know if
    this is bug? If not, I think it should be.
    Thanks for listening
    Steve Dodge
    Steve Dodge
    Realeum Inc.
    Robert Patrick wrote:
    Here is an example:
    On server1, I have a Bean called TellerBean that calls the AccountBean
    that lives on server2. To make this work, I need to deploy the
    TellerBean.jar file AND any/all AccountBean Stub classes (any file in the
    deployed version of the AccountBean.jar file matching the pattern
    AccountBean*Stub.class) on server1. Server2 only needs to deploy the
    AccountBean.jar file
    Hope this helps,
    Robert
    kamps wrote:
    Thanks.
    I did include the files using import and they are alsso packaged
    into the jar file .
    I have done this , TradeCheck is the ejb i am trying to reference
    in Trader EJB.
    I package them into the jar file as follows:-
    @REM Compile EJB classes into the build directory (jar preparation)
    javac -d build TradeCheck.java TradeCheckHome.java Trader.java
    TraderHome.java TraderBean.java TradeResult.java
    @REM Make a EJB jar file, including XML deployment descriptors
    cd build
    jar cv0f std_ejb20_basic_statelessSession2.jar META-INF examples
    images
    cd ..
    @REM Run EJBC on jar file
    java -classpath
    %WL_HOME%/lib/weblogic_sp.jar;%WL_HOME%/lib/weblogic.jar weblogic.ejbc
    -compiler javac build\std_ejb20_basic_statelessSession2.jar
    %APPLICATIONS%\ejb20_basic_statelessSession2.jar
    It still gives the same error not finding the stub class.... Could
    you kindly elaborate on what needs to be done.
    I would appreciate your help.
    Thanks,
    Sunitha
    Robert Patrick <[email protected]> wrote:
    The problem is that the client that downloads the stubs
    at runtime cannot
    be another WebLogic Server. We do not support downloading
    classes into a
    running server so you will need to make sure that the
    stubs are
    "available" to the server that is acting as a client (e.g.,
    packaged in
    the EAR file) on the server acting as a client.
    kamps wrote:
    Thanks Mahendra. I am using WebLogic 6.0. Should I importthe package
    in the first ejb which references the 2nd ejb or evenin the client
    which references the first ejb.
    Thanks again,
    Sunitha
    "Mahendra Dhamdhere" <[email protected]> wrote:
    You are not getting the reference of stub.
    try this. In your client program, import the package
    in
    which ejb classes
    are present. As client downloads the stub from weblogic,
    you have to import
    the package where your stubs are present.
    which version of weblogic are you using?
    Mahendra
    kamps <[email protected]> wrote in message
    news:[email protected]...
    Thanks,
    I have 2 ejbs: one is TraderBean and a client RefClient.
    TraderBean in turn calls a method of another bean
    TradeCheckBean.
    I tried making the changes as suggested but I amgetting
    the following
    error on the client side.
    java examples.ejb20.basic.tatelessSession.RefClient"t3://localhost:7001"
    javax.naming.CommunicationException. Root exceptionis
    java.rmi.UnmarshalException:
    failed to unmarshal class java.lang.Object; nested
    exception
    is:
    java.lang.ClassNotFoundException:examples.ejb20.basic.statelessSession.Trade
    CheckBeanHomeImpl_WLStub: This error could indicatethat a component
    was deployed on
    a cluster member but not other members of that
    cluster.
    Make
    sure that any componen
    t deployed on a server that is part of a cluster
    is
    also deployed
    on all other member
    s of that cluster
    java.lang.ClassNotFoundException:examples.ejb20.basic.statelessSession.TradeCheckBea
    nHomeImpl_WLStub: This error could indicate that
    a
    component was
    deployed on a clus
    ter member but not other members of that cluster.
    Make
    sure that
    any component deploy
    ed on a server that is part of a cluster is also
    deployed
    on all
    other members of tha
    t cluster
    <<no stack trace available>>
    I would appreciate any help.
    Thanks,
    kamps
    "Mahendra Dhamdhere" <[email protected]> wrote:
    you need to get initialcontext of that server.
    Context ctx = null;
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
    try
    ctx = new InitialContext(ht); // Use
    the
    context
    in your program
    } catch (NamingException e)
    {    // a failure occurred  }
    finally {    try {ctx.close();}
    catch (Exception e)
    {      // a failure occurred    } }
    use url of that other server. After getting initialcontext,
    lookup for your
    ejb.
    Mahendra
    kampu S <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I want to reference an EJB on one host inside
    another
    EJB in another
    host. Even if i hardcode the url of the host on
    which
    the EJB is
    deployed , it gives me the error regarding the
    no
    such
    ejb found.
    I would appreciate your help.
    Thanks

  • VI Reference Property Node inside sub-vi

    Hey Folks,
    I was always curious about why this is:
    If I open a vi-reference in one vi, and pass the reference to a sub-vi, I can put a property node in the sub-vi and get all properties just fine - as long as I am in debug mode.  When I compile to an executable this problem has its own error message and everything.  So why does debug mode not throw an error too?  I'm just trying to deduce what the heck is the difference.
    Check my painstakingly time-consuming example.
    -Devin
    I got 99 problems but 8.6 ain't one.
    Attachments:
    OpenMyReference.zip ‏42 KB

    When I discovered this issue I was coding an "About" modal screen that a user could select from a run-time menu.  This was supposed to work just like Labview's "Help->About Labview" screen, giving program description and version information.  So I tried to simply link in the revision from my vi's proerties because that would automatically keep a revision count and I didn't care what the format was as long as I could get a number.  I just wanted an easy way to check the revision, and its easy to give someone simple instructions to check the "about" screen.  Is there an easy way for a user to check the revision if all I do is put it in the application builder?  User-friendliness is key, because for me to support the application I will need to have them tell me the revision they are using over the phone or in an email.
    Will it be possible to create this screen in 8?  If I just do it in the application builder, is there any way to link to it and build an "About" screen?  I don't really care what format.  It could be revision 728 as long as a user can get to it in a simple way.  Otherwise I will have to just build a screen with plain text on it and edit the text by hand every time I build an application.  Isn't there a more elegant way to do it?
    Message Edited by billings11 on 10-20-2005 11:28 AM
    -Devin
    I got 99 problems but 8.6 ain't one.

  • Obtain reference to decoration

    I'm designing an application for training a subject for a task.  I want to place a "target" on a blank screen, have the subject move a joystick, and track the target.  For the target, I'd like to use a decoration, and use property nodes to change its size, color, position, etc.  There may be more than one decoration, so I'd like to create explicit references (that I can name) for each one.
    I found (as others have) the "Label" property, but no way to reference it.  I also found a Right-Click-Framework tool by Ton Plomp, but cannot get it to work (I'm running LabVIEW 2012 on a Windows 7 machine, and I've seen numerous references to RCF no longer working -- I've not tried to use it until now) (I also cannot view the movie that tells "how to" use Ton's tool -- right-clicking just brings up the "usual" Right-click menu on the Decoration).
    There is a discussion about replacing the RCF tool with a Quick Drop tool -- has anyone done this?  Does anyone have a solution?
    I do know how to get "all the Decorations", and if there is only one on a Pane, I could just use it (no problem identifying them).  But I'd like to avoid really messy (hard to document, hard to explain, hard to debug) situations with multiple decorations, hence the desire for an explicit referencing method.
    Bob Schor
    Solved!
    Go to Solution.

    DFGray wrote:
    If you are saving VIs with multiple decorations, use tags to mark which decoration is which.  You will need to programatically set them on the decorations.  You could write a quickdrop shortcut to do this so that you can tag items interactively.
    Thanks for the idea.  I've not (yet) written any QD shortcuts, but this sounds intriguing.  There doesn't seem to be a lot of information on How To Use User Tags, but "experimenting with LabVIEW" is fun!
    I was thinking about How to Get Started.  Tags seem to be "purely programmatic" things, meaning you need to run a VI to determine if a Decoration is tagged, and what its tag is called.  I was thinking about the following "brute force method" (but see the next paragraph ...):
    Open a new VI
    Put, say, 4 decorations on it.
    Write code to find the array of decorations on the Pane, open each, and give it a tag, say the strings "1", "2", etc.
    Save the VI (thereby "saving" the tags).
    Now replace the code with code that helps identify the VIs, such as lines them up in "name order".
    Put a Label (to tell them apart during Development), e.g. "1", "2", etc. on each.
    Go ahead and "develop" the application using the now-labelled-and-tagged decorations.
    While I was about to write all this, the "Light Bulb" suddenly went off in my head -- why not try to write the "creation" code using LabVIEW scripting?
    More things to think about, but now I'm more confident that I'll be able to get a better "handle" on decorations.  Further helpful suggestions are still welcome.

  • How to populate Reference Component inside an EBO/EBM

    Hi All,
    I have a requirement where I am getting multiple types of data, Worker and Job from a file. 1 Worker can have multiple Jobs. I am using SyncWorkerEBM to map this data. I am able to map all the fields related to Worker successfully but when it comes to mapping the Job data, there is a reference component present inside this EBM JobReference. But when I expand it I see only the Identification elements in this and no fields which are present in the actual Job EBO.
    My question is how to populate the fields that are present in the referenced component (EBO) inside the single components?
    It is something similar to populating ShipToPartyRefrence details coming inside the SalesOrder.
    Regards,
    Neeraj Sehgal

    Hello all
    as explained it is always better to use the BADIs. The Function modules are internally used (form the SAP perspective). If you perform later SAP updates/upgrades etc. you are on the save side if you use the BADIs and if you try to prepare an OSS you will be supported. If you try to prepare an OSS regarding the function module in most cases you will not be sucessful.
    But may be take a look here:
    BAPI_BUS1077_CHANGE and BAPI_BUS1077_DELETE for referenced data
    and here
    BAPI_BUS1077_CHANGE failling for identifier long texts
    The use of the BAPIs is still not easy.
    With best regards
    C.B.
    PS: take a look here may be:
    http://richard-harper.me.uk/sfmdr_sitemap/fglists/groups/z1GY.html
    or here
    http://www.se80.co.uk/sapreports/r/rc1_/rc1_1077_bapi_example_change.htm
    Edited by: Christoph Bergemann on Oct 2, 2010 5:16 PM
    Edited by: Christoph Bergemann on Oct 2, 2010 5:19 PM
    Edited by: Christoph Bergemann on Oct 2, 2010 5:20 PM

  • Reference functions inside un untitled script object

    Hello,
    Does someone knows how to reference a function inside an untitled script object?
    thank you

    xfa.resolveNode("#script").functionName()
    You should always name your scriptObjects ...it makes accessing them much easier.
    Paul

  • Cross-reference between structured and unstructured FM documents

    Hello,
    Is it possible to retain FM cross-references from structured to unstructured FM documents during an XML round trip?
    From what I know, cross-references between or inside structured documents form pairs of ID and IDREF, while cross-references to unstructured documents are dumped as normal text and lose their functionality.
    The unstructured target documents might be converted to Structured FM at some point, but for the time being I'd like to find another solution. Do you know any solution to this?
    Thanks,
    Johannes

    Johannes,
    This is just a guess, because I do not do this.
    First, of course, you cannot export the unstructured file to XML, because it is unstructured.
    Second, IF the cross-reference from the structured file to the unstructured file were done via your cross-reference ELEMENT, then the cross-reference element should export to XML as an XML element with one of its IDref attribute set to the ID of something in the unstructured file. When you open the XML file in FrameMaker, the cross-reference is re-established.
    In other words, when exporting to XML, FrameMaker does not care to what you are referencing. It just converts the cross-reference element into an element with an attribute in the XML file. So, it should work as expected when opened in FrameMaker. Of course, I am assuming your read-write file is set up to handle cross-references.
    On the other hand, IF you are creating your cross-reference from the structured file by simply inserting a cross-reference, that is NOT as an element, then I do not know what happens. If it is being exported as text, then I am not sure FrameMaker will know what to do with it when you reopen the XML file.
    Hope this helps,
    Van

  • Reference to cloned VI

    I'm trying to obtain reference to cloned VI.
    I have a program that has multiple calls to reentrant VI with prealocated clone for each instance. I'd like to reinitialize default values of all clones that's why I need reference to call the method that reinitialize values. I see that cloned VI's has different numbers e.g. edge.vi:1 (clone), edge.vi:2 (clone), but can't find way to obtain reference to them. 
    Refference to original VI doesn't affect cloned VI's
    Thanks,
    Petar 
    Solved!
    Go to Solution.

    This is very simple representation of my idea. There two running clones of one vi and on some time I want to resets their internal state. 
    I don't think first call can help me because I'd like to reinitialize them during execution.
    Attachments:
    example.zip ‏19 KB

  • **URGENT** Deplyment error while using service reference

    I am using Landscape service to get the system information from system landscape directory. I added the service reference inside my web dynpro application using NW studio. When I deploy this service I get following error:
    Oct 21, 2005 3:06:16 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] WARNING:
    [023]Deployment finished with warning
    Settings
    URL to deploy : file:/C:/DOCUME1/sam/LOCALS1/Temp/temp61301XYZ_Web_Dynpro.ear
    Result
    => deployed with warning : file:/C:/DOCUME1/sam/LOCALS1/Temp/temp61301XYZ_Web_Dynpro.ear
    Finished with warnings: development component 'XYZ_Web_Dynpro'/'local'/'LOKAL'/'0.2005.10.21.15.05.52':
    Caught exception during application startup from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while starting application local/XYZ_Web_Dynpro and wait. Reason: Clusterwide execption: server ID 7099050:<Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID=' STATUS_MISSING', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key STATUS_MISSING', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID=' STATUS_MISSING', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key STATUS_MISSING
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : Got problems during deployment
    I wrote a sample iView without using dynpro & added the service reference as "landscape" inside the portalapp.xml & that iView worked fine.
    So I know that the service name is correct & the service is running on the portal.
    All I need to find out is how do I specify the reference of that service in my web dynpro application.

    I have exactly the SAME problem
    I tried putting PORTAL:sap.com/<your service name> in the sharing reference as well as in the service reference. But I still get the error during deployment.
    I also tried putting it in "service referece". Same error.
    I also tried just sap.com/<your service name>. But it didn't help either.

  • Referencing a instance inside a Class

    Hi --
    I am working on converting a movie clip to a Class so that I
    can more easily
    reuse it in later projects.
    I have pretty succesfully converted my AS code from my
    include file to a
    Class file. However, I have two objects on the stage, topBG
    and botBG and
    whenever I reference these items inside my code, such as
    botBG._y I get an
    error at compile time saying "There is no property with the
    name 'botBG'"
    How can I set it so these assets can be referred to inside my
    code?
    The code worked fine when it was just a movie.. Also, this is
    ActionScript
    2.0.
    Thanks
    Rich

    Hi --
    Thanks for responding. What I had created was this:
    I have a movie clip, "MainClip" with two movie clips ("ClipA"
    and "ClipB")
    inside that clip.
    I put MainClip on the stage (_root) and had Actionscript code
    in the main
    time line. I referenced ClipA & ClipB this way:
    MainClip.ClipA
    MainClip.ClipB
    Now, I want to turn MainClip into a class, "classMainClip".
    However, having
    moved the Actionscript into the class AS file and changed the
    above
    reference to just
    ClipA
    ClipB
    I get an error at compile time.
    How do I refer to the movie clips, "ClipA" and "ClipB" inside
    the
    actionscript that is the over lying class of which I want
    these clips to be
    a part?
    Hopefully I've explained this right.
    Thanks,
    Rich
    "kglad" <[email protected]> wrote in message
    news:gibuh8$qbh$[email protected]..
    > you want class instances to be able to reference each
    other?

Maybe you are looking for

  • Display of values in ITS

    Hi all, 1.I have appended 3 fields in the structure INCL_EEW_PD_ACC_CSF these fields are displayed only for cost center in the account assignment category..i want to display these 3 fields for all account assignment categories such as WBS element and

  • (semi-)automatically updating cells/tables in pages from a numbers document

    Hi, I've been googling around for a bit, but can't find out if this is possible and if so, how to do it. What I want to do is create a document in numbers (all the data for the invoices I send), then go to a standardized pages invoice and with a (cou

  • Class-Path: for Windows

    I have a jar I created with manifest which contains a set of jar files as such: Class-Path: file:///c:/someDir/a.jar file:///c:/some other dir/b.jar When I try to access a class within b.jar, I always get a NoClassDefFoundError. If relocate the jar a

  • Can I use my S4 with German network carrier

    I'm moving to Germany in June. Can I use my Galaxy S4 that I bought for the Full price (without contract) with a German SIM card?

  • Oracle Forms 10g run time problem

    Hello. I installed Oracle Dev 10g and I'm trying to use Oracle Forms. I configured all files like this: [steps in other post] 1. Install the Jinitiator location: <devsuitehome>/jinit/jinit.exe 2. edit the following files: a. <devsuitehome>/forms90/se