Using HTML markup in OData

Hello,
We want to store long texts with an OData service. This text should be stored including formatting (html markup?). Does OData support this? Should I use String or Xstring Data types?
Regards, Paul Lauwers.

Paul,
I would suggest making use of OData's media entity. Store your long text in a txt/html file and model it as a media entity.
Here is how.
Uploading Files to SAP GW, Downloading Files from SAP GW - New Techniques

Similar Messages

  • Using HTML markup

    I am trying to insert a buy now button that is HTML. How do I
    do this? I have searched the help pages with no luck. In frontpage
    there was just a simple HTML markup command but I cant find it in
    dreamweaver. I have tried all of the options under HTML but it
    keeps giving me an error or broken link. Please help

    Show us what you are trying to insert and where you want to
    insert it -
    code, please.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "brananc1" <[email protected]> wrote in
    message
    news:ee45kj$5hd$[email protected]..
    >I am trying to insert a buy now button that is HTML. How
    do I do this? I
    >have
    > searched the help pages with no luck. In frontpage there
    was just a simple
    > HTML
    > markup command but I cant find it in dreamweaver. I have
    tried all of the
    > options under HTML but it keeps giving me an error or
    broken link. Please
    > help
    >

  • Need help using HTML markup

    I am using a Narrative to add a brief description to my reports. In my report i'm trying to explain several things that going on in the rpt but i need to add line break in between each. Can someone tell me how to add a line break to my statement below? Please select the question mark below....
    <b>
    <a title="This report shows the total number of OPEN defects by SU.
    Click on the SU name to view the total defect detail report broken down by product for that SU.
    Click on a specific value by severity to view the defect detail report by severity broken down by product for that SU.
    Click on each section of the pie chart to view the total number of defect for all SU by severity">
    [?]</a>
    </b>

    Can someone tell me how to add a line break to my statement below? Please select the question mark below....
    I cant see your statement here.Can u post it again.
    Try this link
    http://download.oracle.com/docs/cd/E12103_01/books/AnyUser/NarrativeView.html

  • (Inside) is this the only way of specify html markup for attributes in uiXML?

    Hi, I could not work out a way other than creating a DataObject to specify html markup in certain attributes, for example the tip attribute.
    Is there any other way?
    <provider>
    <data name="capts:formatted_text">
    <method class="oracle.capts.CaptsProvider" method="getDataObject"/>
    </data>
    </provider>
    <inlineMessage prompt="Search" vAlign="middle" data:tip="tip1@capts:formatted_text">
    package oracle.capts;
    import oracle.cabo.ui.data.DataObject;
    import oracle.cabo.ui.RenderingContext;
    import oracle.capts.CookieDataObject;
    import oracle.capts.SessionAttributeDataObject;
    public class CaptsProvider
    private static final String CAPTSNAMESPACE = "http://xmlns.oracle.com/capts";
    private static final String COOKIEDATAOBJECT_NAME = "cookie";
    private static final String SESSIONATTRIBUTEDATAOBJECT_NAME = "session_attribute";
    private static final String FORMATTEDTEXTDATAOBJECT_NAME = "formatted_text";
    public static DataObject getDataObject(RenderingContext context, String namespace, String name)
    * context - the current rendering context
    * namespace - the namespace of the requested DataObject
    * name - the name of the requested DataObject
    if (_CAPTS_NAMESPACE.equals(namespace))
    if (name.equals(_COOKIE_DATAOBJECT_NAME))
    return new CookieDataObject();
    else if (name.equals(_SESSIONATTRIBUTE_DATAOBJECT_NAME))
    return new SessionAttributeDataObject();
    else if (name.equals(_FORMATTEDTEXT_DATAOBJECT_NAME))
    return new FormattedTextDataObject();
    return null;
    package oracle.capts;
    import oracle.cabo.ui.data.DataObject;
    import oracle.cabo.ui.RenderingContext;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.ui.BajaRenderingContext;
    public class FormattedTextDataObject implements DataObject
    public Object selectValue(RenderingContext context, Object select)
    BajaContext bajaContext = BajaRenderingContext.getBajaContext(context);
    String result = "";
    if ( ((String)select).equals("tip1") )
    result="<html>Use the <tt><b>%</b></tt> operator as a wildcard. e.g. Enter <tt><b>%</b><tt> to return all rows, or <tt><b>%ab%</b><tt> to return rows that for the chosen search attribute contain the string <b>ab</b>.</html>";
    return result;

    I think there's three things going on here. First, you do not need to put these HTML
    strings in DataObjects. You're probably forgetting to escape the strings - uiXML is XML,
    and you've got to follow the rules of XML. For example, the following is illegal XML,
    not because of anything in UIX, but because it's invalid XML:
      <messageTextInput tip="<html><b>foo</b></html>"  ../>... and must be written as:
      <messageTextInput tip="&lt;html>&lt;b>foo&lt;/b>&lt;/html>"  ../>From Java, you only have to follow the Java escaping rules (like \" and \\),
    which is why your code only seems to work when you're grabbing the string from
    a DataObject.
    OK - second thing. There is a new <formattedText> element, and if you want to insert
    HTML markup, you can replace a <styledText> with a <formattedText> and it'll do the job.
    And - third thing. The "tip" and "message" attributes in UIX contain automatic
    support for HTML markup. But you have to let us know when you're using HTML markup,
    and the way you do that is by surrounding the string in <html>...</html> - or,
    once escaped for XML, &lt;html>...&lt;/html>

  • HTML markup in newsfeed when using SocialCommentWebPart

    Hi,
    I have created a brand new publishing site. I have added the SocialCommentWebPart to allow users to add comments on news. I use the default page layouts that ships with SharePoint publishing sites. The only thing I have added to the page layouts is this:
    In the top of the page:
    <%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    In the bottom of the page:
    <SPSWC:SocialCommentWebPart ID="Comments" WebPartPropertyDisplayItems="5" ChromeType="None" runat="server" Title="Comments" __WebPartId="{B8B35A9A-1688-4E42-AE0F-8064E89CEAD7}"  /> 
    This works as expected and users are able to add comments to the pages using this page layou. Looks like this (this site collection is in norwegian so don't mind some of the strange words):
    The problem is when I navigate to MySite. In MySite it renders with HTML markup like this:
    Anyone knows if it's possible to solve this?

    I'm having the same issue with html markup in the SocialCommentWebPart appearing escaped in the MySite news feed MicroFeedWebPart.

  • How to implement OData based BASIC Authentication using HTML, JavaScript for Mobile Apps using Apache Cordova/PhoneGap and datajs-1.1.1.js library

    Hello,
    I have an issue with OData based BASIC authentication for iOS App created using HTML, JavaScript, SAP UI5, OData and Apache Cordova/PhoneGap.
    Please check the post here http://scn.sap.com/thread/3527245
    Request you to kindly reply on the above given link.
    Thanks and Regards,
    Suraj Kumar

    Hello Prathik,
    The code which I am using for OData based BASIC Authentication, for my Mobile App is as below.
       var onSuccess = function(data) {
       alert("We are Through"); //Just to check that the OData request was sucessful
       var onError = function(err) {
       switch(err.response.statusCode) {  
       case 403 : {
       window.alert("Error Code - 403, Service unreachable ");
       break;
       case 401 : {
       window.alert("The credentials are incorrect or missing!");
       break;  
    // dataUserName and dataPassword are the two variables, in which I am storing my Username and Password, respectively.
       var connectionRequest = {
       requestUri: "ODATA SERVICE URL GOES HERE/",
       headers: { Authorization : 'Basic ' + Base64.encode(dataUsername + ":" + dataPassword) },
       method: "POST"
       OData.request( connectionRequest, onSuccess, onError);

  • How to use HTML in JavaFX controls?

    Does JavaFX support using HTML in JavaFX controls' text? For example, in Swing components:
    button = new JButton("<html><font face=arial size=16><center><b><u>E</u>nable</b></font><br>"
      + "<font face=cambria size=12 color=#ffffdd>middle button</font></html>");
    If no, could we find a workaround?

    Embedding a WebView in a Labeled for HTML Rendering
    A WebView is a node which displays HTML.
    Most controls implement Labeled, or have elements that are Labeled.
    A Labeled has a setGraphic(node) method which allows you to set the graphic attached to the labeled to any given node (including a WebView).
    For instance:
    WebView webview = new WebView();
    webview.getEngine().loadContent("<html><font face=arial size=16><center><b><u>E</u>nable</b></font><br><font face=cambria size=12 color=#ffffdd>middle button</font></html>");
    webview.setPrefSize(150, 50);
    Button buttonWithHTML = new Button("", webview);
    should create a button with html in it (I didn't actually try running the above example).
    Apart from the relatively slow startup time on first use and the overhead (which I can't quantify) of using WebView in this way, there are a couple of jira requests outstanding which make it a little bit of a nuisance.
    RT-25004 Allow for transparent backgrounds in WebView
    RT-25005 Automatic preferred sizing for WebView
    You can vote for the above jira requests or comment on them if such functionality is important to you.
    TextFlow/FXML/CSS Alternative
    Rather than using html in the Labeled, support for the TextFlow control was introduced in Java 8, so that could be used instead.
    TextFlow also works well with FXML and css if you prefer to have the stuff in the TextFlow managed via markup and a declarative styling language.
    Open Feature Request
    There is an open feature request RT-2160 HTML support for text which is currently scheduled for implementation in the initial Java 8 release.  I think the likelihood of it actually being included there is zero percent, though it may be considered for a future release.  You can vote for the issue or add comments to it, or provide an implementation if you are so inclined.
    Implementation Considerations
    A possible implementation would be something which parses the HTML then constructs a TextFlow the parsed HTML according to processing rules which are laid out in laborious mind-numbing detail in the HTML5 spec.
    You could use a relaxed HTML parser such as the validator.nu parser (though there may be others which would be a better fit). 
    A simple implementation would just be to use the parser in the jdk which is used for the swing controls, but that is hopelessly outdated.
    Perhaps, even simpler would to only accept strict html input and just use SAX to parse it out, though things like validator.nu are too difficult to work with.
    Then, for the limited number of parsed tags that you want to support (and you really don't want to support all of HTML5 for something like this - otherwise you would just use WebView), create your TextFlow from the DOM model that your parser has created.
    I wouldn't even both trying to handle most of the stuff in your html string in your implementation, stuff to do with styling, fonts, colors, etc. Those things were never any good in html anyway, and css is better for handling them, so just support stuff commonly used in usual modern day html (take a look at bootstrap html source as an example to see what that might be - if bootstrap doesn't use it, I don't think you should support it).  The stuff you will be supporting are things around document structure like lists, headings, etc. div blocks and span nodes - so only implement that important stuff and delegate everything else to css where it belongs.
    Also make sure your implementation fits in with FXML so that you can easily embed your html subset in an FXML doc.

  • Html markup/tool tip appears on  website

    The html markup/tool tip boxes appear on our newly published
    website Aardvarkartbazaar.com. They show- up when you hover over
    the artwork on the Art For Sale section. Any suggestions on how to
    remove these from appearing on our website would be much
    appreciated.

    I see that the title attributes contain stuff like:
    title="
    Artist: Mike Sweeney
    &lt;br&gt;
    &lt;br&gt;
    $60 (S &amp; H included)
    &lt;br&gt;
    &lt;br&gt;
    you actually can´t have html tags within title or alt
    attributes, that´s why it´s getting displayed "as is" --
    use plain text only

  • Html markup for "NAME" field in APEX 4.02.00.07 tree structure

    Hi,
    I've seen countless examples of modifying the appearance of the NAME field of an APEX 4 tree, but I can't get it to work. If I create the tree as below, all I get is :
    <b>the Name</b> on each node of the tree. I can't seem to make the NAME field bold. Can you tell me what I'm doing wrong?
    Thanks.
    Susan
    Here's the code:
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    '<b>' || "NAME" || '</b>' as name,
    null as icon,
    "ID" as value,
    null as tooltip,
    null as link
    from "#OWNER#"."TEMP"
    start with "PID" is null
    connect by prior "ID" = "PID"
    Edited by: axiom7 on Aug 2, 2011 10:00 AM
    Just posted, and I see that my attempt to show the html markup, simply marked up the text. What I mean is that the html markup does not embolden the NAME field. I just see the bracketed html markup tags on either side of the NAME field. I hope I am being clear enough.

    Axiom,
    Unfortunately, the version of jsTree currently bundled in APEX does not include support for HTML titles. You can hack it in by using an on page load dynamic action to convert the plain-text titles to HTML (though that can get really ugly very quickly). Or you can use a PL/SQL region to create a tree using the latest jsTree build. (Demo page here.)
    -David

  • Change the styling of the generated html markup in ADF Faces

    Dear All,
    I just have some question on the generated HTML markup of panelStretchLayout component.
    Supposed I have this layout
    <af:panelStretchLayout id="cntDiv" dimensionsFrom="children" topHeight="auto"
      startWidth="0" endWidth="0">
         <f:facet name="top"/>
         <f:facet name="center"/>
         <f:facet name="bottom"/>                                    
    </af:panelStretchLayout>If you look at the generated html markup it will create a div element with below styling
    <div id="pt1:cntDiv::t" style="position:relative;overflow:hidden;width:100%"/>
    <div id="pt1:cntDiv::c" style="position:relative;overflow:hidden;width:100%"/>
    <div id="pt1:cntDiv::b" style="position:relative;overflow:hidden;width:100%"/>My problem is with the overflow:hidden property. Is there a way or configuration to remove or override this property
    when the markup is generated?
    Use case:
    I wanted to use fancy Jquery sliding menu but everything gets messed up because of this css style property.
    I know you should not mix up JSF with client side components but I need to use those fancy javascript powered menu's.
    Is this possible? If so how?
    Thanks
    JDEV 11g PS5

    Hi there,
    You are saying that you want to use mouse-over. But I think you don't want to use that.
    I've been working with this, and I got it working. However........ Image this: "you have a table with 10 visible rows. You have some buttons below the table. After you select a row (lets say the third) , you might want to navigate to the details by "pushing" a button.
    What will happen with the selected row.......your mouse goes to the button... your mouse has to go over all the rows in the table.... The last row your mouse goes over will be selected.... and these details will be shown. Not the details of the row that you initially selected....
    If you still want this..... I might be able to help you.
    Luc Bors

  • RichText with HTML markup in PDF

    Hello
    I've come to the point, when I need to display rich text with html markups in output PDF.
    PDF is going to be printed and I don't want anything to be editable.
    I've started with xsd schema for the xdp template, where particular element looks like this:
           <xs:element name="note">
                   <xs:complexType>
                          <xs:simpleContent>
                               <xs:extension base="xs:string">
                                    <xs:attribute ref="xfa:contentType" fixed="text/html"/>
                               </xs:extension>
                          </xs:simpleContent>
                   </xs:complexType>
           </xs:element>
    in xdp form, I am using TextField with RichText option switched on, value type: Read Only
    as a test, xml data, which I am passing into it, looks like this:
    <note>
         <body xmlns="http://www.w3.org/1999/xhtml">
              <b>Note</b>
              <a href='http://somepage.com'>homepage</a>
              <img src = 'pdficon.png'/>
         </body>
    </note>
    It comes from the html snippet, which is also displayed in java web application using the wicket framework, so no problem with that in web browser.
    In general, it works, I am not getting any parsing errors or other exceptions from LC.
    Now, my questions are:
    1.hyperlink is displayed correctly in blue color and underlined, but it is not clickable ... is it because of the ReadOnly option?
    2. Obviously, image is skipped. I don't expect that to be shown in textField, also there is not real path to that image, but I wonder, is it
    possible to display it in some other way? Or, to be more precise, is it possible to interpret <img src... correctly in PDF?
    3. I understand from some other thread in this forum, that it is not possible to paste html snippet into PDF directly?
    Many thanks
       Martin

    Hi Abhinav
    What my question your reply does apply to? Nr. 3?
       Martin

  • Keeping HTML markup out of the resource bundle

    Hello, I'm using ResourceBundles along with XSLT, and an issue that I'm trying to resolve is whether I should or could keep HTML markup outside of the resources. Some of the messages that my app displays have special markup, for example.
    Good morning, <b>{0}</b>!
    In Polish (just to illustrate a point) I might want to use:
    <b>{0}</b>, dzien dobry!
    I don't see any way to keep the HTML out of the resource -- and I want to keep the entire sentence in the resource file because the words may be in different order in different languages.
    What is the usual approach to this? Is markup in resource files a "bad thing"? I searched the net but failed to find anything about this... Thank you,
    tom.

    If the translators use a translation memory tool with a parser that protects markup based on file type, then it is a very bad thing to have html in a java resource bundle, yes. Because the parser will protect the java code, but not the html, increasing the likelyhood that the html markup will be mangled during translation.
    You are of course right that you need to keep the entire sentence in the resource file to enable correct translation.

  • Default font for HTML Markup Style

    Hi,
    We are using SSRS reports and fetching the data from SQL Server. The data is in form of HTML tags and hence we have set the field properties as HTML Markup. Now we need to know is there a way where in we can set the output font irrespective of the font available
    in HTML tags pulled from SQL server.
    Regards,
    Siddharth

    Hi Siddharth,
    Based on my understanding, you get values that contains HTML tags from database. Then you set HTML Markup Style in Placeholder Properties to render the values as HTML. Now you want to change the font of output values.
    In Reporting Service, already defined font properties in HTML can’t be changed in Placeholder Properties. As we tested in our environment, we add <font color= blue> in HTML, then set HTML Markup Style in Placeholder Properties to render the values
    as HTML. When we preview the report, the color of output value is blue. Then we set with this path: Placeholder Properties->Font->Effects->Underline, the output value shows with underline. However, if we change Font Color to Pink, the color of output
    value remains blue. Please refer to screenshots below:
    So in your scenario, if you have set font properties in HTML tags, then you can’t change corresponding properties to another values in Placeholder Properties.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • HTML markup for JSF page

    I have a JSF page containing both standard JSF components and custom components. In the page am able to trigger AJAX requests,capture the requests in phaselistener. Now what I want is to generate output for a particular div inside the whole page. This div in turn contains a JSF page. The HTML markup corresponding to the page has to be sent to the browser.
    (i.e) I need a mechanism wherein I can specify the name of JSF page,get the HTML markup for the same and send it across to the browser as response. Please guide me as how to go about it.

    Its been a week since I posted this query.Still no replies. Let me make myself clear.
    Suppose am having
    <h:panelGroup id="outerDiv">
                     <h:panelGroup id="innerDiv1">
                                    <jsp:include > //Includes firstpage-JSF page
                      </h:panelGroup>
                      <h:panelGroup id="innerDiv2">
                                    <jsp:include > //Includes second page-JSF page
                       </h:panelGroup>
    </h:panelGroup>I want to send an AJAX request,fetch corresponding HTML markup for the JSF page I have included and use it in javascript to write to the <div>. So is there any mechanism wherein I can give the name of the JSF page, get the corresponding HTML markup? If not, is there any workaround? I dont want to use any third-party components.

  • Why is my iChat Google Talk sending html markup?

    I am using iChat on my new computer and it automatically configured Google Talk when I put in my gmail address. Things looked great until I sent a message to a PC user with a Google Talk application - it arrived to him as
    <html xmlns="http://jabber.org/protocol/xhtml-im"><body style="background-color:#fee32f;color:#000000;" xmlns="http://www.w3.org/1999/xhtml"><span style="font-family: 'Helvetica';font-size: 12px;">i'm on new computer</span></body></html>
    instead of just my text - making conversation a little difficult! Is there any way to make sure I'm sending plain text, and lose all the html markup? My text shows up fine when I have Talk open in my gmail browser window, though I see the same thing he was in the transcripts archived in my gmail.

    HI,
    I have only heard of that in relation to iChat to IQC users.
    ICQ was once owned by AIM and formed part of the same "Service"
    That is to say it logged in to the same Servers and ICQ names could be added to an AIM Buddy list and vice Versa
    ICQ has since been sold off to some Russians and has it;s own servers although can still be "AIM Buddies"
    The point is though, that IQC users do not have stylised Balloons or Bubbles for their text Chats and cannot deal with the extra info that is sent.
    Basically it is HTML to form the Balloon and colour it and the Font.
    I have never seen a Post to say the the PC app called GoogleTalk had this issue
    In earlier versions (iChat 4 and 5) there was an Add-on called Chax that could remove the HTML for ICQ chats but it does not work in iChat 6
    Google and AIM have both added methods of "Automatically" adding Buddies from the other service to their Buddy lists
    I am wondering if the GoogleTalk app has  an "ICQ mode" that is enabled.
    10:07 PM      Friday; July 13, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

Maybe you are looking for

  • Open source shopping cart wont open with safari

    Hi all... I'm designing cart templates for a company that supplies an interface for uploading product to an open source shopping cart. The problem is I can't open the shopping carts with safari. They are fine with firefox and on a PC. (forgive me for

  • Price per minute of Flash animation?

    Hi, I need to create 2 minutes of animated info graphics in Flash. What is the general formula for price per minute of Flash animation? I know it varies, though this would be high-end animation requiring lots of things to be animated, such as bar gra

  • When I get a message it only vibrates even though all sounds are on and when someone calls the sound works perfectly normal.

    when I get a message my iphone 4s only vibrates even though all sounds are on and when someone calls the sound works perfectly normal.

  • Stop display mirroring

    I am running Yosemite on a MacPro with three monitors connected in addition to the TV.  I just connected an Apple TV to my network and since then the displays keep mirroring even when I am not using the Apple TV. Is there some way to turn off mirrori

  • K9AGM2-FIH: "PS/2 mouse not found" - BIOS setting?

    Greeting, Every time I boot my system, the BIOS on my K9AGM2-FID board complains about not finding a PS/2 mouse and asking me to hit F1 to continue. I'm using a USB mouse and keyboard. I can't find any setting in the BIOS where I can deactivate the P