Skip to Content
0
May 15, 2018 at 02:19 PM

How to add color to master Pages in Split App

112 Views Last edit May 15, 2018 at 02:22 PM 2 rev

Hi Guy's

If I click on BUY button in detail page in master page item should be GREEN color.

	venderdata: function(sKey) {
									     var oTable = this.byId("idTblVendor");
									    var url = "/VendorData('" + sKey + "')/Results";
									    var itemTemplate = new sap.m.ColumnListItem({
										cells: [
											new sap.m.Text({
												text: "{VENDOR_NO}"
											}),
											new sap.m.Text({
												text: "{VENDOR_NAME}"
											}),
											new sap.m.Text({
												text: "{PRICE}"
											}),
											new sap.m.Button({
												text: "Quote",
												press: function() {}
											}),
											new sap.m.Button({
												text: "Buy",
												enabled: "{= ${PRICE} > 0 }",
												press: function() {
		//							
												}
								})
										]
	});
									      oTable.bindItems({
										path: url,
										template: itemTemplate
									});
								},

Attachments

capture35.jpg (53.2 kB)