Problem with conText

Hello,
I use Oracle 8i and I have a problem with conText.
In fact, there are no result even if threre must have.
I create my table by setting the type of the text row as clob.
CREATE TABLE artefact(targetTool, keyWord clob);
Then, I create an index with the command:
CREATE INDEX ind3 ON artefact(keyWord) INDEXTYPE IS CTX.CONTEXT
Then, I insert the values as a classic insert.
And finally, I search with the Query:
SELECT targetTool FROM artefact WHERE CONTAINS(keyWord,'test')>0;
My table has a keyWord row which contains the sentence :"This is a test" but there is no result.
Thank you.
PS:All the query are done through a Java application
PS2:Excuse my English, I'm not english.

Please try to follow the quick start example: http://otn.oracle.com/products/text/x/Samples/Quick_Start/index.html

Similar Messages

  • Problem with Context in mapping

    Hi.
    I  have a big problem with my mapping.
    My input look like this.:
    - <Rec>
    - <raw>
      <Rec_type>B</Rec_type>
      <Record_data>0000340H150000006269 N2007020105070000727001000009000540006599350000000000</Record_data>
      </raw>
    - <raw>
      <Rec_type>C</Rec_type>
      <Record_data>0000350H1500000062690000107074030000610000000060800000004910001080 80620000727001</Record_data>
      </raw>
    - <raw>
      <Rec_type>D</Rec_type>
      <Record_data>0000360H15000000626900001070740000107079030000610000000060800000004920000000727001</Record_data>
      </raw>
    - <raw>
      <Rec_type>D</Rec_type>
      <Record_data>0000370H15000000626900001070740000107432030000000000000000000000000000000000727001</Record_data>
      </raw>
    - <raw>
      <Rec_type>C</Rec_type>
      <Record_data>0000380H1500000062690000115008010004995000000499900000041630001610 83470000727001</Record_data>
      </raw>
    - <raw>
      <Rec_type>C</Rec_type>
      <Record_data>0000390H1500000062690000115008050003997000000400300000033320001660 83470000727001</Record_data>
      </raw>
    - <raw>
      <Rec_type>C</Rec_type>
      <Record_data>0000400H1500000062690000115008030002996000000300000000024980001640 83470000727002</Record_data>
      </raw>
    - <raw>
      <Rec_type>C</Rec_type>
      <Record_data>0000410H1500000062690000115008040003995000000399900000033300001630 83470000727002</Record_data>
      </raw>
    - <raw>
      <Rec_type>C</Rec_type>
      <Record_data>0000420H1500000062690000115483010004850000000480100000040250000300 83110000727002</Record_data>
      </raw>
    - <raw>
      <Rec_type>D</Rec_type>
      <Record_data>0000430H15000000626900001154830000107432010000000000000000000000000000000000727002</Record_data>
      </raw>
    - <raw>
      <Rec_type>D</Rec_type>
      <Record_data>0000440H15000000626900001154830000107079010001453000000144000000011710000000727002</Record_data>
      </raw>
    - <raw>
      <Rec_type>D</Rec_type>
      <Record_data>0000450H15000000626900001154830000115124010003397000000336100000028590000000727002</Record_data>
      </raw>
    - <raw>
      <Rec_type>C</Rec_type>
      <Record_data>0000460H1500000062690000115502020004012000000399900000029470001240 73570000727001</Record_data>
      </raw>
    My target is an iDoc with this structure.:
    IDOC
    - E1OILT1
    - -   xxxx
    - -   xxxx
    - -   E1OILT2
    - -   E1OILT2
    - -   E1OILT2
    - -   E1OILT3
    - -   E1OILT3
    For each B-record I'm going to produce an iDoc.
    My problem is that all "C"-records shall into the first E1OILT3-segment and
    all "D"-records shall into the second E1OILT3-segment.
    It works well with the C-record but not with the D-records.
    D is depend on C, but C dont need to have a D-record.
    C could also have several D-records.
    Don't know if I explained this good enough but i hope  someone could give me an hint whats wrong with my context.
    Thanks

    then i think you need to write some JAVA code to do this.
    Create a User-Defined Function.
    and start using some of the ResultList Methods.
    check the blogs to how to do this.
    it will take you some time beacuse you need to understand the concept of Context if you don't know already.
    there is some methods like "addValue" that create a new Value.
    Regards,
    Roi Grosfeld

  • Problem with context search in iFS

    Hello , here is my problem with iFS.
    We have installation of Oracle 8.1.7 Enterprise edition with interMedia and iFS 1.1 on same server (Windows NT Server 4.0/512 RAM). During install everything went fine.
    I had uploaded about 200 MB files in the iFS (pdf's and html's).
    The problem is when I try to use context based search. If I search for file's name everything is fine, but when I search for a word that is in a file it almost immediately gives mi "0 file(s) found", and I'm sure that there are files that have that word in their body's.
    What can be the problem?
    Any sugestions will be in help.
    Thanks in advance.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by mark_d_Drake ():
    That's the way it works. Content Indexing is not on insert, it occurs when the ctxsrv process runs. See the IntermediaText doc for more information.
    <HR></BLOCKQUOTE>
    Documents's content is stored in the GLOBALINDEXEDBLOB column of the IFSSYS.ODMM_CONTENTSTORE table.
    There is an text index GLOBALINDEXEDBLOB_I built on this column.
    To make the context search possible just update this index using the following command in SQL*Plus:
    SQL> exec ctx_ddl.sync_index('GLOBALINDEXEDBLOB_I');
    If you want this index be updated automatically when new documents are uploaded/changed/deleted in iFS then start the ctxsrv utility on the computer where your Oracle database resides. To do this issue the following command in OS command line:
    ctxsrv -user ctxsys/ctxpwd@db_alias
    just replace here ctxpwd and db_alias with real values you specified during the installation.
    null

  • Problem with Context - calculated Value

    I have a problem with my WebDynPro-Project.
    The Errors which is shown by the NWDS:
    "Web Dynpro Generation: Metadata constraint of Component KeyMappingComponent is violated: CalculatedAttributeProvider "//WebDynpro/Controller:de.vwfsag.keymapping.ui.KeyMappingComponent/CalculatedAttributeProvider:BusinessAttributeDataSprache", Role "Attribute": A minimum of 1 object(s) is required"
    What I've done:
    - changed valueproperties calculated from "true" to "false" and back.
    The problem is that the set und get methods remained after resetting the calculateproperty to "false".
    I've tried several time to switch the property but now I got more remained set and get methods (..._1, ..._2, ...), which I can't delete in the NWDS.
    What I also tried was to change the .wdcontroller"-file of my controller-component, but this file is generated so after a rebuild the ".wdcontroller"-file is still corrupted.
    I think the conclusion should be something to delete these methods or change the calculatedproperty in some files you can't access directly from the NWDS.
    I hope anyone could help me out with this?
    Greetz Christian
    Edited by: christian.zuehlsdorf on Dec 14, 2009 6:24 PM

    Tushar Sinha wrote:Tushar Sinha wrote:Hey Sinha,
    thank you fr your answer!
    >
    > Just try deleting the attribute for which you tried setting the calculated property as true and then false, try repairing your project, reload and build again. Hopefully this should get you rid of the getters and setters.
    That was the first thing I already tried. I deleted the whole context und then rebuild and repair and rebuild... But none of that help.
    >
    > Do, not manually try deleting the getters/setters manually for any attribute as it is autogenerated for an attribute.
    These getters/setters only have part of the configuration with no context-attribute-bind, which in fact seems to be the problem for the build-process.

  • Problem with context binding

    Hi all,
    I have the following problem with my context element.
    I have this structure in my context:
    DynamicText (valueNode)
      Person (valueAttribute)
      SourceRegistration (valueAttribute)
      Persons (valueNode in node DynamicText)
        Persons (valueAttribute in node Persons)
    Now im trying to fill this context data in my code like this:
    IPublicTESTComponent.IDynamicTextElement dynamicText = wdContext.createDynamicTextElement();
    dynamicText.setSourceRegistration("sourceRegistration");
    dynamicText.setPerson("person");
    Collection personList = new ArrayList();
    for (int i=0; i<4; i++) {
      IPersonsElement dynamicPerson = wdContext.createPersonsElement();
      dynamicPerson.setPersons("test person: " +i);
      personList.add(dynamicPerson);
    wdContext.nodePersons().bind(personList);
    wdContext.nodeDynamicText().bind(dynamicText);
    On this code i receive the following fault message:
    com.sap.tc.webdynpro.progmodel.context.ContextException: Node(TESTComponent.DynamicText.Persons): cannot bind or add elements because the node has no valid parent
    How can I bind the persons on this context please?

    Hi
    The problem in the code I see DynamicText node must be supplied before Persons one because it's a parent node.
    Binding the Persons node depends on property "singleton" setted on the node. If 'singleton'==false
    wdContext.nodeDynamicText().bind(dynamicText);
    wdContext.nodeDynamicText().getDynamicTextElementAt(0).nodePersons().bind(personList);
    If 'singleton'==true ensure that 'initializeLeadSelection' property of DynamicText node is TRUE then use
    wdContext.nodeDynamicText().bind(dynamicText);
    wdContext.nodePersons().bind(personList);
    BR
    Sergei

  • Problem with context root

    Hi,
    i have a big problem with the context root in jdeveloper 10 g, for this i can´t found a file using "getClass().getResourceAsStream", i don't know why?, i think that is the context root,
    the project uses a class WebParametersServlet extends HttpServlet, "WebParameters.SITE_ROOT" read it of a xml.
    Please help me.

    same app, but with two diff context root ?
    A web app packaged in WAR can have only one context root. Package a web app in two different WARs for two different context roots.
      weabpp1.war web.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-web-app>
      <context-root>context-1</context-root>
    </weblogic-web-app>
      weabpp2.war web.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-web-app>
      <context-root>context-2</context-root>
    </weblogic-web-app>

  • Problems with context-sensitive HTML made from importing FM 10 to RH9

    This worked in October and it doesn’t work now.
    Start with a clean, well-formatted Frame 10 book with multiple chapters.  Chapters, Heading 1, 2 and 3 headings have various FM Markers TopicAlias with ID for calling the help.
    Example of FM marker: ID_HELP_SYSTEM_DEFAULT
    Import FM book to RH 9 –pointed to an AllStyles.fm doc as a template, pagination on the above 4 headings, cross-refs mapped, on the Other Settings page the Context Sensitive Help Marker is set to TopicAlias.
    Import looks spiffy;  great TOC, Index, formatting, links, everything is exactly like I expected. Create chm file help. It looks great too. This part works well IMO.
    My.h file is formatted with Hex number to match the application’s call.
    Example:
    #define ID_HELP_SYSTEM_DEFAULT 0x3F131
    #define ID_HELP_EDITDATASET_TOOLBAR 0x3F132
    Rename my mapping h file to BSSCDefault.h and put in root directory replacing the one RH makes.  [When RoboHelp makes an h file, the numbers it assigns do not match what my application calls for. Changing these is not an option. I have hundreds of mapped IDs.]
    Reopen RH  and view the BSSCDefault. h file from RH. It has magically changed the Hex numbers to 6 digit numbers.
    Example:
    ID_HELP_SYSTEM_DEFAULT              258353      Saving Project Defaults as System Defaults
    ID_HELP_EDITDATASET_TOOLBAR  258354      Editing Datasets Using the Mouse
    The Mapped IDs are blue and are not locked.  My FM TopicAlias Markers are all listed as Map IDs, I have Map#s for them and they point to the correct topic.  The center panel  shows Assign as grayed out. The project that worked in October looked just like this too, I checked.
    Recomplie. Place new chm file in application. It will open from the menu item for Help, it will open from F1 but it will not open from any of the mapped Help buttons.
    I uninstalled/reinstalled RH 9 and tried reimporting/compileing with an unpatched version. No change, still borked.
    There has not been a change in the application; there are no new IDs in this version. I tried the new compiled help in an older version of my application and it will not work. Same behavior.
    Any suggestions? Anyone else have this problem? What am i missing?

    I dont use the settings file, I use a FrameMaker doc as a template. It has all my styles and I set the others before the import. There arent very many.
    But, since you import from Frame, would you look at this and verify?
    Looking at Map File in the Edit Map IDs dialog On the left the panel the Map ID is listed, then the Map # and finally the topic title.
    Do your Topics show a notation at the end?
    Example: Averaging Datasets #CSH_71
    Then on the Topic panel if you find that same topic you see
    Topic symbol -Averaging Datasets   [and the Topic properties show “no map ids for this topic]
    Bookmark symbol -Averaging Dataset#CSH_71 [topic properties show the map id when you select it]
    Bookmark symbol -Averaging Datasets#IX_averaging_datasets
    Bookmark symbol-Averaging Datasets#XREF_25075_Averaging Datasets
    I understand the Index and cross ref markers, but the isolated book mark is odd. You would think the notation would be on the topic
    The chm file from October works in my latest build, and the developers swearz they changed NOTHING in the way it is called. I still have to talk to QM who do the builds just in case.

  • Problems with context in JAXB and ActiveX bridge

    Hello!
    I'm using Java ActiveX Bridge for accesing from Navision to a digital invoice API developed by spanish Industry, Commerce and Tourism Department.
    I successfully executed the invoice creation process from a standalone java application. However, it doesn't work through activex bridge.
    I suspect the problem is probably related to a classloader woe. Here's the first code snippet I used:
      public static void marshal(es.mityc.facturae31.Facturae paramFacturae, String paramString)
        try
          logger.info("Loading context es.mityc.facturae31");
          JAXBContext localJAXBContext = JAXBContext.newInstance("es.mityc.facturae31");
          logger.info("Creating marshaller"); The obtained exception is:
    java.lang.NullPointerException
         at javax.xml.bind.ContextFinder.find(ContextFinder.java:279)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
         at es.mityc.facturae.utils.MarshallerUtil.marshal(MarshallerUtil.java:85)
         at com.mailgrafica.navifacturae.Facturae31.firmar(Facturae31.java:3153)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSInvoke.invoke(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.BeanDispatchImpl.invoke(Unknown Source)Then, I changed code to make sure the context creation method receives a classloader which loads classes from appropiate jar file (Facturae-API.jar):
          URL[] urls = { new URL("file:///c:/Archivos de programa/Java/jre6/axbridge/lib/Facturae-API.jar"),
                    new URL("file:///c:/Archivos de programa/Java/jre6/axbridge/lib/lib/jaxb-api.jar"),
                    new URL("file:///c:/Archivos de programa/Java/jre6/axbridge/lib/lib/jaxb-impl.jar"),
                    new URL("file:///c:/Archivos de programa/Java/jre6/axbridge/lib/lib/jsr173_1.0_api.jar")};
          ClassLoader oldcloader = Thread.currentThread().getContextClassLoader();
          URLClassLoader cloader = new URLClassLoader(urls, oldcloader);
          Thread.currentThread().setContextClassLoader(cloader);
          logger.info("Created URLClassloader");
          logger.info("Loading context es.mityc.facturae31");
          JAXBContext localJAXBContext = JAXBContext.newInstance("es.mityc.facturae31", cloader);
          logger.info("Creating marshaller");
          Marshaller localMarshaller = localJAXBContext.createMarshaller();
          FacturaeNamespacePrefixMapper localFacturaeNamespacePrefixMapper = new FacturaeNamespacePrefixMapper();
          localMarshaller.setProperty("com.sun.xml.bind.namespacePrefixMapper", localFacturaeNamespacePrefixMapper);
          FileOutputStream localFileOutputStream = new FileOutputStream(paramString + ".xsig");
          logger.info("Starting the marshal process");
          System.out.println("Starting the marshal process");
          localMarshaller.marshal(paramFacturae, localFileOutputStream);  // Exception now is produced here.  Now the exception is:
    javax.xml.bind.JAXBException: class es.mityc.facturae31.Facturae nor any of its super class is known to this context.
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:556)
         at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:478)
         at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:328)
         at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:257)
         at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:75)
         at es.mityc.facturae.utils.MarshallerUtil.marshal(MarshallerUtil.java:92)
         at com.mailgrafica.navifacturae.Facturae31.firmar(Facturae31.java:3153)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSInvoke.invoke(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.BeanDispatchImpl.invoke(Unknown Source)Could anybody help me? Thanks in advance.

    According problem 1: this is not normal behavior and you could try first to restart Bridge holding down option key to reset the preferences.
    But if you experience this also on the server I don't know if this solutions works. And according to problem 2, you should open a case on Adobe support using the little contact button top right on this page, not many users (including me) of this forum are using a server or know a lot about of that workflow :-(
    You could try a forum search also on the word server (Search for forum only works when you are on the mainpage with al the post for Bridge for some strange reason...)

  • Problem with Context-aware

    Hello,
    I have MSE 3310 ,which is connected toWCS.
    The problem that I can not see the exact location for the devices on the heatmap.
    they told me that they have already registered the Context- aware.
    can you help me please with this.
    What do I need to see the locations of the devices

    Please try to follow the quick start example: http://otn.oracle.com/products/text/x/Samples/Quick_Start/index.html

  • Problem with context mapping and data flow in a FPM application

    Hi All,
    I am trying to develop an ESS application using FPM. For the same, the requirement is to see the history of an employee in the second view.
    The first view has got just the overview information and the second one has got the detail. So, the records or the fields are the same on both the views.
    As per the FPM guidelines, the Model is residing in the Fc component and the respective Vc components are using the model data accordingly.
    I am executing the model in the Fc component calling the executable method in the interfaceController of the first view and then trying to display the output data of the BAPI in the first view which provides the overview information.This is working fine.
    But when i am trying to map the same output node to the Table UI for the second view, the record size is coming zero and thus no information is available.
    For the above issue, I am again executing the RFC in the InterfaceController of the second view to populate the records, which is incorrect as it is already executed and the data is available for the first view.
    I request you to let me know the correct approach to Context mapping and data flow when using FPM-roadmap. Is their any standard method or approach available to deal with such requirements? Please let me know.
    Thanks in advance.
    Regards
    DK

    Hi Idhaya,
    I model node is available in Fc and the Fc interface controller is being used in the first Vc and the second Vc.
    So the idea is, as the executable method is generated in the Fc, so i have created a custom method to call the executable method in Fc, where the input parameter is getting passed and this custom method is finally getting called is the first Vc.
    So , now my first Vc is ready to call the custom method in Fc and execute the RFC. Once the RFC is executed, the nodes in the Fc should get populated which is the ideal case.
    And as the Fc is used as a component in the second Vc, the same node is available to the UI elements.
    But, when I check the record size for the output node, it is always zero, for the second Vc.
    Regards
    DK

  • Problem with Context in IDoc

    Hi Experts,
    I have the following source fields:
    1 <Recordset>
          <Record>
             <LineIdentifier>ITEM</LineIdentifier>
             <Data>D1<Data>
          </Record>
          <Record>
             <LineIdentifier>ITEM</LineIdentifier>
             <Data>D2</Data>
          </Record>
    2 <Recordset>
          <Record>
             <LineIdentifier>ITEM</LineIdentifier>
             <Data>D3<Data>
          </Record>
    Target : 2 Idocs to be created!
    For each recordset, an IDoc needs to be created. For Idoc 1, there should be 2 segment of E1EDP01 to be created(coz 2 ITEM) and Idoc 2, there should be 1 segment of E1EDP01).
    I have done it as follows:
    Check if LineIdentifier (context is recordset)  = ITEM then map Record to UDF createItemrecord as follows
    for(int i =0; i < record.length; i++)
         result.addValue(record<i>);
    Then map it to RemoveContext and SplitByValue. The result is Idoc 1 has 1 segment of E1EDP01 (Value D1) and IDoc 2 has 1 segment of E1EDP01 (value D2).
    The expected result is => Idoc1 -> E1EDP01(D1) and E1EDP01(D2) and Idoc 2 -> E1EDP01(D1) and E1EDP01(D3)
    Please explain how this can be achieve.
    thanks a lot.
    Rewards guaranteed!!!
    Regards,
    Tush
    Edited by: Tush Mangad on Aug 14, 2008 8:53 AM

    I have found that XSL mapping does this quite well
    An example to create Sales Order IDocs
    Note that square brackets in the generate statement have been interpreted by this editor as a strikethrough
    Input file
    <?xml version="1.0" encoding="UTF-8"?>
    <input>
         <row>
              <ordernum>ORD1</ordernum>
              <orderitem>ITEM1</orderitem>
              <data>ABC</data>
         </row>
         <row>
              <ordernum>ORD1</ordernum>
              <orderitem>ITEM2</orderitem>
              <data>DEF</data>
         </row>
         <row>
              <ordernum>ORD2</ordernum>
              <orderitem>ITEM1</orderitem>
              <data>GHI</data>
         </row>
    </input>
    XSL
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <xsl:output method="xml" indent="yes"/>
         <!-- -->
         <xsl:template match="/">
              <CRMXIF_ORDER_SAVE_M01>
                   <xsl:apply-templates select="//input"/>
                   <!--  -->
              </CRMXIF_ORDER_SAVE_M01>
         </xsl:template>
         <!-- -->
         <xsl:template match="input">
              <xsl:variable name="sales_order" select="//row"/>
              <xsl:for-each select="$sales_order">
                   <xsl:if test="generate-id(.)=generate-id($sales_order[ordernum=current()/ordernum])">
                        <!-- New Order Number -->
                        <xsl:if test="position()!=1">
                             <xsl:text disable-output-escaping="yes">&lt;</xsl:text>/E101CRMXIF_BUSTRANS<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
                             <xsl:text disable-output-escaping="yes">&lt;</xsl:text>/IDOC<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
                        </xsl:if>
                        <xsl:text disable-output-escaping="yes">&lt;</xsl:text>IDOC BEGIN=<xsl:text disable-output-escaping="yes">&quot;</xsl:text>1<xsl:text disable-output-escaping="yes">&quot;&gt;</xsl:text>
                        <EDI_DC40 SEGMENT="1">
                             <TABNAM>EDI_DC40</TABNAM>
                             <MANDT>010</MANDT>
                             <DOCREL>620</DOCREL>
                             <STATUS>30</STATUS>
                             <DIRECT>1</DIRECT>
                             <OUTMOD>2</OUTMOD>
                             <IDOCTYP>CRMXIF_ORDER_SAVE_M01</IDOCTYP>
                             <MESTYP>CRMXIF_ORDER_SAVE_M</MESTYP>
                             <SNDPRT>LS</SNDPRT>
                             <RCVPRT>LS</RCVPRT>
                        </EDI_DC40>
                        <xsl:text disable-output-escaping="yes">&lt;</xsl:text>E101CRMXIF_BUSTRANS SEGMENT=<xsl:text disable-output-escaping="yes">&quot;</xsl:text>1<xsl:text disable-output-escaping="yes">&quot;&gt;</xsl:text>
                        <!-- Build Sales Order BUSTRANS data -->
                        <xsl:call-template name="bustrans_Template">
                             <xsl:with-param name="bustrans" select="current()"/>
                        </xsl:call-template>
                        <!-- Build Sales Order BUSTRANS_ITEM data -->
                        <xsl:call-template name="bustransItem_Template">
                             <xsl:with-param name="bustransItem" select="current()"/>
                        </xsl:call-template>
                   </xsl:if>
                   <!-- -->
                   <!-- Same Order Number - multiple items encountered -->
                   <!-- Build Sales Order BUSTRANS_ITEM data -->
                   <xsl:if test="generate-id(.)!=generate-id($sales_order[ordernum=current()/ordernum])">
                        <xsl:call-template name="bustransItem_Template">
                             <xsl:with-param name="bustransItem" select="current()"/>
                        </xsl:call-template>
                   </xsl:if>
                   <!-- -->
                   <xsl:if test="position()=last()">
                        <xsl:text disable-output-escaping="yes">&lt;</xsl:text>/E101CRMXIF_BUSTRANS<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
                        <xsl:text disable-output-escaping="yes">&lt;</xsl:text>/IDOC<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
                   </xsl:if>
              </xsl:for-each>
         </xsl:template>
         <!-- -->
         <xsl:template name="bustrans_Template">
              <xsl:param name="bustrans"/>
              <APPL_SNAME>CRMXIF_BUSTRANS</APPL_SNAME>
              <!-- Business Transaction: Sales -->
              <E101CRMXIF_SALES_X SEGMENT="1">
                   <APPL_SNAME>CRMXIF_SALES_X</APPL_SNAME>
                   <DATAX>X</DATAX>
                   <E101CRMXIF_SALES SEGMENT="1">
                        <APPL_SNAME>CRMXIF_SALES</APPL_SNAME>
                        <!-- Sold-To Party's External Reference -->
                        <PO_NUMBER_SOLD>
                             <xsl:value-of select="ordernum"/>
                        </PO_NUMBER_SOLD>
                   </E101CRMXIF_SALES>
              </E101CRMXIF_SALES_X>
         </xsl:template>
         <!-- -->
         <xsl:template name="bustransItem_Template">
              <xsl:param name="bustransItem"/>
              <!-- Business Transaction: Item -->
              <E101CRMXIF_BUSTRANS_ITEM SEGMENT="1">
                   <APPL_SNAME>CRMXIF_BUSTRANS_ITEM</APPL_SNAME>
                   <OBJECT_TASK>I</OBJECT_TASK>
                   <!-- Item Number in Document -->
                   <ITEM_NUMBER>
                        <xsl:value-of select="orderitem"/>
                   </ITEM_NUMBER>
                   <!-- Product ID -->
                   <PRODUCT_ID>
                        <xsl:value-of select="data"/>
                   </PRODUCT_ID>
              </E101CRMXIF_BUSTRANS_ITEM>
         </xsl:template>
    </xsl:stylesheet>
    Result
    <?xml version="1.0" encoding="UTF-8"?>
    <CRMXIF_ORDER_SAVE_M01 xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <IDOC BEGIN="1">
              <EDI_DC40 SEGMENT="1">
                   <TABNAM>EDI_DC40</TABNAM>
                   <MANDT>010</MANDT>
                   <DOCREL>620</DOCREL>
                   <STATUS>30</STATUS>
                   <DIRECT>1</DIRECT>
                   <OUTMOD>2</OUTMOD>
                   <IDOCTYP>CRMXIF_ORDER_SAVE_M01</IDOCTYP>
                   <MESTYP>CRMXIF_ORDER_SAVE_M</MESTYP>
                   <SNDPRT>LS</SNDPRT>
                   <RCVPRT>LS</RCVPRT>
              </EDI_DC40>
              <E101CRMXIF_BUSTRANS SEGMENT="1">
                   <APPL_SNAME>CRMXIF_BUSTRANS</APPL_SNAME>
                   <E101CRMXIF_SALES_X SEGMENT="1">
                        <APPL_SNAME>CRMXIF_SALES_X</APPL_SNAME>
                        <DATAX>X</DATAX>
                        <E101CRMXIF_SALES SEGMENT="1">
                             <APPL_SNAME>CRMXIF_SALES</APPL_SNAME>
                             <PO_NUMBER_SOLD>ORD1</PO_NUMBER_SOLD>
                        </E101CRMXIF_SALES>
                   </E101CRMXIF_SALES_X>
                   <E101CRMXIF_BUSTRANS_ITEM SEGMENT="1">
                        <APPL_SNAME>CRMXIF_BUSTRANS_ITEM</APPL_SNAME>
                        <OBJECT_TASK>I</OBJECT_TASK>
                        <ITEM_NUMBER>ITEM1</ITEM_NUMBER>
                        <PRODUCT_ID>ABC</PRODUCT_ID>
                   </E101CRMXIF_BUSTRANS_ITEM>
                   <E101CRMXIF_BUSTRANS_ITEM SEGMENT="1">
                        <APPL_SNAME>CRMXIF_BUSTRANS_ITEM</APPL_SNAME>
                        <OBJECT_TASK>I</OBJECT_TASK>
                        <ITEM_NUMBER>ITEM2</ITEM_NUMBER>
                        <PRODUCT_ID>DEF</PRODUCT_ID>
                   </E101CRMXIF_BUSTRANS_ITEM>
              </E101CRMXIF_BUSTRANS>
         </IDOC>
         <IDOC BEGIN="1">
              <EDI_DC40 SEGMENT="1">
                   <TABNAM>EDI_DC40</TABNAM>
                   <MANDT>010</MANDT>
                   <DOCREL>620</DOCREL>
                   <STATUS>30</STATUS>
                   <DIRECT>1</DIRECT>
                   <OUTMOD>2</OUTMOD>
                   <IDOCTYP>CRMXIF_ORDER_SAVE_M01</IDOCTYP>
                   <MESTYP>CRMXIF_ORDER_SAVE_M</MESTYP>
                   <SNDPRT>LS</SNDPRT>
                   <RCVPRT>LS</RCVPRT>
              </EDI_DC40>
              <E101CRMXIF_BUSTRANS SEGMENT="1">
                   <APPL_SNAME>CRMXIF_BUSTRANS</APPL_SNAME>
                   <E101CRMXIF_SALES_X SEGMENT="1">
                        <APPL_SNAME>CRMXIF_SALES_X</APPL_SNAME>
                        <DATAX>X</DATAX>
                        <E101CRMXIF_SALES SEGMENT="1">
                             <APPL_SNAME>CRMXIF_SALES</APPL_SNAME>
                             <PO_NUMBER_SOLD>ORD2</PO_NUMBER_SOLD>
                        </E101CRMXIF_SALES>
                   </E101CRMXIF_SALES_X>
                   <E101CRMXIF_BUSTRANS_ITEM SEGMENT="1">
                        <APPL_SNAME>CRMXIF_BUSTRANS_ITEM</APPL_SNAME>
                        <OBJECT_TASK>I</OBJECT_TASK>
                        <ITEM_NUMBER>ITEM1</ITEM_NUMBER>
                        <PRODUCT_ID>GHI</PRODUCT_ID>
                   </E101CRMXIF_BUSTRANS_ITEM>
              </E101CRMXIF_BUSTRANS>
         </IDOC>
    </CRMXIF_ORDER_SAVE_M01>

  • Problem with context attributes

    Hello All,
      I am currently experiencing some strange behaviour in my WD application so I hope any experts here can give me a hand or spot my mistake.
    <u><b>Scenario</b></u>
    1) View A is being initialised and by default, will display the name of the manager.
    2) This name is being stored as a string attribute "tempName" in a context node of cardinality 1..1.
    3) Someone then decides to change the name of the manager in View A but half way, he changes his mind and clicks on a 'cancel button'.
    4) This cancel button has an action tagged to it and will then transfer the contents of the attribute "tempName" back to the UI element.
    <u><b>Problem</b></u>
    The problem that I am experiencing now is that for some strange reason, the name that I stored in "tempName" becomes a NULL whenever it attempts to transfer the contents back to the UI element.
    To ensure that tempName is assigned the correct data, I issued a "wdComponentAPI.getMessageManager().reportSuccess("From SearchButton :" + wdContext.currentApproverInfoElement().getPrevious1Name());" so that I know for sure that the correct data is being writtena nd displayed back to me.
    Hence, it is very puzzling as I have no idea whatelse may have gone wrong. Any suggestions or feedback will be greatly appreciated. Thank you.
    from
    Kwok Wei

    Hi Anilkumar,
      That is correct.
    During initialisation, I actually made a copy of the contents :
    1) String name1 = wdContext.currentApproverInfoElement().getApprover1Name();
    2) wdContext.currentApproverInfoElement().setPrevious1Name(name1);
    However, it seems that this information is lost when I try to recover back the data when someone hits the cancel button. The code below is assgined to the cancel action of the button.
    3) String previous1Name = wdContext.currentApproverInfoElement().getPrevious1Name();
    4) wdContext.currentApproverInfoElement().setApprover1Name(previous1Name);
    After lines 3) and 4) are executed, the UI Element is showing NULL instead.
    The UI element is binded to the context attribute ApproverInfo.Approver1Name.
    from
    Kwok Wei

  • Problem with FIle DownLoad

    Hi All,
    I am working on project where I need to display all the files (on the UI screen)which are in  windows folder with a download link.
    I used IWDDownload UI element for  downloading the file. Its working fine but problem is , when ever I download a file for first time its working fine. Later what ever I download other files, I was able to see only first file download. I guess this is problem with context binding but I am not sure.
    I used for loop to iterate all the files in folder and I binded the file name to IWD Download UI element using bindText option.I am creating UI elements dynamically in wdDoModifyView and it will call another method to bind to context.(As SAP Suggested not to modify any context elements in wdDoModifyView method).
    Please help me in this regard.
    Ramesh

    Ramesh,
    You need N dynamic binary attributes or IWDResource (in newer versions), one per file. Create them either in wdDoInit of view or in some suitable action handler.
    Then you have to populate IWDResource or set bytes of binary attributes. Check corresponding WD tutorials how to do this.
    In wdDoModifyView create IWDFileDownload control per every attribute and bind either "data" property (to binary attribute) or "resource".
    Valery Silaev

  • Help with context index with /, -, @

    Hi all!
    I have just start work with oracle. I have a problem with context index. Please help me. My problem is :
    I have two column 'name' and 'address'. I index two column with context index (for example : Two index have name is 'Index1' and 'Index 2' ). I set parameter ('STOPLIST ctxsys.empty_stoplist') and i insert four rows such as : ('A','80/3 cong hoa'), ('B','80-3 cong hoa'), ('C','80@3 cong hoa'), ('D','80 3 cong hoa'). But when i execute this select :
    select * from tablename where contains(address, '3 cong hoa') > 0
    Result will return to me 4 rows But i just want one rows is ('D', '80 3 cong hoa').
    I know oracle will convert character '/', '-', '@' to space so result will return 4 rows and i don't know how to oracle keep character '/', '-', '@' when oracle index. I just want to add with 'Index2' for column 'address' and i don't want to add with 'Index1' for column 'name'
    Please help me, and thanks for your attention

    So you want "/", "-" and "@" to link tokens, but you want "." to break numeric tokens?
    OK, we can do that - though it seems a slightly odd requirement.
    There are two special characters NUMJOIN and NUMGROUP which are used for purely numeric tokens. The default will vary by locale, but for English-speaking locales the defaults are "." and "," - so a number such as 1,234,567.89 will be treated as a single token. In French (and other) speaking locales, they are reversed since numbers are normally written as 1.234.567,89.
    If you want to disable these NUMJOIN and NUMGROUP characters, so that numbers are always split into component tokens, then you can set both of the to the space character (it won't allow NULL or '', which would be more logical in my opinion).
    drop table foo;
    create table foo (bar varchar2(200));
    insert into foo values ('80/3 cong hoa');
    insert into foo values ('80-3 cong hoa');
    insert into foo values ('80@3 cong hoa');
    insert into foo values ('80 3 cong hoa');
    insert into foo values ('80.3 cong hoa');
    exec ctx_ddl.drop_preference('foo_lexer')
    exec ctx_ddl.create_preference('foo_lexer', 'basic_lexer')
    exec ctx_ddl.set_attribute('foo_lexer', 'PRINTJOINS', '/-@')
    exec ctx_ddl.set_attribute('foo_lexer', 'PRINTJOINS', '/-@')
    exec ctx_ddl.set_attribute('foo_lexer', 'NUMJOIN', ' ')
    exec ctx_ddl.set_attribute('foo_lexer', 'NUMGROUP', ' ')
    create index foo_index on foo(bar) indextype is ctxsys.context
    parameters ('lexer foo_lexer');
    select * from foo where contains (bar, '3 cong hoa') > 0;Output is:
    BAR
    80 3 cong hoa
    80.3 cong hoa

  • Problem with filling nodes of a context with data

    hi,
    i've got the following problem with filling a controller context:
    the context of the controller looks like:
    Context
    |-Node1             0..n singleton
      |-Subnode1        0..n singleton
      | |-SubVal1.1
      | |-SubVal1.2
      |-Subnode2        0..n singleton
      | |-Subval2.1
      | |-Subval2.2
      |-Val1.1
      |-Val1.2
    that means every Element of Node1 should have its own Subnode-Elements & Val1-Values
    in wdDoInit() of the controller I fill the context like this:
    Collection Node1, SubNode1, SubNode2
    for (Iterator iter = Node1.iterator(); iter.hasNext;) {
       newNode1NodeElement = wdContext.createNode1Element();
       newNode1NodeElement.set... //setting the values
       wdContext.nodeNode1().addElement(newNode1NodeElement);
       for (Iterator iter2=Subnode1.iterator(); iter2.hasNext;) {
          newSubnode1NodeElement = wdContext.createSubnode1Element();
          newSubNode1NodeElement.set... // setting the SubVal1.x
          wdContext.nodeSubnode1.addElement(newSubnode1NodeElement);
       for (Iterator iter3=SubNode2.iterator(); iter3.hasNext;) {
          newSubnode2NodeElement = wdContext.createSubnode2Element();
          newSubNode2NodeElement.set... // setting the SubVal2.x
          wdContext.nodeSubnode2.addElement(newSubnode2NodeElement);
    i've got the impression, that <b>all</b> my SubNodes are filled in the <b>first</b> Node1-Element. is there an error in the code above? because in the first place, i see every values in the first Element of Node1-views and if i navigate to the next Element of Node1, every views are empty.
    for every Node (Node1, Subnode1, Subnode2) i've got an own view, that maps its context to the corresponding Node of the controller context, e.g for the SubNode1-View:
    Context                  Context
    |                        ....
    |- ViewNode      --->    ..|- Subnode1
      |- SubVal1.1   --->    ..   |-SubVal1.1
      |- SubVal1.2   --->    ..   |-SubVal1.2
    in these views, i navigate through the nodes via
    wdContext.nodeViewNode().move...()
    in the SubNode1-View i see the SubVal1.1, SubVal1.2 (that's what i want) <b>and</b> additional SubVal2.1, SubVal2.2 (that's what I don't want...)
    kind regards, achim
    ps: i've studied the Master/Detail-Tutorial and i think the choice for cardinality 0..n and type singleton is correct in my case.

    hmm, let's look at the code:
    for (Iteration Node1) {
      newNode1NodeElement = wdContext.createNode1Element();
      wdContext.nodeNode1().addElement(newNode1NodeElement);
      for (Iteration SubNode1) {
         newSubNode1NodeElement = wdContext.createSubNodeXElement();
         newNode1NodeElement.nodeSubNode1().addElement(newSubNode1NodeElement);
         for (Iteration SubNode1.1) {
            newSubNode1.1NodeElement = <b>wdContext</b>.createSubNode1.1Element();
            newSubNode1NodeElement.nodeSubNode1.1.addElement(newSubNode1.1NodeElement);
       for (Iteration SubNode2) {
          newSubNode2NodeElement = wdContext.createSubNode2Element();
          newNode1NodeElement.nodeSubNode2.addElement(newSubNode2NodeElement);
    is there an error in creating the SubNode1.1-Node (bold line)?
    if the code is correct, perhaps it's only a viewing problem:
    i use views that point on every node and display the values in that node. if i move in the view for Node1 to another node, the values for SubNode1 point to the correct values too, but the values for SubNode1.1 still stay on the old values. is the move of a grandfather node not correctly propagated to his first child?
    kr, achim

Maybe you are looking for

  • ICommand export diffculties

    I am trying to export all the data objects and reports while getting ODBC exception: C:\EXPORTS>iCommand cmd=EXPORT file="vo6.report" all=1 Oracle BAM Command Utility Indigo Prerelease (Indigo 3) [Build 3 4 5109 0, ADC Version 862.0] Copyright (c) 20

  • The latest Pages won't save new docs and won't open some old ones. What do I do?

    The latest Pages won't save new docs and won't open some old ones. What do I do?

  • 2 way communication

    What is the best way to get 2 way communication with a servlet from a Java Web Start Application using http protocol? Is this something related with http 1.1?

  • WHERE LOCATED ARRANGE DOCUMENT IN PHOTOSHOP ELEMENT 11

    same tool located on tool bar in photoshop element 9. on element 11 it is not visible. HELP

  • Not Getting Default Date

    I have tasks in my schedule that are not being driven or calculating as they should.  I broke the link on one task and instead of giving me the default date of when the project started, it has hard date instead.  I've checked the hours in my calendar