Use XML as a component reference

I'm trying to load a series of custom components into an mxml using an XML as my reference. In PHP I would simply eval() the object name and that would be that. Flex doesn't have an eval. I'm wondering if there's a way for me to do something like this:
function readXML(theXML) {
     for each(var x in theXML.children()) {
          var newComp = eval(x.@name);
          myViewStack.addChild(newComp);
Anybody?

Well, almost...
TypeError: Error #1034: Type Coercion failed: cannot convert [myCustomContainerName]$ to mx.containers.Canvas.
The custom containers are created using the Canvas class. I even tried using "as Canvas" after calling the getDefinition. Nothing seems to work. I've been at this for HOURS now and I'm feeling really stupid. I'm going to attach my source this time.
Thx.
I'm not sure the attachment worked so:
public function drawComponents(x:XML):void
                mainViewStack = new ViewStack();
                for each(var y:XML in x.item) {
                    if(ApplicationDomain.currentDomain.hasDefinition(y.@name) == true) {
                        var newChild:Canvas = new Canvas();
                        var newLabel:String = y.@label;
                        newChild = Canvas(ApplicationDomain.currentDomain.getDefinition(y.@name));
                        newChild.label = newLabel;
                    } else {
                        Alert.show("not defined");
                    mainViewStack.addChild(newChild);

Similar Messages

  • How to use XML / XPath in JAVA (in 1.4) which third part component to use?

    How to use XML / XPath in JAVA (in 1.4)
    I'm absolutely novice in XML
    but I need to query XML using XPath
    As I understand XPath become avalible only in Java 1.5
    But I use 1.4 (project requirement)
    Which third part component could you recomend?

    Can anyone help me with this XPath query
    I get result [title: null]
    import java.io.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.w3c.dom.*;
    import org.jaxen.*;
    import org.jaxen.dom.*;
    import org.jaxen.saxpath.*;
    import java.util.*;
    public class TestX {
         public void ggg() {
              try {
                   File f = new File("journal.xml");
                   DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                   org.w3c.dom.Document doc = docBuilder.parse(f);
                   XPath xpath = new DOMXPath( "/journal/article/title" );
                   List result = (List) xpath.evaluate(doc);
                   System.out.println(result.get(0));
              } catch (Exception e) {
                       e.printStackTrace();
         public static void main(String[] args) {
              TestX tx = new TestX();
              tx.ggg();
    }journal.xml
    <journal>
        <article id="article.1">
            <title>Art1</title>
            <author>
               <first>Bob</first>
               <last>McWhirter</last>
            </author>
            <text>
            </text>
        </article>
        <article id="article.2">
            <title>Art2</title>
            <author>
               <first>James</first>
               <last>Strachan</last>
            </author>
            <text>
            </text>
        </article>
    </journal>

  • Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin

    Hi ,
    We have a catalog that defines 2 types of products (they have too many different properties), so wanted to keep them on two different MDEX engines and serve the applications requests. Here DB catalog and front end ATG application is same for both the MDEX instances.
    Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin?
    Thanks
    Dev

    Hi, also have had some problem some monthes ago - I created separete component ProductCatalogSimpleIndexingAdminSecond. After that one of my colleage gave me some advice:
    The creating separate component like ProductCatalogSimpleIndexingAdmin for the second IOC is possible way for resolving your situation. But I afraid that this way will be required creating mane duplicates for already existed components.
    In my opinion the better way is the following:
    starting from AssemblerApplicationConfiguration and ApplicationConfiguration component. It contains details for connecting between ATG and Endeca. Of course you should configure different components for different Endeca Apps.
    After that:
    Find all components that uses AssemblerApplicationConfiguration and ApplicationConfiguration. Customize these components for using one or another  *Configuration component depending on what index works. (many variants released it: the most simple global custom component with flag.)
    Then customize the existed ProductCatalogSimpleIndexingAdmin. Using one or another IOC  and setting the flag in global custom component when index started. You can add some methods into your custom ProductCatalogSimpleIndexingAdmin like:
    Execute baseline index for both IOC (one by one)
    Execute baseline for IOC 1
    Execute baseline for IOC 2.
    Note: you should be afraid about incremental (partial) index in this configuration. But resolving conflicts in incremental index should be done after full implementation these changes.
    Regards

  • [Forum FAQ] How do i use xml stored in database as dataset in SQL Server Reporting Services?

    Introduction
    There is a scenario that users want to create SSRS report, the xml used to retrieve data for the report is stored in table of database. Since the data source is not of XML type, when we create data source for the report, we could not select XML as Data Source
    type. Is there a way that we can create a dataset that is based on data of XML type, and retrieve report data from the dataset?
    Solution
    In this article, I will demonstrate how to use xml stored in database as dataset in SSRS reports.
    Supposing the original xml stored in database is like below:
    <Customers>
    <Customer ID="11">
    <FirstName>Bobby</FirstName>
    <LastName>Moore</LastName>
    </Customer>
    <Customer ID="20">
    <FirstName>Crystal</FirstName>
    <LastName>Hu</LastName>
    </Customer>
    </Customers>
    Now we can create an SSRS report and use the data of xml type as dataset by following steps:
    In database, create a stored procedure to retrieve the data for the report in SQL Server Management Studio (SSMS) with the following query:
    CREATE PROCEDURE xml_report
    AS
    DECLARE @xmlDoc XML;  
    SELECT @xmlDoc = xmlVal FROM xmlTbl WHERE id=1;
    SELECT T.c.value('(@ID)','int') AS ID,     
    T.c.value('(FirstName[1])','varchar(99)') AS firstName,     
    T.c.value('(LastName[1])','varchar(99)') AS lastName
    FROM   
    @xmlDoc.nodes('/Customers/Customer') T(c)
    GO
    P.S. This is an example for a given structured XML, to retrieve node values from different structured XMLs, you can reference here.
    Click Start, point to All Programs, point to Microsoft SQL Server, and then click Business Intelligence Development Studio (BIDS) OR SQL Server Data Tools (SSDT). If this is the first time we have opened SQL Server Data Tools, click Business Intelligence
    Settings for the default environment settings.
    On the File menu, point to New, and then click Project.
    In the Project Types list, click Business Intelligence Projects.
    In the Templates list, click Report Server Project.
    In Name, type project name. 
    Click OK to create the project. 
    In Solution Explorer, right-click Reports, point to Add, and click New Item.
    In the Add New Item dialog box, under Templates, click Report.
    In Name, type report name and then click Add.
    In the Report Data pane, right-click Data Sources and click Add Data Source.
    For an embedded data source, verify that Embedded connection is selected. From the Type drop-down list, select a data source type; for example, Microsoft SQL Server or OLE DB. Type the connection string directly or click Edit to open the Connection Properties
    dialog box and select Server name and database name from the drop down list.
    For a shared data source, verify that Use shared data source reference is selected, then select a data source from the drop down list.
    Right-click DataSets and click Add Dataset, type a name for the dataset or accept the default name, then check Use a dataset embedded in my report. Select the name of an existing Data source from drop down list. Set Query type to StoredProcedure, then select
    xml_report from drop down list.
    In the Toolbox, click Table, and then click on the design surface.
    In the Report Data pane, expand the dataset we created above to display the fields.
    Drag the fields from the dataset to the cells of the table.
    Applies to
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Reporting Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    I have near about 30 matrics. so I need a paging. I did every thing as per this post and it really works for me.
    I have total four columns. On one page it should show three and the remaining one will be moved to next page.
    Problem occurs when in my first row i have 3 columns and in next page if I have one columns then it show proper on first page but on second page also it gives me three columns insted of one. the first column data is exactly what I have but in remaining two
    columns it shows some garbage data.
    I have data like below.
    Metric ColumnNo RowNo
    1 1
    1
    2 2
    1
    3 3
    1
    4 1
    2
    so while grouping i have a row parent group on RowNo and Column group on ColumnNo.
    can anyone please advice on this.

  • C# compiling error: 'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?)

    Hello experts,
    I'm totally new to C#. I'm trying to modify existing code to automatically rename a file if exists. I found a solution online as follows:
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
            string tempFileName = fileName;
            int count = 1;
            while (allFiles.Contains(tempFileName ))
                tempFileName = String.Format("{0} ({1})", fileName, count++); 
            output = Path.Combine(folderPath, tempFileName );
            string fullPath=output + ".xml";
    However, it gives the following compilation errors
    for the Select and Contain methods respectively.:
    'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found
    (are you missing a using directive or an assembly reference?)
    'System.Array' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'System.Array' could be
    found (are you missing a using directive or an assembly reference?)
    I googled on these errors, and people suggested to add using System.Linq;
    I did, but the errors persist. 
    Any help and information is greatly appreciated.
    P. S. Here are the using clauses I have:
    using System;
    using System.Data;
    using System.Windows.Forms;
    using System.IO;
    using System.Collections.Generic;
    using System.Text;
    using System.Linq;

    Besides your issue with System.Core, you also have a problem with the logic of our code, particularly your variables. It is confusing what your variables represent. You have an infinite loop, so the last section of code is never reached. Take a look 
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.IO;
    namespace consAppFileManipulation
    class Program
    static void Main(string[] args)
    string fullPath = @"c:\temp\trace.log";
    string folderPath = @"c:\temp\";
    string fileName = "trace.log";
    string output = "";
    string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath);
    string extension = Path.GetExtension(fullPath);
    string path = Path.GetDirectoryName(fullPath);
    string newFullPath = fullPath;
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
    string tempFileName = fileName;
    int count = 1;
    //THIS IS AN INFINITE LOOP
    while (allFiles.Contains(fileNameOnly))
    tempFileName = String.Format("{0} ({1})", fileName, count++);
    //THIS CODE IS NEVER REACHED
    output = Path.Combine(folderPath, tempFileName);
    fullPath = output + ".xml";
    //string fullPath = output + ".xml";
    UML, then code

  • Problem in parsing-invalid use of a parameter entity reference

    Hi
    I am getting an error in parsing the xml message. The first few lines of DTD are as follows.
    <!ENTITY % contractIdentifier "contractRef , branch">
    <!ENTITY % ccyDetails "amount , settlementDate , dealRate">
    <!ENTITY % schedule "count , schedule">
    <!ENTITY % paymentDetails "payIndicator , ourPayAccount , theirAgent ,
    theirAgentsAgent , beneficiaryAccount , receiveIndicator , ourReceiveAccount
    , suppressCable , suppressConfirmation , pvpIndicator">
    <!ENTITY % commonCore "%paymentDetails; , narrative* , abaNumber ,
    cleanRiskIndicator , creditLine , directSent , federalFundsFlag , chipsCode
    , riskTakingUnit">
    I am getting the error as
    invalid use of a parameter entity reference line no 5.
    Can somebody help me
    Thanks
    Prashant

    Parameter entity references may not be used within markup in an internal DTD.
    To use a DTD with parameter entity reference use a external DTD.

  • Using XML to create files through API

    Hi.
    I created a new custom type - a subclass of "Document", with a few private attributes.
    I wrote a small XML file that creates an instance of that type.
    I have no problem using that XML with FTP or with the web interface - it parses the XML automatically and creates my custom file.
    However, when I try to use the java API to do the same, it just copies the XML file into IFS, but doesn't parse it or creates the custom file that is defined in it.
    I am using the IFSFileSystem.createDocument method, with parsing set to true, and "null" for the callback parameter.
    Of course, the XML parser is registered (as I said, it works with FTP and web interface).
    Please help.
    Thanks, Edo.

    Sure .. you can use XML as the data source. If you have DW8,
    you can even
    do it right in the Dreamweaver Interface.
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "melneum" <[email protected]> wrote in
    message
    news:e7n37t$40m$[email protected]..
    > Is it possable to use xml to create user lists that can
    then be searched
    > to
    > allow access to a section of a site like you can do with
    asp? I would
    > prefer
    > not to use any database stuff on a site i am currently
    working on but need
    > a
    > secured login area.
    >
    > Any ideas??
    >

  • How to use XML functions in CEP

    Hi,
    I am trying to implement XML functions in CEP. But i am getting error while using XMl function in config.xml file.
    Please provide some help to resolve this issue.
    Adapter Class
    package com.bea.wlevs.example.adapter.XML_CEP;
    import com.bea.wlevs.ede.api.EventProperty;
    import com.bea.wlevs.ede.api.EventType;
    import com.bea.wlevs.ede.api.EventTypeRepository;
    import com.bea.wlevs.ede.api.RunnableBean;
    import com.bea.wlevs.ede.api.StreamSender;
    import com.bea.wlevs.ede.api.StreamSource;
    import com.bea.wlevs.util.Service;
    public class XMLAdapter implements RunnableBean, StreamSource {
    private String id;
    private String name;
    private StreamSender eventSender;
    private EventTypeRepository etr_;
    public XMLAdapter() {
    super();
    public void run() {
         setName("abc");
    generateMessage();
    public void setId(String id)
         this.id = id;
    public void setName(String i)
         this.name = i;
    @Service
    public void setEventTypeRepository(EventTypeRepository etr) {
         etr_ = etr;
    private void generateMessage() {
         EventType type = etr_.getEventType("XMLEvent");
         EventProperty messageProp = type.getProperty("name");
         EventProperty msgProp = type.getProperty("msg");
         Object event = type.createEvent();
         messageProp.setValue(event, name);
         msgProp.setValue(event, "<PDRecord><PDId>6</PDId><PDName>hello1</PDName></PDRecord>");
         eventSender.sendInsertEvent(event);
    public void setEventSender(StreamSender sender) {
    eventSender = sender;
    public synchronized void suspend() {
    EPN Assembly file
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
         xmlns:wlevs="http://www.bea.com/ns/wlevs/spring" xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
         xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
         xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
    http://www.oracle.com/ns/ocep/jdbc
    http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
    http://www.oracle.com/ns/ocep/spatial
    http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd">
         <wlevs:event-type-repository>
              <wlevs:event-type type-name="XMLEvent">
                   <wlevs:properties>
                        <wlevs:property name="msg" type="xmltype" />
                        <wlevs:property name="name" type="char" length="256" />
                   </wlevs:properties>
              </wlevs:event-type>
         </wlevs:event-type-repository>
         <wlevs:adapter advertise="true" id="XML_Adapter"
              class="com.bea.wlevs.example.adapter.XML_CEP.XMLAdapter">
              <wlevs:listener ref="IPStream" />
              <wlevs:instance-property name="id" value="123" />
              <wlevs:instance-property name="name" value="Kanika" />
         </wlevs:adapter>
         <wlevs:processor id="XML_processor" provider="cql">
              <wlevs:listener ref="OPStream" />
         </wlevs:processor>
         <wlevs:channel id="IPStream" event-type="XMLEvent">
              <wlevs:listener ref="XML_processor" />
         </wlevs:channel>
         <wlevs:channel id="OPStream" event-type="XMLEvent">
              <wlevs:listener ref="bean" />
         </wlevs:channel>
         <bean id="bean" class="com.bea.wlevs.example.outputBean.XML_CEP.OutputBean">
         </bean>
    </beans>
    Config.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
    <processor>
    <name>XML_processor</name>
    <rules>
              <query id="q1"><![CDATA[
             SELECT
                 XMLEXISTS(
                 "for $i in /PDRecord RETURN $i/PDName"       *// I am getting error at this line*       
             PASSING BY VALUE 
                    msg as "."
                     RETURNING CONTENT
                      ) XMLData
                  FROM IPStream
              ]]></query>
    </rules>
    </processor>
    </wlevs:config>
    Output Bean Class
    package com.bea.wlevs.example.outputBean.XML_CEP;
    import com.bea.wlevs.ede.api.EventType;
    import com.bea.wlevs.ede.api.EventTypeRepository;
    import com.bea.wlevs.ede.api.StreamSink;
    import com.bea.wlevs.example.event.XML_CEP.DummyEvent;
    import com.bea.wlevs.util.Service;
    public class OutputBean implements StreamSink {
         EventTypeRepository etr_;
         @Service
         public void setEventTypeRepository(EventTypeRepository etr) {
              etr_ = etr;
    public void onInsertEvent(Object event) {
         EventType eventType = etr_.getEventType(event);
         String prop = (String)eventType.getPropertyValue(event, "name");
         String prop2 = (String)eventType.getPropertyValue(event, "msg");
         System.out.println("Tuple Message: " + prop + ":" + prop2);
    Error i am getting is:
    <Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY q1 AS
         SELECT
                   XMLQUERY(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream
              >
    <Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY q1 AS
         SELECT
                   XMLQUERY>>(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream
    generic syntax error. The syntax expects STRING token>
    <Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServerTrace> <BEA-000000> <oracle.cep.parser.SyntaxException: generic syntax error>
    <Jun 29, 2011 7:53:59 PM IST> <Error> <CQLProcessor> <BEA-000000> <Failed to create statement [q1].
    Invalid statement: "SELECT
                   XMLQUERY>>(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream"
    Description: generic syntax error
    Cause: This DDL command has syntax error
    Action: The syntax expects STRING token>
    <Jun 29, 2011 7:53:59 PM IST> <Error> <Deployment> <BEA-2045016> <The application context "XML_CEP" could not be started. Could not initialize component
    "<unknown>":
    Invalid statement: "SELECT
                   XMLQUERY>>(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream"
    Description: generic syntax error
    Cause: This DDL command has syntax error
    Action: The syntax expects STRING token>
    <Jun 29, 2011 7:54:00 PM IST> <Notice> <Deployment> <BEA-2045001> <The application bundle "XML_CEP" was undeployed successfully>
    Thanks in advance.

    Hi Vikram,
    I need some more help from your side.
    It would be great help if you will let me know that how to extract the data from particular XML tag.
    As of now i want to extract particular XML node by applying that query and the result i am getting is: <applicationID>Engage</applicationID>
    I just want to know if I want to extract only data from this XML node i.e Engage instaed of *<applicationID>Engage</applicationID>*
    Then what will be the query?
    Thanks in Advance

  • Problem in impelementing tree in jsp using XML

    I am trying to impelemnt "treeview.htc" to impelement tree structure in my jsp page.I am using XML file to get the elements for treenodes.Now My Problem:
    Basically i have one ASP page with me, and there they have done all this things.But when i try to impelement the same thing in JSP it is thrwing me error.
    <b>Error: It is unable to detect the namespace i have mentioned in :>
    IT is not able to detect the "TVNS" namespace..Hence showing error while saving the jsp file</b>
    <code>
    <?XML:NAMESPACE PREFIX=TVNS />
    <?IMPORT NAMESPACE=TVNS IMPLEMENTATION="C:/XMLTREE/treeview.htc" />
    <tvns:treeview id="ctlFilter_TreeFilter" class="clsTreeView"
    defaultStyle="font:normal normal normal 8pt Tahoma;" selectedNodeIndex="0" HelperID="__ctlFilter_TreeFilter_State__" systemImagesPath="C:/XMLTREE/images"
    onexpand="javascript: if (this.clickedNodeIndex != null) this.queueEvent('onexpand', this.clickedNodeIndex)" oncollapse="javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncollapse', this.clickedNodeIndex)"
    oncheck="javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncheck', this.clickedNodeIndex)" onselectedindexchange="javascript: if (event.oldTreeNodeIndex != event.newTreeNodeIndex) this.queueEvent('onselectedindexchange', event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex)" style="height:100%;width:100%;">
         <tvns:treenode Type="And" Expanded="True" Selected="true">
              And<tvns:treenode Type="Property">
                   Buyer Name = "Abukar Hagi, Abdirashid"
              </tvns:treenode><tvns:treenode Type="Property">
                   Buyer Name > "Abukar Hagi, Abdirashid"
              </tvns:treenode><tvns:treenode Type="Property">
                   Buyer Name <= "Abukar Hagi, Abdirashid"
              </tvns:treenode>
         </tvns:treenode>
    </tvns:treeview>
    </code>
    Please help me out .its very urgent.
    Thanks in advance.

    Have you actually been able to get this to work? I tried some of the demos from the MS site and running the html file with the treeview.htc just sends my browser into a state of loading with nothing happening!?!
    This is a webcontrols component which is rather MS specific. As for finding the namespace, are you accessing this page locally or remotely? the namespace location, if run from a JSP, will resolve the C: drive to the one the web browser is running in not your server.
    If you have your htc file in the same dir as the jsp your running, then putting just "treeview.htc" as the namespace whould be fine or add the context path like so:IMPLEMENTATION="<%=request.getContextPath()%>/treeview.htc"Let me know if you actually get this running without a web server. Otherwise it may be the .Net server that renders the page.
    Anthony

  • How to attach a document using the Send mail component

    Hello,
    I would like to know how to attach a document in a email using the Send mail component.
    There are these nodes into the atom but I don't know how to use it.
    <attachment doc="/ds/grp/doc" pltype="xml">
              <xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[@Role='S']/vpf:Msg/vpf:Body"/>
            </attachment>
    Does anyone know ?
    Thank you.

    Hello All,
    Regarding to the mail adapter, here are some updates:
    1. B1i will support sending HTML attachemnt via "Send Email" atom in B1 882 PL09. An example here:
    <attachment doc="test.htm" pltype="htm">
    <![CDATA[<html>
      <head>
        <title>Enter the title of your HTML document here</title>
      </head>
      <body>
        <p>Enter the body text of your HTML document here</p>
      </body>
    </html>]]>
    </attachment>
    2. In addition, B1i will support sending binary attachment and sending html content in Q1,2013.
    Thanks & Best Regards,
    Qiaoli

  • Using XML as a Data Source

    In http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10540/datasource.htm#CHDBCAIJ it states you can use XML as your data source and mentions...
    URLs can include repository or session variables, providing support for HTTP data sources that accept user IDs and passwords embedded in the URL. For example:
    http://somewebserver/cgi.pl?userid=valueof(session_variable1)&password=valueof(session_variable2)
    I'm trying to pass this:
    http://somewebserver/cgi.pl?userid=valueof(NQ_SESSION.USER)
    but when I try that I can see in my web server logs that the content of the userid variable is 'valueof(NQ_SESSION.USER)' so it's not passing the results to the web server, just the text. Any ideas what's going on? Is my syntax correct? Thanks!

    Hey,
    There are a few things to look at when using session and repository variables within the RPD.
    One of the first documents you need to reference is the "What is the Syntax for Referencing Variable?" section within the OBI documentation. In addition look at this section on how to use variables in the RPD, http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10540/variables.htm#BIEMG3104
    Basically you are trying to use NQ_SESSION.USER which is the syntax for trying to show the user name is Presentation Services. Of course you can see this in your web server logs because that is the correct syntax for presentation services web tier but not the RPD where you define your XML Source.
    You need to try either use VALUEOF("USER") or you are simply forgeting to put the syntax surrounded by single-quotes like, http://somewebserver/cgi.pl?userid='valueof(NQ_SESSION.USER)' to pull the system session variable into the XML URL as needed.
    Try those options and let me know if that works.
    Please mark this as the correct answer or helpful.
    Cheers,
    Christian
    http://www.artofbi.com
    Edited by: Christian Screen on May 8, 2011 10:32 AM

  • AS2 XML pdf gallery component

    Hello, Ive been using a gallery component that lets you use XML to call images and their respective thumbnails while on flash. It's really convenient and easy.
    Id like to ask for your kind help on how to achieve exactly that but changing it to a PDF library/gallery that links you to the PDF file instead.
    I have to insert a data base containing 2000 PDFS and it would take too long doing using GetURLs.
    Thanks a lot and excuse my English!!

    Thank you for your answer. I'm not intending on displaying the files inside flash, i just want a xml list/component that that can be editable and links files so they can be downloaed.
    I hope I make myself clear.
    Here's a little image of whats going on:

  • "Error while using XML iview" with XML iview template

    Our portal platform: HP-UX,  WAS 6.40 JAVA, EP 6.0 SP14
    We created an XML iview using XML iview template and configured the XML source URL with RSS feeder addresses such as"https://forums.sdn.sap.com/rss/rssmessages.jsp?forumID=41". And then select RSS to XHTMLB as the XML transformation format and save.  When I try to preview the iview, I always got error "Error while using XML iview, please contact your system administrator".  Here is the log and among which I found an error "java.net.UnknownHostException: news.163.com".  Does this indicate that the Portal server is not able to interpret the address of the URL host?
    #1.5#000F20196FBC0063000000080000623300043FCBAE39EA79#1196043941051#com.sap.portal.httpConnectivity.transformationService#sap.com/irj#com.sap.portal.httpConnectivity.transformationService.transformerservice#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_19##0#0#Error##Plain###Error during transformation using pipe: transformer-com.sap.portal.transformationservice-RSS_TO_XHTMLB-1.0;transformer-com.sap.portal.transformationservice-XHTMLBSAXHandler-1.0#
    #1.5#000F20196FBC00630000000A0000623300043FCBAE39EDB0#1196043941051#com.sap.portal.httpConnectivity.xmlIViewsRuntime#sap.com/irj#com.sap.portal.httpConnectivity.xmlIViewsRuntime#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_19##0#0#Error#1#/System/Server#Plain###transform - exception raised during transformation. Make sure that the input source is valid and that all used transformers exists.#
    #1.5#000F20196FBC005B0000001E0000623300043FCBCC12043B#1196044441749#com.sap.portal.httpConnectivity.transformationService#sap.com/irj#com.sap.portal.httpConnectivity.transformationService.java.lang.Class#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_37##0#0#Error##Java###Error openning connection when getting input stream for URL:http://news.163.com/special/00011K6L/rss_newstop.xml
    [EXCEPTION]
    #1#java.net.UnknownHostException: news.163.com
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
         at java.net.Socket.connect(Socket.java:474)
         at java.net.Socket.connect(Socket.java:424)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
         at sun.net.www.http.HttpClient.New(HttpClient.java:339)
         at sun.net.www.http.HttpClient.New(HttpClient.java:320)
         at sun.net.www.http.HttpClient.New(HttpClient.java:315)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:522)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:499)
         at com.sapportals.portal.ivs.http.HttpClient.connect(HttpClient.java:378)
         at com.sapportals.portal.ivs.http.HttpClient.send(HttpClient.java:391)
         at com.sapportals.portal.pb.contentservice.fetcher.DataFetcher.OpenConnection(DataFetcher.java:117)
         at com.sap.portal.httpconnectivity.transformationservice.xmlsource.HTTPStreamSource.getInputStream(HTTPStreamSource.java:295)
         at com.sap.portal.httpconnectivity.transformationservice.PipeTransformer.transform(PipeTransformer.java:131)
         at com.sap.portal.httpconnectivity.transformationservice.EPBaseTransformer.transform(EPBaseTransformer.java:257)
         at com.sap.portal.httpconnectivity.transformationservice.TransformerService.transform(TransformerService.java:284)
         at com.sap.portal.httpconnectivity.xmltransformationiview.runtime.XMLTransformationIView.transform(XMLTransformationIView.java:222)
         at com.sap.portal.httpconnectivity.xmltransformationiview.runtime.XMLTransformationIView.doContent(XMLTransformationIView.java:87)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
    And then I tried to upload an XML file on the portal server through KM and created another XML iview.  I got the same error message "Error while using XML iview....". But I found that the log contained different message:
    #1.5#000F20196FBC0059000000090000623300043FCC25CCAC4B#1196045947167#com.sap.portal.httpConnectivity.transformationService#sap.com/irj#com.sap.portal.httpConnectivity.transformationService.transformerservice#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_34##0#0#Error##Plain###Error during transformation using pipe: transformer-com.sap.portal.transformationservice-RSS_TO_XHTMLB-1.0;transformer-com.sap.portal.transformationservice-XHTMLBSAXHandler-1.0#
    #1.5#000F20196FBC00590000000B0000623300043FCC25CCAEDC#1196045947168#com.sap.portal.httpConnectivity.xmlIViewsRuntime#sap.com/irj#com.sap.portal.httpConnectivity.xmlIViewsRuntime#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_34##0#0#Error#1#/System/Server#Plain###transform - exception raised during transformation. Make sure that the input source is valid and that all used transformers exists.#
    #1.5#000F20196FBC005C000000180000623300043FCC5EB48FCF#1196046901893#com.sap.portal.httpConnectivity.xmlIViewsRuntime#sap.com/irj#com.sap.portal.httpConnectivity.xmlIViewsRuntime#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_33##0#0#Error#1#/System/Server#Plain###transform - exception raised during transformation. Make sure that the input source is valid and that all used transformers exists.#
    #1.5#000F20196FBC0066000000020000623300043FCC61683438#1196046947221#com.sap.portal.httpConnectivity.xmlIViewsRuntime#sap.com/irj#com.sap.portal.httpConnectivity.xmlIViewsRuntime#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_7##0#0#Error#1#/System/Server#Plain###transform - exception raised during transformation. Make sure that the input source is valid and that all used transformers exists.#
    #1.5#000F20196FBC00570000000D0000623300043FCC7B6DCFB3#1196047383789#com.sap.portal.httpConnectivity.transformationService#sap.com/irj#com.sap.portal.httpConnectivity.transformationService.java.lang.Class#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_30##0#0#Error##Java###Error openning connection when getting input stream for URL:http://bfepdev.bf.ctc.com:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/Links/rss.xml
    [EXCEPTION]
    #1#java.io.IOException: Server returned HTTP response code: 401 for URL: http://bfepdev.bf.ctc.com:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/Links/rss.xml
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at sun.net.www.protocol.http.HttpURLConnection$3.run(HttpURLConnection.java:840)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:834)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:601)
         at com.sapportals.portal.ivs.http.HttpClient.getResponseInputStream(HttpClient.java:615)
         at com.sapportals.portal.pb.contentservice.fetcher.DataFetcher.getInputStreamResponse(DataFetcher.java:182)
         at com.sap.portal.httpconnectivity.transformationservice.xmlsource.HTTPStreamSource.getInputStream(HTTPStreamSource.java:296)
         at com.sap.portal.httpconnectivity.transformationservice.PipeTransformer.transform(PipeTransformer.java:131)
         at com.sap.portal.httpconnectivity.transformationservice.EPBaseTransformer.transform(EPBaseTransformer.java:257)
         at com.sap.portal.httpconnectivity.transformationservice.TransformerService.transform(TransformerService.java:284)
         at com.sap.portal.httpconnectivity.xmltransformationiview.runtime.XMLTransformationIView.transform(XMLTransformationIView.java:222)
         at com.sap.portal.httpconnectivity.xmltransformationiview.runtime.XMLTransformationIView.doContent(XMLTransformationIView.java:87)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
    Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://bfepdev.bf.ctc.com:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/Links/rss.xml
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:794)
         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
         at com.sapportals.portal.ivs.http.HttpClient.send(HttpClient.java:395)
         at com.sapportals.portal.pb.contentservice.fetcher.DataFetcher.OpenConnection(DataFetcher.java:117)
         at com.sap.portal.httpconnectivity.transformationservice.xmlsource.HTTPStreamSource.getInputStream(HTTPStreamSource.java:295)
         ... 37 more
    #1.5#000F20196FBC00570000000E0000623300043FCC7B6DD77E#1196047383800#com.sap.portal.httpConnectivity.transformationService#sap.com/irj#com.sap.portal.httpConnectivity.transformationService.transformerservice#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_30##0#0#Error##Plain###Error during transformation using pipe: transformer-com.sap.portal.transformationservice-RSS_TO_XHTMLB-1.0;transformer-com.sap.portal.transformationservice-XHTMLBSAXHandler-1.0#
    #1.5#000F20196FBC0057000000100000623300043FCC7B6DD9C8#1196047383801#com.sap.portal.httpConnectivity.xmlIViewsRuntime#sap.com/irj#com.sap.portal.httpConnectivity.xmlIViewsRuntime#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_30##0#0#Error#1#/System/Server#Plain###transform - exception raised during transformation. Make sure that the input source is valid and that all used transformers exists.#
    Anyone has any idea on this? thanks.

    Hi Yepin Jin,
    I am facing the same issue did you solved it?
    Regards,
    Orlando Covault

  • Generating multi-level XML in Oracle 8i using XML-SQL utility

    Oracle 8i has a limitation when it comes to the object types. Only one-level nesting of collection is allowed. Oracle 9i apparently removes this limitation.
    I am trying to generate XML for a hierarchical (conceptually) structure. To do that I am using XML-SQL utility (XSU) running agains an object view build on top of the relational data. The problem is the limit to onelevels of colelction nesting. Oracle 8i gives you a way to create a view with more levels of nesting by using references (REF). The problem is that when XSU runs agains a view with the references, it inserts the references into the XML document (instead of dereferencing them).
    Is there a way to generate XML with Oracle 8i with more than two levels of collection nesting?
    Thank you.
    Michael

    Oracle 8i has a limitation when it comes to the object types. Only one-level nesting of collection is allowed. Oracle 9i apparently removes this limitation.
    I am trying to generate XML for a hierarchical (conceptually) structure. To do that I am using XML-SQL utility (XSU) running agains an object view build on top of the relational data. The problem is the limit to onelevels of colelction nesting. Oracle 8i gives you a way to create a view with more levels of nesting by using references (REF). The problem is that when XSU runs agains a view with the references, it inserts the references into the XML document (instead of dereferencing them).
    Is there a way to generate XML with Oracle 8i with more than two levels of collection nesting?
    Thank you.
    Michael

  • [METASOLV XML AP]devolop JAVA client using XML API for metasolv application

    Hi All,
    I am new in this group, and I need to help me to develop a java client to communicate with metasolv application using XML API.
    I read "XML API Developer’s Reference" document, but I still not understand how can I setup the cllient.
    I still need:
    1- What API needed(jar files) I must use to build the client
    2- A sample of source code using java.
    3- detailed guide to communicate with metasolv application using XML API.
    Thanks&Best Regards
    RADOUANE Mohamed

    any help please!!!!

Maybe you are looking for

  • HT6147 Keep getting error message when trying to download iOS 7.0.6 to my iPhone 4s

    Unable to download SSL iOS 7.0.6 update. Keep getting error message.

  • SQL Server/JDBC Problems...

    I know this topic has been posted before, and believe me I've read all of it and followed instructions at least 5 times over. But I just can't get rid of : Got an exception! [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. On my

  • Line item posted?? document type wise

    Hi all sap guru's hwo to findout how many lines item posted for each doucment type??? regards ss

  • NullPointerException in FacesServlet.init

    Using Oralce 10g app server 9.0.4.0.0 Using jsf 1.1 Works fine under Resin 3.0, but not oracle. Added the listener lines to web.xml. <listener> <listener-class>com.sun.faces.config.ConfigListener</listener-class> </listener> The following jars are in

  • MII 12.1 Distributed Installation

    Hi We are evaluating options for installing MII 12.1 (currently in ramp-up)  in a distributed manner. We have SQL Server setup in one site. We would be installing MII instances on multiple sites. But would like to know in terms of Netweaver Database,