This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mvc:View controllerName="com.study.Z_HttpRequests.controller.View1" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m"> | |
<Shell id="shell"> | |
<App id="app"> | |
<pages> | |
<Page id="page" title="{i18n>ajaxTitle}"> | |
<content> | |
<List class="sapUiResponsiveMargin" width="auto" items="{httpModel>/}"> | |
<items> | |
<ObjectListItem title="User ID: {httpModel>userId}" numberUnit="{httpModel>title}" | |
intro="{httpModel>body}" number="ID: {httpModel>id}"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Building a router</title> | |
<script> | |
// Put John's template engine code here... | |
(function () { | |
// A hash to store our routes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(string) { | |
if(typeof string !== "string") throw new TypeError("Plesae enter a string value!"); | |
return string.replace(/\s/g,""); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script | |
src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js" | |
id="sap-ui-bootstrap" | |
data-sap-ui-theme="sap_bluecrystal" | |
data-sap-ui-libs="sap.m" | |
data-sap-ui-xx-bindingSyntax="complex"> | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sap.ui.define([ | |
"sap/ui/core/mvc/Controller" | |
], function (Controller) { | |
"use strict"; | |
return Controller.extend("com.demo.ZDemo_CustomPath.controller.Display", { | |
onInit: function () { | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onPressAdd: function () { | |
//retrive model using helper function in base class | |
var oJsonModel = this.getMyModel("Results"); | |
//create an additional node to be added to the model | |
var additional_props = { | |
"organization": "SAP", | |
"place": "Bangalore" | |
}; | |
//add the new node to the current model | |
oJsonModel.setProperty("/address",additional_props); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# loop for retrieving div tags | |
for eachDiv in divs: | |
hrefS = re.findall(r'title=(.*?)>', str(eachDiv)) | |
for hRef in hrefS: # loop for retrieving only titles in the relevent divs | |
print(hRef) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Open the file and pass data to be written. | |
file1 = open(completeName, "w") | |
toFile = "SCN: Questions of the Day!"+\ | |
"\n"+"**************************""\n" | |
file1.write(toFile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sign_content ="<br/>"+"Thanks,"+"<br/>"+"Jakes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(itemNumber == 0): | |
mailSubject = itemDetails | |
OlderNewer