Apllet  - xml view in browser

i am having problems with this next thing.
i have a path to an XML file in an applet, and i am supposed to do a button with the next function: when clicked opens the XML with a browser.
does anyone know how to do this ?

Call Applet.showDocument() and provide it the url of your xml file when the button is clicked.

Similar Messages

  • Gif file won't animate in Muse's preview mode or in Muse's view in browser mode

    Created a gif file with Photoshop that's 7.5MB in size.  Placed the gif  file on a Muse page.  But, the gif won't animate in Muse's preview mode or when Muse sends the page to be viewed in browser mode.  I'm using a Mac running OS X 10.9.2 and I'm a creative cloud member using Muse.  Any solutions?

    Step one to enable the community to help debug what you're encountering would be to provide the URL for the page where the GIF is being used. My first guess would be there are effects applied to the image (i.e. inner glow, bevel, etc.) that require Muse to re-encode the image and Muse does not support encoding animated .gif. It only supports passing animated .gif files through unchanged. (And to get an image to pass through unchanged it needs to have no effects that require rasterization applied in Muse.)
    Given you've stated the GIF file is 7.5Mb I have to question your choice of .gif. At 7.5Mb this single file will take ~8 seconds to download on the average US broadband connection and will be much slower for many broadband users and most cellular users. GIF is a reasonable choice for very small short animations used sparingly, but is seldom (if ever) a good choice for larger or longer animations. Better choices for those are to use a video or a tool like Edge Animate to create a HTML5/CSS3 animation. The end result will be vastly more user friendly in terms of page load performance.
    A huge percentage of first time visitors to a webpage will cancel the page load rather than waiting 8+ seconds for the page load to complete.

  • Why do I get an error when clicking on "view in browser" in my newsletter?

    Hello. I am trying to get the URL for my email campaigns so I can show some of them on my webpage. When I tried to get the URL by clicking on the email I sended in the tag that says "view in browser":
    I get the following URL:
    http://www.coscatl.com/CampaignProcess.aspx?A=View&VID=0&KID=116388
    With the following error:
    ERROR: This feature is not available in preview mode.
    Any ideas? Suggestions?
    Thanks!

    Hi Steve. Thank you for your time.
    You are right, the link does work after the campaign has been delivered.
    By the way I am big fan of BC Gurus.
    Take care and gracias again!

  • BI Publisher Report Build - XML view

    Hi Experts,
    I am trying to build the BI publisher report. During the process, I am defining the SQL query structure in the 'Query Builder' once after that I have saved the report.
    As part of the next step , I have clicked on 'view' link to view the report structure as mentioned in the OBE.
    I could only see the 'Data' view but not the 'XML' view. Is there any way I can see the 'XML' view.
    Any help would be appreciated
    Siva

    Data means look at the xml data that you have created.

  • How to hide "View in Browser" and "Edit in Browser" from ECB injected by Office Web Apps Feature

    Hi,
    i am currently using custom_AddDocLibMenuItems to implement a custom ECB menu for my document library. I need to activate Office Web Apps. My custom_AddDocLibMenuItems has two items
    -> custom dialog
    -> open in office web apps
    After activating the Office Web Apps Feature at the SiteCollection Level, this Feature "injects" in my custom menu the following
    additional menu items:
    -> View in Browser
    -> Edit in Browser
    Its curious to see that, cause implementing the js function custom_AddDocLibMenuItems with
    return true should be the way to impolement a custom ECB menu without having other features/solutions injecting things in this menu!? Or did i misunderstood something here?
    My question is: How can i prevent this ...
    a) without deactivating the Office Web Apps Feature
    b) without modifying the core.js
    I hope someone can help!
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    May be this can help
    http://extreme-sharepoint.com/2011/10/29/hide-menu-ecb/http://pholpar.wordpress.com/2011/07/24/hiding-ecb-custom-actions-based-on-specific-list-properties-using-the-client-object-model/Or tryhttp://stackoverflow.com/questions/13795858/how-to-hide-view-in-browser-in-document-library-in-sharepoint-2010-using-javascr $(document).ready(function(){
    $('.ms-MenuUIPopupBody').live('blur', function() {
    var elm = $("div.ms-MenuUIULItem a:contains('View in Browser')");
    elm.remove();
    $("div.ms-MenuUIULItem a:contains('Edit in Browser')").remove();
    It is hiding menu only on focus or blur or mouseover
    I wants it to be hide on load AS soon as i Click on "V" option on right side of document it should hide View in Browser and Edit in browser
    When I click on V option ![I wants As soon as i Click on v option right side of test it should hide view in Browser and edit in browser][1]
    If this helped you resolve your issue, please mark it Answered

  • Binding Data from OfflineStore to List in XML view

    Hi Experts,
    I am developing an application using SAP WebIDE. While loading a page, I want to read some data from an offlineStore and show it in a listview.
    Following is my code for xml view:
    <sap.ui.core.mvc:View xmlns="sap.m" xmlns:sap.ui.core="sap.ui.core" xmlns:sap.ui.core.mvc="sap.ui.core.mvc" controllerName="com.arteria.view.CustomerList">
        <Page title="Customers" showNavButton="true">
       </Page>
    </sap.ui.core.mvc:View>
    And my js code is as follows:
    onInit: function() {
      this.getView().addEventDelegate({
       onBeforeShow: function(evt) {
        sap.ui.getCore().byId("idCustomerList").getController().read();
    read:function() {
                    oList = new sap.m.List();
                    oList.removeAllItems();
                    var uri = window.localStorage.getItem("ApplicationEndpointURL");
                    var user = window.localStorage.getItem("User");
                    var password = window.localStorage.getItem("Password");
                    var headers = { "X-SMP-APPCID" : window.localStorage.getItem("ApplicationConnectionId") };
                    // Create OData model from URL
                    var oModel = new sap.ui.model.odata.ODataModel(uri, true, user, password, headers);
                    var iOS = (navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false );
                    if (iOS) {
                        oModel = new sap.ui.model.odata.ODataModel(uri, true, user, password, headers);
                    var oTemplate = new sap.m.StandardListItem({
                                                               title: "{CustomerNumber}", description: "{CustomerName}", tap:"handleProductListItemPress", type:"Navigation"    
                    oList.setModel(oModel);
                    oList.bindItems("/Customers", oTemplate, null, null);
                    var custListPage = sap.ui.getCore().byId("idCustomerList");
                    custListPage.addCustomData(oList);
       handleProductListItemPress: function(oEvent) {
            sap.ui.getCore().getEventBus().publish("nav", "to", {
                id : "idCustomerDetail",
                context: oEvent.getSource().getBindingContext()
    The problem is I am getting a blank page. The list is not getting attached to the page.
    Waiting for your reply.
    Regards,
    Dhani

    why not move List definitiaon to XML 
    <sap.ui.core.mvc:View xmlns="sap.m" xmlns:sap.ui.core="sap.ui.core" xmlns:sap.ui.core.mvc="sap.ui.core.mvc" controllerName="com.arteria.view.CustomerList"> 
        <Page title="Customers" showNavButton="true"> 
    <List id="CustomerList"/>
       </Page> 
    </sap.ui.core.mvc:View> 
    so
    oList = this.byId("CustomerList");
    oList.setModel(oModel); 
                    oList.bindItems("/Customers", oTemplate, null, null); 
                    var custListPage = sap.ui.getCore().byId("idCustomerList"); 
                    custListPage.addCustomData(oList); 

  • Dynamic binding of items in sap.m.Table using XML views

    Dear SAPUI5 guru's,
    Let's start by saying I'm an ABAP developer who's exploring SAPUI5, so I'm still a rookie at the time of writing. I challenged myself by developing a simple UI5 app that shows information about my colleagues like name, a pic, address data and their skills. The app uses the sap.m library and most of the views are XML based which I prefer.
    The data is stored on an ABAP system and exposed via a gateway service. This service has 2 entities: Employee and Skill. Each employee can have 0..n skills and association/navigation between these 2 entities is set up correctly in the service. The data of this service is fetched from within the app using a sap.ui.model.odata.ODataModel model.
    The app uses the splitApp control which shows the list of employees on the left side (master view). If a user taps an employee, the corresponding details of the employee entity are shown on the right (detail view).
    Up till here everything is fine but I've been struggling with my latest requirement which is: show the skills of the selected employee in a separate XML view when the user performs an action (for the time being, I just created a button on the detail view to perform the action). After some hours I actually got it working but I doubt if my solution is the right way to go. And that's why I'm asking for your opinion here.
    Let's explain how I got things working. First of all I created a new XML view called 'Skills'. The content on this view is currently just a Table with 2 columns:
    <core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
      controllerName="com.pyramid.Skills" xmlns:html="http://www.w3.org/1999/xhtml">
      <Page title="Skills"
           showNavButton="true"
           navButtonPress="handleNavButtonPress">
      <content>
      <Table
       id="skillsTable">
      <columns>
      <Column>
      <Label text="Name"/>
      </Column>
      <Column>
      <Label text="Rating"/>
      </Column>
      </columns>
      </Table>
      </content>
      </Page>
    </core:View>
    The button on the Detail view calls function showSkills:
    showSkills: function(evt) {
      var context = evt.getSource().getBindingContext();
      this.nav.to("Skills", context);
      var skillsController = this.nav.getView().app.getPage("Skills").getController();
      skillsController.updateTableBinding();
    Within 'this.nav.to("Skills", context);' I add the Skills view to the splitApp and set its bindingContext to the current binding context (e.g. "EmployeeSet('000001')"). Then I call function updateTableBinding in the controller of the Skills view which dynamically binds the items in the table based on the selected employee. So, when the ID of the selected employee is '000001', the path of the table's item binding should be "/EmployeeSet('000001')/Skills"
    updateTableBinding: function(){
      var oTemplate = new sap.m.ColumnListItem(
      {cells: [
              new sap.m.Text({text : "{Name}"}),
              new sap.m.Text({text : "{Rating}"})
      var oView = this.getView();
      var oTable = oView.byId("skillsTable");
      var oContext = oView.getBindingContext();
      var path = oContext.sPath + "/Skills";
      oTable.bindItems(path, oTemplate);
    Allthough it works fine, this is where I have my first doubt. Is this the correct way to bind the items? I tried to change the context that is passed to this.nav.to and wanted it to 'drill-down' one level, from Employee to Skills, but I couldn't manage to do that.
    I also tried to bind using the items aggregation of the table within the XML declaration (<Table id="skillsTable" items="{/EmployeeSet('000001')/Skills}">). This works fine if I hard-code the employee ID but off course this ID needs to be dynamic.
    Any better suggestions?
    The second doubt is about the template parameter passed to the bindItems method. This template is declared in the controller via javascript. But I'm using XML views! So why should I declare any content in javascript?? I tried to declare the template in the XML view itself by adding an items tag with a ColumnListItem that has an ID:
                    <items>
                        <ColumnListItem
                        id="defaultItem">
                        <cells>
                            <Text text="{Name}"/>
                            </cells>
                            <cells>
                            <Text text="{Rating}"/>
                            </cells>
                        </ColumnListItem>
                    </items>
    Then, in the updateTableBinding function, I fetched this control (by ID), and passed it as the template parameter to the bindItems method. In this case the table shows a few lines but they don't contain any data and their height is only like 1 mm! Does anyone know where this strange behaviour comes from or what I'm doing wrong?
    I hope I explained my doubts clearly enough. If not, let me know which additional info is required.
    Looking forward to your opinions/suggestions,
    Rudy Clement.

    Hi everybody,
    I found this post by searching for a dynamic binding for well acutally not the same situation but it's similar to it. I'm trying to do the following. I'm having a list where you can create an order. On the bottom of the page you'll find a button with which you're able to create another order. All the fields are set to the same data binding ... so the problem is if you've filled in the values for the first order and you'll press the button you'll get the same values in the second order. Is it possible to generate a dynamic binding?
    I'm going to post you a short code of what I'm meaning:
    <Input type="Text" value="{path: 'MyModel>/Order/0/Field1'}" id="field1">
         <layoutData>
                    <l:GridData span="L11 M7 S3"></l:GridData>
               </layoutData>
    </Input>
    As you can see I need to set the point of "0" to a dynamic number. Is there any possibility to reach this???
    Hope you can help
    Greetings
    Stef

  • Passing parameter to the i18n text from xml view in fiori app

    Hi,
    Could somebody let me know how to pass parameter to get the i18n text inside xml view of a Fiori app.
    For e.g. inside my i18n properties file i have a entry like:
    PEC_ISSUE={0}issues of total{1}
    inside xml i use it like {i18n>PEC_ISSUE}
    but now how do i pass those 2 parameters to this ??
    i know in javascript it works with , (comma) but does not work in xml. Any help...
    Thanks,
    Ashish

    Hi Michele,
    I found it. Below is the example from my coding.
    <Text      text="{parts: [{path: 'i18n>PEC_to'}, {path: 'promoprocsteps>RetailPromotionSalesFromDate_E'},
                                                           {path:'promoprocsteps>RetailPromotionSalesToDate_E'}],
                                                           formatter: 'retail.promn.promotioncockpit.utils.Formatter.formatDatesString'}"  />
    So you have to create a formatter and pass all the strings to the formatter and then do it inside JS.
    In JS you do it in this way:
    i18n.getText(i18String, [newString, string2]);
    i hope this helps.
    Regards,
    Ashish

  • In XML view, how to set sap.ui.core.CSSSize array for property "widths" of MatrixLayout Control?

    As SAPUI5 prefer XML views, I'm rewriting JS view into XML views.
    When I translate the statements below, I can not set sap.ui.core.CSSSize array for property "widths" of Control MatrixLayout.
    JS version:
    var oLayout = new sap.ui.commons.layout.MatrixLayout({
        id : 'matrix3'
        columns : 3,
        width : '600px',
        widths : ['100px', '200px', '300px']
    XML version:
    <l:MatrixLayout
        id="matrix3"
        columns="3"
        width="600px"
        widths="['100px', '200px', '300px']">
    <l:MatrixLayout>
    The error says: Uncaught Error: "[100px, 200px, 300px]" is of type object, expected sap.ui.core.CSSSize[] for property "widths" of Element sap.ui.commons.layout.MatrixLayout.
    Same problem with property `backgroundDesign` of MatrixLayoutCell, I can only use a workaround to use String "Fill1" not the Class "sap.ui.commons.layout.BackgroundDesign.Fill1".
    When we meet a property which need a Class object as value, we can not set it in String Format for XML views. That's a pity or I did not find the right way to set NON-String values as property for XML Controls.

    Hi,
    any settings that are not possible in the XML, need to be set in the controller instead.
    Using the string value of an enum is fine, though.
    Regards
    Andreas

  • Font in Design View different from font in Live View and browser preview

    My external style sheet has the body set for a sans-serif font and there is nothing to contradict it in the HTML documents. But while I get sans-serif in the Design View (as you would expect), I get a serif font in Live View and Browser Preview, not to mention on the Web itself.
    How is this possible (and what should I do about it)?
    --Paul

    Murray and David: it worked! It is a rare and joyous experience to have a straightforward solution to the sorts of problems I come up with (including other realms). But I have to say that with HTML and CSS (and hence with Dreamweaver), solutions to difficulties have seemed within easier reach than in other parts of the computer world.
    By the way, I wanted to choose "correct answer" for both your posts, but after making the first click it was no longer available for the remaining post--so I typed "helpful" even though that one was correct too.
    Thanks again.
    --Paul

  • When i set page as template, set editable regions and try to view in browser IE 9 a download box com

    When I set page as template, set editable regions and try to view in browser IE 9 a download box comes up and when i click open it just opens the file again in DW.

    Use the Template to spawn a child page.  File > New > Page from Template...
    Save the child page as some_file.html and then preview that in your browsers.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Images not showing in viewer and browser

    I've been using Apreture 2.1.1 without any problems until yesterday. Even though all my projects are in tact, I can no longer see the images in the Aperture viewer and browser. I really don't know how this happened. To rectify the problem I did the following:
    1. Verified and repaired the Disk using Disk Utility
    2. Logged in in Safe mode and did the above
    3. Uninstalled Aperture, removed all reference files and re-installed
    4. Opened the Library and photos are all intact.
    5. Uninstalled Aperture and re-installed the 2.0 version
    I did all the above but still have the same issue. Just can't figure out what is wrong here.
    Any suggestions would be highly appreciated.
    thanks
    ps. Forgot to add this: It also crashes when I want to quit it
    Message was edited by: AlexGo

    AlexGo wrote:
    I've been using Apreture 2.1.1 without any problems until yesterday. Even though all my projects are in tact, I can no longer see the images in the Aperture viewer and browser. I really don't know how this happened. To rectify the problem I did the following:
    1. Verified and repaired the Disk using Disk Utility
    2. Logged in in Safe mode and did the above
    3. Uninstalled Aperture, removed all reference files and re-installed
    4. Opened the Library and photos are all intact.
    5. Uninstalled Aperture and re-installed the 2.0 version
    I did all the above but still have the same issue. Just can't figure out what is wrong here.
    Any suggestions would be highly appreciated.
    thanks
    ps. Forgot to add this: It also crashes when I want to quit it
    Message was edited by: AlexGo
    did you dump the preferences and appropriate other files? prior to the reinstall? otherwise if any of those files are bad you'll be installing aperture with the same possibly corrupt files.
    your problem sounds like a hard drive or cable issue, have you swapped out cables?
    what cable are you using? eSATA? FW800?

  • Change View in Browser Setting

    I have packaged Reader 10 that we deployed to our users with it set to view PDFs in Reader.  There is a group of people in this one department now that want it set to view in browser.  I tried setting it in the registry to integrate in the browser which works fine for exisiting users.  The problem is when a new user logins to a machine those settings are ignored and it defaults to view in Reader and not browser.
    Is there any way I can change this?  My only solution so far is to create a new package with it set to view in Browser and to maintain 2 packages...

    I have an website and a forum ( http://www.13tribos.com.br/forum ) with some pdf files for download. There are some people that are having trouble because the configuration in their browers that opens the documento itself with adobe plugin. Why I can solve tris issue because people needs to download the pdf files to read later ? I´m wondering in compress file, but is not a good solution. Is an another option to the pdf that lets bypass open and save the file ?
    Thanks you attention
    Alessandro Drago

  • XML View & Model, Tree & binding

    Hi there,
    i'm trying to do some stuff with XML models, XML Views and Trees.
    Here is my xml model file :
    <objectSet version="1.2.3.4">
        <aRoot code="testCode" reference="0123456789" description="TestDescription" owner="Tester">
                <component name="MyCompo1" type="MyCompo1Type">
                  <component name="MyCompo2" type="MyCompo2Type">
                   <property name="myProperty2-1" type="string" value="null"/>
                  </component>
                  <component name="MyCompo3" type="MyCompo3Type">
                   <property name="myProperty3-1" type="string" value="null"/>
                  </component>
                </component>
        </aRoot>
    </objectSet>
    My XML View file :
    <core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" xmlns:cmn="sap.ui.commons"
            controllerName="cleanproject.TreeTest" xmlns:html="http://www.w3.org/1999/xhtml">
                    <cmn:Tree nodes="{/aRoot}">
                    <cmn:TreeNode text="{@name} TagNameHere?"></cmn:TreeNode>
                    </cmn:Tree>
    </core:View>
    My Js Controller file :
    sap.ui.controller("cleanproject.TreeTest", {
    onInit: function() {
    var xmlModel =  new sap.ui.model.xml.XMLModel("cleanproject/"+xmlPath3);
    xmlModel.setXML("the full xml document here"); // bad trick
    this.getView'().setModel(xmlModel);
    I have multiples questions :
    What is the way to wait the xml file to be loaded, because when i'm not using setXML function in my controller, the view is instantiated too fast  and an error is raised as the model is not accessible ( Error message : "N is null" )
    Is it possible to display in a TreeNode the tagName of an element? ( e.g : "component", "property" )
    Is it possible to build the tree only with "component" TreeNodes ?
    4. Is it possible to bind a part of the datas , eg : bind with a deepth of 1,2,...n ?
    Thanks for helping,
    Regards,
    Marc
    Edit :
    1. In the onInit function, use attachRequestCompleted method. In my case :
    var thus= this;
            xmlModel.attachRequestCompleted(function(event){
                thus.getView().setModel(xmlModel);
    2.
    tree.bindNodes("/",function(sId, oContext){
                    var tagName = oContext.getObject().tagName;
                    var name = oContext.getObject().getAttribute("name");
                    var sText = tagName;
                    if(name){
                        sText+=" "+name;
                    return new cleanproject.custom.ComplexTreeNode({text:sText});
                },null,[oFilter]);
    3. It does not seem possible even with filters
    4. Can be done using javascript and a custom method

    Hi all,
    I just tested again and now it's working...
    <Label xmlns="sap.m" design="Standard" text="{/MAIN_OBJECTSet('1')/PROPERTY_NAME}"
      visible="true" textAlign="Begin" textDirection="Inherit" width="200px"
      required="false" labelFor="">
      </Label>
    The relative path syntax depends on the used model!
    Strange - but ok.
    Thanks.
    Best regards,
    Christoph

  • 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"}));

Maybe you are looking for