on 12-26-2013 6:03 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghu,
try to add a HTML-Container-Control to your page-control. You can use it to define a div-Container, where you can put your loaded HTML.
var html = new sap.ui.core.HTML({ content: '<div id="result"></div>' });
Here is an example.
Regards
Michael
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.
Hi,
Can you elaborate more on your requirement?
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.