Get COM object type to supply to type input of Variant to Data.vi

I'm interfacing a custom ActiveX control. One of the methods returns a reference to another COM object. However in LabView the reference is returned as a Variant, so I need to convert that to a properly typed refnum so I can access its properties. The ActiveX control is registered so LabView knows all about its TLB. I just need a way to create a type constant in which I can specify the COM class (which will be something like "FooCtl.IFooData"), so I can wire it to the type input of Variant to Data and get the reference.
Thank you!

Never mind. Got it. Create a dummy refnum of the proper type and wire it to the type input. I'm sure there's a description of this somewhere in the docs...

Similar Messages

  • Get the object type

    hi,
    i have only ONE field that has a formatted search,
    but a want to get the object type of the document,
    for example.
    if i am in a A/R Invoice, i want to get some value (i.e. OINV)
    if i am in a A/P Invoice , i want to get some value (i.e. OPCH)

    Hi,
    You may get the object type by ObjType field.  However, it is not available by UI.  Therefore, you may only get it after the document has been saved.
    Thanks,
    Gordon

  • Getting "No Object type found error" in BPM sceanrio.

    Hi Friends,
    I am doing File to RFC with response sceanrio using BPM. For this i configured one receiver step, one send synchronous step to send input message to RFC and one asynchronous send step to send the response to a file.
    I have configured 3 receiver determinations(file to bpm,bpm to ECC, bpm to file),  3 interface determinations(file to bpm, bpm to ecc, bpm to file) and 2 Receiver agreements(bpm to ecc and bpm to file).
    I am getting the followin error:
    No object type found for the message. Check that the corresponding process is activated
    My sxi_cache has return code as ' 0 '. And as suggested in some threads, i deleted the objects and recreated them again. but still getting the same error.
    Please help me in solving this issue.
    Thanks & Regards,
    Senthil.

    Hi Senthil,
    Is all the objects created in IR and ID are reflecting in SPROXY tcode.
    Check SM59=> AI_JCO_Server connection is working or not ?
    Check SXMB_IFR tcode is working fine or not ?
    Check sm22 and let us know the dumps are there ?
    Check default trace files for any errors in the following paths ?
    1.usr/SAP/X7systemname/DVEBMGS07/J2EE//cluster/server0/log/defaulttrace.trc
    2.usr/SAP/X7systemname/DVEBMGS07/J2EE//cluster/dispatcher/log/defaulttrace.trc
    3.usr/SAP/X7systemname/DVEBMGS07/J2EE//cluster/dispatcher/logs/services/http/req_resp.trc
    Thanks,
    Jogula Ramesh

  • Getting the object type of a Table

    Hi,
    I'm trying to get metadata out of my database and am using the various features of getMetaData() etc to get most of the information I need.
    The only problem I have is that I can't get the actual types of the tables in my database.
    For example I have the Table Lecturers which is of TYPE Lecturer.
    I can get the actual name of the table back by querying the db, but I can't get the actual type of it i.e. Lecturer!
    Does anyone know of a function (or any method at all) that will do this for me in Java ?
    Hope Someone can help me,
    Best Regards,
    Finian.
    Ps I'm using Oracle 9i and the Oracle thin Jdbc driver to connect to it.

    if i dont want any thing but data on the target database.
    i am thinkink about using exclude parameter on indexes,triggers,constraints,views,functions,prodecures,packages. this is how my parameter file will look for import.....
    DIRECTORY=IMP_USAC_DIR
    DUMPFILE=slcu.dmp
    SCHEMAS=slc
    EXCLUDE=ref_constraint
    EXCLUDE=index
    EXCLUDE=view
    EXCLUDE=function
    EXLUDE=trigger
    EXCLUDE=procedure
    EXCLUDE=package
    EXCLUDE=sequence
    LOGFILE=slcutest.log
    Let me know if this will work
    Thanks
    Message was edited by:
    mtaji wa maskini

  • How can I embed Variant To Data in a subVI and pass in the Type input?

    If I use Create Control on the Type input of Variant To Data, I get an undefined type error unless I insert a control of a specific type into the cluster control that was created. This seems to prevent passing a parameter into a subVI for this purpose.

    > I'm interested in extending the functionality
    > of Variant to Data, such as using it or not based
    > on an additional input. Clearly, LabVIEW will not
    > allow this with the current design.
    I do not see what you mean by "using it or not based on an additional input". What would the output of this function be, if it were "not used"? What exactly are you trying to do?
    Personally, I have long wanted a polymorphic data type. If a polymorphic control were connected to a VI's connector pane, it would be defined by the calling VI. Once a calling VI wired a data-type to a polymorphic input of a subVI the type would propogate into the subVI.
    > As to the existing documentation on the type data
    > returned by Flatten to String, I find it
    rather
    > incomplete.
    With the release of LabVIEW 7, NI has updated App Note 154 to include some more data types (and subtypes). If you haven't seen this, I suggest you take a look.
    > I have created many types that cannot be decoded
    > using the available documentation. This alone,
    > makes an analytical solution difficult.
    Do you mean compound data types like clusters and arrays? Almost all data types can be decoded just fine with the available documentation. The only types that are not very straight-forward are the waveform data type, refnums, and typedefs. If you give me an example, perhaps I can help.
    > Adding
    > LabVIEW version dependency really makes this
    > solution fragile.
    I don't agree. LabVIEW may add new types in new versions of LabVIEW, but fundamentally the typecodes and structure of flattened LabVIEW data types have not changed at all (even though NI does reserve the right to change this in future releases of LabVIEW). Do have specific examples of t
    his?
    Cheers,
    -Jim

  • Is it possible to get object type name  with help of key field?

    can any one tell me is it really possible to get the object type name if i have only key field,
    are there any tables which store the object type names & keyfield.  or there are any functionmodue which gives object type name by entering keyfield.

    Hello,
    If the PO has workflows associated with it, there is a table SWIWIOBJCT which stores details of the workitem, object key , object type details.
    If you input the object key to this table ( For ex: PO number in this case) , it will give you the corresponding object type for the object key for Workitem type F.
    Thanks,
    Sowmya Arni

  • Get Object Type in Impl-Class

    Hi Experts,
    I have the requirement to show a warning that the user shall maintain a Partner "Enduser" in the Assignmentblock "Partners" when creating an Opportunity. The code for the warning is implemented in the Impl-Class of the View BTPARTNER/Partner (my Assignmentblock "Partners"). The problem is, that the Assignment Block  is also used in other Scenarios, but the Waring shall only appear in the Opportunity View.
    How can I check the current Scenario? I thought of getting the Object Type BT111_OPPT and check it.
    Anyone know how to get the Object Type or any other solution for the problem?
    Thanks and regards,
    Sebastian

    Hi,
    I think using the Object_type to display warning message in your case is fine and it should work. Now as you are looking how to get object_type here..my suggestion would be  in View BTPARTNER/Partner  you have a context node called 'BTPartnerSet' after getting the current entity (by using get_current() ) you can get the parent which would be BTAdminH and in this entity you have object_type as a attribute so you can easily call get_property or get_property_by_string () and can put your check.
    Regards
    Ajay

  • ORDVir object type

    First i had a problem with creating tables with image type column.
    For example, when i typed:
    CREATE TABLE stockphotos (photo_id NUMBER, photographer VARCHAR2(64),
    annotation VARCHAR2(255), photo ORDSYS.ORDVir);
    i got the answere invalid datatype for "ordsys.ordvir"
    After that i tryed with ORDImage instead of ORDVir an i succeed. But
    then raised another problem. When i tryed to generate signature for
    image data object:
    declare
    image ordsys.ordimage
    image.analyze
    i got error. Obviously obtaining atributes can happen just to ORDVir
    object . So my Question is do i get this object type (in ORDSYS )
    after the installation of oracle or i had an installation problem?
    I also tried with CREATING ORDvir OBJECT TYPE procedure but i didn't
    succeed. What should i do?

    What version are you running?
    If you are running a newer version, you should look at ORDImageSignature for matching since it is the newer implementation developed in house instead of having to pay royalties, and passing the cost to customers.
    We do support ordvir applications, but you have to install the ordvir compatability kit. See: <ORACLE_HOME>/ord/vir/admin/README.txt
    Larry

  • Object Types Attributes (Data Modeler 3.0 EA1.)

    Hi,
    Will the attribute object type support in data modeler be upgraded to the same functionality as column relational table support in 3.0? For relational columns I can attach a domain to a column, I can't attach a domain to an attribute in an object type. Also for a column I can define a 'Units', that is VARCHAR2 (30 BYTE) orVARCHAR2 (30 CHAR). If can't do this with the (Data Modeler 3.0 EA1.) for an object type's attribute. Will this be included?
    Thanks,
    Scott

    Sue,
    Thanks to you and your team for extending this to the object type (structured type) portion of SDDM 3.3 EA1 and 3.3 EA2. The object type portion of SDDM is pretty robust now for modeling and actually generating useable structures in the database (Oracle) now. With 3.3 EA2 at this point it will be much easier to take advantage of the object type features in the database and our applications. I have been waiting since Oracle version 8 for the tools team to provide a modeling tool that mirrors the functionality the server team has provided when it comes object types.
    Thanks for this in SDDM 3.3 EA1 and SDDM 3.3 EA2!
    ScottK

  • How to find object type

    hi friends,
    i have a object type -BUS2081. which is bein used in MIR4 transaction.
    how to get the object type for transaction fb03.
    thank u,
    kat

    Hi,
    It is BUS1028
    Mark use full answers.
    Regards,
    Nanda.

  • Com.evermind.server.http.HttpIOException: There is no process to read data

    Hi,
    In one of our web application deployed in OC4J( Oracle9ias 9.0.2.3) containers we are getting "com.evermind.server.http.HttpIOException: There is no process to read data written to a pipe." Exception.
    The Stack Trace:
    com.evermind.server.http.HttpIOException: There is no process to read data written to a pipe.
         at com.evermind.server.http.EvermindServletOutputStream.flush(EvermindServletOutputStream.java(Compiled Code))
         at java.io.OutputStreamWriter.flush(OutputStreamWriter.java(Compiled Code))
         at java.io.OutputStreamWriter.close(OutputStreamWriter.java(Compiled Code))
         at com.ramco.security.servlet.Dispatcher.sendResponse(Dispatcher.java(Inlined Compiled Code))
         at com.ramco.security.servlet.Dispatcher.service(Dispatcher.java(Compiled Code))
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java(Compiled Code))
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java(Compiled Code))
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code))
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code))
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
         at java.lang.Thread.run(Thread.java:513)
    Can anyone help us in resolving this issue?
    Regards,
    Suresh.M

    Hi,
    No... It is yet to be resolved.
    Oracle Recommends us to go to 10g ( at least 9.0.4 ) to check the issue.
    Thanks and Regards,
    Suresh.M

  • How can I use a COM object that does not have a type library?

    Hello,
    I've created a com server in python for which I do not have a type library. I am able to call functions for this application in Python, TCL, I'm sure VB, etc. without the type library.
    Must I have a type library registered to use this COM object with Labview? I was hoping I could simply supply the name to the refnum (or the GUID) then call functions by passings strings to the invoke node. This does not seem to be possible - am I missing something?
    In the event that I cannot use a com server without a type library. Any recommendataions on how to create one? I'm wondering if I can use the same GUID and create a shell in LabWindows which generates the IDL/TBD file I need for Labview to see my
    com server.
    Any help is greatly appreciated.
    73,
    Timothy

    Timothy Toroni wrote:
    > Thanks for the info, however their example is labview server and
    > python client. I'm going the other way. It's good to know about
    > LabPython though...
    >
    > As of now, it seems to be there is no way to use a COM object without
    > a type library from inside LabView.
    Yes that is true. LabVIEW needs that to configure the Property and
    Methode Nodes correctly. Otherwise it would need to have a special
    Property and Method Node with a configuration dialog similar to the Call
    Library Node, but a LOT more complicated. Not sure many people could
    make use of that, and it would be a very tiring experience trying to get
    things setup in that way, by going through the edit, test, and crash
    cycle over and over again.
    Rolf Kalberm
    atter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Production Order Error: "Unable to cast COM object of type 'System.__ComObj

    Hi all,
    I have the following code:
    Dim oProdOrders As SAPbobsCOM.Documents
    oProdOrders = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)
    after the second line I get a system exception: {"Unable to cast COM object of type 'System.__ComObject' to interface type 'SAPbobsCOM.Documents'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A6DA575B-E105-4585-9F4B-50CC4044EEDD}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."}     
    If I change document to eg oQuotations it proceeds normally.
    Any Idea?
    Thanks in advance,
    Vangelis

    try it as
    Dim oProdOrders As SAPbobsCOM.ProductionOrders
    oProdOrders = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)

  • Type casting for properties accessed in COM Object

    I have a com object that I need to access which provides my a
    list of addresses in an Array. The object give me a property that
    has a count for the number of addresses and then I have a loop that
    calls the property which contains the address details to get each
    individual address each time passing to the property the INDEX
    value on the loop.
    This errors out each time.
    The error I get is
    Error casting an object of type to an incompatible type.
    This usually indicates a programming error in Java, although it
    could also mean you have tried to use a foreign object in a
    different way than it was designed.
    It appears the the variable type of the index is not
    compatible with the property of the component(which is an int).
    IS there some way to type cast the variable used as the index
    for CFLOOP to that of an INT?

    You can try to use the JavaCast("int", myValue) function. It
    works great for Java objects, but I'm not sure how well it will
    work for COM. Worth a try, I guess.
    In your case it would be something like:
    <cfobject type="COM" context="INPROC" action="create"
    name="MR" class="DLLNAME">
    <cfloop from="1" to="#AddressCount#" index="i">
    <cfset VDname = mr.vdsname(JavaCast("int", i))>
    <cfset VDaddress = mr.vdsaddress(JavaCast("int", i))#>
    <cfset VDXML = mr.VDSXML(JavaCast("int", i))>
    </cfloop>

  • Instantiate com.waveset.object.Type into Type[]

    I am trying to instantiate com.waveset.object.Type into Type[]. I am trying execute method exportObjects(Type[] types, java.lang.String filename, BulkMonitor monitor). I can write it in java doing something like _wsSess.exportObjects(new Type[]{Type.findType(type)}, out, null); but having trouble doing in xpress or javascript. Please help. Thanks.

    Hi,
    To get all the types, you can use:
    <invoke name='getTypes' class='com.waveset.object.Type'/>
    to get specific ones:
    <block>
    <set name='typeList'>
    <list>
    <invoke name='getType' class='com.waveset.object.Type'>
    <s>Resource</s>
    </invoke>
    <invoke name='getType' class='com.waveset.object.Type'>
    <s>User</s>
    </invoke>
    </list>
    </set>
    <invoke name='toArray'>
    <ref>typeList</ref>
    </invoke>
    </block>
    hope this helps
    Regards
    Arjun

Maybe you are looking for

  • Runtime Error : UNCAUGHT_EXCEPTION

    Hi Solman Experts, While downloading softwares through Maintenace Optimizer ( Solution Manager ),I am getting below error.. First Error : Function module /SDF/AL_MAP_TRANSID_LOGH does not exist. The Maintenance Optimizer can automatically determine w

  • Mixing Java with Oracle Forms 11g

    What's going on is I wrote a program for work that allows the user to upload a document from their computer onto the database and then download it back later. Now I have to take that and integrate it into a button in Oracle Forms because our actual p

  • Accessing Adobe Air 3.7 on Android 4.0.3 os?

    It may be simply my lack of knowledge regarding how this application is supposed to function. I found it on the Google Play market place where it appeared to be an alternative for the Adobe Flash Player. I've installed Air on my device, and I'm just

  • SCCM 2012 and WSUS Synchronization error. Message ID: 6703.

    Hi, I am facing issues with synchronising updates in WSUS server with SUP in SCCM 2012. I am using web proxy, which has full access to all microsoft update websites. I have configures SUP for both intranet and internet clinets. I am posting some logs

  • How to re-download in-built dictionary in iOS6 for iPad mini

    Hi everyone, I tried to define a korean word then the built-in dictionary asked me to download it and it failed because I don't have a wifi connection. Now I still can't define a korean word, every time I try to define a korean word, the options that