UDT dynamic custom type mappings

I'm using Oracle Data Provider for .NET Release (11.1.0.6.20) in combination with .NET Framework (2.0.50727).
As there are user defined types in the database schema, ODP.NET was chosen to connect to the Oracle database.
The DB server contains database schemas having a similar structure and containing UDTs which are referred to from an application.
Unfortunately, I could not dynamically determine Oracle UDTs and .NET types mappings in runtime.
With the offered OracleCustomTypeMappingAttribute class, one can identify the name of a user-defined type using the "schema_name.type_name" format only at the level of assembly metadata.
The application, in its turn, connects to the schema chosen by the user.
Question: how one can define the custom type mappings during the runtime of an application?

You can't. You have to create a new schema in each database and recreate your udt's in this new schema.
You can do
grant execute on <<udt_type >> to public
See also here: User Defined Types and ODP.NET

Similar Messages

  • How to add dynamic data type as one of the terminals of a Custom VI

    Hello,
    Can anybody tell me if it's possible and how to add a dynamic data type as one of the terminals of a sub-VI? I would like to have a terminal that I can connect signal from DAQmx to my sub-VI.  Thanks.

    Here is one of the coolest things about LV, and one of its major advantages over languages like VB - it has automatic memory management and it compiles whenever you make a change. This allows you to be very free in the way you handle data and change your code. In this case, you should note the small gray dot that appears when you wire the dynamic data into the Array of Waveforms input. This gray dot means that LV coerces the source data type (DDT, in this case) to the target data type (Array of waveforms). If it wouldn't match, you would get a broken wire, the VI couldn't run, and if you hover over the wire or press the broken run button you would get an exact description of the error. Cool, eh?
    This can also be seen in other things. For example, you can change an array's data type or number of dimensions by simply doing it. This will automatically be reflected anywhere the array is called in the program, and if anything won't match, the VI will be broken. If you change the # of dimensions of an array, any array function which that array is wired to will adapt. This allows you to be very safe in the way you write code, because you have LV watching all that annoying stuff for you. You don't have to worry about misspelling a variable here (for the most part).
    One important point about coercion - it does take processor power. This will usually only be evident in large arrays or loops, but it is an important point. Another thing is that coercing numeric types can cause you to lose data - coercing a DBL to a U16, for example, will cause you to lose all the fractional data.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • OracleCustomTypeMappingAttribute Issue in Custom type mapping(Urgent Help)

    I am figuring "OracleCustomTypeMappingAttribute" attribute in web.conifg.
    I am getting Error when i am trying execute the code.please find the error messsage in below
    "Custom type mapping for 'QR.iPromansys.Common.UDT.TAB_MC_REGION' is not specified or is invalid."
    This is my configuation of webconfig:-
    <oracle.dataaccess.client>
    <settings>
    <add name="REGION" value="udtMapping factoryName='QR.iPromansys.Common.UDT.TAB_MC_REGIONFactory,
    QR.iPromansys.Common.UDT, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
    typeName='TAB_MC_REGION' schemaName='IPROM' dataSource='QAPRISM' "/>
    </settings>
    </oracle.dataaccess.client>
    provide what i missed in in configure or anything else i have to do more in coding side.
    Class Information (Struture) Start
    public class TAB_MC_REGION : INullable, IOracleCustomType, IXmlSerializable
    private bool m_IsNull;
    private RegionInfo[] m_RegionInfo;
    public TAB_MC_REGION()
    // TODO : Add code to initialise the object
    public TAB_MC_REGION(string str)
    // TODO : Add code to initialise the object based on the given string
    public TAB_MC_REGION(RegionInfo[] obj)
    this.m_RegionInfo = obj;
    public virtual bool IsNull
    get
    return this.m_IsNull;
    public static TAB_MC_REGION Null
    get
    TAB_MC_REGION obj = new TAB_MC_REGION();
    obj.m_IsNull = true;
    return obj;
    [OracleArrayMappingAttribute()]
    public virtual RegionInfo[] Value
    get
    return this.m_RegionInfo;
    set
    this.m_RegionInfo = value;
    public virtual void FromCustomObject(Oracle.DataAccess.Client.OracleConnection con, System.IntPtr pUdt)
    OracleUdt.SetValue(con, pUdt, 0, this.m_RegionInfo);
    public virtual void ToCustomObject(Oracle.DataAccess.Client.OracleConnection con, System.IntPtr pUdt)
    this.m_RegionInfo = ((RegionInfo[])(OracleUdt.GetValue(con, pUdt, 0)));
    public virtual void ReadXml(System.Xml.XmlReader reader)
    // TODO : Read Serialized Xml Data
    public virtual void WriteXml(System.Xml.XmlWriter writer)
    // TODO : Serialize object to xml data
    public virtual XmlSchema GetSchema()
    // TODO : Implement GetSchema
    return null;
    public override string ToString()
    // TODO : Return a string that represents the current object
    return "";
    public static TAB_MC_REGION Parse(string str)
    // TODO : Add code needed to parse the string and get the object represented by the string
    return new TAB_MC_REGION();
    // Factory to create an object for the above class
    //[OracleCustomTypeMappingAttribute("IPROM.TAB_MC_REGION")]
    public class TAB_MC_REGIONFactory : IOracleCustomTypeFactory, IOracleArrayTypeFactory
    public virtual IOracleCustomType CreateObject()
    TAB_MC_REGION obj = new TAB_MC_REGION();
    return obj;
    public virtual System.Array CreateArray(int length)
    RegionInfo[] collElem = new RegionInfo[length];
    return collElem;
    public virtual System.Array CreateStatusArray(int length)
    return null;
    End
    Main Class Code(Execution Part) Start
    I am using "Microsoft.Practices.EnterpriseLibrary.Data.Database"
    List<RegionInfo> mealRegionList = new List<RegionInfo>();
    TAB_MC_REGION mealregionTableObject = new TAB_MC_REGION(mealRegionList.ToArray());
    Database database = DatabaseFactory.CreateDatabase();
    using (DbCommand command = database.GetStoredProcCommand("mealplanning_services.SAVE_MC_REGION"))
    database.AddOracleInParameter(command, string.Empty, OracleDbType.Object, "TAB_MC_REGION", mealregionTableObject);
    database.AddOracleOutParameter(command, "@po_result_code", OracleDbType.Decimal, 50);
    database.ExecuteNonQuery(command);
    End
    email address:- [email protected]
    please fill free to contact.

    Issue Resolved. For less than 50 records, client side filtering takes over. In that case the search help exit will not come into picture. Issue resolved by avoiding client side rendering.
    callcontrol-maxexceed = 'X'.
    Thanks,
    Pris.

  • BC4J Custom Type Maps   (MS-SQL cont.)

    (FYI using JDeveloper 9.0.2.0.0, MS-SQL 2000 spk2 and MS-SQL's JDBC driver Version 2.2.0022)
    In the process of trying to get JDeveloper working fully with MS-SQL, I am at the point of developing a custom type map.
    Should this typemap include all mappings or only those different than the "Java" or "Oracle" type map? I was assuming all at first. Now I wonder how it's handling missing mappings.
    How does it find a matching typemap? I noticed that Entity's database column types looked like "int(10,0)" and "bit(1,0)", but in my typemap, like the examples, it's just "INT", "BIT" with no precision, scale. Is this a case of where it's assuming the driver will return a string for type and it's returning type(p,s)? Or is JDev building that string? Either way, would you need a different mapping for "bit(1,0)" than "bit"?
    As "bit(1,0)" it had problems with both the Java map and my custom map. Changing it to "bit" seem to get it to work. So what typemapping was it trying to use as "bit(1,0)"?
    [Bug?] I noticed that when I view the bc4j settings (project (rt-click) -> edit business components project), the value for type map is incorrect if I am using a custom type map. If I am using the Java type map it says "Java" in the greyed out select, but if I am using my custom map ("MS-SQL"), it says "Oracle". I checked the bc4j.xcfg for the one using my custom map and it does say the right class name for jbo.TypeMapEntries.
    On a related note, when testing the bc4j modules, we are instructed to use the edited local configuration, but how do view/edit the project default configuration?
    ====================================================================
    typemap in progress...
    ================================
    public class MsSqlTypeMapEntries
    public MsSqlTypeMapEntries()
    /* ColumnType, JavaClassName, JdbcSqlType, JdbcSqlTypeID, DefaultDisplayLength, isNumericType */
    new JboTypeMap("BIGINT", "java.math.BigInteger", "BIGINT",java.sql.Types.BIGINT,null,true);
    //new JboTypeMap("BIGINT IDENTITY", "java.math.BigInteger", "BIGINT",java.sql.Types.BIGINT,null,true);
    //new JboTypeMap("BINARY BINARY
    new JboTypeMap("BIT","java.lang.Boolean","BIT",java.sql.Types.BIT,null,true);
    new JboTypeMap("CHAR","java.lang.String","CHAR",java.sql.Types.CHAR,null);
    new JboTypeMap("DATETIME" ,"java.sql.Timestamp","TIMESTAMP",java.sql.Types.TIMESTAMP ,null);
    new JboTypeMap("DECIMAL","java.math.BigDecimal","DECIMAL",java.sql.Types.DECIMAL,null,true);
    //new JboTypeMap("DECIMAL() IDENTITY DECIMAL
    //new JboTypeMap("FLOAT FLOAT
    //new JboTypeMap("IMAGE LONGVARBINARY
    new JboTypeMap("INT","java.lang.Integer","INTEGER",java.sql.Types.INTEGER,null,true);
    new JboTypeMap("INT IDENTITY","java.lang.Integer","INTEGER",java.sql.Types.INTEGER,null,true);
    new JboTypeMap("MONEY","java.math.BigDecimal","DECIMAL",java.sql.Types.DECIMAL,null,true);
    new JboTypeMap("NCHAR","java.lang.String","CHAR",java.sql.Types.CHAR,null);
    new JboTypeMap("NTEXT","java.lang.String","LONGVARCHAR", java.sql.Types.LONGVARCHAR, null);
    new JboTypeMap("NUMERIC","java.math.BigDecimal","NUMERIC",java.sql.Types.NUMERIC,null,true);
    //new JboTypeMap("NUMERIC() IDENTITY","java.math.BigDecimal","NUMERIC",java.sql.Types.NUMERIC,null,true);
    new JboTypeMap("NVARCHAR","java.lang.String","VARCHAR",java.sql.Types.VARCHAR,null);
    //new JboTypeMap("REAL REAL
    new JboTypeMap("SMALLDATETIME" ,"java.sql.Date","TIMESTAMP",java.sql.Types.TIMESTAMP ,null);
    new JboTypeMap("SMALLINT","java.lang.Integer","SMALLINT",java.sql.Types.SMALLINT,null,true);
    new JboTypeMap("SMALLINT IDENTITY","java.lang.Integer","SMALLINT",java.sql.Types.SMALLINT,null,true);
    new JboTypeMap("SMALLMONEY","java.math.BigDecimal","DECIMAL",java.sql.Types.DECIMAL,null,true);
    new JboTypeMap("SQL_VARIANT","java.lang.String","VARCHAR",java.sql.Types.VARCHAR,null);
    new JboTypeMap("SYSNAME","java.lang.String","VARCHAR",java.sql.Types.VARCHAR,null);
    new JboTypeMap("TEXT","java.lang.String","LONGVARCHAR", java.sql.Types.LONGVARCHAR, null);
    //new JboTypeMap("TIMESTAMP BINARY
    new JboTypeMap("TINYINT","java.lang.Integer","TINYINT",java.sql.Types.TINYINT,null,true);
    new JboTypeMap("TINYINT IDENTITY","java.lang.Integer","TINYINT",java.sql.Types.TINYINT,null,true);
    new JboTypeMap("UNIQUEIDENTIFIER","java.lang.String","CHAR",java.sql.Types.CHAR,null);
    //new JboTypeMap("VARBINARY VARBINARY
    new JboTypeMap("VARCHAR","java.lang.String","CHAR",java.sql.Types.CHAR,null);
    }

    (FYI using JDeveloper 9.0.2.0.0, MS-SQL 2000 spk2 and MS-SQL's JDBC driver Version 2.2.0022)
    In the process of trying to get JDeveloper working fully with MS-SQL, I am at the point of developing a custom type map.
    Should this typemap include all mappings or only those different than the "Java" or "Oracle" type map? I was assuming all at first. Now I wonder how it's handling missing mappings.
    How does it find a matching typemap? I noticed that Entity's database column types looked like "int(10,0)" and "bit(1,0)", but in my typemap, like the examples, it's just "INT", "BIT" with no precision, scale. Is this a case of where it's assuming the driver will return a string for type and it's returning type(p,s)? Or is JDev building that string? Either way, would you need a different mapping for "bit(1,0)" than "bit"?
    As "bit(1,0)" it had problems with both the Java map and my custom map. Changing it to "bit" seem to get it to work. So what typemapping was it trying to use as "bit(1,0)"?
    [Bug?] I noticed that when I view the bc4j settings (project (rt-click) -> edit business components project), the value for type map is incorrect if I am using a custom type map. If I am using the Java type map it says "Java" in the greyed out select, but if I am using my custom map ("MS-SQL"), it says "Oracle". I checked the bc4j.xcfg for the one using my custom map and it does say the right class name for jbo.TypeMapEntries.
    On a related note, when testing the bc4j modules, we are instructed to use the edited local configuration, but how do view/edit the project default configuration?
    ====================================================================
    typemap in progress...
    ================================
    public class MsSqlTypeMapEntries
    public MsSqlTypeMapEntries()
    /* ColumnType, JavaClassName, JdbcSqlType, JdbcSqlTypeID, DefaultDisplayLength, isNumericType */
    new JboTypeMap("BIGINT", "java.math.BigInteger", "BIGINT",java.sql.Types.BIGINT,null,true);
    //new JboTypeMap("BIGINT IDENTITY", "java.math.BigInteger", "BIGINT",java.sql.Types.BIGINT,null,true);
    //new JboTypeMap("BINARY BINARY
    new JboTypeMap("BIT","java.lang.Boolean","BIT",java.sql.Types.BIT,null,true);
    new JboTypeMap("CHAR","java.lang.String","CHAR",java.sql.Types.CHAR,null);
    new JboTypeMap("DATETIME" ,"java.sql.Timestamp","TIMESTAMP",java.sql.Types.TIMESTAMP ,null);
    new JboTypeMap("DECIMAL","java.math.BigDecimal","DECIMAL",java.sql.Types.DECIMAL,null,true);
    //new JboTypeMap("DECIMAL() IDENTITY DECIMAL
    //new JboTypeMap("FLOAT FLOAT
    //new JboTypeMap("IMAGE LONGVARBINARY
    new JboTypeMap("INT","java.lang.Integer","INTEGER",java.sql.Types.INTEGER,null,true);
    new JboTypeMap("INT IDENTITY","java.lang.Integer","INTEGER",java.sql.Types.INTEGER,null,true);
    new JboTypeMap("MONEY","java.math.BigDecimal","DECIMAL",java.sql.Types.DECIMAL,null,true);
    new JboTypeMap("NCHAR","java.lang.String","CHAR",java.sql.Types.CHAR,null);
    new JboTypeMap("NTEXT","java.lang.String","LONGVARCHAR", java.sql.Types.LONGVARCHAR, null);
    new JboTypeMap("NUMERIC","java.math.BigDecimal","NUMERIC",java.sql.Types.NUMERIC,null,true);
    //new JboTypeMap("NUMERIC() IDENTITY","java.math.BigDecimal","NUMERIC",java.sql.Types.NUMERIC,null,true);
    new JboTypeMap("NVARCHAR","java.lang.String","VARCHAR",java.sql.Types.VARCHAR,null);
    //new JboTypeMap("REAL REAL
    new JboTypeMap("SMALLDATETIME" ,"java.sql.Date","TIMESTAMP",java.sql.Types.TIMESTAMP ,null);
    new JboTypeMap("SMALLINT","java.lang.Integer","SMALLINT",java.sql.Types.SMALLINT,null,true);
    new JboTypeMap("SMALLINT IDENTITY","java.lang.Integer","SMALLINT",java.sql.Types.SMALLINT,null,true);
    new JboTypeMap("SMALLMONEY","java.math.BigDecimal","DECIMAL",java.sql.Types.DECIMAL,null,true);
    new JboTypeMap("SQL_VARIANT","java.lang.String","VARCHAR",java.sql.Types.VARCHAR,null);
    new JboTypeMap("SYSNAME","java.lang.String","VARCHAR",java.sql.Types.VARCHAR,null);
    new JboTypeMap("TEXT","java.lang.String","LONGVARCHAR", java.sql.Types.LONGVARCHAR, null);
    //new JboTypeMap("TIMESTAMP BINARY
    new JboTypeMap("TINYINT","java.lang.Integer","TINYINT",java.sql.Types.TINYINT,null,true);
    new JboTypeMap("TINYINT IDENTITY","java.lang.Integer","TINYINT",java.sql.Types.TINYINT,null,true);
    new JboTypeMap("UNIQUEIDENTIFIER","java.lang.String","CHAR",java.sql.Types.CHAR,null);
    //new JboTypeMap("VARBINARY VARBINARY
    new JboTypeMap("VARCHAR","java.lang.String","CHAR",java.sql.Types.CHAR,null);
    }

  • Do Custom Types need to contain primitive attributes?

    Hi,
    i am trying to make use of the UDT feature of the Oracle 11 ODP.NET driver. I am using a patched Version of the 11g driver (Oracle.DataAccess.dll file-size: 917'504, date:8. Juni 2008, 11:35:58) against a Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Database.
    I made myself a custom type that looks like
    using Oracle.DataAccess.Types;
    namespace Testomatic
    public sealed partial class X_XY_AVL_TYPES
    /OracleObjectMapping("AVL_OBJ_TYPE_DEF_TYPE_DEF_LIST")/
    public X_XY_OBJ_TYPE_DEF[] AVL_OBJ_TYPE_DEF_TYPE_DEF_LIST;
    i made myself a little generator, that adds the other half of the partial class as well as a matching factory. This is how that comes out:
    public sealed partial class X_XY_AVL_TYPES : INullable, IOracleCustomType
    static X_XY_AVL_TYPES mNullX_XY_AVL_TYPES = new X_XY_AVL_TYPES();
    public static X_XY_AVL_TYPES Null {
    get {
    return mNullX_XY_AVL_TYPES;
    public bool IsNull { get {return this == mNullX_XY_AVL_TYPES;}}
    public void FromCustomObject(OracleConnection con, IntPtr pUdt) {
    X_XY_OBJ_TYPE_DEF_L lAVL_OBJ_TYPE_DEF_TYPE_DEF_LIST = new X_XY_OBJ_TYPE_DEF_L();
    lAVL_OBJ_TYPE_DEF_TYPE_DEF_LIST.Value = AVL_OBJ_TYPE_DEF_TYPE_DEF_LIST;
    OracleUdt.SetValue(con, pUdt, "AVL_OBJ_TYPE_DEF_TYPE_DEF_LIST", lAVL_OBJ_TYPE_DEF_TYPE_DEF_LIST);
    public void ToCustomObject(OracleConnection con, IntPtr pUdt) {
    AVL_OBJ_TYPE_DEF_TYPE_DEF_LIST = ((X_XY_OBJ_TYPE_DEF_L) OracleUdt.GetValue(con, pUdt, "AVL_OBJ_TYPE_DEF_TYPE_DEF_LIST")).Value;
    /OracleCustomTypeMappingAttribute("K.X_XY_AVL_TYPES")/
    public class X_XY_AVL_TYPESFactory : IOracleCustomTypeFactory {
    public virtual IOracleCustomType CreateObject() {
    return new X_XY_AVL_TYPES();
    and that Generator also makes a nice oracle type that looks like
    CREATE OR REPLACE TYPE "X_XY_AVL_TYPES" AS OBJECT (
    "AVL_OBJ_TYPE_DEF_TYPE_DEF_LIST" "X_XY_OBJ_TYPE_DEF_L"
    ) FINAL INSTANTIABLE;
    looks nice, but if i run this, the driver tells me that
    Oracle.DataAccess.Client.OracleException OCI-21700: object does not exist or is marked for delete at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
    at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
    at Oracle.DataAccess.Types.OracleUdtDescriptor.DescribeAllObjAttrs()
    at Oracle.DataAccess.Types.OracleUdtDescriptor.GetMetaDataTable()
    at Oracle.DataAccess.Types.OracleUdtDescriptor.DescribeCustomType(Object customTypeFactory)
    at Oracle.DataAccess.Types.OracleUdtDescriptor.DescribeCustomType(Object customTypeFactory)
    at Oracle.DataAccess.Client.OracleParameter.CreateCustomObject(OracleConnection conn, Int32 index)
    at Oracle.DataAccess.Client.OracleParameter.PostBind_OracleObject(OracleConnection conn)
    at Oracle.DataAccess.Client.OracleParameter.PostBind(OracleConnection conn, OpoSqlValCtx* pOpoSqlValCtx, Int32 arraySize)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
    however, if i add an additional simple attribute for example a string to the original custom type like this:
    public sealed partial class X_XY_AVL_TYPES
    /OracleObjectMapping("kghf")/
    public string kghf;
    /OracleObjectMapping("AVL_OBJ_TYPE_DEF_TYPE_DEF_LIST")/
    public X_XY_OBJ_TYPE_DEF[] AVL_OBJ_TYPE_DEF_TYPE_DEF_LIST;
    and the generator picks it up accordingly, the whole thing seems to work. Everything else unchanged. Is this normal?
    yours
    Marc

    Hi Ming Man,
    I am not changing Oracle.DataAccess.dll at all. I am using the patched version all the way, UDT does not work properly with the unpatched version.
    What i am changing is adding an additional dummy attribute to my types to make them work with the ODP.NET driver. I just wanted to know whether this is known limitiation (like the need to a at least one Attribute to Top-Level-Types) or just a bug.
    yours
    Marc

  • Add/Update user-type (Custom types) .jar while the server is still running

    Hi!
    I'm connecting from a .NET App to the cache server so I have to create the java version of my user-types, I compile this classes into a jar file and I send that in to the class path when the server starts:
    %JAVA_EXEC% -server -showversion %JAVA_OPTS% %SYS_OPTS% -cp "config;_*lib\custom-types.jar*_;%COHERENCE_HOME%\lib\coherence.jar" com.tangosol.net.DefaultCacheServer %1
    What happen if I want to add a new custom type while the serer is still running ? Do I just have to replace the jar file ? is this going to be reflected on the server since it is already running.
    If I have to stop the server then what should I take in to account to avoid data losing ?
    Thanks for your help in advance.

    Hi,
    Yes, using all the default out of the box Coherence POF support, you would need to restart the cluster to pick up any changes.
    Do you really need the Java classes on the server side? Depending on what server side functionality you are using you might not actually need Java representations of the .Net classes. For example, if these are you entities that are being cached and you are never calling code that deserialises them, then there is no need for Java classes.
    You could potentially write your own implementation of a POF Serializer (PofContext) that is used on the server side that can dynamically add and change classes.
    JK

  • How to use the customer types in customer master data

    how to use the customer types in customer master data?
    menu path is Extras -> account group info -> customer types

    hi,
    This is an option given to you to choose (if you need to) the way you perceive this customer.Here you get options including ompetitors,Salespartner, prospect,
    default sp ,consumer.
    See it helps you to differentiate between prospect(which you may use for quotation or inquiry purpose)Sales partner and the competetor.
    I hope this clarifies your quiery.Reward points if so.
    Thanking you,
    Best regards,
    R.Srinivasan

  • I need to set up an expense form so that our consultant can "filter" by customer type, program type, and finally the purpose of the trip. For instance: the customer types are churches, schools, organizations. The program type would be fund raising, gift p

    I need to set up an expense form so that our consultant can "filter" by customer type, program type, and finally the purpose of the trip. For instance: the customer types are churches, schools, organizations. The program type would be dependent on the customer type selection from the first list. Some examples would be: fund raising, gift planning, surveys, and others. The purpose of the trip would be dependent on the program type selected from the second list. Some examples of trip purposes would be: presentation, design, prospecting. Further, the purpose of trip selection from the third drop-down box would then have to determine the values of other fields by expense type: such as commission, airfare, hotel. etc. I've tried pop-up menu but can't figure out how to "select" from the final popup list and have it populate a field for the purpose of the trip. I've tried to look at the JavaScript examples for dependent drop-down boxes, but can't find any that quite fit what I'm trying to accomplish. I am very new to all of this. No training in writing Javascripts - just trying to wing it. The form has to be very simple for our consultants to use, but also give our office the detail we need to process through the correct account numbers. I would appreciate any detailed step-by-step instructions - kind of a javascript for dummies type of info. HELP!

    An AcroForm is the name given to the type of PDF form that you create in Acrobat. An XFA form is the type of form that you create in LiveCycle Designer. Although they are both PDF files, they are very different structurally and have significant;y different scripting models. So pay attention to the information on AcroForms and ignore anything about XFA. Be sure to get the sample PDF forms so you can look at how it works and where the scripts are placed.
    What you want to do will require scripting, and if you don't have the experience and are unable to use the information in the tutorials to create what you want, you might consider getting someone who has experience do this for you. I'll often suggest code if I can do so quickly, but what you want requires more than a few minutes.

  • Error in VA01 - "Sales order cannot be processed. Check customer type."

    Hi,
    While creating a Sales Order in VA01, I receive this error message - "Sales order cannot be processed. Check customer type."
    Could you please tell me what could be the reason for this.
    Thank you,

    Hi,
    U Can Find the Customer Type in Extras> Account Group Information> Customer Types.
    There U can Make the Customer Type.
    Regards..
    Praveen Kumar.D

  • Cost of Goods Sold account determination by customer type (inter-company)

    We have a business need to separate the the cost of goods sold be customer type.  Specifically separating the inter-company cost of goods sold from the 3rd party cost of goods sold. 
    The standard COGS account determination in GBB/VAX only allows for differentiating between material valuation class. 
    Has anyone attempted this before and what method worked?

    For those who may need an answer to this, our solution was the following: 
    1)       Created new types for SO, SO Item, Sched. Line, Delivery, Delivery Item, Billing type  
    2)       Created new Pricing procedure
    3)       Created new movement type Y61/Y62 modeled after 601/602
    4)       Mapped Y61/Y62 to account modifier ZAX.
    5)       Mapped GBB/ZAX to the new account.
    Benefits, they now have better view of the orders going inter-company.  It is flexible enough to adjusting prices for intercompany separate from standard orders, even though for now it is a straight copy of cost.  They are able to remove the sales/use tax, from the calculations. They are able to plan with these orders separated out.  Plus, this will standardize their process for inter-company. 
    Hope this helps someone. 
    Cheers!
    Rick

  • How do you save dynamic data type, from the DAQ assistant, for use in Excel or matlab?

    Currently, I have the following basic VI setup to save Data from my PCI6221 Data Aquisition Card.  The problem I'm having is I keep getting the last iteration of the while loop in the measurement file and that's pretty much it.  When I try to index the data leaving the loop it gives me a 2D array of Data which cannot be input into the "Write to Measurement File" VI.  How would I save this to a useful Data/time step format?  I was wondering of a way to continuously collect the Data and then save it in a large measurement file that I would manipulate in Matlab/excel?  Am I using the wrong type of loop for this application?  I also noticed my Dynamic Data array consists of data, time, timestep and then a vector of the data taken.  Is it possible to just get a vector of the time change per sample alongside the data?    Sorry for the barrage of questions but any help would be greatly appreciated, and thanks in advance!
    -Bryan
    Attachments:
    basic DAQ.vi ‏120 KB

    There is a VI in the Express > Signal Manipulation palette called "From DDT" that lets you convert from the Dynamic Data Type to other data types that are more compatible with operations like File I/O....for instance, you could convert your DDT into a 2D array and use the Write To Spreadsheet File.vi.  Just a thought...
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Oracle Instant Client and OUT Parameter of custom type in Stored Procedures

    Hi @ all!
    I try to set up a simple client application, that calls a stored procedure via Instant Client from C#.
    The stored procedure and assiciated types looks like this:
    TYPE MYVALUE AS OBJECT
          Id      INTEGER,
          value     FLOAT
    TYPE MYVALUELIST AS TABLE OF MYVALUE;
    PROCEDURE ReadValues( ID IN INTEGER,
                                        RESULTSET OUT MYVALUELIST)
                                           IS
    ...I created an Oracle Command executing this SP and added OracleParameters for ID and (where I got stuck) the RESULTSET.
    Is it possible to pass a parameter with a custom type from C# in some way?
    I already tried it as a function with SELECT * FROM TABLE(ReadValues(1));
    With my parameter RESULTSET as the RETURN type. But since I use DML within the procedure, this does not work inside of a query...
    Any suggestions?
    Thanks in advance!

    Hi Greg!
    Sorry, I misunderstood the forum topic then. =(
    Anyway, in the example you provided in the link, this is nearly exactly my situation. But there the Oracle.DataAccess.Client is used, where the OracleDBType can be called to initialize an object of type person. I use the instant client libraries called by using System.Data.OracleClient. There is only the OracleType enum, that does not contain an object or something similar.
    So I do it right now after trying a bit with a ref cursor parameter and an OracleDataAdapter - the ref cursor is passed back from Oracle as a DataReader, so die DataAdapter is able to use it for a .Fill():
    OracleCommand cmd = new OracleCommand();
    cmd.Parameters.Add("RESULTSET", OracleType.Cursor).Direction = ParameterDirection.Output;
    OracleDataAdapter odr = new OracleDataAdapter(cmd);
    DataTable result = new DataTable();
    odr.Fill(result);Within my stored procedure I just added the following OUT parameter:
    PROCEDURE ReadValues( ID IN INTEGER,
                                        RESULTSET OUT sys_refcursor)
                                           IS
    currentlist MYVALUELIST;
    ... [Adding elements to that list] ...
    OPEN resultset for select * from TABLE(currentlist);It works now, but I don't like that solution that much since I'm always afraid that there are lots of opened cursors idyling around. Do I have to close this one explicitly after filling my table by the DataAdapter?
    Regards

  • EDI customer specific mappings

    Hello Experts,
    I am having a scenario where the old legacy system is planned to be replaced by PI (7.11)-Seeburger.
    Now the old system based out of Gentran had around 100 maps pertaining to their 100 customers for distribution of their Invoices and ASN.
    Hence wanted to find out how best can be achievable using PI Seeburger. We thought of following options
    1] Create 100 mappings in PI and have conditional interface determination based on the customer. But in this we will have to hard-code customer DUNS number into interface determination conditions
    2] Create one base mapping in PI and another in ABAP mappings with customer format maintained in the Z-tables of PI ABAP stack and ABAP mappings filtering the same. This would lead to complex ABAP mappings program.
    3] Create one mapping in PI and write conditions in Seeburger BIC mappings. Again writing so many conditions in BIC mappings.
    Anyone worked in such scenario, please let me know the best suitable solution in this case based on your experience. Thanks in advance.
    Regards
    Rajeev

    >> One Receiver say EDIReceiver
    This is recommended. But then your EDIReceiver system should be able to send invoices to all the 100 customers based on the data in EDI file.
    >>100 interface determinations for 100 maps with conditions based on the partners
    If you have option/resource/time to functionally check the details for each of these customer individually, it is recommended to group them based on some business rule. Creating 100 maps blindly will make many redundant mappings. Try to make small groups of 4-5 mappings based on business requirement and reduce the number of maps. When thinking about changes to customer specific mappings, always think two ways.
    e.g. If you have separate maps for 100 customers and lets say they belong to same region. In future, if due to any legal requirement change, any change is required in the maps, it would be tedious and not so good design to change all the maps. Therefore, as I said group them based on business/functional logic.
    >>Multiple Receiver agreements based on the versions required each having comm channel with X2E mapping for the version required.
    Note that these standard X2E and E2X mappings are part of Seeburger BIC license. If you already have purchased BIC, your estimation for this part should be minimal.
    Regards,
    Prateek Raj Srivastava

  • How to use resStr() to set name of custom Type

    OK say I create a copy of Action step type (from NI_Types.ini)  and rename it Mycustomstep and put this in my own Type Palette, "MyCustTypes", folder(MyCustTypes.ini). The Step Type context menu shows "MyCustTypes | Action" instead of "MyCustTypes | Mycustomstep"  nomenclature. When you look in Step Type Menu Editor everything looks the way I expect, MyCustType | Mycustomstep...
    Thus to update the custom type with my own name I see the resStr() needs to be changed in my custom type properties. Not sure where to navigate to find the nomenclature using the Expression Browser for Default Step Name Expression, property menu. Since the ini is binary I can't read the ini directly...
    thanks ahead of time

    Hello richjoh!
    There are a couple places to "rename" your custom step type, and they
    all affect different areas.  To get a meaningful name in the .ini file,
    you actually have to right click on the custom type and rename it.  To
    customize the name of the type as it appears in the insertion palette,
    you must right click the custom step type, go to properties, and then
    to Menu tab.  Here, you can set the name of the step as it will appear
    in the insertion palette (Item Name Expression) and select or create
    which folder it will reside in (Group).  Finally, if you change the
    "Default Step Name Expression" on the General tab, you will be changing
    the name of the step as it appears when you place the step into your
    sequence.
    For all of these entry fields, you can simply put a literal string. 
    You do not need to use the resStr() function.  However, if you would
    like to, you can find where these strings returned from the resStr()
    function are defined in the
    <teststand>/components/NI/language/english directory, and add
    your own entries.
    NickB
    National Instruments
    Applications Engineering

  • Can we push a Custom Type Object on Stack in BCEL?

    Hi All,
    I know how to push Primitive Types on Stack IN BCEL using
    InstructinoList.append(new PUSH(ConstantPoolGen,343));
    Now i want to push Custom Type Object(Obj of some user defined class i.e EngineClass obj) on Stack in BCEL.
    Let me explain some context of my problem What i want to do is i have a class
    class Automobile {
    public void getEngine(int carNo,EngineClass engineClassObj){
    System.out.println("EngineNo="+engineClassObj.sisNo);
    Now when i load "Automobile" class in memory.
    ilist = new InstructionList();
    ilist.append(InstructionConstants.ALOAD_0);
    ilist.append(new PUSH(pgen,345));
    ////Hear Now i have to also push the Object on Stack
    ilist.append(ifact.createInvoke(_invoking_ClassName,_invoking_MethodName, Type.INT,*
    new Type[] { Type.INT,Type.OBJECT }, Constants.INVOKEVIRTUAL));
    ilist.append(InstructionConstants.IRETURN);
    1-if i use createNew() method and generate new object then how i am going to
    fill its fields value?
    2-or if i firstly push all fields values of Engine type Obj on Stack using PUSH
    then i can some how construct object on memory & then push it on Stack.
    these are some solution i can think of.
    But i don't know the right solution
    So Still need help ...
    thanks

    Deleted your duplicate post. Please fix your wild formatting without all the boldface and italics, and please use {noformat}{noformat} tags around the code. At present this is just an unreadable mess.                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for