Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all 6178 articles
Browse latest View live

Uncaught Error: failed to load 'sap/m/BusyDialogRenderer.js'

$
0
0

Hello Team,

 

Suddenly, this busy Dialog library is not loading,

https://sapui5.netweaver.ondemand.com/resources/sap/m/BusyDialogRenderer.js

error: HTTP Status 404 - Resource could not be found!


in console:

XMLHttpRequest cannot load https://sapui5.netweaver.ondemand.com/resources/sap/m/BusyDialogRenderer.js. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:49584' is therefore not allowed access. The response had HTTP status code 404.send @ sap-ui-core.js:71

sap-ui-core.js:88 Uncaught Error: failed to load 'sap/m/BusyDialogRenderer.js' from https://sapui5.netweaver.ondemand.com/resources/sap/m/BusyDialogRenderer.js: 0 - NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://sapui5.netweaver.ondemand.com/resources/sap/m/BusyDialogRenderer.js'.


Please help me to solve the issue, our applications are not working.



Thanks & Regards,

Preethi Ande


How to pass viewData when routing is implemented?

$
0
0

How to pass viewData when routing is implemented,

var account = new sap.ui.view({id:"account", viewName:"com.dealer.view.accounts.Accounts",viewData:data.userName, type:sap.ui.core.mvc.ViewType.JS});

How to navigate one page to another page?what is component.js file in brief?

$
0
0

Hi Experts,

 

Please let me know how to navigate one view to another view?

And what is advantage of component.js file ?

It is possible to run my application without component.js file?ib detail?

 

Thanks & Regards,

 

Gowrishankar.

OData call 404 when running from HCP

$
0
0

I have created a fiori app in eclipse which uses an odata url from a ecc server. It works fine when i test it locally in the browser. When i deployed it to HCP from eclipse using GIT and executed in browser , i can see my fiori app coming but the Odata call is failiing. I can see in the network tab the status 404 not found for $metadata for the odata service. BTW I am using proxy/http  in the url which is working fine when testing locally in browser.


Is there anything else , I need to do to make the odata call work when app is deployed in HCP. I read about reverse proxy by creating destination in HCP , i tried it myself to create it but I am unable to do . Can someone kindly tell me the steps so that I can successfully execute my odata call(from an ECC server) from HCP too

 

I had posted this question in HCP section too around 24 hrs back but there are hardly any views there hence I am posting it here.

 

Regards

Amber

Installation of SAPUI5 tools in eclipse giving error

$
0
0

Hi ,

 

Earlier I had been successfully using eclipse kepler with sapui5 without any issues. I just wanted to re-download and re-install the eclipse , so i just downloaded kepler version of eclipse. Upon running it , I tried to install the sapui5 tools but its giving me some error in between.

 

eclipse2.JPG

eclipse1.JPG

OData query configuration in SAP Fiori Master Data Template

$
0
0

Hi Experts,

 

I am new to SAP Fiori, need some help on how to configure the query in sample templates provided in SAP Web IDE.

I have an working OData query, it takes 2 filter parameters, Belnr and Gjhar, and returns invoice details (header/line items), the query works great in SAP gateway, no issues.

 

In Web IDE, I call the above oData service using Fiori Master Detail App, in run configuration for Webapplication test, I have 2 URL parameters Belnr and Gjhar, but whatever value I enter there doesn't flow to back-end. In external debugging mode,

it does call get_entityset method, but don't see any filter value/key fields or anything so basically method returns no value.

 

I think I miss some additional configuration or coding in front-end. I searched the controller files in template, but I don't find any place to pass parameters to back-end. Where exactly do I have to code/configure the parameters for data retrieval from back-end?

 

Thanks, Saty

Add row (on client-side) to table using ODATAModel

$
0
0

Hi there,

 

I got a Table bound to an ODATAModel.

I want to create a Button that inserts a new row to the table (and this record should not be saved to the database yet), and after that the user should enter the data to the new row and press a save button. After pressing save the record should be saved to the database.

 

Here's a sample what is exactly doing what I want, but it's using a JSONModle: http://jsbin.com/uxokuc/421/edit

 

I've came up with that, which adds a new record but also send it to the DB directly:

 

btnAddRecord.attachPress(function() {    // tblUser.addRow(new sap.ui.table.Row()); NOT POSSIBLE    var newEntry = oData.createEntry('/tbl_user', {ID: 4711, USERNAME: 'BEN'});    console.log(newEntry.getObject().USERNAME)    oData.submitChanges(local);
});

Some ideas here how (and if) that is possible?

 

Many thanks,

ben

XML views inside a HTML view

$
0
0

Hi,

 

I'm using HTML view and i want to place several XML views inside each <li>.

 

I saw the following documentation but i can't find how to place the XML view call.

 

Example: Use of HTML Templating in SAPUI5 - UI Development Toolkit for HTML5 (SAPUI5) - SAP Library

 

 

How can i embedd XML view in the <li> tag ?

 

 

<template data-controller-name="gridster.main">

 

<div class="gridster" data-type="text/x-handlebars-template">

 

  <ul>

 

  <li data-row="1" data-col="1" data-sizex="1" data-sizey="1">

       

** CALL XML VIEW HERE **

 

  </li>

 

 

 

  <li data-row="2" data-col="1" data-sizex="1" data-sizey="1"></li>

  <li data-row="3" data-col="1" data-sizex="1" data-sizey="1"></li>

  <li data-row="1" data-col="2" data-sizex="2" data-sizey="1"></li>

  <li data-row="2" data-col="2" data-sizex="2" data-sizey="2"></li>

  <li data-row="1" data-col="4" data-sizex="1" data-sizey="1"></li>

  <li data-row="2" data-col="4" data-sizex="2" data-sizey="1"></li>

  <li data-row="3" data-col="4" data-sizex="1" data-sizey="1"></li>

  <li data-row="1" data-col="5" data-sizex="1" data-sizey="1"></li>

  <li data-row="3" data-col="5" data-sizex="1" data-sizey="1"></li>

  <li data-row="1" data-col="6" data-sizex="1" data-sizey="1"></li>

  <li data-row="2" data-col="6" data-sizex="1" data-sizey="2"></li>

 

  </ul>

</div>

</template>

 

Thanks,

Arie.


How to refresh an image

$
0
0

Hi,

  I would like to refresh or reload a sap.ui.commons.Image for different url source

Is it possible?  One example, is users choose car 1, car 2 in the dropdown list  the

image will show different car picture.  The url may be generated dynamically

 

Thanks Mingho

What is the difference between open ui5 and sapui5?

$
0
0

Hi Experts,

 

Please let me know the difference between open ui5 and sapui5 ? And Is it possible run my application without component.js file?How?

Tile-navigate using XML

$
0
0

Hi SCN ,

 

I'm newbie to XML, WEBIDE.

 

View 1:

I have created a Tile in a view adding on press function.

 

Controller 1.

This has the functionality on the press event

and on press I'm expecting to call another view (SAY VIEW 2)

 

When I debug the code with having alert validation, it is giving the message, but it is not diverting to View 2.

so Basically a navigation functionality not sure what I could be missing.

 

Please suggest me , please find the attachments of the code I have used.

 

Unable to attach the view 1 and view 2.

 

View 1 has the code of tile with press event

 

View 2 has the code for just displaying some buttons.

 

 

 

Thank you,

can we use Element binding for table ....? if its yes then give me one small example

$
0
0

   Hi sir,

 

     am not getting about element binding so please can you explane it to me .....

and can we use element binding for table ....? if we cant then why ....please i need this answer clearly

 

 

 

Regards,

Manjunath.

Binding models together in sapui5 / mapping paths between models

$
0
0

Hi there,

 

is there a possibility to keep two models in sync or define a model which is just a view to some subset of information onto another model? Assume you have a model like this

 

var oModelA = new sap.ui.model.json.JSONModel({    "dataInA": [        { "name": "1st @ A" },        { "name": "2nd @ A" }]});

and you want to have a model with a layout like this:

 

var oModelB = new sap.ui.model.json.JSONModel({    "globalName": "?????"});

Can we link oModelB to oModelA such that

 

oModelB.getProperty("/globalName");

resolves to, e.g.,

 

oModelA.getProperty("/dataInA/0/name");

See this gist here.

 

 

You might argue: Why should we? Simply define the binding on the control such that it references "name" and use

 

oControl.bindElement("/dataInA/0").setModel(oModelA);

 

But I'm trying to write a control which consists of several sub-controls whose properties are named differently and which I want to address from the outside with only one property name -- and I thought doing it via an internal model would be the way.

 

Thanks,

M.

 

PS: To be more specific: I'm trying to write a control which yields a color field which on press yields a colorpicker which then changes the Color field -- pretty much exactly like the color picker in the DemoKit. But I would like to hide the two items (the picker and the color field indicating the selected color) within one control -- without writing all `bindProperty`, `setModel`, `unbindProperty`, `setProperty`, ... etc. myself and propagate them to the embedded controls. I was rather thinking about defining one model inside the control as CustomData and bind its properties from the outside and then use this control-local model to bind the Picker and the Color field to.

not able to apply formatter in Table in XML View

$
0
0

Hi All,

 

below is the View

 

view.JPG

Below is the Code which i have used in View

 

<Text xmlns="sap.m" text="{path:'StartDate', formatter:'formatDate'}" ></Text>

 

and below is the Method in controller

 

formatDate:function(value){

    debugger;

    jQuery.sap.require("sap.ui.core.format.DateFormat"); 

      var oDateFormat = sap.ui.core.format.DateFormat.getDateTimeInstance({pattern: "dd-MM-YYYY"}); 

      return oDateFormat.format(new Date(value)); 

  },

 

i am not able to get values in Startdate Column ,  i have checked below threads also .

 

 

http://scn.sap.com/thread/3783295

 

Date format in XML View Table and Dialog Input | SCN

 

 

Please Help

 

Thanks

Ashish

fiori launchpad error - Error: DOM element with ID 'content' not found in page, but application tries to insert content.

$
0
0

Hi Expert

 

we have develop sap ui5 application.

 

give following error, also application work fine in web ide but gives error on fiori lauch pad

 

Error: DOM element with ID 'content' not found in page, but application tries to insert content.



this is  code


index.html

----------------------------------------------


<!DOCTYPE HTML>

<html>

 

    <head>

        <meta http-equiv="X-UA-Compatible" content="IE=edge" />

        <meta charset="UTF-8">

 

        <title>zrs_dtls</title>

 

        <script id="sap-ui-bootstrap"

            src="resources/sap-ui-core.js"

           

            data-sap-ui-theme="sap_bluecrystal"

            data-sap-ui-xx-bindingSyntax="complex"

            data-sap-ui-libs="sap.m,sap.ui.commons,sap.m,sap.ui.commons"

            data-sap-ui-resourceroots='{"mainpage": "./"}'>

        </script>

 

        <link rel="stylesheet" type="text/css" href="css/style.css">

 

        <script>

            sap.ui.getCore().attachInit(function() {

                new sap.m.Shell({

                    app: new sap.ui.core.ComponentContainer({

                        height : "100%",

                        name : "mainpage"

                    })

                   

                }).placeAt("content");

               

            });

            oShell.addContent(sap.ui.getCore().byId("idtestView1"));

        </script>

   

    </head>

 

    <body class="sapUiBody" id="content">

         <div id="content">

 

  </div>

 

 

    </body>

 

</html>

 

 

------------------------------------------------------------------------------------------------------

 

master view.xml

 

<mvc:View xmlns:core="sap.ui.core" xmlns:footerbar="sap.ushell.ui.footerbar" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" controllerName="mainpage.view.Master">

    <Page id="masterPage" title="{i18n&gt;masterTitle}">

        <subHeader id="masterSubHeader">

            <Bar id="searchBar">

                <contentMiddle>

                    <DatePicker change="handleChange" class="sapUiSmallMarginBottom" id="DP4" value="{path:'/dateValue', type:'sap.ui.model.type.Date', formatOptions: { pattern: 'yyyy-MM-dd\'T\'HH:mm:ss', UTC: false, source: { pattern:       'HH:mm:ss' } } }"/>

                </contentMiddle>

            </Bar>

        </subHeader>

       

        <content>

           

        <Label text="Label" width="100%" id="lblcount"/>

           

        <Text text="No text specified" maxLines="0" id="text2"/>

           

        </content>

        <footer id="masterFooter"/>

    </Page>

</mvc:View>

 

-------------------------------------------------

 

master.controller.js

 

sap.ui.core.mvc.Controller.extend("mainpage.view.Master", {

 

        onInit: function() {

            // this.oInitialLoadFinishedDeferred = jQuery.Deferred();

 

            // var oEventBus = this.getEventBus();

            //  oEventBus.subscribe("Detail", "TabChanged", this.onDetailTabChanged, this);

 

            //    var oList = this.getView().byId("list");

            //  oList.attachEvent("updateFinished", function() {

            //        this.oInitialLoadFinishedDeferred.resolve();

            //        oEventBus.publish("Master", "InitialLoadFinished");

            //    }, this);

 

            //On phone devices, there is nothing to select from the list. There is no need to attach events.

            // if (sap.ui.Device.system.phone) {

            //     return;

            // }

 

            // this.getRouter().attachRoutePatternMatched(this.onRouteMatched, this);

 

            // oEventBus.subscribe("Detail", "Changed", this.onDetailChanged, this);

            // oEventBus.subscribe("Detail", "NotFound", this.onNotFound, this);

 

        },

        handleChange: function(oEvent) {

            var sValue = oEvent.getParameter("value");

 

            var url = "/sap/opu/odata/sap/ZFICOUNTOLD_SRV/";

 

            var oModel = new sap.ui.model.odata.ODataModel(url, true);

 

            var aFilters = [];

 

            var oFilters = new sap.ui.model.Filter("S_Date", sap.ui.model.FilterOperator.EQ, sValue);

 

            aFilters.push(oFilters);

            sap.ui.getCore().setModel(oModel);

 

            //         var txtcount = new sap.ui.commons.TextField();

            //             txtcount.setModel(oModel);

            //             txtcount.setValue(oModel.getData(sPath, [oContext], [bIncludeExpandEntries]))

 

            //             txtcount.placeAt("content");

 

//         var oTextField = new sap.ui.commons.TextField(this.createId("text3"),

//         { value:"{/CountSet/0/Item}"});

 

        var variable1 = oModel.getProperty("/Mandt");

        var variable11 = oModel.getProperty("/Item");

        var variable111 = oModel.getProperty("/S_Date");

//         oTextField.placeAt("content");

            debugger;

            var oTable = new sap.m.Table({

                mode: sap.m.ListMode.None,

                columns: [

            new sap.m.Column({

                        width: "1em",

                        header: new sap.m.Label({

                            text: "Item Count"

                        })

                    })

                    ]

            });

 

            var template = new sap.m.ColumnListItem({

                id: "first_template",

                type: "Navigation",

                visible: true,

                selected: true,

                cells: [

                   new sap.m.Label({

                        id: "test1",

 

                        text: "{Item}"

 

                    })

 

                    ]

            });

 

            oTable.bindItems("/CountSet", template, null, oFilters);

            //this.getView().byId("lblCount").bindElement(sPath, [mParameters])

            oTable.placeAt("content");

           

            //return oTable;

            //var label1 = template.getCells(1).valueOf("test1");

 

            //         var selectionCheck = oTable.getSelectedItem(0);

            //         var selectedRow = selectionCheck.mAggregations.cells[0];

            //         var selectedUserName = selectedRow["test1"];

 

//             var data = oTable.getModel("oModel").getProperty(

//                     "oContext])

        debugger;

        //label1 = oModel.get

 

    },

    onRouteMatched: function(oEvent) {

        // var sName = oEvent.getParameter("                    name ");

 

        // if (sName !== "                    main ") {

        //     return;

        // }

 

        // //Load the detail view in desktop

        // this.loadDetailView();

 

        // //Wait for the list to be loaded once

        // this.waitForInitialListLoading(function () {

 

        //     //On the empty hash select the first item

        //     //this.selectFirstItem();

 

        // });

 

    },

 

    onDetailChanged: function(sChanel, sEvent, oData) {

        //         var sEntityPath = oData.sEntityPath;

        //         //Wait for the list to be loaded once

        //         this.waitForInitialListLoading(function () {

        //             var oList = this.getView().byId("                    list ");

 

        //             var oSelectedItem = oList.getSelectedItem();

        //             // The correct item is already selected

        //             if(oSelectedItem && oSelectedItem.getBindingContext().getPath() === sEntityPath) {

        //                 return;

        //             }

 

        //             var aItems = oList.getItems();

 

        //             for (var i = 0; i < aItems.length; i++) {

        //                 if (aItems[i].getBindingContext().getPath() === sEntityPath) {

        //                     oList.setSelectedItem(aItems[i], true);

        //                     break;

        //                 }

        //             }

        //         });

        //     },

 

        //     onDetailTabChanged : function (sChanel, sEvent, oData) {

        //         this.sTab = oData.sTabKey;

        //     },

 

        //     loadDetailView : function(){

        //         this.getRouter().myNavToWithoutHash({

        //             currentView : this.getView(),

        //             targetViewName : "

                //     mainpage.view.Detail ",

        //             targetViewType : "

                //     XML "

        //         });

    },

 

    waitForInitialListLoading: function(fnToExecute) {

        //         jQuery.when(this.oInitialLoadFinishedDeferred).then(jQuery.proxy(fnToExecute, this));

    },

 

    onNotFound: function() {

        //         this.getView().byId("                    list ").removeSelections();

    },

 

    selectFirstItem: function() {

        //         var oList = this.getView().byId("                    list ");

        //         var aItems = oList.getItems();

        //         if (aItems.length) {

        //             oList.setSelectedItem(aItems[0], true);

        //             //Load the detail view in desktop

        //             this.loadDetailView();

        //             oList.fireSelect({"

                //     listItem " : aItems[0]});

        //         }

        //         else {

        //             this.getRouter().myNavToWithoutHash({

        //                 currentView : this.getView(),

        //                 targetViewName : "

                //     mainpage.view.NotFound ",

        //                 targetViewType : "

                //     XML "

        //             });

        //         }

    },

 

    onSearch: function() {

        //         this.oInitialLoadFinishedDeferred = jQuery.Deferred();

        //         // Add search filter

        //         var filters = [];

        //         var searchString = this.getView().byId("                    searchField ").getValue();

        //         if (searchString && searchString.length > 0) {

        //             filters = [ new sap.ui.model.Filter("                    ", sap.ui.model.FilterOperator.Contains, searchString) ];

        //         }

        //         // Update list binding

        //         this.getView().byId("list ").getBinding("items ").filter(filters);

 

        //         //On phone devices, there is nothing to select from the list

        //         if (sap.ui.Device.system.phone) {

        //             return;

        //         }

 

        //         //Wait for the list to be reloaded

        //         this.waitForInitialListLoading(function () {

        //             //On the empty hash select the first item

        //             this.selectFirstItem();

        //         });

    },

 

    onSelect: function(oEvent) {

        // Get the list item either from the listItem parameter or from the event's

        // source itself (will depend on the device-dependent mode)

        //         this.showDetail(oEvent.getParameter("listItem ") || oEvent.getSource());

    },

 

    showDetail: function(oItem) {

        //         // If we're on a phone device, include nav in history

        //         var bReplace = jQuery.device.is.phone ? false : true;

        //         this.getRouter().navTo("

                //     detail ", {

        //             from: "

                //     master ",

        //             entity: oItem.getBindingContext().getPath().substr(1),

        //             tab: this.sTab

        //         }, bReplace);

    },

 

    getEventBus: function() {

        //         return sap.ui.getCore().getEventBus();

    },

 

    getRouter: function() {

        //         return sap.ui.core.UIComponent.getRouterFor(this);

    },

 

    onExit: function(oEvent) {

        //         var oEventBus = this.getEventBus();

        //         oEventBus.unsubscribe("

                //     Detail ", "

                //     TabChanged ", this.onDetailTabChanged, this);

        //         oEventBus.unsubscribe("

                //     Detail ", "

                //     Changed ", this.onDetailChanged, this);

        //         oEventBus.unsubscribe("

                //     Detail ", "

                //     NotFound ", this.onNotFound, this);

    }

});

------------------------------------------


How to add row in a table from Value Help Dialog Box

$
0
0

Hii Experts,

 

 

I Want to add row in a table from value help dialog.

 

View Part

 

 

 

  <Button icon="sap-icon://add" press="handleValueHelp1" />

 

 

  <ScrollContainer height="100%" horizontal="false"

  vertical="true">

 

 

  <template:repeat list="{tmpl>/ProductCollection}">

 

 

  <Panel expandable="true"  expanded="false"  this.createId="panel003">

 

 

  <headerToolbar>

  <Toolbar height="5rem">

  <VBox>

  <Label text="{tmpl>Name}" design="Bold" width="200px" />

  <Text text="{tmpl>Desc}"></Text>

  </VBox>

  <ToolbarSpacer />

  <HBox class="sapTopPanelPadding">

  <VBox class="sapUiSmallMargin">

  <Label text="{i18n>amountEUR}" />

  <HBox>

  <Select items="{/amount}">

  <core:ListItem text="{credeb}">

  </core:ListItem>

  </Select>

  <Label text="   " width="8px"></Label>

  <Input type="Text" width="130px">

  </Input>

  </HBox>

  </VBox>

  <VBox class="sapUiSmallMargin">

  <Label text="{i18n>originalValue}" labelFor="DP1" />

  <DatePicker change="handleChange" class="sapUiSmallMarginBottom"

  width="195px" />

  </VBox>

<VBox class="sapUiSmallMargin">

  <Label text="{i18n>text}" />

  <Input type="Text" width="300px">

  </Input>

  </VBox>

  </HBox>

 

 

  <Button icon="sap-icon://sys-cancel"  press="onClick"/>

  </Toolbar>

  </headerToolbar>

 

Controller Part



onInit:function(){

 

  //this.theTokenInput= this.getView().byId("multiInput1");

  this.aKeys= ["CompanyCode","CompanyCodeName"];

/*

  var token1= new sap.m.Token({key: "001", text: "Construction"});

  this.aTokens= [token1];

 

 

  this.theTokenInput.setTokens(this.aTokens);

*/

 

  },

 

  handleValueHelp1: function() {

        this.aKeys1= ["AssetNumber", "CompanyCode"];

        this.aItems= [{AssetNumber: "F-10001", AssetClass: "F-10001", CompanyCode: "0001 (SAP France)", Description:""},

                      {AssetNumber: "F-10001-1", AssetClass: "F-10001-1", CompanyCode: "0001 (SAP France)", Description:"Construction"},

                      {AssetNumber: "X-0001.01.03", AssetClass: "X-0001.01.03", CompanyCode: "0001 (SAP France)", Description:"Design"},

                      {AssetNumber: "X-0001.01.04", AssetClass: "X-0001.01.04", CompanyCode: "0001 (SAP France)", Description:"Requirement"},

                      {AssetNumber: "X-0003.01.05", AssetClass: "X-0003.01.05", CompanyCode: "0001 (SAP France)", Description:"WBSE for Simple Finance"}

                      ];

 

 

        var that= this;

 

 

 

        var oValueHelpDialog = new sap.ui.comp.valuehelpdialog.ValueHelpDialog({

               //basicSearchText: this.theTokenInput.getValue(),

               title: "Assets",

               supportMultiselect: true,

               //supportRanges: true,

               //supportRangesOnly: false,

               key: this.aKeys1[0],                    

               descriptionKey: this.aKeys1[1],

              

 

 

              

               ok: function(oControlEvent) {

                     //that.aTokens = oControlEvent.getParameter("tokens");

                     //     that.theTokenInput.setTokens(that.aTokens);

                    

                     oValueHelpDialog.close();

               },

 

 

               cancel: function(oControlEvent) {

                     sap.m.MessageToast.show("Cancel pressed!");

                     oValueHelpDialog.close();

               },

 

 

               afterClose: function() {

                     oValueHelpDialog.destroy();

               }

        });

 

 

       

        var oColModel = new sap.ui.model.json.JSONModel();

        oColModel.setData({

               cols: [

                      {label: "Asset Number", template: "AssetNumber"},

                      {label: "Asset Class", template: "AssetClass"},

                      {label: "Company Code", template: "CompanyCode"},

                      {label: "Description", template: "Description"}

                      ]

        });

        oValueHelpDialog.getTable().setModel(oColModel, "columns");

       

        var oRowsModel = new sap.ui.model.json.JSONModel();

        oRowsModel.setData(this.aItems);

        oValueHelpDialog.getTable().setModel(oRowsModel);

 

        oValueHelpDialog.getTable().bindRows("/");

       

 

 

        //oValueHelpDialog.setRangeKeyFields([{label: "Company Code", key: "CompanyCode"}, {label : "Company Name", key:"CompanyName"}]);

 

 

        //oValueHelpDialog.setTokens(this.aTokens);

 

 

 

        var oFilterBar = new sap.ui.comp.filterbar.FilterBar({

               advancedMode:  true,

               filterBarExpanded: false,

               //filterItems: [new sap.ui.comp.filterbar.FilterItem({ name: "s1", control: new sap.m.Input()})],

               filterGroupItems: [new sap.ui.comp.filterbar.FilterGroupItem({ groupTitle: "foo", groupName: "gn1", name: "n1", label: "Asset Class", control: new sap.m.Input()}),

                                  new sap.ui.comp.filterbar.FilterGroupItem({ groupTitle: "foo", groupName: "gn1", name: "n2", label: "Company Code", control: new sap.m.Input()}),

                                  new sap.ui.comp.filterbar.FilterGroupItem({ groupTitle: "foo", groupName: "gn1", name: "n3", label: "Asset Number", control: new sap.m.Input()})],

                                  search: function() {

                                       sap.m.MessageToast.show("Search pressed '"+arguments[0].mParameters.selectionSet[0].getValue()+"''");

                                  }

        });   

       

 

 

        if (oFilterBar.setBasicSearch) {

               oFilterBar.setBasicSearch(new sap.m.SearchField({showSearchButton:false, placeholder:"Search"})); 

        }

 

 

        oValueHelpDialog.setFilterBar(oFilterBar);

 

 

        oValueHelpDialog.open();

        oValueHelpDialog.update();

        oValueHelpDialog.addStyleClass("sapUiSizeCozy");

}


value help.png

 

 

 

Items row added by value help.

value help 2.png

 

Thanks & Rergards

Ayushi,

Define view once - use often with parameters - possible?

$
0
0

HI experts,

 

I want to create a view and give to the view controller some parameters and use this view quiet often in my application and clal the view with some parameters...

 

is this possible?

 

1) how can i define such view?

2) how can i call the view with the parameters?

 

thanks for information.

 

br,

christoph

Views and Controllers Loading Confusion

$
0
0

Hello Everyone,

 

In my application, I have 2 views and 2 controllers for each view.

In my first view, I have an Input form and in my second view I have an output table bound to a model.

In my first controller, I am just forwarding my application to view2. And my model is in 2 nd controller.

 

 

Flow should be like this:

 

View1 (Input form) --> controller 1 (get inputs parmeters) --> controller2 (get those parameters and pass it to url using ajax call) --> view 2 (To display the final data)

 

 

Problem is that everything is loading simultaneously and as a result, I am getting nothing in 2 nd controller.

In my index file, I have created an app and have given the id of view1 to load first.

 

I just want to achieve the above flow which is written in bold.

 

 

Please help someone.

SAp UI5 Implementation

$
0
0

Hi All,

We are looking to use SAP UI5 for making the Mobile strategy work in our company, As our Webdynpro ABAP based applications doesnt render good on IOS. It is very urgent so any help would be appreciated.

 

So we would like to know:

1`. where to start

2. Any License required.

3. What does it take to  implement the new architecture.

4. All our webdynpro applicatiosn run on EP( portal), So how does these fit into the same architecrure.

5. Whether portal would still work or would have to implemtn a new Bussiness client.

6. What kind of training would be required for this.

 

Thanks in advance

Phani

learning guidence from sap ui5 experts

$
0
0

HI experts,

 

i want to learn sapui5, i have good knowledge in html5, css3,javascript, jquery,sql but not in ABAP.

 

can anybody suggest me which ABAP topics required to learn SAPUI5 and Fiori.

 

Regards,

kpk

Viewing all 6178 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>