Skip to Content

Add URL content in page

Hi,

i have a sap.m.page in this how can i load a url path.can anyone help me out in fixing this problem?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 30, 2013 at 05:25 PM

    You could add this control (mixed with iframe) to your page:

    var html = new sap.ui.core.HTML({

    content: "<iframe style='width:100%;height:100%' src='"+YOUR_URL+"'></iframe>",

    preferDOM : false

    });

    King regards

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 26, 2013 at 06:44 AM

    Hi,

    Can you elaborate more on your requirement?

    Regards,

    Chandra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2013 at 11:39 AM

    Hi Raghu,

    if you just want to place rendered content in your page, you can use jQuery load().

    Official description: Load data from the server and place the returned HTML into the matched element.

    $( "#result" ).load( "ajax/test.html" );
    

    Hope, that helps.

    Regards

    Michael

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Raghu,

      I didn't understand totally what you are looking for. But I can suggest you some methods, that may help you.

      Try following methods,

      *var landingPageUrlInput = new sap.m.Input(

      'landingPageUrlInputId',

      {

      type: sap.m.InputType.Url,

      placeholder: oDataServiceUrl

      }

      );

      where 'oDataServiceUrl' is URL.

      *var settings = {

      oDataServiceUrl : ODataUrl,

      mode : mode,

      feedType : feedType,

      groupIds: groupIds,

      object:{

      id: objectId,

      type: objectType,

      data: []

      }

      where 'oDataUrl' is URL.

      These are some methods to add URL in sap.ui.m.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.