Accessing fields of a custom object type

Hello,
this is for Oracle 11.2.0.4.0
I am trying to create and return an object inside a function and then access attributes of that object.
It works in that I get the expexted result in my query, but the object is created once again for each attribute that I am accessing:
CREATE OR REPLACE TYPE zzz_tp_type_test AS OBJECT (
  col_a VARCHAR2(100 CHAR),
  col_b VARCHAR2(100 CHAR),
  col_c VARCHAR2(100 CHAR)
CREATE OR REPLACE FUNCTION zzz_f_type_test RETURN zzz_tp_type_test
IS
  ret zzz_tp_type_test := zzz_tp_type_test('aa', 'bb', 'cc');
BEGIN
  dbms_output.put_line('Running once...');
  RETURN ret;
END;
SET serveroutput ON;
SELECT (A).col_a, (A).col_b, (A).col_c FROM (
    SELECT zzz_f_type_test A FROM dual
The result of the SELECT query is
(A).COL_A
(A).COL_B
(A).COL_C
aa
bb
cc
Running once...
Running once...
Running once...
I am not sure why this is happening, or how to prevent this. I would expect to call the function only once, and then access that one created instance for each attribute.
I am thinking it might have to do with the parentheses around "A", but that was the only way to get the query to execute - without them I got a syntax error.
What do I need to change for the DB to execute the function only once?
Thank you...

That's a good solution using a table type and table function.  It can be simplified a bit, as shown below.
SCOTT@orcl> -- test environment:
SCOTT@orcl> select banner from v$version
  2  /
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0    Production
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
5 rows selected.
SCOTT@orcl> -- original type and function:
SCOTT@orcl> CREATE OR REPLACE TYPE zzz_tp_type_test AS OBJECT (
  2        col_a VARCHAR2(100 CHAR),
  3        col_b VARCHAR2(100 CHAR),
  4        col_c VARCHAR2(100 CHAR)
  5      );
  6  /
Type created.
SCOTT@orcl> CREATE OR REPLACE FUNCTION zzz_f_type_test
  2    RETURN zzz_tp_type_test
  3  IS
  4    ret zzz_tp_type_test := zzz_tp_type_test('aa', 'bb', 'cc');
  5  BEGIN
  6    dbms_output.put_line('Running once...');
  7    RETURN ret;
  8  END;
  9  /
Function created.
SCOTT@orcl> SET SERVEROUTPUT ON
SCOTT@orcl> -- additional type from Gerard:
SCOTT@orcl> create or replace type zzz_nt_type_test is table of zzz_tp_type_test;
  2  /
Type created.
SCOTT@orcl> -- simplification of Gerard's query:
SCOTT@orcl> select i.col_a, i.col_b, i.col_c
  2  from  table (zzz_nt_type_test (zzz_f_type_test())) i
  3  /
COL_A
COL_B
COL_C
aa
bb
cc
1 row selected.
Running once...
SCOTT@orcl> exec dbms_output.put_line('end');
end
PL/SQL procedure successfully completed.
SCOTT@orcl>

Similar Messages

  • Generic Object Services for Custom Object Type

    I would like some advice please. I am not an ABAP Developer but I would like to enable the generic object services for transaction PP01 for a custom object type.
    I have searched for information, which suggests that the object needs to be published using the function module SWU_OBJECT_PUBLISH so that it is available in the Business Object Repository. If this is correct, please could someone tell me (in simple terms) how I can do this (with the assistance of an ABAP developer)?
    My colleague did some debugging which seemed to suggest that in order for the generic object services to be available, the field OBJTYP needs to be populated in table T778O. Is this correct? If so, how should this be done?
    Your advice would be greatly appreciated.
    Regards
    Corinne

    Hi,
    i'm also looking for the solution you have asked for.
    if you know how to do it please reply me with the solution.
    Thanks,
    suresh

  • Is it possible to have an adress field with a Custom Object?

    Hello,
    I would like to link a service request to an account and an intermediary such as a travel agency. But the original datamodel only allow one account per Service Request.
    So, I have created a custom object (Intermediary) that should have similar relations with other objects than the Account one. With this object, I will be allowed to link my two accounts to the SR. But I would like to insert an address field in my custom object. Unfortunately, this kinf of custom field type is not available...
    Is there any solution to have one? Or is there another solution I could use to link 2 accounts to a Service Request?
    Thanks in advance,
    Laurent

    We had the same problem. Decided to use one of the new custom objects (CO-05) for this purpose. The drawback of using it this way is the lack of automatic formating of the address lines by country selected like you get with accounts and contacts. On the good side, you can designate fields for use in interfacing with your external business system, i.e. Oracle eBS, JDE, etc.
    We also added a link to this to bring up a modified Customers On Line form from Oracle eBS that gives us a view of the Quotes, Orders, Service Requests, Installed Base, Invoices and Credit Memos by customer party id number contained in eBS. This is what we call a 360 degree view of the customer.
    Neil @ Emerson Process

  • New custom object type - SWO1

    Hi All,
    I need to create a custom object type using SWO1.
    The object type needs to be linked to a report program with selection screen(or its tcode). 
    The selection screen carries just 1field. The output is a new screen.
    Would appreciate if any1 can tell me the step-by-step process to accomplish my objective.
    -Ram.

    Enter a name.
    Hit create. Populate the manadatory pop ups don't populate super type.
    Blow out the key field. Create a key field.
    Blow out the methods - add a method. Add the code for the method - select the method and hit the program button add code as below:
    BEGIN_METHOD RUNDUPREPORT CHANGING CONTAINER.
       SET PARAMETER ID 'VPA' FIELD OBJECT-KEY-PARTNEREMPLOYEEID.
    export object-key-partneremployeeid to memory id '99'.
       CALL TRANSACTION 'ZEML' AND SKIP FIRST SCREEN.
    *object-key-partneremployeeid.
    END_METHOD.
    Create your event.
    My method calls an abap I wrote that is bound to a transaction.
    You will need to set the release status for all of the elements of your object and the object itself.
    The question I have is why. Are you calling the object in a workflow? If so you will need to use the fm as below:
    DATA: OBJTYPE LIKE SWETYPECOU-OBJTYPE VALUE 'ZRM_WWCONT',
        EVENT LIKE SWETYPECOU-EVENT VALUE 'DuplicateEmail',
         OBJKEY LIKE SWEINSTCOU-OBJKEY,
            EVENTID LIKE SWEDUMEVID-EVTID.
        DATA: BEGIN OF EVENT_CONTAINER OCCURS 0.
                INCLUDE STRUCTURE SWCONT.
        DATA: END OF EVENT_CONTAINER.
        OBJKEY = KNVK-PARNR.
        CALL FUNCTION 'SWE_EVENT_CREATE'
             EXPORTING
                  OBJTYPE              = OBJTYPE
                  OBJKEY               = OBJKEY
                  EVENT                = EVENT
            START_WITH_DELAY     = ' '
            START_RECFB_SYNCHRON = ' '
            IMPORTING
                 EVENT_ID             = EVENTID
             TABLES
                  EVENT_CONTAINER      = EVENT_CONTAINER
             EXCEPTIONS
                  OBJTYPE_NOT_FOUND    = 1
                  OTHERS               = 2.
        COMMIT WORK.
    Good Luck.

  • Is it Possible to create custom Object type in configuration Tab

    Hi ,
    We have object type for table in Development Tab in SOLAR02 , is it possible to create a custom object type to represent the table object type in Configuration Tab.
    Please let me know the steps , if it is possible.
    Best Regards,
    Saravana

    Hi
    You answer for you problem exists and its a common problem but you need to go for this development as mentioned below
    /people/andreas.diebold/blog/2007/02/13/extend-sap-solution-manager-to-manage-new-object-types
    We did long time back
    Hope ur problm and doubt is resolved now
    Regards
    Prakhar

  • All cmp-fields that double as cmr-fields must have an object type??

    Greetings,
    I'm deploying an application in weblogic 8.1sp2 that worked fine in
    jboss 3.2. The error is:
    Exception:weblogic.management.ApplicationException: prepare failed for
    ServiceEJB.jar Module: ServiceEJB.jar Error: Exception preparing module:
    EJBModule(ServiceEJB.jar,status=NEW) Unable to deploy EJB:
    ServiceEJB.jar from ServiceEJB.jar: [EJB:011017]Error while reading
    'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was: In relationship
    'primitive_TO_primitive_param', role
    'primitive_param_BELONGS_TO_primitive', a cmp-field used to implement
    this relationship has a primitive type. All cmp-fields that double as
    cmr-fields must have an object type. . at
    weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:255) at
    Does it means that I should cmp field from "int" type to "Integer"
    object??? If true, I really don't know why the requirement since in
    jboss worked just fine. But do you confirm it?
    regards,
    Pedro Salazar

    I believe there is a requirement that any field used as a primary or
    foreign key must be an object and implement hashCode/equals.
    I'd post in weblogic.developer.interest.ejb.cmp if you want more
    information.
    -- Rob
    Pedro Salazar wrote:
    Greetings,
    I'm deploying an application in weblogic 8.1sp2 that worked fine in
    jboss 3.2. The error is:
    Exception:weblogic.management.ApplicationException: prepare failed for
    ServiceEJB.jar Module: ServiceEJB.jar Error: Exception preparing module:
    EJBModule(ServiceEJB.jar,status=NEW) Unable to deploy EJB:
    ServiceEJB.jar from ServiceEJB.jar: [EJB:011017]Error while reading
    'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was: In relationship
    'primitive_TO_primitive_param', role
    'primitive_param_BELONGS_TO_primitive', a cmp-field used to implement
    this relationship has a primitive type. All cmp-fields that double as
    cmr-fields must have an object type. . at
    weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:255) at
    Does it means that I should cmp field from "int" type to "Integer"
    object??? If true, I really don't know why the requirement since in
    jboss worked just fine. But do you confirm it?
    regards,
    Pedro Salazar

  • Updating a custom object type

    Please, does anybody know how to update an custom object type which is created as table.
    I did the following:
    CREATE TYPE tmp as object..
    CREATE TYPE tmp_table as TABLE of tmp;
    Is it possible to update tmp_table and if so how?
    Thanks.

    Example:
    create type address_ty as object
    (Street varchar2(50)
    ,city varchar2(25)
    ,zip number)
    create type person_ty as object
    (name varchar2(50)
    ,address address_ty)
    create table customer
    (customer_id number
    ,person person_ty)
    insert into customer (1, person_ty ('Name', address_ty ('Street Name', 'City Name', 1111)));
    insert into customer (2, person_ty ('Name 2', address_ty ('Street Name 2', 'City Name 2', 1111)));
    commit;
    update customer
    set person = person_ty ('Name 2', address_ty ('New Street Name 2', 'City Name 2', 1111))
    where customer_id = 2;
    Please, does anybody know how to update an custom object type which is created as table.
    I did the following:
    CREATE TYPE tmp as object..
    CREATE TYPE tmp_table as TABLE of tmp;
    Is it possible to update tmp_table and if so how?
    Thanks.

  • Delegation of Custom Object Types

    Dear Gurus,
    What is the need for DELEGATING a custom object type that we create using SWO1.
    Thanks,
    VV

    HI Balajisap ,
    'the event 'releasestepcreated' has to be triggered for object types BUS2105 and the custom created for BUS2105 in SWEL right?. But i am getting only BUS2105 not the custom one'..
    The system will always show the standard BO not the custom one. Afetr dlegating you custom BO to the standard one, use your standard BO to trigger your worflow. The standard BO will contain the cistom properties after delegation.
    Regards
    Anik

  • JDOQL queryfilter failure while retrieving field of "java.lang.Object" Type.

    PROBLEM DESCRIPTION --->
    JDOQL FILTER ON A FIELD OF "java.lang.Object" TYPE, NOT WORKING.
    HELP REQUESTED WITH SUGGESTIONS OR POINTERS TO THE CORRECT SOLUTION.
    Deatiled Problem :=
    Environment :=
    Kodo version 2.4.1 (on Windows 2000).
    J2SDK 1.3.1_06 (on Windows 2000).
    Database:= MySQL 3.23.55 (on Windows 2000).
    Java Class Hierarchy Example:=
    SuperPersistentObject
    |__ LevelOneDescendant
    |__ LevelTwoDescendant
    |__ LastDescendant
    Procedures Followed :=
    Java class named "LastDescendant" is enhanced and persisted in the
    database.
    The field "m_value" is of java type "java.lang.Object" and is
    represented as a "blob" in the database.
    Aadequate data is pumped in the field "m_value" (Data of Type
    String/Integer/Double/Boolean etc.). The class "LastDescendant" is
    retrieved using following JDO specific code :=
    SUCCESSFUL EXAMPLE :=
    Extent extent= PersistentManager.getExtent
    (com.name.project.LastDescendant.class, false);
    String m_queryFilter = "";
    Query query = PersistentManager.getQuery(extent, m_queryFilter);
    Collection m_resultset = (Collection)query.execute();
    The above code returns all the available "LastDescendant" objects
    persisted in the DB. Post Load, The value in the field "m_value" of
    all the retrieved "LastDescendant" objects, is testeded successfully
    and found to be matching to the expected values.
    FAILED EXAMPLE :=
    Extent extent= PersistentManager.getExtent
    (com.name.project.LastDescendant.class, false);
    //Retrieving only the objects whose "m_value" field contains Integer
    // values, between 10 and 9000. (110 objects with Integer value
    // between 10 and 9000 are pumped in the DB, for testing).
    String m_queryFilter = "(m_value >= 10 && m_value <= 9000)";
    Query query = PersistentManager.getQuery(extent, m_queryFilter);
    Collection m_resultset = (Collection)query.execute();
    NO "LastDescendant" OBJECTS RETRIEVED, the Collection "m_resultset" is
    Empty, (Actually Expecting 110 objects).
    Tried every other way, using "declareImports()"/ "declareParameters()"/
    "declareVariables()" etc. Tried TypeCasting the m_value field to Integer,
    but to no avail.
    Actual Classes :=
    public class SuperPersistentObject implements java.io.Serializable {
    protected String appKey;
    public class LevelOneDescendant extends SuperPersistentObject {
    protected SuperPersistentObject m_classRef;
    public class LevelTwoDescendant extends LevelOneDescendant {
    protected Object m_value;
    public class LastDescendant extends LevelTwoDescendant {
    "project.jdo" meta-data entry :=
    <class name="SuperPersistentObject"
    identity-type="application"
    objectid-class="com.name.project.AppKeyImpl">
    <field name="appKey" primary-key="true"/>
    </class>
    <class name="LevelOneDescendant" identity-type="application"
    persistence-capable-superclass =
    "com.name.project.SuperPersistentObject">
    </class>
    <class name="LevelTwoDescendant" identity-type="application"
    persistence-capable-superclass =
    "com.name.project.LevelOneDescendant">
    <field name="m_value">
    <extension vendor-name="kodo" key="data-column" value="VALUE"/>
    </field>
    </class>
    <class name="LastDescendant" identity-type="application"
    persistence-capable-superclass="com.name.project.LevelTwoDescendant">
    </class>
    JDO related properties :=
    javax.jdo.PersistenceManagerFactoryClass =
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory
    javax.jdo.option.ConnectionURL= jdbc:mysql://localhost/PRTestDB
    javax.jdo.option.ConnectionUserName= SuperUser
    javax.jdo.option.ConnectionPassword= <xxxxxx>
    javax.jdo.option.ConnectionDriverName= com.mysql.jdbc.Driver
    javax.jdo.option.Optimistic= true
    javax.jdo.option.RetainValues= true
    javax.jdo.option.NontransactionalRead= true
    javax.jdo.option.NontransactionalWrite= true
    javax.jdo.option.RestoreValues= true
    javax.jdo.option.Multithreaded= true
    javax.jdo.option.MsWait= 5000
    javax.jdo.option.IgnoreCache= false
    javax.jdo.option.MinPool= 1
    javax.jdo.option.MaxPool= 80
    com.solarmetric.kodo.impl.jdbc.WarnOnPersistentTypeFailure= true
    com.solarmetric.kodo.impl.jdbc.SequenceFactoryClass=
    com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory
    com.solarmetric.kodo.impl.jdbc.FlatInheritanceMapping= true
    com.solarmetric.kodo.LicenseKey= <xxxx-yyyy-zzzz-2345-6789>
    com.solarmetric.kodo.EnableQueryExtensions= false
    com.solarmetric.kodo.DefaultFetchThreshold= 30
    com.solarmetric.kodo.DefaultFetchBatchSize= 10

    You can't query on a blob column.

  • Cannot get rid of default field in a custom content type

    hi guys,
    I have custom content type based on Document Set in a List based on Document Library. I created both using XML declaration in SP solution.
    I have all fields in my content type which I declared, except to defult fields: 'Name' and 'Description'. I need to hide both of them. After I set Inherits="FALSE" in ContentType section in Elements.xml in ContentType description the field
    'Description' goes away. But the field 'Name' marked as required and stays.
    I've also tried to add RemoveFieldRef parameter to the same Elements file, but the field persists. I assume it comes from list definition, not content type. But I cannot figure out how to get this field out from list definition.
    Do I miss something?

    I am assuming that content type's elements.xml file is looking like this 
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <!-- Parent ContentType: Document Set (0x0120D520) -->
      <ContentType ID="0x0120D520008d2ff418027e4c31b54d155b98596748"
    Overwrite="True"
    Name="Custom Dossier"
    Group="Custom group"
    Description="Custom dossier"
    Inherits="True"
    Version="0">
        <FieldRefs>
                <FieldRef
    ID="{8D6C094C-3E1F-41f4-BEE3-25B27EE09702}"
    Name="Dossier_Nummer"
    DisplayName="Dossiernummer"
    Required="True" 
    />
        </FieldRefs>
        <XmlDocuments>
          <XmlDocument NamespaceURI="http://schemas.microsoft.com/office/documentsets/allowedcontenttypes">
            <act:AllowedContentTypes
    xmlns:act="http://schemas.microsoft.com/office/documentsets/allowedcontenttypes"
    LastModified="05/31/2012 08:46:56">
              <AllowedContentType
    id="0x0101"
    />
              <AllowedContentType
    id="0x0101000490d50c50624b6ca21c637ef39cd89b"
    />
            </act:AllowedContentTypes>
          </XmlDocument>
        </XmlDocuments>
      </ContentType>
    </Elements>
    In the FieldRef  section ,we have  <FieldRef
    ID="{8D6C094C-3E1F-41f4-BEE3-25B27EE09702}"
    Name="Dossier_Nummer"
    DisplayName="Dossiernummer"
    Required="True" 
    />  this field is there.
    Try to add ShowInNewForm="TRUE" ShowInEditForm="FALSE" those attributes.
    or    Hidden="FALSE" 
    Sorry for the bad English. Could you paste your code.So that we can assist u.

  • How to auto-populate the Contact field from a Custom Object

    Hi,
    I am working on a project where the Contact record is the main focus. I have setup the Contact record as having a one-to-many relationship with CO4. From the Contact Details page I can click on the New button in the Related Record section for CO4 and the Contact from the Details page is auto-populated (which is what I want). I then enter the data into CO4 and click on Save so that the record is displayed in the Related Record section, and then I click into it so that I'm now on the CO4 Details page.
    My page layout for CO4 has both Activities and Service Requests as related records, and the page layouts for both of these include the CO4 field and the Contact field. When I click on New for either of these record types, the CO4 field is populated from the previous record but the Contact is not. I realize this is because there is a one-to-many relationship between CO4 and the Activity/SR, but is there any way to also pull over the value in the Contact field?
    I also tried this using CO1 which does have a many-to-many relationship (if I understand it correctly), but the Contact field is still not pulling over. Is there a way to make this happen?
    Thanks!

    This functionality is not available at this time. I would recommend that you submit a enhancement request to customer care.

  • Packaging custom Objects TYPE

    Hello everybody,
    i wonder if it is possible to "package" objects into package definition as follow:
    CREATE OR REPLACE PACKAGE OBJECTS_TEST IS
    TYPE MYTYPE IS OBJECT(T0 VARCHAR2(200),T1 VARCHAR2(200));
    when i try to execute this I always receive the following error:
    ERROR line 3, col 22, ending_line 3, ending_col 22, Found '(', Expecting: ;
    So far, seems that the definition of the object must go internally to the PACKAGE BODY, therefore into a FUNCTION/PROCEDURE.
    I would like to define a package that works as a global handler for all my objects used in my schema, what I'm supposed to do ?
    Any help will be very appreciated,
    Thank you,
    Luigi

    Thank you everybody for your support, and as requested I'll try to be more precise.
    I'm developing functions and procedure to manipulate data that will then be used by a Business Object universe.
    As for now, I've opted to develop some custom transformation procedure in PL/SQL to handle special cases where strings contains value pairs like :
    1~FirstText~2~SecondText
    From this point onward, I need to create a view that needs to be like this:
    VALUE | TEXT
    1 | FirstText
    2 | SecondText
    So far, I've build a PL/SQL procedure that parse the string and returns a TABLE OF OBJECTS to be further used in a VIEW with more or less 100 records.
    Those objects where initially declared externally to my package in this way:
    CREATE OR REPLACE TYPE RadioQuestionParam IS OBJECT (
                                                Q_ID     VARCHAR2 (50 CHAR),
                                                Q_F_ID  VARCHAR2 (50 CHAR),
                                                Q_VALUE VARCHAR2 (4000 CHAR),
                                                Q_TEXT  VARCHAR2 (4000 CHAR)
    CREATE OR REPLACE TYPE RadioQuestionParamTable IS TABLE OF RadioQuestionParam;
    /and the procedure that will use them is...
    create or replace package objects_test
    FUNCTION PARAMS2ROWS2     (P_Q_ID      IN  VARCHAR2,
                                 P_Q_F_ID    IN  VARCHAR2,
                                P_Q_PARAM   IN  VARCHAR2)
                                RETURN RadioQuestionParamTable ; 
    end objects_test;
    /so then I can use:
    select * from table(objects_test.params2rows2('q_id','q_f_id','1~TEST1~2~TEST2'));to produce the desired output.
    As I would like to organize everything in one single package I was wondering if there's a way of using OBJECTS INSIDE A PACKAGE....
    As for now I've modified my code to use michaels2 suggestion but with no luck as when I execute the
    select * from table(objects_test.params2rows2('q_id','q_f_id','1~TEST1~2~TEST2')); I'm receiving a ORA-00902: invalid datatype;
    Thank you for your precious help,
    Luigi

  • "Property value is not valid" when PropertyGridView tries to convert a string to a custom object type.

    Hi,
    I have a problem with an PropertyGrid enum property that uses a type converter.
    In general it works, but when I double clicking or using the scoll wheel,  an error message appears:
    "Property value is not valid"
    Details: "Object of type 'System.String' cannot be converted to type 'myCompany.myProject.CC_myCustomProperty."
    I noticed that the CommitValue method (in PropertyGridView.cs) tries to convert a string value to a CC_myCustomProperty object.
    Here is the code that causes the error (see line 33):
    (Using the .net symbols from the PropertyGridView.cs file)
    1
            internal bool CommitValue(GridEntry ipeCur, object value) {   
    2
    3
                Debug.WriteLineIf(CompModSwitches.DebugGridView.TraceVerbose,  "PropertyGridView:CommitValue(" + (value==null ? "null" :value.ToString()) + ")");   
    4
    5
                int propCount = ipeCur.ChildCount;  
    6
                bool capture = Edit.HookMouseDown;  
    7
                object originalValue = null;   
    8
    9
                try {   
    10
                    originalValue = ipeCur.PropertyValue;   
    11
    12
                catch {   
    13
                    // if the getter is failing, we still want to let  
    14
                    // the set happen.  
    15
    16
    17
                try {  
    18
                    try {   
    19
                        SetFlag(FlagInPropertySet, true);   
    20
    21
                        //if this propentry is enumerable, then once a value is selected from the editor,   
    22
                        //we'll want to close the drop down (like true/false).  Otherwise, if we're  
    23
                        //working with Anchor for ex., then we should be able to select different values  
    24
                        //from the editor, without having it close every time.  
    25
                        if (ipeCur != null &&   
    26
                            ipeCur.Enumerable) {  
    27
                               CloseDropDown();   
    28
    29
    30
                        try {   
    31
                            Edit.DisableMouseHook = true;  
    32
    /*** This Step fails because the commit method is trying to convert a string to myCustom objet ***/ 
    33
                            ipeCur.PropertyValue = value;   
    34
    35
                        finally {   
    36
                            Edit.DisableMouseHook = false;  
    37
                            Edit.HookMouseDown = capture;   
    38
    39
    40
                    catch (Exception ex) {   
    41
                        SetCommitError(ERROR_THROWN);  
    42
                        ShowInvalidMessage(ipeCur.PropertyLabel, value, ex);  
    43
                        return false;  
    44
    I'm stuck.
    I was wondering is there a way to work around this? Maybe extend the string converter class to accept this?
    Thanks in advance,
    Eric

     
    Hi,
    Thank you for your post!  I would suggest posting your question in one of the MS Forums,
     MSDN Forums » Windows Forms » Windows Forms General
     located here:http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=8&SiteID=1.
    Have a great day!

  • Error: This item must be open to read this field while trying to access field of WI using Object Model

    Hi there,
         I'm trying to access few fields for example Description, History,Repro Steps etc. ,but I get error as
    Error: This item must be open to read this field.
    How do i fix this?
    Thanks,
    Anu

    WorkItem.Open() ?
    There is no open() method for workitem
    is there any other solution?
    Thanks
    Anusha

  • Simple Question- WS & Custom object types

    Hi all,
    I'm sure I found some posts on this topic before but cannot seem to find them at the minute.
    I know in Web Services it is possoble to pass user defined objects, as long as they implement Serializable. But is it that simple? do you not have to define mappings and the like in the configuration files?
    Any pointers to suitable material would be appreciated. Many thanks
    Kevin

    Hi Kevin,
    I too have noticed that there are many posts on TypeMapping of complex types (I think it is mostly because people are not - yet - well acquainted with Web Services). Look at the "advanced"-JAXRPC examples in the Web Services tutorial and see that you do not need to map much. In the case of DII it is limited to the input-parameters and the result-type.

Maybe you are looking for

  • Image Browser downloads to wrong folder

    I couldn't find a better category for this question than iPhoto. Sorry if there is one. I just got a Canon powershot A630 camera. it's great. I was using iPhoto to download images and that was fine. But I thought the Image Browser software that came

  • Display current date in jsp?

    I hate asking for code, but I can't find anything on this. I'm trying to display the current date in the format YYYYMMDD on a jsp page without using scriplets. I've seen getting the time in milliseconds used through <jsp:useBean id="now" class="java.

  • Error While downloading Track in NWDS

    My system landscape has CMS and DTR on one server, CBS on other and SLD on the other machine. I could sucessfully create a track using CMS by importing the software component created in the SLD. But when i tried to import the track from Development C

  • How to Net price of materail with respect to plant

    Hi Gurus,                  Kindly let me know is there any standard BAPI or FM to get net value of Material Code including taxes or combination of BAPIs and FM or any existing program developed by you for reference. Thanks in Advance, Rams

  • HT1151 I stuck a smaller dick in driver, computer doesn't recognize its in there.

    I thought the Mac Book pro was able to read the smaller disk. Now stuck in hard drive. Tried resetting computer while holding the mouse button, what should I do next