Boolean  && in xml; how to

I would like to do something like this:
<mx:Button  enabled = "{(Globals.SelectedAssessment!=null) && (Globals.User.isMDSCoordinator==true)}" />
but I cannot figure out how.  Any ideas?
The compiler seems to accept the "+" operator which might be an "or" but I really need an "and" operator.
I guess I could define a funtion, but I've got several different conditions and it feels clunky.

that did the trick; thanks.  I guess it was lack of coffee that prevented me from trying &amp;&amp;  after I tried &amp; and it failed

Similar Messages

  • I write digital port by 'DAQmx Configure Logging.vi​' and receive TDMS file with 8 boolean channels. How can I write to 1 integer channel?

    Hello!
    I want to write 1 digital port from PXI-6536 with streaming to TDMS file.
    I'm writing by 'DAQmx Configure Logging.vi' and become TDMS file with 8 boolean channels.
    How can I write to 1integer channel?
    Attachments:
    1.JPG ‏27 KB

    Hey Atrina,
    The actual data stored on disk is just the raw data (that is, a byte per sample in your case).  It's really just a matter of how that data is being represented in LabVIEW whenever you read back the TDMS file.
    I'm not sure if there is a better way to do this, but here is a way to accomplish what you're wanting:
    Read back the TDMS file as a digital waveform.  Then there's a conversion function in LabVIEW called DWDT Digital to Binary.  This function will convert that set of digital channels into the "port format" that you're wanting.  I've attached an example of what I mean.
    Note: When looking at this VI, there are a few things that the downgrade process did to the VI that I would not recommend for these TDMS files.  It added a 1.0 constant on the TDMS Open function, and it set "disable buffering" on the TDMS Open function to false; you can get rid of both of those constants.
    Message Edited by AndrewMc on 01-27-2010 11:21 AM
    Thanks,
    Andy McRorie
    NI R&D
    Attachments:
    digitalconvert.vi ‏13 KB

  • XSLT for ABAP to XML: how can I get a variable in a literal field

    Hi,
    I have the requirement to provide an xml format (for Intrastat reporting) which contains some dynamic data within "".
    Example (I'll put the variables between && for clarity):
    <?xml version='1.0' encoding='UTF-8'?>
         <DeclarationReport xmlns="http://www.onegate.eu/2010-01-01">
              <Administration>
                   <From declarerType="KBO">0000000097</From>
                   <To>NBB</To>
                   <Domain>SXX</Domain>
              </Administration>
              <Report action="&ACTION&" date="&DATE&" code="&CODE&">
                   <Data close="&CLOSE&" form="&FORM&">
                        <Item>
                             <Dim prop="EXTRF">19</Dim>
                             <Dim prop="EXCNT">NL</Dim>
                             <Dim prop="EXTTA">3</Dim>
                             <Dim prop="EXREG">1</Dim>
                             <Dim prop="EXTGO">73202089</Dim>
                             <Dim prop="EXWEIGHT">101</Dim>
                             <Dim prop="EXUNITS">0</Dim>
                             <Dim prop="EXTXVAL">1098</Dim>
                             <Dim prop="EXTPC">3</Dim>
                             <Dim prop="EXDELTRM">CPT</Dim>
                        </Item>
                        <Item>
                             <Dim prop="EXTRF">19</Dim>
                             <Dim prop="EXCNT">DK</Dim>
                             <Dim prop="EXTTA">3</Dim>
                             <Dim prop="EXREG">1</Dim>
                             <Dim prop="EXTGO">83012000</Dim>
                             <Dim prop="EXWEIGHT">88</Dim>
                             <Dim prop="EXUNITS">0</Dim>
                             <Dim prop="EXTXVAL">73456</Dim>
                             <Dim prop="EXTPC">3</Dim>
                             <Dim prop="EXDELTRM">CPT</Dim>
                        </Item>
                   </Data>
              </Report>
            </DeclarationReport>
    All the other variables I've solved by using this technique: <xsl:value-of select="EXTRF"/> but apparently it's not allowed to do this within "".
    I have an idea that params or variables could be used to fill in those fields but I don't find the right syntax.
    For your info, here's my current transformation program; it works except for those fields
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:output encoding="UTF-8" indent="yes" method="xml" version="1.0"/>
      <xsl:strip-space elements="*"/>
      <xsl:template match="/">
        <DeclarationReport xmlns="http://www.onegate.eu/2010-01-01">
          <Administration>
            <From declarerType="KBO">&KBO&</From>
            <To>NBB</To>
            <Domain>SXX</Domain>
          </Administration>
          <Report Code="&CODE&" Date="&DATE&" action="&ACTION&">
            <Data close="&CLOSE&" form="&FORM&">
              <xsl:apply-templates select="//INTRASTAT/item"/>
            </Data>
          </Report>
        </DeclarationReport>
      </xsl:template>
      <xsl:template match="INTRASTAT/item">
        <Item>
          <Dim prop="EXTRF">
            <xsl:value-of select="EXTRF"/>
          </Dim>
          <Dim prop="EXCNT">
            <xsl:value-of select="EXCNT"/>
          </Dim>
          <Dim prop="EXTTA">
            <xsl:value-of select="EXTTA"/>
          </Dim>
          <Dim prop="EXREG">
            <xsl:value-of select="EXREG"/>
          </Dim>
          <Dim prop="EXTGO">
            <xsl:value-of select="EXTGO"/>
          </Dim>
          <Dim prop="EXWEIGHT">
            <xsl:value-of select="EXWEIGHT"/>
          </Dim>
          <Dim prop="EXUNITS">
            <xsl:value-of select="EXUNITS"/>
          </Dim>
          <Dim prop="EXTXVAL">
            <xsl:value-of select="EXTXVAL"/>
          </Dim>
          <Dim prop="EXTPC">
            <xsl:value-of select="EXTPC"/>
          </Dim>
          <Dim prop="EXDELTRM">
            <xsl:value-of select="EXDELTRM"/>
          </Dim>
        </Item>
      </xsl:template>
    </xsl:transform>
    Can anyone help me out here? How can I fill up these variables?
    Thanks

    If you are searching via the Search Bar on the Navigation Toolbar, this preference can be changed to have searches there open in a Tab.
    Type '''about:config''' in the Address Bar and hit Enter. Then answer "I'll be careful". Type this pref in the Search at the top.
    '''browser.search.openintab''' = double-click to toggle to '''true'''

  • Xml: how to get node value when pasing node name as a parameter

    Hi,
    I've got some xml:
    var xmlData:XML =
    <1stNode>
        <buttonID>first child node value</buttonID>
        <imageID>second child node value</imageID>
        <labelID>third child node value</labelID>
    </1stNode>
    Then I want to read specific node value based on a value passed to a function. .
    var buttonID = new Button;
    var imageID = new Image;
    var labelID = new Label;
    getNodeValue(buttonID); //the value here is set dynamically
    private function getNodeValue (nodeName:String):void {
    trace (xmlData.nodeName)                      //doesn't work
    var str:String = "xmlData." + nodeName;
    var xml:XMLList = str as XMLList             //doesn't work
    I'm don't know how to get the value when node name is dynamically changed.

    use:
    getNodeValue(buttonID); //the value here is set dynamically
    private function getNodeValue (nodeName:String):void {
    trace (xmlData[nodeName])                    

  • For loop and xml - how to point the right content in a XML file with a dynamically created button?

    Hi Everybody,
    as my first experience in AS3 I'm bulding a photo multigallery. In that gallery I have some buttons, each one pointing to its respective set of images.
    Each button is created with the for loop, that picks the information from a XML file. From this XML I get the text of the button, the position etc. What I did with some sucess. But there is a scary problem: I don't know how to make each button load the respective and unique set of images.
    I've tryied several different methods, with no effect, to make each loop to give to each button an unique identity to load the respective set of images.
    I imagine that the solution pass by the use of arrays. I wrote some code, and I guess that I'm almost there (but not sure). Here is my AS3 code until now:
    // CREATE MENU CONTAINER //
    var menuContainer:MovieClip = new MovieClip();
    menuContainer.x=10;
    menuContainer.y=300;
    addChild(menuContainer);
    // CREATE IMAGES CONTAINER //
    var imagesContainer:MovieClip = new MovieClip();
    imagesContainer.x=10;
    imagesContainer.y=10;
    addChild(imagesContainer);
    //// LOAD XML ////
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, whenLoaded);
    xmlLoader.load(new URLRequest("XML/roiaXML.xml"));
    var xml:XML;
    function whenLoaded(evt:Event):void {
         xml=new XML(evt.target.data);
         var mySetsList:XMLList=xml.children();
         //// MENU BUTTONS ////
         // CREATE ARRAYS //
         var totalArray:Array = new Array();
         var setNodesArray:Array = new Array();
         var setNamesArray:Array = new Array();
         // POSITIONING BUTTONS INSIDE MENU CONTAINER//
         var rowsQuantity:Number=3;
         var columnsQuantity:Number=Math.ceil(mySetsList.length()/rowsQuantity);
         var cellWidth:Number=160;
         // CREATE BUTTONS //
         for (var i:int=0; i< mySetsList.length(); i++) {
              var newSetButtonMC:setButtonMC=new setButtonMC();
              //what do I do here to make it works? To give each button created a unique id.
              setNodesArray.push(i);
              //trace(setNodesArray);
              var imageNodesArray:Array = new Array();
              for (var j:int=0; j<mySetsList[i].IMAGE.length(); j++) {
                   imageNodesArray.push(mySetsList[i].IMAGE[j].attribute("imageTitle"));
              totalArray.push(imageNodesArray);
              newSetButtonMC.setButtonText.text=mySetsList.attribute("galeriaTitle")[i];
              newSetButtonMC.setButtonText.autoSize=TextFieldAutoSize.LEFT;
              var cellX:Number=Math.floor(i/rowsQuantity);
              var cellY:Number=i%rowsQuantity;
              newSetButtonMC.x=cellX*cellWidth;
              newSetButtonMC.y=cellY*(newSetButtonMC.height+10);
              newSetButtonMC.addEventListener(MouseEvent.CLICK, onClick);
              menuContainer.addChild(newSetButtonMC);
         totalArray.push(setNodesArray);
         //// MENU BUTTONS ACTIONS ////
         function onClick(mevt:MouseEvent):void {
              trace(totalArray [0][0]);
              trace(totalArray [0][0]);
              // in the line above I achieved some success loading a specific info from XML.
              // but I don't know what to do with it.
              //what do I do here? To make each button to load its own node from XML.
    Here is my XML:
    <GALERIA galeriaTitle="galeria 01">
      <IMAGE imageTitle="imageTitle01">feio.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle02">muitofeio.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle03">aindamaisfeio.jpg</IMAGE>
    </GALERIA>
    <GALERIA galeriaTitle="galeria 02">
      <IMAGE imageTitle="imageTitle01">estranho.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle02">maisestranho.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle03">aindamaisestranho.jpg</IMAGE>
    </GALERIA>
    Thanks everyone . ABSTRATO

    you can assign each newSetButtonMC and ivar property that points to its i value or, even easier:
    // CREATE MENU CONTAINER //
    var menuContainer:MovieClip = new MovieClip();
    menuContainer.x=10;
    menuContainer.y=300;
    addChild(menuContainer);
    // CREATE IMAGES CONTAINER //
    var imagesContainer:MovieClip = new MovieClip();
    imagesContainer.x=10;
    imagesContainer.y=10;
    addChild(imagesContainer);
    //// LOAD XML ////
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, whenLoaded);
    xmlLoader.load(new URLRequest("XML/roiaXML.xml"));
    var xml:XML;
    function whenLoaded(evt:Event):void {
         xml=new XML(evt.target.data);
         var mySetsList:XMLList=xml.children();
         //// MENU BUTTONS ////
         // CREATE ARRAYS //
         var totalArray:Array = new Array();
         var setNodesArray:Array = new Array();
         var setNamesArray:Array = new Array();
         // POSITIONING BUTTONS INSIDE MENU CONTAINER//
         var rowsQuantity:Number=3;
         var columnsQuantity:Number=Math.ceil(mySetsList.length()/rowsQuantity);
         var cellWidth:Number=160;
         // CREATE BUTTONS //
         for (var i:int=0; i< mySetsList.length(); i++) {
              var newSetButtonMC:setButtonMC=new setButtonMC();
              //what do I do here to make it works? To give each button created a unique id.
              setNodesArray.push(i);
              //trace(setNodesArray);
              var imageNodesArray:Array = new Array();
              for (var j:int=0; j<mySetsList[i].IMAGE.length(); j++) {
                   imageNodesArray.push(mySetsList[i].IMAGE[j].attribute("imageTitle"));
             nextSetButtonMC.imageArray = imageNodesArray;
              //totalArray.push(imageNodesArray);
              newSetButtonMC.setButtonText.text=mySetsList.attribute("galeriaTitle")[i];
              newSetButtonMC.setButtonText.autoSize=TextFieldAutoSize.LEFT;
              var cellX:Number=Math.floor(i/rowsQuantity);
              var cellY:Number=i%rowsQuantity;
              newSetButtonMC.x=cellX*cellWidth;
              newSetButtonMC.y=cellY*(newSetButtonMC.height+10);
              newSetButtonMC.addEventListener(MouseEvent.CLICK, onClick);
              menuContainer.addChild(newSetButtonMC);
         totalArray.push(setNodesArray);
         //// MENU BUTTONS ACTIONS ////
         function onClick(mevt:MouseEvent):void {
              var mc:setButtonMC=setButtonMC(mevt.currentTarget);
    for(i=0;i<mc.imageArray.length;i++){
    trace(mc.imageArray[i]);
    Here is my XML:
    <GALERIA galeriaTitle="galeria 01">
      <IMAGE imageTitle="imageTitle01">feio.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle02">muitofeio.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle03">aindamaisfeio.jpg</IMAGE>
    </GALERIA>
    <GALERIA galeriaTitle="galeria 02">
      <IMAGE imageTitle="imageTitle01">estranho.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle02">maisestranho.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle03">aindamaisestranho.jpg</IMAGE>
    </GALERIA>
    Thanks everyone . ABSTRATO

  • XML: How to convert xml string into Node/Document

    I have a string in xml form.
    <name>
    <first/>
    <second/>
    </name>
    I want to convert this string into DOM Node or Document.
    How can I do this?
    Any help or pointer?
    TIA
    Sachin

    Try this :
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse(new org.xml.sax.InputSource(new StringReader(strXml)));Hope this helps.

  • XML , how to parse ?

    Hello Dear Sirs !
    I am a newbie in XML world and I need to parse and also write to file yhe next XML Format :
    <FORMAT NAME="InputQG30Format">
    <TransactionCode>QG30</TransactionCode>
    <FunctionKey>00</FunctionKey>
    <ProcessType>O</ProcessType>
    <PreformattingIndicator>no</PreformattingIndicator>
    <InputFormat>
    <F VALUE="USER">USERCtx</F>
    <F VALUE="PSWD">PSWDCtx</F>
    <F VALUE="NEWPSWD">NEWPSWDCtx</F>
    <F VALUE="VNPSWD">VNPSWDCtx</F>
    </InputFormat>
    </FORMAT>
    But I have no idea how i can do that ? I will very appretiate your attempt to help me .
    How i can parse it ? What is the better parser for this case ? Each clue and code snippet will be properly appretiated .
    Thank you ,
    Marat

    you could use any parser for this one, I tell you how to do that use JDom.
    first of all, download some packages from www.jdom.org
    import these package should be enough for you:
    import java.io.*;
    import java.util.*;
    import org.jdom.Element;
    import org.jdom.Attribute;
    import org.jdom.input.*;
    import org.jdom.Document;
    Then:
    SAXBuilder saxBuilder = new SAXBuilder();
    Document doc = saxBuilder.build("C:\\myxml.xml");
    Element root = doc.getRootElement();
    List eList = root.getChildren();
    Iterator i = eList.iterator();
    while (i.hasNext()) {
    Element elem = (Element) i.next();
    System.out.println("Name: "+elem.getName());
    // the api would be very helpful for what you exactly want to do...

  • Convert binary data (TIFF image) into XML - how ?

    Hi,
    I have the following requirement:
    1. A document is scanned and a TIFF image is saved in a directory
    2. The File adapter picks up the image file and sends into XI
    3. The binary data is converted into XML so a Web Service can be called (this web service will store the image in a database application)
    <b>The part I am struggling with is the convert of the incoming binary data into a XML format document which will allow the Web Service to be called.</b>
    Graphical mapping cannot be used therefore I am left with 3 options:
    1. XSLT mapping
    2. Java mapping
    3. ABAP mapping
    Can anyone suggest the best option to use in these circumstances and provide some sample snippet of code on how to do it.
    I am alright at XSLT mapping but this is beyond me and Java mapping is completely new to me as I have very limited Java knowledge.
    Thanks for your help
    Colin.

    Hi Colin
    Look for the below link
    https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b
    <b>***Reward point if helpfull</b>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b</a>

  • [JS] XML : How to placeXML the content of a specific tag

    Hi, I'm new to scripting and I can't figure out how to do this :
    I need to find the first element with the tag "body" and make a placeXML on it.
    I make a function do find it, but I really don't know what to do after that.
    Here is my code :
    var tab= new Array();
    var body = findFirstElement(myDocument,"body", tab);
    function findFirstElement(elm, tag, tab)
        for (var i = 0; i < elm.xmlElements.length; i++)
            XMLelementName=elm.xmlElements[i].markupTag.name.toString();
            if(XMLelementName==tag)
                elm.xmlElements[i].select();
              tab.push(elm.xmlElements[i]);
            else {
            findFirstElement(elm.xmlElements[i], tag, tab);
       return tab;
    At this point, body is [object XMLElement]
    So now, I would like to modify the following code to place body. I think I don't understand very well the structure of the document, but once again, I'm totally new at it.
    myDocument.xmlElements.item(0).xmlElements.item(0).placeXML(myDocument.pages.item(0).textF rames.item(0));
    If someone can help me...

    Hi,
    I finally found out how to do it : it's easy with XML Rules.
    Here is my code if someone is interested :
    var myRuleSet = new Array (new ShowBody);
    with(myDocument){
    var elements = xmlElements;
    __processRuleSet(elements.item(0), myRuleSet);
    function ShowBody(){
    this.name = "ShowBody";
    //XPath will match on every XML element in the XML structure.
    this.xpath = "//body";
    // Define the apply function.
    this.apply = function(myElement, myRuleProcessor){
    with(myElement){
    myElement.placeXML(myDocument.pages.item(0).textFrames.item(0));
    return true;
    // Succeeded
    } //End of apply function

  • Sender sending data through XML, How to process it in ECC (No PI involve)?

    Hi,
    The sender system sending data through XML tag and that need to be processed in SAP side.
    How it can be done without involving XI or IDoc?
    Is it possible through HTTP post?
    Sample XML Transactions
    1. SAP Availability Transaction (Request)
    <?xml version="1.0" standalone="yes"?>
    <ECCAVAILREQUEST>
    <AVAILTEXT>CHK STATUS</AVAILTEXT>
    </ECCAVAILREQUEST>
    2. SAP Availability Transaction (Response)
    <?xml version="1.0" standalone="yes"?>
    <ECCAVAILRESPONSE>
    <AVAILTEXT>OK</AVAILTEXT>
    </ECCAVAILRESPONSE>
    3. DUMMY_SYSTEM PO Transaction (Request)
    <?xml version="1.0" standalone="yes"?>
    <DUMMY_SYSTEM REQUEST>
    <CREATEPB>1</CREATEPB>
    <POORDERDATA>
    05607015156070151TORDAEHTWW05727500002D0979054+
    </POORDERDATA>
    4. DUMMY_SYSTEM Order/Inquiry Transaction (Response)
    <DUMMY_SYSTEM RESPONSE>
    <C_PO>99999</C_PO>
    <RETURNDATA>
    DAT&#13;&#10;
    </RETURNDATA>
    </DUMMY_SYSTEM RESPONSE>

    Hi,
    check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/21/e9c97ceb1911d6b2ea00508b6b8a93/content.htm
    this is for processing inbound IDOc through XML-HTTP(Inbound) port
    like this there should be an option for reading files placed by HTTP_POST.
    in SICF transaction there should be a service to do that.
    defaulthost -> sap-> xi-> adapter_plain. i know you don't have XI in your landscape but this is the component which be responsble for receving messages over HTTP_POST.
    look for a program which can access messages from there.
    please check with your basis team
    Suresh

  • SXMB_MONI  detailed error message in XML how can be it retrive .

    Hi Guys/SAP,
                           Iam creating a Zee report for my client to capture all my detail error message which is Display in SXMB_MONI
    Error Tab in XML formt .How can i capture this and how it is stroed in SAP.Please kindly let me know.Iam also alalyais this issue for the past 4 days but iam not able to find out where it is stored.If any one come accross this issue or know kindly let me know .Iam expecting few tips from SAP also .Iam also exploring more on this .
    The below detilas of error message in SXMB_MONI is required,
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_Test_SenderJDBC_ReceiverFILE_MM_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_Test_SenderJDBC_ReceiverFILE_MM_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Regards,
    Sri

    Hello Sri
    See the link below:
    Creating Alert Categories 
    http://help.sap.com/saphelp_nw70/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
    You can use the container variables to output the error information from the message in sxmb_moni.
    Regards
    Mark

  • Parse XML: how to get all the sub nodes of an element

    Hello, I am using org.w3c.dom to parse an XML file. I want to get all the information under an elements, including all the sub nodes and sub sub nodes, maybe output as a String or String[ ]. How should I do it with org.w3c.dom?
    e.g. I want to get all the text within<datafile></datafile>:
    <datafile>
    blablabla
    <id> bla <description>bla</description></id>
    </datafile>
    I write:
    Node element = InterfaceDOM.getElementsByTagName("datafile");
    how can I return all the sub content within this element?
    Thanks a lot!

    http://www.developerfusion.co.uk/show/2064/

  • ConfigPlan.xml | How to change datasource values in .bpel and .xsl files

    Hi',
    We have used sql queries inside Transform (XSL) files and also using them in Assign activity,
    Now when moving from Development environment to Test Environment, how can we change the
    JDBC values by using the ant script, in the configplan.xml file I dont see any place where I can change these
    values, is it at all possible, if Yes then how.
    Please advice,
    Thanks
    Yatan

    Hi,
    You can go thru below link to make changes in .bpel file.
    http://eelzinga.wordpress.com/2009/10/28/oracle-soa-suite-11g-setting-and-getting-preferences/
    thanks

  • ODI and XML - how can I get this to work?

    Hi all.
    I'm working on a new dwh solution where the main source of data will come from XML-files. The problem is that we are having difficulties with the use of abstract types in the xsd-file.
    We currently use ODI to read the XML-files and to store the data in our database, but all fields from the XML-files are not visible in the target tables.
    The problem can be simplified like this example:
    We have a main element, testElement, which can contain one or more publications.
    Publication is of type PublicationType, and PublicationType is an abstract that contains title, author and date.
    We have four other types which extends PublicationType; BookType, MagazineType, NewspaperType and AdsType. They all contain additional fields.
    XSD-file
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="urn:testing:kontroll:example:oppgave:v1"
    xmlns:tns="urn:testing:kontroll:example:oppgave:v1"
    xmlns:xdb="http://xmlns.oracle.com/xdb"
    elementFormDefault="qualified">
         <element name="testElement" type="tns:TestElementType" xdb:defaultTable="TEST_TAB" />
         <complexType name="TestElementType">
              <sequence>
                   <element name="publication" type="tns:PublicationType" minOccurs="1"
                        maxOccurs="unbounded" />
              </sequence>
         </complexType>
         <complexType name="PublicationType" abstract="true">
              <sequence>
                   <element name="title" type="string"/>
                   <element name="author" type="string" minOccurs="0"
                        maxOccurs="unbounded" />
                   <element name="date" type="string"/>
              </sequence>
         </complexType>
         <complexType name="BookType">
              <complexContent>
                   <extension base="tns:PublicationType">
                        <sequence>
                             <element name="ISBN" type="string"/>
                             <element name="publisher" type="string"/>
                        </sequence>
                   </extension>
              </complexContent>
         </complexType>
         <complexType name="MagazineType">
              <complexContent>
                   <extension base="tns:PublicationType">
                        <sequence>
                             <element name="editor" type="string"/>
                             <element name="period" type="string" minOccurs="0"
                                  maxOccurs="1"/>
                        </sequence>
                   </extension>
              </complexContent>
         </complexType>
         <complexType name="NewspaperType">
              <complexContent>
                   <extension base="tns:PublicationType">
                        <sequence>
                             <element name="daily" type="boolean"/>
                             <element name="owner" type="string" minOccurs="0"
                                  maxOccurs="1"/>
                        </sequence>
                   </extension>
              </complexContent>
         </complexType>
         <complexType name="AdsType">
              <complexContent>
                   <extension base="tns:PublicationType">
                        <sequence>
                             <element name="company" type="string"/>
                             <element name="article" type="string" />
                        </sequence>
                   </extension>
              </complexContent>
         </complexType>
    </schema>
    XML-file
    <?xml version="1.0" encoding="UTF-8"?>
    <tns:testElement xmlns:tns="urn:testing:kontroll:example:oppgave:v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:testing:kontroll:example:oppgave:v1 ExampleXMLSchema.xsd ">
    <tns:publication xsi:type="tns:BookType">
    <tns:title>Boken</tns:title>
    <tns:author>Arne Svendsen</tns:author>
    <tns:date>2001</tns:date>
    <tns:ISBN>78979797</tns:ISBN>
    <tns:publisher>The Company Ltd</tns:publisher>
    </tns:publication>
    <tns:publication xsi:type="tns:MagazineType">
    <tns:title>Fancy Magazine</tns:title>
    <tns:author>Mads Madsen</tns:author>
    <tns:date>2011</tns:date>
    <tns:editor>Svante Svantesen</tns:editor>
    <tns:period>weekly</tns:period>
    </tns:publication>
    </tns:testElement>
    Can anybody tell me if this should work (and why it doesn`t)? Or if the XSD/XML looks wrong in some way?
    Is this a known limitation in Oracle or ODI etc.?
    Any pointers to documentation describing similar problems would also be helpful.
    Thanks,
    Bjørn
    Edited by: Bob1 on Dec 22, 2011 7:01 AM
    Edited by: Bob1 on Dec 22, 2011 7:03 AM

    From what I found in the document http://docs.oracle.com/cd/E25054_01/integrate.1111/e12644.pdf (section B.7.2.6), ODI does not support abstract=true for complextypes. The driver simply ignore them.
    We made a new xsd without these tags and were able to generate the required tables.
    I am a bit surprised that ODI don't support these abstract-tags.
    Regards Bjørn
    Edited by: Bob1 on Jan 2, 2012 1:45 PM

  • Dbassist generates XML how can I use

    The dbassist tool in 9i generates XML files for the template definitions.
    Are there any DTD for this XML?
    How can I use this templates in silent mode (without GUI) to generate the creation scripts.

    The GeoRaster metadata is schema-based, so you have to give the scheme name when call the XML SQL functions. For example,
    select t.tmimage.metadata.extract(
    '/gr:georasterMetadata/gr:layerInfo/gr:objectLayer',
    'xmlns:gr=http://xmlns.oracle.com/spatial/georaster')
    from landsat t
    where t.id=0;
    or
    select t.tmimage.metadata.extract(
    '/georasterMetadata/layerInfo/objectLayer',
    'xmlns=http://xmlns.oracle.com/spatial/georaster')
    from landsat t
    where t.id=0;

Maybe you are looking for

  • Can't create a transition effect in flash cs4

    hey, I'm having trouble creating a fade in transition using flash cs4. I've tried to using windows > behaviors but there is not option for screen > transition. Does anyone know the actionscript code for a transition? Or how to put one in. I have 2 fr

  • HT2341 Flashing world sign on macbook pro

    Hi guys      Something happened strange I just turned on my macbook pro and it just showed a world sign which was flashing for a 2 minutes and ı just wait for a while, it just then showed the login screen i think it just sold the problem automaticall

  • Where are the saved jpegs located?

    This may be a very newbie question, but how do i find the files created using the "Save as jpeg/png/pdf" options. And can you change the default folder? Flash Player 11 Firefox

  • Max Heap Size?

    Hi, is it possible to change the heap/stack size (Xms and Xmx options) on-the-fly at runtime? I have a program that uses a small stack size at times, but then sometimes will need a huge stack size. i don't want to tie up the resources of the machine

  • FCE won't start up.

    Hey, I just got my iMac G5 back from the shop, for the dreaded midplane replacement, and now I can't start up FCE at all. The serial number for the iMac has changed, would that cause the crashes? I did repair permissions, and moved the preference fil