Create Control From Reference

Using the type parameter of the Terminal is the best way to get the type of a control. If you try to do something like "get the value of the control and then ask for the type of that", you run into problems with LV classes and refnum types where the type of the value might be a child class of the type of the control.
Solved!
Go to Solution.

Using the Create from Reference method seems easier:
Try to take over the world!

Similar Messages

  • Create subVI Control from Reference Name Bug

    If you connect N references to a sequence structure and create a subVI from this structure, the first N-1 controls will have the name of the original control (desired), but the last one will not. It will have the name of the generic type of the control this reference is pointing to. Of course, if N = 1, that means that the created control will have the generic name.
    Illustration:
    In the diagram above, subVI 1 has been created from a sequence to which a reference to "Numeric Control" was connected. Here is the FP of that subVI, as created by LV:
    subVI 2 was created from a sequence to which both references were connected. Here is the FP of that subVI:
    This does not seem to depend on the type of the control. If I add a graph:
    the created subVI looks like this:

    Kind of an extension of this bug, but not exactly the same. Might be due to the same cause though
    If you create a subVI incorporating Property Nodes (not recommended in general for performance reasons, but not a killer either), the subVI will obviously have references to the corresponding controls as controls and references to the controls will appear in the calling VI:
    Before:
    After:
    (it never ceases to amaze me how bad the cleanup/auto-routing algorithm developed by NI is :-)
    Here is the corresponding FP of the created subVI:
    This time, never mind the names of the original controls, they will be ignored, no matter how many different controls there is.
    (I am not even mentioning the well-known feature that if instead of enclosing the property nodes you just enclose the wires coming from the "Value" node, the subVI's controls will read "Value, Value2", etc, where the type of the "Value" controls will in general have absolutely nothing in common).

  • Problem Creating Control from WSDL

    I'm trying to create a Service Control from a WSDL file. I've done this
    many times before. However, with this particular file, the control that
    is created is bad. The Output window has only the message
    Line 0, Col 0: Operation "myOperation" cannot be called.
    Is there a place where the Weblogic Workshop error messages are
    enumerated and what causes them?
    - David L. Brown

    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
    xmlns:tns="http://localhost/MPG"
    xmlns:types="http://localhost/MPG/TYPES"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding"
    xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    targetNamespace="http://localhost/MPG">
    <types>
    <xsd:schema
    targetNamespace="http://localhost/MPG/TYPES"
    xmlns:stns="http://localhost/MPG"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:simpleType name="modelType">
    <xsd:restriction base="xsd:string">
    <xsd:length value="25"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>
    </types>
    <message name="Modelparameter">
    <part name="ModelIN" type="types:modelType" xmlns:partns="http://localhost/MPG">
    </part>
    </message>
    <message name="ModelAndYearParameter">
    <part name="ModelIN" type="types:modelType" xmlns:partns="http://localhost/MPG">
    </part>
    <part name="YearIN" type="xsd:long" xmlns:partns="http://localhost/MPG">
    </part>
    </message>
    <message name="MPGresult">
    <part name="MPGout" type="xsd:string" xmlns:partns="http://localhost/MPG">
    </part>
    </message>
    <portType name="MPGport">
    <operation name="getMPGbyAutomobileModel">
    <input message="tns:Modelparameter">
    </input>
    <output message="tns:MPGresult">
    </output>
    </operation>
    <operation name="getMPGbyAutomobileModelAndYear">
    <input message="tns:ModelAndYearParameter">
    </input>
    <output message="tns:MPGresult">
    </output>
    </operation>
    </portType>
    <binding name="MPGbinding" type="tns:MPGport">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http">
    </soap:binding>
    <operation name="getMPGbyAutomobileModel">
    <soap:operation style="document" soapAction="">
    </soap:operation>
    <input>
    <soap:body use="literal" namespace="http://localhost/MPG">
    </soap:body>
    </input>
    <output>
    <soap:body use="literal" namespace="http://localhost/MPG">
    </soap:body>
    </output>
    </operation>
    <operation name="getMPGbyAutomobileModelAndYear">
    <soap:operation style="document" soapAction="">
    </soap:operation>
    <input>
    <soap:body use="literal" namespace="http://localhost/MPG">
    </soap:body>
    </input>
    <output>
    <soap:body use="literal" namespace="http://localhost/MPG">
    </soap:body>
    </output>
    </operation>
    </binding>
    <service name="MPGservice">
    <port name="MPGport" binding="tns:MPGbinding">
    <soap:address location="http://localhost:7001/MPG">
    </soap:address>
    </port>
    </service>
    </definitions>

  • Create material from reference material for all org.levels

    Hi,
    i want to create a material from a reference material with all MARA, MAKT, MARC, MBEW, MARD, MARM, MVKE, MLAN, MLGN and MLGT content for all organizational levels of the reference material.
    For instance, my reference material has 200 MARC entries. All these entries should also be created for the new material.
    Transaction MM01 will copy from reference but only for 1 organizational level. To create 200 plants manually with MM01 is not an option.
    I have to develop a copy from reference transaction, where i select the new material number, the reference material number and the required tables (MARA, MAKT, etc)
    I can read the current tablevalues and insert new entries into the required SAP standard tables, but that is not nice.
    Is there another option to do the job ?
    I know there are bapi's, but these are related to one org.level. For 200 plants, i have to execute 200 bapi to get the data from the reference material and another 200 bapi's to create the new material.
    with kind regards,
    Hans

    Hi Goutam,
    You can use the BAPI BAPI_MATERIAL_SAVEDATA, which will create/update the material. You can pass the reference material in the filed BAPI_MARA-PL_REF_MAT. And you can pass reference material for all view like this.

  • BPS: Create records from reference data in FOX

    As writed in "How to Loop over Reference Data in Fox Formulas", I create FOX Function with DO statements, but unfortunetely if I have no data yet in the subset my fox formulas can't be executed at all.
    It's write "0 data records were read, 0 of them were changed, 0 generated". Even if I put Break-point in fox formula, it doesn't take place. When I input somehow one or so "test" record, it works perfect, and creates new lines from reference as I want.
    How can I execute fox formula at list one time with empty subset?

    Hello,
    use a copy function to create one (dummy) record. Then call your FOX function (and delete the dummy record). You can combine them in a sequence.
    Also see SAP Note <a href="http://service.sap.com/sap/support/notes/646618">646618</a> for looping over reference data.
    Regards,
    Marc
    SAP Techology RIG

  • Create dynamic controls from JSON Response

    I have a requirement to create a group of checkbox with lebels in a page from JSON response.
    The JSON response is
        "data": [
                "CodeStatus": "Red"
                "CodeStatus": "Orange"
                "CodeStatus": "Green"
                "CodeStatus": "Yellow"
    the  design is:
    the box is vertically scrollable, as it can have more color codes.
    Can anyone suggest how to design the above?
    If one can provide the implemantation code, that would be very good as I have very time to implement it.

    Have a look at templates and for more complex scenarios factory functions, which give you the ability to dynamically create controls from model data.
    SAPUI5 SDK - Demo Kit
    Regards,
    Jason

  • Campaign from Reference

    Hi SAP-CRM Gurus,
    In Web-UI, we can create CAMPAIGN FROM REFERENCE.
    If we want to create a CAMPAIGN from a Referenced Campaign programatically, which Function Module or standard method or standard class can be used ?

    Hi Sib,
    Please try the below classes  and FM and see if it can help you
    CL_TM_PXY_CAMPAIGN
    CL_TM_PXY_CAMPAIGN_TASK
    FM - CRM_TM_CAMPAIGN_CREATE
    Regards
    Jgds

  • How can i get the reference to Controls from VI-reference

    Hello,
    i have a VI with ~5 controls on it.
    And with the Object "Current VIs path" and "Open VI reference" i can create a reference to the current VI.
    How can i create now a reference to the controls? (Starting with VI-reference?
    Of course i know how to create directly a reference from a control.
    My idea wasm that there areperhaps properties like:
    - Number of controls
    - Name of control
    - Type of control (string, bool. number...)
    Is this somewhere there and i just dont find it?
    Thanks for your help

    Once you have the VI Refnum, it's a two-step process. Wire the VI Refnum into a property node and get a reference to the Front Panel. Output the Front Panel reference into another property node and select the property Controls[ ], which outputs an array of references for all the controls on the front panel.
    Message Edited by Jarrod S. on 04-20-2007 11:06 AM
    Jarrod S.
    National Instruments
    Attachments:
    get_ref.PNG ‏5 KB

  • PO Number is not copied when create SD document from Reference

    Hi Gurus,
    I created Billing request document (VA01) by reference with a contract (VA41) , but the PO number field ( VBKD-BSTKD) is not copied over. I have checked all the data transfer rountines, but still could not find out.
    Please help , which data transfer rountines should I use to copy PO number to the next document ( copying control from Sales document --> Sales document)
    Thanks
    Edited by: Eric Y on Jun 19, 2008 5:22 AM

    Hi,
    Please, check in IMG - Public Sector Management - Funds Management Government - Funds Management-Specific Postings - Earmarked Funds and Funds Transfers - Account Assignment Transfer - Define Rules for Account Assignment Transfer what the rules for FArea are.
    Regards,
    Eli

  • Cannot create controls/constants/indicators from XML parser

    Is there any reason I cannot create (by right clicking) a control/constant/indicator of a XML ref from the XML parser function? I need to make subvi's to build/read xml files, and that is really impossible without that ability.
    Labview 2012 f3
    Solved!
    Go to Solution.

    This bug has already been reported (CAR 357092), and is scheduled to be fixed in the next service pack release. For now, here's a workaround:
    1. Create a reference indicator from Functions » Programming » File I/O » XML » XML Parser » New.vi.
    2. Right click on the new "DOM Document Out" indicator terminal and select Create > Control (or Indicator).
    3. Right click on the new control/indicator and choose Select XML Parser Class. Then, you can select whatever class you need.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Is it possible to create data control from wsdl when complextype is used

    Getting DCA-40015 error when trying to create a data control from WSDL file.
    The error clearly says complextype is not supported . just trying to see if there are any workarounds . because creating data control will save time in developing user interface by dragging and dropping the the data control in jsf page. jdeveloper webservice tester is able to create user interface for me based on wsdl when i run it , trying to develop the user interface using jsf pages
    oracle.adf.model.adapter.AdapterException: DCA-40015: Failed to create the structure for schema element "result". The complex type definition of the element is not supported.

    Hi,
    I could reproduce what I did:
    - created WebService from custom Pojo Model
    - Made sure all entities implemented serializable
    - In the WebServices Wizard, I created XML representations for my entities
    - tested with OC4J WebServices tester
    - Built ADF data control from WSDL file of deployed WebService
    - Created dependency t project containing the POJO entities
    - Selected result.xml of each method exposed in the WebService project
    - In the structure window, selected "item" (result-->item)
    - changed Bean class to my entity class name (absolute name)
    This showed my entity in the DC palette
    Frank

  • CUP 5.3: Mitigating from Request and approval of new created control

    Hi,
    I have activated in RAR that new created controls need to be approved and this works fine when creating the control in RAR.
    when creating the mitigating control from CUP within the request with the "Mitigate"-button the control is created directly in RAR without starting the approval workflow the new controls.
    Is this a bug or do I need to configured somewhere that the workflow should be also triggered when a control is created via CUP?
    Best regards
    Marco

    Hi Marco,
       I know this is an important functionality but it is not available in CUP as of now. Some of my customers are looking for this. You should open an enhancement request for this. I have also encouraged my clients to open an enhancement request for this. I am hoping SAP fixes this ASAP.
    Regards,
    Alpesh

  • ERROR Could not create DOM from control.xml

    Hi All,
    I am installaing 4.7EE on Sun Solaris 5.9 SPARC with Oracle and JDK version is 1.4.2_08. When i am running sapinst, sapinst GUI opens and after when i am selecting the Central installtion and i click on Next it giving error message that
    WARNING Could not read file control.xml. Please make sure that you called SAPinst with the correct control file (the control file is given to SAPinst as its first command line parameter or as value of the command line property SAPINST_CONTROL_URL)
    ERROR Could not create DOM from control.xml
    How to solve this error. I have searched in SDN but i am unable to get the solution.
    Mahesh C

    Hi Kiran,
    I have given all permissions to the control file. But these control files are in different places /SAPINST/UNIX/SUNOS_64/PATCOL640/WEBAS630 and ORA, DB2, DB6, IND, INF, ADA in these folders i can c the Control.xml files. But i have given all read write and execute permissions but still its getting the same error. I have downloaded the same IM for 3 times and tried.. But the result is the same.
    Is there any other way of work around for this...
    Thanks
    Mahesh C

  • VA01 copies texts, but VA02 does not when creating from reference

    Hello,
    I am having an issue with text determination configuration.  It is currently set up to copy some header texts from the quote to the order when an order is created from reference.  This works correctly when using transaction VA01 to create an order from reference.
    However, the issue arises when using VA02 to create from reference, the items copy over correctly from the quote, but texts and other data do not copy over correctly.  Any ideas on why this might be the case?
    Thanks,
    Tony

    Hi Everyone,
    Thanks for your replies.  I know the correct way to do this is to use VA01 and Create from reference.  However, the way that the order processing group has always done this is to create a "dummy" order using VA01, then use VA02 to "modify" the order by going to menu option Sales Document -> Create with Reference.  This has the effect of copying over all items from the quote into the order.  However, no sales texts are copied over when this is done.  I'm wondering if there is a config that needs to be modified to allow texts to copy over using this method.
    When I go into the texts tab in VA02 and display the log, the texts that I need copied over say something like, "Text does not exist".  I have a feeling that the text is not copied over because the order does not have a reference to the quote at the time the text determination is evaluated.
    Thanks,
    Tony

  • Create data control from java class, not see "ADF Parameter Forms" option

    Hi,
    I have created a Fusion Web Application (ADF) in jdev 11g. In the application model project, I created a java class. Inside the java class, I have a public method as below
    public Asset [] searchAsset3(SearchTerm s) // SearchTerm is a java bean. It implements java.io.Serializable.
    I created data control from my java class. After that, I see an xml file generated under the same folder of my java class. Here is the xml content.
    <?xml version="1.0" encoding="UTF-8" ?>
    <JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.53.62"
    id="AIAAsset" Package="oracle.apps.aia.oer.model"
    BeanClass="oracle.apps.aia.oer.model.AIAAsset" isJavaBased="true">
    <MethodAccessor IsCollection="true"
    Type="com.flashline.registry.openapi.entity.Asset"
    BeanClass="com.flashline.registry.openapi.entity.Asset"
    id="searchAsset" ReturnNodeName="Asset"
    CollectionBeanClass="UpdateableCollection">
    <ParameterInfo id="name" Type="java.lang.String" isStructured="false"/>
    <ParameterInfo id="version" Type="java.lang.String" isStructured="false"/>
    <ParameterInfo id="description" Type="java.lang.String"
    isStructured="false"/>
    </MethodAccessor>
    <MethodAccessor IsCollection="true"
    Type="com.flashline.registry.openapi.entity.AssetSummary"
    BeanClass="com.flashline.registry.openapi.entity.AssetSummary"
    id="searchAssetSummary" ReturnNodeName="AssetSummary"
    CollectionBeanClass="UpdateableCollection">
    <ParameterInfo id="name" Type="java.lang.String" isStructured="false"/>
    <ParameterInfo id="version" Type="java.lang.String" isStructured="false"/>
    <ParameterInfo id="description" Type="java.lang.String"
    isStructured="false"/>
    <ParameterInfo id="type" Type="java.lang.String" isStructured="false"/>
    </MethodAccessor>
    <MethodAccessor IsCollection="true"
    Type="com.flashline.registry.openapi.entity.Asset"
    BeanClass="com.flashline.registry.openapi.entity.Asset"
    id="searchAsset3" ReturnNodeName="Asset"
    CollectionBeanClass="UpdateableCollection">
    <ParameterInfo id="s" Type="com.flashline.registry.openapi.query.SearchTerm"
    isStructured="true"/>
    </MethodAccessor>
    <ConstructorMethod IsCollection="true"
    Type="oracle.apps.aia.oer.model.AIAAsset"
    BeanClass="oracle.apps.aia.oer.model.AIAAsset"
    id="AIAAsset"/>
    </JavaBean>
    Then, in application user interface project, I created a JSPX page. From the data controls palette, I want to drag and drop the searchAsset3 onto my page. However, I don't see an option for me to choose "Create -> Parameters -> ADF Parameter Form". I only see "Create -> Methods". Unlike other public methods (e.g.searchAssetSummary and searchAsset) which have simple data type as input, I can see the "Create -> Parameters -> ADF Parameter Form" option when I drag and drop to my jspx page. Is that something I missed while creating data controls?
    Thanks.
    Arnold.

    Then, my other question is how do you do the bindings? I drag and drop the attributes from SearchTerm bean. Now the pagedef file has the AttributeValues added but my method is actually expecting one input parameter of type SearchTerm. How do you bind the attributes to the input of the method? Thanks.
    See below of my pagedef xml file.
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.53.62" id="SearchAssetBySearchTerm1PageDef"
    Package="oracle.apps.aia.oer.view.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    <methodIterator Binds="SearchTerm.result" DataControl="AIAAsset"
    RangeSize="25"
    BeanClass="com.flashline.registry.openapi.query.SearchTerm"
    id="SearchTermIterator"/>
    </executables>
    <bindings>
    <methodAction id="SearchTerm" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="SearchTerm"
    IsViewObjectMethod="false" DataControl="AIAAsset"
    ClassName="com.flashline.registry.openapi.query.SearchTerm"
    ReturnName="AIAAsset.methodResults.SearchTerm_AIAAsset_SearchTerm_result"/>
    <attributeValues IterBinding="SearchTermIterator" id="key">
    <AttrNames>
    <Item Value="key"/>
    </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="SearchTermIterator" id="operator">
    <AttrNames>
    <Item Value="operator"/>
    </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="SearchTermIterator" id="value">
    <AttrNames>
    <Item Value="value"/>
    </AttrNames>
    </attributeValues>
    <methodAction id="searchAsset3" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="searchAsset3"
    IsViewObjectMethod="false" DataControl="AIAAsset"
    InstanceName="AIAAsset.dataProvider"
    ReturnName="AIAAsset.methodResults.searchAsset3_AIAAsset_dataProvider_searchAsset3_result">
    *<NamedData NDName="s"*
    NDType="com.flashline.registry.openapi.query.SearchTerm"/>+
    </methodAction>
    </bindings>
    </pageDefinition>

Maybe you are looking for

  • Calling the JSP cartridge directly

    I am using OAS 4.0.8.1. I need to be able to call the jservlet cartridge directly, without the virtual path. That is, I want people to be able to type www.host.com and be presented with the jsp pages immediately. It seems that I always have to use so

  • Why does my cursor continually snap to a screen corner every ten seconds or so?

    My cursor is unstable. Every ten seconds or so it will snap to one of the corners of my screen. Could it be a screen refresh? But hasn't happened while making this request. However does have problem with Newspapers, MS games, Java,Google search

  • Converting scanned PDF to Excel

    I have tried to convert a scanned PDF to Excel but find the columns and rows are all jumbled and do not reflect the original document. I am using a Mac with MS Office 2011 Any help appreciated. KJ

  • How do I recover/restore; iOS5 ate my stuff!!!

    My apps, photos, music are missing after iOS5 Upgrade/Restore. Where are they and how do I restore all of my apps, photos and music? The only apps that were listed in iTunes was iWorks, but none of my other apps were listed. Not to mention all of the

  • Creativ Zen Dead Fore

    Well after 3 months whit my Creativ Zen 8gb. It have been dead for 2 days. It frezzed on a file transfer when i moved files into my player. It was still giving away the blue light but was unable to start it or enter the rescure/recovery mode. So i us