Reading valueset of a  mapped Simple Type

Hi,
We have a attribute coming from a model. This attribute is of a simple type format.
we have a scenario where we have to read the number of values in the enumeration  of the simple type.
Since its mapped , it a modifiablesimpletype could not be obtained.
How else can we get the vaue set ?
Regards
Bharathwaj

Hi,
Anil : Oh ya.. Just a simple type is sufficient...! I guess it should solve the problem .. ! Will try and update.
Satyajit : Not sure abt this. It should also work.
Enumeration might not exist. It throws a NULL pointer in my case.
Thanks and Regards
Bharathwaj
Message was edited by: Bharathwaj R
        Bharathwaj R

Similar Messages

  • Not able to find a simple type in Xquery transformation

    Hi,
    In Eclipse, for Xquery transformation, i am not able to find the XMLObject simple type, under the source or target mapping simple type.
    Need help plzz
    Thanks,
    Sarat

    XMLObject is not a XML Schema data type, it is a Java data type. So you wont see it in XQuery graphical mapper. XMLObject in Java is mapped to xs:anyType in Schema. What is your exact requirement?

  • Read enumaration list of simple type

    Hi,
    I want to read enumaration list of simple type and compare it with user input. Simple type is not bound to any attribute.
    How can I read enumeration list values?
    Regards,
    Apurva

    Hi,
    Thanks for replies.
    I wanted to use simple type as storage space for Enumeration list. So, I can refer to this list and fill values from this list as required in the valueset.Not all values, based on some condition, some of the values in the list, will be added in the dropdown.
    Now, if I cant refer to simple type without creating attribute, I will have to create redundant attribute just to access Enumeration list values.
    Can I avoid it? Is there any better way of achieving this?
    Regards,
    Apurva

  • Read PI table during mapping

    Hi All
    I have requirement where i need to read custom table created in SAP PI ABAP stack during the mapping.
    Can you please tell me how to do it?
    Thanks for your inputs.
    Cheers
    AN

    Amol,
    One more simple way is create mapping of type xslt transformation ( xslt on abap) tc :xslt_tool and then you can write simple select abap statement ( Since table exist on PI system itself) no need to call any RFC or Java connection and no need to specify any server details too.
    Hope this will help.
    Let me know if you need more details.
    Thanks,
    Nilesh

  • How do I get enumeration description from simple type?

    Hello!
    I want to display the value of a simple type in a table and display the description in a tool tip for the cell, how do I do that?
    I'm using Web dynpro for java 7.0 ehp1.
    I'm using an enumeration with 5 possible values with corresponding descriptions.
    If I use a (read only) dropdownByKey the description is shown in the drop down, but I only want to show it as a tooltip since it takes up some screen space.
    I would like to use a textview, is there a simple way to get the description as a tooltip? I thought about doing a calculated attribute that gets the description but I'm not sure about how to do it or if its the easiest way.
    Thank you for any help!

    Hi Richard,
    for getting the description of the simple type attribute ( Ex.X) create a context attribute of type string (Ex. Y) and bind it to the tooltip property of table cell editor.
    Set the read only and calculated property of the attribute Y to true.
    Put this code in the automatic generated method for calculated attribute :-
    String value1 = nodeElement.getX;
    IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("X");
    ISimpleValueSet valueset = attInfo.getModifiableSimpleType().getSVServices().getValues();
    if(valueset.containsKey(value1)){
    String value2 = valueset.getText(value1);
    wdContext.node<NodeName>.setY(value2);
    By this way you can set the description of the simple type as tooltip but by using dropdown by key and index you cannot  show the valueof the simple type in the UI.
    So another way is bind the simple type attribute to a inputfield uielement in the table column.  Your simple type enumeration data will come as a F4 help in the UI and after selection you will be able to see value in inputt field and description as a tooltip.
    Regards
    Ravindra

  • Accessing Simple Type Variable Defined in BPEL Flow, in Transformation

    Hi,
    I am using Transform Process Activity. In transform mapping, i would like to map one target element with a value defined in a 'simple type variable' which is defined in calling BPEL Flow, however I am not able to do it.
    for example:
    I have a BPEL process A where there is a variable NOTIFICATION_EVENT_ID of simple type integer. when I am trying to access it through the function bpws.getVaraibleData(NOTIFICATION_EVENT_ID, "") then it is failing, while giving a hard-coded value makes it run
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="XSD">
    <schema location="MarketStatus.xsd"/>
    <rootElement name="MarketStatus" namespace="http://www.j.com/soa/2007-07-17/MarketStatus.xsd"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="XSD">
    <schema location="MarketNotificationMsg.xsd"/>
    <rootElement name="MarketNotificationMsg" namespace="http://www.j.com/soa/2007-07-17/MarketNotificationMsg.xsd"/>
    </target>
    </mapTargets>
    ?>
    <xsl:stylesheet version="1.0"
    xmlns:m="http://www.j.com/soa/2007-07-17/MarketStatus.xsd"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:ns0="http://www.j.com/soa/2007-07-17/MarketNotificationMsg.xsd"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    exclude-result-prefixes="xsl m xs ns0 xp20 bpws ora ehdr orcl ids hwf">
    <xsl:template match="/">
    <ns0:MarketNotificationMsg>
    <xsl:for-each select="/m:MarketStatus/m:MarketRun[1]">
    <ns0:MarketEvent>
    <ns0:eventID>
    <!--          <xsl:value-of select='string("33")'/> -->
    <xsl:value-of select='bpws:getVariableData("NOTIFICATION_EVENT_ID","")'/>
    </ns0:eventID>
    <ns0:tradeDay>
    <xsl:value-of select="m:marketStartTime"/>
    </ns0:tradeDay>
    <ns0:MarketRun>
    <ns0:marketRunID>
    <xsl:value-of select="m:marketRunID"/>
    </ns0:marketRunID>
    <ns0:marketID>
    <xsl:value-of select="m:marketID"/>
    </ns0:marketID>
    </ns0:MarketRun>
    </ns0:MarketEvent>
    </xsl:for-each>
    </ns0:MarketNotificationMsg>
    </xsl:template>
    </xsl:stylesheet>
    Suggest some pointers.

    > You could use the processXSLT with parameters like here :
    >
    http://blogs.oracle.com/rammenon/2007/05/07
    Hey Eric,
    Thanks for the reply and indeed that was a direct pointer for the problem I was facing.
    HOWEVER :) it dint work on the version of BPEL PM or BPEL Engine I am working on. it seems that either I have configured wrongly or version on which I am working doesn't support this.
    Version I am working on: 10.1.3.2.0
    I am not getting any compile time error however on runtime it is failing saying:
    ORABPEL-09503 Invalid xpath expression. Error while parsing xpath expression "ora:processXSLT('Map_Notification.xsl', bpws:getVariableData('Invoke_CreateMarketAndRelatedEntities_process_OutputVariable','payload'), bpws:getVariableData('Properties'))", the reason is Error in expression: 'ora:processXSLT('Map_Notification.xsl', bpws:getVariableData('Invoke_CreateMarketAndRelatedEntities_process_OutputVariable','payload'), bpws:getVariableData('Properties'))'.. Please verify the xpath query "ora:processXSLT('Map_Notification.xsl', bpws:getVariableData('Invoke_CreateMarketAndRelatedEntities_process_OutputVariable','payload'), bpws:getVariableData('Properties'))" which is defined in BPEL process.
    I will upload BPEL process created snip of my complex Bigger BPEL process but till the time suggest me if this hints you anything.
    Is I am missing something?
    Thanks.

  • Error calling BPEL from ESB  Multi-part simple type

    I am trying to define a soap service in ESB which is refering a BPEL service. I get the error
    The selected porttype is using a message that is invalid for ESB because it is multi-part or has a simple type.The message RuntimeFaultMessage in operation process of port type exportCaCustomers is invalid. Please select another portype.
    Here is the wsdl for the BPEL service. exportCaCustomers.wsdl
    <definitions
    name="exportCaCustomers"
    targetNamespace="http://xmlns.oracle.com/exportCaCustomers"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ns1="http://www.globalcompany.com/ns/order"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:ns3="http://usconcrete.com/v1/interfaces/common/InputMessage.xsd"
    xmlns:ns2="http://schemas.oracle.com/bpel/extension"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:client="http://xmlns.oracle.com/exportCaCustomers"
    xmlns:ns10="http://usconcrete.com/v1/interfaces/common/InputMessage.xsd"
    >
    <import namespace="http://schemas.oracle.com/bpel/extension" location="RuntimeFault.wsdl"/>
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.globalcompany.com/ns/order"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:client="http://xmlns.oracle.com/exportCaCustomers">
    <import namespace="http://xmlns.oracle.com/exportCaCustomers" schemaLocation="exportCaCustomers.xsd"/>
    </schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.globalcompany.com/ns/order"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:client="http://xmlns.oracle.com/exportCaCustomers">
    <xsd:import namespace="http://www.globalcompany.com/ns/order" schemaLocation="sampleTax.xsd"/>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="http://usconcrete.com/v1/interfaces/common/InputMessage.xsd" schemaLocation="InputMessage.xsd"/>
    </xsd:schema>
    </types>
    <message name="exportCaCustomersRequestMessage">
    <part name="payload" element="ns10:CVInputMessage"/>
    </message>
    <message name="exportCaCustomersResponseMessage">
    <part name="payload" element="client:exportCaCustomersProcessResponse"/>
    </message>
    <portType name="exportCaCustomers">
    <operation name="process">
    <input message="client:exportCaCustomersRequestMessage"/>
    <output message="client:exportCaCustomersResponseMessage"/>
    <fault name="bindingFault" message="ns2:RuntimeFaultMessage"/>
    </operation>
    </portType>
    <plnk:partnerLinkType name="exportCaCustomers">
    <plnk:role name="exportCaCustomersProvider">
    <plnk:portType name="client:exportCaCustomers"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    These are the contents of RuntimeFault.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="RuntimeFault"
    targetNamespace="http://schemas.oracle.com/bpel/extension"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <message name="RuntimeFaultMessage">
    <part name="code" type="xsd:string"/>
    <part name="summary" type="xsd:string"/>
    <part name="detail" type="xsd:string"/>
    </message>
    </definitions>
    This looks like a very basic thing to do. My BPEL process is working fine. I just want to access it from ESB. Any ESB gurus there. Please respond.

    <fault name="bindingFault" message="ns2:RuntimeFaultMessage"/>Don't think this is the way to define the RuntimeFaults.
    the fault-element you use to 'throw' you own business faults.
    RunTimeFaults are handled by the bpel framework itself and aren't throwable like this.
    See :
    http://www.oracle.com/technology/products/ias/bpel/htdocs/orabpel_technotes.tn007.html
    ""Business faults are application specific faults and occur when an explicit <throw> activity is executed or an <invoke> activity gets a fault as response. The fault name of a business fault is specified by the BPEL process and the messageType, if one exists, is defined in the WSDL.
    Runtime faults are not user defined and will not appear in the WSDL for a process or service.""

  • How to refer global simple types in another schema?

    Hello All,
    Any help would be greatly appreciated. My problem is , I have a global.xsd schema which declare simple types such as
    <xsd:simpleType name="DecimalMin1Max14Places2Type">
    <xsd:restriction base="xsd:decimal">
    <xsd:totalDigits value="14"/>
    <xsd:fractionDigits value="2"/>
    </xsd:restriction>
    </xsd:simpleType>
    I am referring to this type in my another schema forms.xsd. It is used as an attribute to an element. for example an element in forms.xsd is
    <xsd:element name="BudgetFourthYearAmount" type="glob:DecimalMin1Max14Places2Type"/>
    where glob is the prefix associated with global.xsd
    I am sucessfully able to register global.xsd in xdb, but when i try to register forms.xsd, i get sql mapping error. Oracle is able to resolve all the global elements from global.xsd , but it cannot resolve the global simple types i declared.
    My question is how i can refer global simple types declared in one xsd and use them in another xsd?
    Thank you,
    Maninder

    Using an include statement in forms.xsd to import in the global.xsd
    <xs:include schemaLocation="Global.xsd"/>
    If Global.xsd was the shcema_url that you registered the first xsd to.
    Regards
    Coby

  • Composite key field is not a simple type or enum

    According to the docs here - http://www.oracle.com/technology/documentation/berkeley-db/je/java/index.html?com/sleepycat/persist/model/PrimaryKey.html - you can use "A composite key class containing one or more simple type or enum fields" as a key field. When we try that we get "java.lang.IllegalArgumentException: Composite key field is not a simple type or enum: Result$Key.recordId". Am I misreading the docs?
    Thanks,
    Trevor
    @Persistent
    public final class RecordKey {
    @KeyField(1)
    private final String name;
    @KeyField(2)
    private final int duplicateNumber;
    RecordKey(final String name, final int duplicateNumber) {
    this.name = name;
    this.duplicateNumber = duplicateNumber;
    RecordKey() {
    this.name = null;
    this.duplicateNumber = -1;
    @Persistent
    static final class Key {
    @KeyField(1)
    private final RecordKey recordId;
    @KeyField(2)
    private final String key;
    Key(final RecordKey recordId, final String key) {
    this.recordId = recordId;
    this.key = key;
    Key() {
    this.recordId = null;
    this.key = null;
    }

    Hi Trevor,
    You're nesting one key class inside another. All fields of a key class must be simple types or enums, which is what the exception message is trying to say. If you want all those fields in your key class, you'll have to include them in a single flattened class.
    Neither nesting of key classes nor inheritance of key classes is supported. We have enhancements filed to support these in the future, but no concrete plans.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Simple type of type integer

    Hi All,
    I have create simple type which is of type integer. And i have set the maximum and minimum length for the simple type which is bounded with the input field. When i try to display it, it displayes with ",".
         Example 70,000,000.
    My require is to remove the commas in between the number. Is there solution for this.
    Regards,
    Revathy Madhavan.

    Hi Revathy,
    the display of numbers is localized, here in germany I see "70.000.000". So whenever you change the behaviour, consider that you skip the automated localization provided by sap.
    That said: Open your simple type and go to the "Representation" Tab. in the right upper corner, enter "#" into the field format.
    Problem solved.
    If you want to know more, read the java api of NumberFormat which describes various options for Number presentations based on String patterns.
    Jan

  • Problem using different Map key types in one class

    I'm running Kodo 2.3.3. It seems I can only have one Map key types for all
    maps in a class. For example, if I have two maps in a class, their keys
    must be of the same type.
    Is there a plan to remove this limitation soon?
    Thanks,

    Abe White wrote:
    Kodo should generate a separate table for each Map. We have internal tests
    that use classes with Map fields using a lot of different key/value type
    combinations, so there shouldn\'t be a problem.It looks like two maps (keyValues and versions) are sharing the same
    table. Here is the table generated by schematool (db: Oracle 8.1.7):
    desc persistentmotiveresourcebean_x;
    Name Null? Type
    ID_JDOIDX VARCHAR2(255)
    JDOKEYX NUMBER
    KEYVALUESX VARCHAR2(255)
    VERSIONSX VARCHAR2(255)
    ==========================================================================
    Following is the simplified code I run:
    -----------internal.jdo--------------------------------------
    <?xml version=\"1.0\"?>
    <jdo>
    <package
    name=\"com.motive.services.resourceManagementService.internal\">
    <class name=\"PersistentMotiveResourceBean\"
    identity-type=\"application\"
    objectid-class=\"com.motive.model.PrimaryKey\">
    <field name=\"id\" primary-key=\"true\"/>
    <field name=\"versions\">
    <map key-type=\"java.lang.Float\"
    embedded-key=\"true\" value-type=\"java.lang.String\"
    embedded-value=\"true\"/>
    </field>
    <field name=\"keyValues\">
    <map key-type=\"java.lang.String\"
    embedded-key=\"true\" value-type=\"java.lang.String\"
    embedded-value=\"true\"/>
    </field>
    </class>
    </package>
    </jdo>
    Java source:
    -----------PersistentMotiveResourceBean.java---------
    package com.motive.services.resourceManagementService.internal;
    import java.util.HashMap;
    public class PersistentMotiveResourceBean
    private String id;
    private String name;
    private HashMap versions;
    private HashMap keyValues;
    public PersistentMotiveResourceBean()
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public HashMap getVersions() { return versions; }
    public void setVersions(HashMap versions) { this.versions = versions; }
    public HashMap getKeyValues() { return keyValues; }
    public void setKeyValues(HashMap keyValues) { this.keyValues =
    keyValues; }
    ----------------PrimaryKey.java-------------------------------------
    package com.motive.model;
    import java.io.Serializable;
    public class PrimaryKey implements Serializable
    public String id;
    public PrimaryKey ()
    public PrimaryKey (String id)
    this.id = id;
    public boolean equals (Object ob)
    if (this == ob) return true;
    if (!(ob instanceof PrimaryKey)) return false;
    PrimaryKey o = (PrimaryKey) ob;
    return (this.id == o.id);
    public int hashCode ()
    return id.hashCode();
    public String toString ()
    return id;

  • Simple type values retrieving in dynamic programming

    Hello,
    Can somebody help me to get the values of a simple type in dynamic programming. I am using the following code:
    wdcontext.currentcustomergraph().getgraphstyle().
    After the values selected in the drop-down, I am not able to get the selected value in dynamic code. Please help.
    Thanks,
    Sunita.

    Hello Vishwas,
    I already did everything what you mentioned. When I use this in WdDoModifyView( )
    wdContext.currentContextElement().getCustomerGraphStyles()
    I am not able to retrieve the values inside customerGraphStyles().
    Thanks,
    Sunita.

  • How to use simple types for table column names ?

    Hi,
    can any one tell how to to use simple types for table column names?
    It is required in internationalizing of webdynpro applications.
    Regards,
    Rajesh

    Hi,
    1: define required column names in <SimpleType>
    2:use the following code to get those values
    3:bind 'text' property of Column headers to context attributes
    4:take a context attribute 'Value' as type of <SimpleType>
    5:set these values to context attributes
    IWDAttributeInfo objAttrInfo=wdContext.getNodeInfo().getAttribute(IPrivate<ViewName>View.IContextElement.VALUE);
    ISimpleTypeModifiable simple=objAttrInfo.getModifiableSimpleType();
    Map m=simple.getEnumerationTexts();
    Collection c=m.values();
    Iterator it=c.iterator();
    if(it.hasNext())
    wdContext.currentContextElement.set<att1>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att2>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att3>(it.next().toString);
    Regards
    LakshmiNarayana

  • XSD complexType to simple type

    Hi all!
    Please help me with my problem.
    I have two XSD files
    First contain complex type description - metadata_types.xsd
         <xs:complexType name="NUM">
              <xs:simpleContent>
                   <xs:extension base="xs:integer">
                        <xs:attribute name="TYPE" use="optional"/>
                        <xs:attribute name="derived" use="optional"/>
                        <xs:attribute name="readonly" use="optional"/>
                        <xs:attribute name="required" use="optional"/>
                   </xs:extension>
              </xs:simpleContent>
         </xs:complexType>
    Second contain members with types from my first files - metadata_schema.xsd
         <xs:import namespace="http://www.xxx.com/metadata_types" schemaLocation="metadata_types.xsd"/>
         <xs:element name="ACCOUNT">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="Account_Num" type="metadata_types:NUM" minOccurs="0"/>
    How can I convert my second file in corresponding simple types ?
         <xs:import namespace="http://www.xxx.com/metadata_types" schemaLocation="metadata_types.xsd"/>
         <xs:element name="ACCOUNT">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="Account_Num" type="xs:integer" minOccurs="0"/>
    ...

    I have two files books.xsd and books_types.xsd
    books.xsd
    =========================================================================================================
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="books" xmlns:books_types="http://www.xxx.com/books_types">
    <xs:import namespace="http://www.xxx.com/books_types" schemaLocation="books_types.xsd"/>
    <xs:complexType name="books">
    <xs:sequence>
    <xs:element name="author" type="books_types:TXT"/>
    <xs:element name="title" type="books_types:TXT"/>
    <xs:element name="genre" type="books_types:TXT"/>
    <xs:element name="price" type="books_types:NUM"/>
    <xs:element name="pub_date" type="xs:date"/>
    <xs:element name="review" type="books_types:TXT"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    books_types.xsd
    ========================================================================================================
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.xxx.com/books_types">
         <xs:complexType name="NUM">
              <xs:simpleContent>
                   <xs:extension base="xs:integer">
                        <xs:attribute name="TYPE" use="optional"/>
                        <xs:attribute name="derived" use="optional"/>
                        <xs:attribute name="readonly" use="optional"/>
                        <xs:attribute name="required" use="optional"/>
                   </xs:extension>
              </xs:simpleContent>
         </xs:complexType>
         <xs:complexType name="TXT">
              <xs:simpleContent>
                   <xs:extension base="xs:integer">
                        <xs:attribute name="TYPE" use="optional"/>
                        <xs:attribute name="derived" use="optional"/>
                        <xs:attribute name="readonly" use="optional"/>
                        <xs:attribute name="required" use="optional"/>
                   </xs:extension>
              </xs:simpleContent>
         </xs:complexType>
    </xs:schema>
    I need to get this result
    out.xsd
    ==================================================================================================
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="books" xmlns:books_types="http://www.xxx.com/books_types">
    <xs:complexType name="books">
    <xs:sequence>
    <xs:element name="author" type="xs:string"/>
    <xs:element name="title" type="xs:string"/>
    <xs:element name="genre" type="xs:string"/>
    <xs:element name="price" type="xs:integer"/>
    <xs:element name="pub_date" type="xs:date"/>
    <xs:element name="review" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    whether there is the possibility get this result using xsl transformation ?

  • Converting Resource(Dictionary Simple Type) to Binary Format.

    Hello Experts,
    In my Web Dynpro Application,
    I have a View Context attribute called "FileResource" of type Resource(Dictionary Simple Type) which is bound to the FileUpload UIElement of View.
    When im running the application I am able to Upload the file in my view context attribute successfully,
    Now I need to pass it to the RFC as an Import Parameter which is declared as type "RAW-Uninterpreted Sequence of bytes",
    kindly guide me how to convert the value of the view context attribute "FileResource" of type Resource(Dictionary Simple Type) into BINARY format, so that i can pass it to the RFC as an import parameter.
    Thank you please reply.........

    I used this code from a tutorial.  And it work.  Place Some of this code on any button.
         IPrivateFileUploadVIEW.IContextElement element = wdContext.currentContextElement();
         //if a file in the FileUpload field exists
         if (element.getResource() != null)
              IWDResource resource = element.getResource();
              try{
                   InputStream archivo = resource.read(false);
                   byte[] b = new byte[5000];
                   archivo.read(b);
                   //ResourceBundle.getBundle();
                   wdContext.currentZ_Lmmfu_Cambio_Estado_InputElement().setI_Archivo(b);
                   wdThis.wdGetAdminCMPController().executeZ_Lmmfu_Cambio_Estado_Input();
                   //Imprimir nombre del archivo     
                   String name=resource.getResourceName();
                   wdComponentAPI.getMessageManager().reportException(name,false);
                        File f = new File(resource.toString());
         catch(IOException error)
              wdComponentAPI.getMessageManager().reportException(error.toString(),false);
          //report success message
         // wdComponentAPI.getMessageManager().reportMessage(IMessageAdministracionCMP aa ,new Object[] { resource.getResourceName()}, false);
          else
         // if no file in the FileUpload field exists
         //     report error message
         wdComponentAPI.getMessageManager().reportException("Search for a file",false);
         //     clear the 'FileResource' context value attribute
         element.setResource(null);
    Is there a better way to do this.
    I need to get the creation or modification date from the original file.  How can I do this?

Maybe you are looking for

  • Differences between releases

    Hi, I4m new at Portal. I4m about to develop under Oracle8iAS, but have big chances to migrate to Oracle9iASI- Version 3.0.9.8.2. ..or R2 I 4m looking for information about differences between the 3 mentioned versions, to help me decide whether to do

  • HT1212 iPhone diabled, tried to use iTunes to restore, but iTunes gives error message (0XE8000084). Now what to try to reset iPhone?

    iphone disabled, tried to use iTunes to restore, but iTunes gives error message (0XE8000084). How to restore iPhone?

  • Georapter

    hi i am using georapter in oracle sql developer to load shape files. when i try to use some more shape files, the original records are deleted and new records are inserted. how to append new records and keep original records. thanks

  • Stock Transfer Between Excise and Non Excisable plants

    Hi Friends,                              I have created STO for excisable plant from non excisable plant. delivery created in excisable plant. But in non excisable plant, I am unable to capture excise invoice.I want the price in non excisable plant a

  • BPM Objects to XML

    Hello everyone, this could seem simple but even for me is not. I want obtain XML data coming out from my BPM Object. Basically what I want is something like the XML Object can do: use some sort of generateXMLFor() method but I cannot figure how to re