Makit CombinationChart in xml

Hello,
I tried to define a makit combination chart in an xml view.
I can define a normal row or column chart in xml but once I add the layers tag I get the error:
Uncaught Error: Cannot add direct child without default aggregation defined for control sap.makit.Chart
I am assuming this means 'layers' is not a valid tag.
Is it even possible to create the combination chart entirely in xml?
Thank you in advance
Johannes

Hi Johannes,
you can define the whole chart in XML. If you use Eclipse you can use the template in the XML editor by typing Chart and hitting Control+Space.
This gets you the following result:
<Chart xmlns="sap.makit"
  id="id"
  width="100%"
  height="100%"
  type="Column"
  categoryAxis=""
  valueAxis=""
  valueBubble=""
  showRangeSelector="true"
  showTableView="false"
  legendPosition=""
  lineThickness="1"
  showTableValue="true"
  maxSliceCount="12"
  primaryColorPalette=""
  showTotalValue="false"
  doubletap=""
  tap=""
  longpress="">
  <tooltip></tooltip> <!-- sap.ui.core.TooltipBase -->
  <rows> <!-- sap.makit.Row -->
  <Row xmlns="sap.makit"
  id="id1">
  <tooltip></tooltip> <!-- sap.ui.core.TooltipBase -->
  <cells> <!-- sap.makit.Column -->
  <Column xmlns="sap.makit"
  id="id2"
  name=""
  value=""
  type="string">
  <tooltip></tooltip> <!-- sap.ui.core.TooltipBase -->
  </Column>
  </cells>
  </Row>
  </rows>
  <columns></columns> <!-- sap.makit.Column -->
  <series></series> <!-- sap.makit.Series -->
  <values> <!-- sap.makit.Value -->
  <Value xmlns="sap.makit"
  id="id3"
  expression=""
  displayName=""
  format=""
  locale="">
  <tooltip></tooltip> <!-- sap.ui.core.TooltipBase -->
  </Value>
  </values>
  <categoryRegions> <!-- sap.makit.Category -->
  <Category xmlns="sap.makit"
  id="id4"
  column=""
  displayName=""
  format="">
  <tooltip></tooltip> <!-- sap.ui.core.TooltipBase -->
  </Category>
  </categoryRegions>
  <category></category> <!-- sap.makit.Category -->
</Chart>
Strange enough if you define the XML namespace in the header like
xmlns:ma="sap.makit"
and write
<ma:Category...
instead of
<Category xmlns="sap.makit"<C
then you also get the error "Cannot add direct child...".
Hope this will work for you,
Cheers  Mark

Similar Messages

  • Can any body help me how to make the build.xml

    Can any one tell me how to make the build.xml and want to deploy in the iplanet server. I am very new for that. I dont have any idea of build.xml. If any one have code in build.xml please tell me [email protected] Please if any one is having sample exaple please forward it to me. I am waiting for the quick reply. Please its very urgent mail me.

    htpp://ant.apache.org
    http://ant.apache.org/manual/using.html#example
    Good Luck
    Lee

  • How to make bean create xml file...

    In my project I have a bean that is called from a jsp file... How does one make this bean write to an xml file? If anyone have a sample code I could watch, I would be very happy!!
    In advance thanx a lot!

    Try something like this:
    public class DocWriteJDOM {
    public static void main( String[] agrs ) throws Exception
    DocWriteJDOM docWriter = new DocWriteJDOM();
    Document doc = docWriter makeDoc();
    // Create an output formatter, and have it write the doc.
    new XMLOutputter().output(doc, System.out);
    }//End static void main
    /** Generate the XML document */
    protected Document makeDoc() throws Exception
    Document doc = new Document(new Element("Poem"));
    doc.getRootElement().
    addContent(new Element("jBirger").
    addContent(new Element("paulsep").
    setText("Once, upon a midnight dreary")).
    addContent(new Element("nico").
    setText("The real progmmers")));
    Hope this will help you out

  • Setting valueAxis for makit chart in XML view

    Dear Experts,
    I am trying to set a valueAxis limit on value 0,5.
    My XML looks like this. I couldnt add valueAxis in ma:Chart successfully.
    <ma:Chart id="idChart" height="100%" width="100%" type="Line"
      rows="{/entries}" showRangeSelector="true" showTableView="false"
      showTotalValue="false">
      <ma:category>
      <ma:Category column="date" displayName="Date" />
      </ma:category>
      <ma:values>
      <ma:Value expression="value" displayName="Value" type="number"/>
      </ma:values>
      <ma:rows>
      <ma:Row>
      <ma:cells>
      <ma:Column name="date" value="{date}" />
      <ma:Column name="value" value="{value}"
      type="number" />
      </ma:cells>
      </ma:Row>
      </ma:rows>
      <ma:columns>
      <ma:Column name="date" value="{date}" />
      <ma:Column name="value" value="{value}" type="number"  />
      </ma:columns>
      </ma:Chart>
    The error was: Uncaught Error: valueAxis property must be of type sap.makit.ValueAxis
    Basically I cant create a new instance of ValueAxis in XML.
    I tried in the controller js something like this:
    var oChart = this.getView().byId("idChart");
    oChart.valueAxis =  new sap.makit.ValueAxis({min : "0.5"});
    This also didnt work.
    So I  have two questions:
    1.) How can I set valueAxis in XML view staticly?
    2.) How can I set valueAxis in controller dynamicly according to the values I get from my json service.
    Thanks for any help!
    Regards,
    Koray

    Try doing,
    oChart.setValueAxis(new sap.makit.ValueAxis({min : "0.5"}));

  • How to make xsd from xml file?

    Hi,
    i have one xml file which has many node and element.
    anyone know how to make xsd from the xml file in order to make DT by using xsd ?
    Thanks and Best Regards;
    BangBang

    HI
    there are multiple ways of doing this if you have XML based 3rd party tool with you.. you can search on Google also and will get many tools which can convert this to XSD..
    few links with similar discussion..
    How to convert XML file into DTD or XSD
    XML to XSD
    How to creste a XSD ?
    Thanks,
    Bhupesh

  • How to make a flash/xml site?

    I'm no stranger to html, actionscript, dreamweaver, or flash, but I seem to be in a bit of a rut, here.
    Note: I'm not asking anyone do do the work for me. it would just be really helpful to have access to source fla's, templates, tutorials, etc.
    Basically, I want to make an animated, dynamic-width flash site to show off my projects, portfolio, and company information, but I'm absolutely overwhelmed. D:
    Here's the concept I've come up with:
    As you can see, the idea is a simple monochrome layout with a top and bottom bar, and a "moving" sidebar. Regardless of window-size, I want to make the bars stretch all the way across the screen, except for the bottom one, which will only go 100-200 pixels away from the right edge.
    So my question(s) is(are) basically, where do I begin?
    Should I use xml or just flash?
    Should it be broken up into small swf files or be one big one
    One swf file per page, or one for the whole site?
    How do I go about making a dynamic width layout in flash?
    What's the best method to make animation "transitions" between pages?
    Do I need a preloader, and how do I make one?
    Is there anything else I should know (tips, advice) before I start?
    I'm not sure if I missed anything or not... ^_^;
    I know I'm asking a LOT, but answers to any (or all) of these questions would be greatly appreciated, and I'd be forevereverever in your eternal debt.
    thanks for everyone's time!
    Sincerely,
    Eric

    If you are going to want to update your content on a regular basis, say weekly or monthly, then you may want to use XML. If you site will remain pretty constant, then there's no need for that extra layer of complexity. A good design methodology is to create one base movie and then create a series of additional movies that hold the content. I always try to design so that the user has no or very little wait time when they move from one section to another. This means that each content movie needs to be pretty small in file size.
    You probably want to go through the tutorials that come with Flash to get you started in how Flash works. You might want to pick up a book or two and visit some of the Flash sites that contain tutorials. Good books: Flash CS3 Flash Bible, Actionscript 3 Cookbook, Flash CS3 for Designers, Adobe Flash CS3 Professional Classroom in a Book. Good sites: http://www.gotoandlearn.com, http://schoolofflash.com/, http://www.adobe.com/devnet/flash/, http://www.flashandmath.com/.

  • How to make this Flash-XML

    I want to make a flash file like this...
    check this...
    http://h1.ripway.com/jamescherry/ask_xml.swf

    hmm how about using createMovieClip to make the movieClips?
    do you know how to read XML files already? what do you actually
    need to know?

  • Make string from XML into link??

    I am using httpServices to import data from an XML file. The data is returned as a string but I need it to be a clickable link. Please help.
    here is my simple code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="myService.send()">
        <mx:HTTPService id="myService" url="data/infocenter_links.xml"/>
        <mx:DataGrid width="300" dataProvider="{myService.lastResult.links}" />
    </mx:Application>
    Here is a sample of the XML....
    <?xml version="1.0"?>
    <links>
    <link>url:www.mmprint.com</link>
    </links>
    any help is greatly appreciated!!!

    Another option is to create a custom renderer and use the htmltext attribute of a text control, like this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" height="100%" width="100%" horizontalScrollPolicy="off">
        <mx:Script>
            <![CDATA[
                import mx.controls.dataGridClasses.dataGridColumn;
                [Bindable] protected var myURL:String;
                override public function set data(value:Object):void {
                    myURL= '<a href="http://www.example.com/myPage.php?pageID="'+value.id+'" target="_blank">'+value.name+'</a>';
            ]]>
        </mx:Script>
        <mx:Text htmlText="{myURL}" height="100%" width="100%" />
    </mx:Canvas>

  • Can I make my index.XML appear as the site index?

    Hi,
    ive just been doing this adobe tutorial which was very informative and helpfull.
    http://www.adobe.com/devnet/dreamweaver/articles/display_xml_data.html
    Ive now started to apply xml to my portfolio...
    http://www.aidanmack.co.uk/html/index.xml
    thing is though i want that page to be my site index page so a user will just need to type
    http://www.aidanmack.co.uk/html
    Is their a way of doing this?
    Also is XSL style sheet still the best way to display xml?
    Thanks for any help
      Aidan

    home_aidan wrote:
    thing is though i want that page to be my site index page so a user will just need to type
    http://www.aidanmack.co.uk/html
    Is their a way of doing this?
    Also is XSL style sheet still the best way to display xml
    Umm, does your server natively support XML extensions? Most lilkely not, so you are asking the wrong question. It is doubtful, that any shared hosting or pre-configured server will give you that option, so don't go all too fancy on this one. At best, use XML wrapped in an XHTML page or as an external data source for JS or Flash. no need to be über-innovative, when 97% of your visitors can't see the stuff. Firefox pareses your portfolio site as plain text, so either your XSLT is missing or it simply doesn't work at all...
    Mylenium

  • Chart range selector

    I am trying to design something with a slider bar and a
    linear chart on top. Changing the selection area in the bar should
    change the color of the selected area in the chart. I have been
    able to do that with text instead of linear chart on top of slider
    bar using TextRange class. Could somebody advise, if there is a
    similar class for charts? If you can point to any examples that
    would be even better.

    in combination chart also it works. here is example JS Bin - Collaborative JavaScript Debugging&lt;/title&gt; &lt;link rel=&quot;icon&quot; href=&quot;http://static.jsbin.… but in js view.
    seems to be issue with xml then. you can refer this thread makit CombinationChart in xml and try out accordingly.
    Regards,
    Chandra

  • How to make XML element used in RTF PRIVATE/PUBLIC ? I know how to hide columns in RTF, but dont know how to generate the xml in below way. Please help.

    Hi
    I am following below link to hide/show my columns dynamically. See "Column Formatting"
    http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187.pdf
    As per doc, element can be made private/public.
    <items type="PUBLIC">
    <item>
      <name>Plasma TV</name>
      <quantity>10</quantity>
      <price>4000</price>
    </item>
    <item>
    And same can be used to hide the column using condition
    <?if@column:/items/@type="PUBLIC"?>
    MY QUESTION IS HOW TO DO THIS IN MY XML BELOW?
    Below is part of my XML code which I am using in Data Definition for RTF.
    <group name="GH3" source="QH3">
    <element name="COLUMN_HEAD3" value="COLUMN_NAME" />
    </group>
    <group name="GH4" source="QH4">
    <element name="COLUMN_HEAD4" value="COLUMN_NAME" />
    </group>
    I am getting output like this.
    <LIST_GH3>
    <GH3>
    <COLUMN_HEAD3>REBILL_TO_OTHER_BUSINESS_UNIT</COLUMN_HEAD3>
    </GH3>
    </LIST_GH3>
    <LIST_GH4>
    <GH4>
    <COLUMN_HEAD4>XYZ</COLUMN_HEAD4>
    </GH4>
    </LIST_GH4>
    In order to use logic as per oracle document I want output like this.
    <LIST_GH3 type="PUBLIC">
    <GH3>
    <COLUMN_HEAD3>REBILL_TO_OTHER_BUSINESS_UNIT</COLUMN_HEAD3>
    </GH3>
    </LIST_GH3>
    <LIST_GH4 type="PRIVATE">
    <GH4>
    <COLUMN_HEAD4>BLANK</COLUMN_HEAD4>
    </GH4>
    </LIST_GH4>
    What changes I need to make in my XML code to get the runtime output as above? Please help. Where do i need to make changes in the above xml? Group name? Element name?
    I am planning to use below condition in RTF template to hide the column,  but dont know how to set the type of column as PRIVATE/PUBLIC in the XML output used to populate data in the RTF at runtime.
    <?if@column:/BTSPIEXP/LIST_GH3/@type=”PUBLIC”?>COLUMN_HEAD3<?end if?>
    Regards,
    Swapnil K.

    Hi,
    Issue has been resolved. I used the value of the element to determine to display it or not.
    Regards,
    Swapnil K.

  • XML page & report template

    Hi There,
    I'm trying to make a default xml report that displays my sql query.
    I do not want to use the exportXML template, since no pagination is possible that way. (at least, I think it is)
    Now, i've made a XML page (only a xml header, nothing else) and a xml report (generic column template).
    Everything works as expected, but at the end of the xml, there is a javascript section :
    <script type="text/javascript">
    <!--
    //-->
    </script>
    When logged in as a developer it displays :
    <script type="text/javascript">
    <!--
    //-->
    </script><!-- Code generated for user with developer privileges. -->
    <script type="text/javascript">
    function popupInfo()
    ....snip....
    </script>
    <table cellpadding="0" border="0" cellspacing="0" summary="Developer Toolbar" align="center">
    ....snip....
    </table>
    <script type="text/javascript">
    if(GetCookie('ORA_WWV_QUICK_EDIT') != null){
    if(GetCookie('ORA_WWV_QUICK_EDIT') == 'SHOW')
    quickLinks('SHOW');
    </script>
    My question : is there a way to not get these things in my output ?
    Thanks in advance.

    nobody an idea ?

  • Reading XMl file from ABAP

    Hi friends,
    I am working in SAP 4.6c. Please help me in the following scenario.
    I have to read the xml whixjh in the application server.
    I have to Make sure each XML only contains 1 IDOC.  If 10 idocs are pushed out , there should be 10 XML messages.  1 idoc per XML.
    So if the FM receives a message that contains 10 idocs, the routine just needs to split the XML into 10 separate XML's using YYYYMMDDHHMMSS_IDOCNUMBER.XML as the new of each XML.
    Convert the XML into UTF-8 compliant
    above is my requirement.
    Can you guide me how to read a XMl file and findout how many idocs are present in that...
    Please guide me...
    Thanks in advance,
    Sudha

    Hi Sudha,
    Refer this blog and thread to get more information on how to process XML documents.
    /people/thomas.jung3/blog/2004/06/24/bsp-150-a-developer146s-journal-part-v-xml-for-rfcs
    redaing an XML file to an internal table
    Regards,
    Uma
    Message was edited by: Uma Maheswari

  • I need to remove "air." from package name. I'm get a Layout xml error when repackaging android app..

    So, i'm doing this on my own app. I made an update for an older app that was build using Native Android. But this time, i used Adobe AIR... The catch is Adobe likes to append a "air." to the front of your package name without asking you. So basically I can't upload my update because it has a new package name is now "air.com.mycompany.myapp" rather than the original "com.mycompany.myapp"
    Basically I'm going through this guide..
    http://helpx.adobe.com/air/kb/opt-out-air-application-analytics.html
    I followed all the steps, made all the adjustments to the androidmanifest.xml like it asks.
    But after going along with the above guide, with no issues when i get to the step that says
    "Run the following command to create the resource file for the updated AndroidManifest.xml:"
    I run this..
        "/Users/brybam/Documents/eclipse/android-sdk-mac_x86/platform-tools/aapt" package -f -M AndroidManifest.xml -F resources.arsc -I "/Users/brybam/Documents/eclipse/android-sdk-mac_x86/platforms/android-8/android.jar" -S ./res
    But I keep getting the same error regarding the xml files in res/layout
        ./res/layout/expandable_chooser_row.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/expandable_multiple_chooser_row.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/main.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/multiple_file_selection_panel.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/ssl_certificate_warning.xml:1: error: Error parsing XML: not well-formed (invalid token)
    The guide doesn't say anything about these xml files, and im not sure what to do with these or how to handle them.
    If i go into the res/layout folder, and just delete these (i know they're necessary. But i just deleted them as a test, to get through the rest of the guide...)
    I was able to get through the rest of the steps in the guide fine, make an apk, and put it on my phone...only to find out the app will crash the moment you try to run it. Probably because i deleted the layout xml files...But i cant get the command i need to run above to accept them!
    So, earlier in the guide they have me use thing thing called the "AXMLPrinter2.jar" to make the AndroidManifest.xml readable so i can edit it.
    I run something like this:
        java -jar "/Users/brybam/Desktop/repackage/AXMLPrinter2.jar" AndroidManifest.xml > AndroidManifest.xml.bk
    This makes a new file "AndroidManifest.xml.bk" and i can edit that.
    So, I was thinking with all of these layout xml files, maybe I could run this "AXMLPrinter2.jar" on them and then edit them. Because right now if you open them they're not human readable, and its hard for me to work on them if they're not...
    I tried this thinking i could do the same thing...
        java -jar "/Users/brybam/Desktop/repackage/AXMLPrinter2.jar" main.xml > main.xml.bk
    Just get a blank file and a console erorr when trying to use the AXMLPrinter2.jar on the layout xml files...
        java.lang.ArrayIndexOutOfBoundsException: 67
                  at android.content.res.StringBlock.getShort(StringBlock.java:231)
                  at android.content.res.StringBlock.getString(StringBlock.java:91)
                  at android.content.res.AXmlResourceParser.getName(AXmlResourceParser.java:140)
                  at test.AXMLPrinter.main(AXMLPrinter.java:56)
    So, I think my whole issue is based around these XML files not being converted to human readable before i try and re-package....
    EDIT:::
    Ok, so I found a site that talks about the error I'm getting but it's in chinese, and even after translating the page...I'm still not well versed with terminal and this stuff to get it.
    It reads:
    "Error.
    Final conclusion:
    In minSdkVersion <= 7, AXMLPrinter2.jar can normally decompile xml file
    Greater than 7 can not be normal decompile xml file (AndroidManifest.xml except)
    Give way to share a batch decompile xml file:
    First, create a *. Txt file
    Stresses inside the content authoring
    for / r layout%% a in (*. xml) do @ java-jar AXMLPrinter2.jar "%% a" >> "%% a". txt
    Then this txt file extension into bat form, and this BAT the file and AXMLPrinter2.jar on the same directory will be decompiled xml into the layout directory
    Decompilation results can be generated by executing the bat file multiple xml files."
    - http://hi.baidu.com/ghcghc/item/ecbaa1ce997cb225a0b50ac2
    Maybe someone with more know-how could explain what they're explaining? I get that he's saying the issue im seeing appears when you're using minSdK <=7 but I need to use minSdk 8. Does anyone understand this work around? And how I might go about it on a Mac with terminal?
    I wish adobe would make it easy to remove the "air." from the package name. If they want to convert old Native devs to AIR devs...the transition needs to be seamless. But now I'm about to have to go back to Native because I can't update an app I already have out on the market with an air app.

    Hello~
         I also tried to remove "air." package name in air application. And i encounter the same problem.
         I do not find any solution to decode the xml inside res folder by AXMLPrinter2.jar. And those xml inside is compressed which is unreadable.
         However, what you can do is copying the structure of res folder. And go to your air sdk file path -  adobeair-sdk-folder/lib/android/lib/resources/
         Replace those file exists in your res folder. And copy "values" folder to your res folder.
         Hope this solve your problem~

  • Error for fetching long text in xml tag for xml publisher report

    My requirement is to fetch a large document which is in text format in XML output which can be printed in PDF format by using RTF method to generate PDF.But during XML ouput i got the following error-
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
    button, or try again later.
    The following tags were not closed: XXBG_EAMWRREP_V1, LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1,
    G_MEDIA...
    XXBG_EAMWRREP_V1 is the rdf and LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1, G_MEDIA are the groups name. In the group
    G_MEDIA i am fetching long_text from attahcment in application. In Database table the datatype of the text attachment is 'long' and there is a huge text
    data loaded in large data editor of that column. If the text data volume is small enough then there is no problem for fetching the xml output.
    If we change the output format as HTMl then there is no problem for fetching the output for long text but for xml output format we are unable to fetch the data
    in xml tag.
    One thing to mention the oracle report is the copy of Maintenance Work Order Detail Report. The seeded report is HTML format in 11i. The requirement is to make it in xml report.
    Please help.

    Hi,
    Actually clob datatype is not available in oracle report builder datatype lov. Could you pls tell the other ways of converting that to clob in oracle report...

Maybe you are looking for

  • Brand new iMac, and the load time for internet use is very poor

    Brought my new iMac home today. 2.7 GHz intel core i5 Got it set up with my wireless and i am very unimpressed with the internet and loading speed. My phone, 1 lap top, and 1 ipad use wireless in our house along with the iMac. i have a cisco linksys

  • Time Capsule 2 Tb as external hard drive

    I am about to switch from my old MacBook Pro (8 years old) with a 500 Gb hard drive to my brand new MacBook Air with just a 128 Gb hard drive. I need an external HDD to house my iTunes and iPhoto libraries as well as a lot of music projects (Garage B

  • Understanding report need backup recovery window ..

    Hello, I have a big database which backed up within several days at night time. The retention policy is "recovery window of 3 days". I've tried to analyze the results of report need backup;But I noticed than this command return just the list of dataf

  • REPLACE_WITH_ACTUAL_URL

    Hi everyone, i know that maybe this topic has already been treated , but i couldn't find out the answer i need. I'm using ant to build up my Web Service and by default the generated WSDL file contains REPLACE_WITH_ACTUAL_URL as value dor soap:address

  • BT Sports frustration

    "To say i am frustrated would be a huge understatement, i cannot believe the lack of service/ response avaliable from a huge company like BT." Here!, here! ..................... I'm not taking the service up when it reverts to full price! All I'm get