Uncaught TypeError: Cannot read property 'Button' of undefined

Hello,
I'm trying to build "Hello world" app using the following tutorial:
SAP HANA Cloud Platform
When I try to run this app on the local server, I get this error:
I did everything strictly as the tutorial says.
Can someone help me out with this issue?
Thanks,
Yuri.

I have found the root of the problem. When I created the project, I've selected sap.m library instead of sap.ui.commons. I created new project, selected the required library and that solved my problem.

Similar Messages

  • Uncaught TypeError: Cannot read property 'getIconURI' of undefined

    Hi,
    I am getting error "uncaught TypeError: Cannot read property 'getIconURI' of undefined" at statement
    icon: sap.ui.core.IconPool.getIconURI('begin')
    In spite of loading required libraries (data-sap-ui-libs="sap.m,sap.ui.commons,sap.ui.table").
    In the console I can check that sap.ui.core.Icon is loaded but not sap.ui.core.IconPool.
    What is going wrong here.
    Regards,
    Chidan

    Hi  Aditya,
    Tried $.sap.require('sap.ui.core.IconPool'); now I am not getting the error message but the icon is not getting loaded, meaning I am not getting the URI when I call methd sap.ui.core.IconPool.getIconURI('begin').
    For now I am using workaround of directly entering the URI - but I am afraid what other modules have not been loaded.
    Regards,
    Chidan

  • Uncaught TypeError: Cannot read property 'touches' of undefined. (js-error)

    Hi, I'm trying to make a kind of interactive graphic novel, but keep getting this error when trying to bind swipe left: Uncaught TypeError: Cannot read property 'touches' of undefined. (js-error)

    Hi  Aditya,
    Tried $.sap.require('sap.ui.core.IconPool'); now I am not getting the error message but the icon is not getting loaded, meaning I am not getting the URI when I call methd sap.ui.core.IconPool.getIconURI('begin').
    For now I am using workaround of directly entering the URI - but I am afraid what other modules have not been loaded.
    Regards,
    Chidan

  • MuseJSAssert: Error calling selector function:TypeError: Cannot read property 'msie' of undefined. Please help me in this.

    MuseJSAssert: Error calling selector function:TypeError: Cannot read property 'msie' of undefined. Please help me in this.

    Hi
    Please check the following thread,
    Re: MuseJSAssert: Error Calling Selector Function:[Object Error]
    Do let me know if you have any question.

  • Upgrade v5.0 Error: Cannot read property 'timeline' of undefined

    Hi, I have this Error Uncaught TypeError: Cannot read property 'timeline' of undefined after upgrade to version 5.0 the older version of project works fine, any idea how to fix it?

    The new runtime has an internal variable called 'data' in the Symbol class. The code in this composition is also using .data to store some user values which is modifying the internal state of the symbol in runtime and is resulting into js errors. If you change the variable name from data to say _data, this should work. I have already done that in the actions.js file and am attaching the updated copy here. Please do a double check once, as it is used in many places and I might have missed something as I do not understand the domain logic in this code much.
    -Dharmendra

  • Uncaught TypeError: Cannot call method 'renderStoreProperty' of undefined

    Hi,
    I'm using CQ5.5 with SP2.
    I am going through the tutorial on how to create and register a new xtype.
    I have followed the steps, and am getting the following error when I try to view the page:
    Uncaught TypeError: Cannot call method 'renderStoreProperty' of undefined
    I have added the following:
    /apps/training/widgets ( jcr:primaryType(Name)=cq:ClientLibraryFolder, categories(String[])=training.widgets, dependencies(String[])=cq.widgets, sling:resourceType(String[])=widgets/clientlib )
    /apps/training/widgets/files (jcr:primaryType(Name)=nt:folder)
    /apps/training/widgets/files/training.js (content below)
    /apps/training/widgets/js.txt
    #base=files
    training.js
    training.js
    // Create the namespace
    Training = {};
    // Create a new class based on existing CompositeField
    Training.Selection = CQ.Ext.extend(CQ.form.CompositeField, {
        text: "default text",
        constructor : function(config){
            if (config.text != null) this.text = config.text;
            var defaults = {
                    height: "auto",
                    border: false,
                    style: "padding:0;margin-bottom:0;",
                    layoutConfig: {
                        labelSeparator: CQ.themes.Dialog.LABEL_SEPARATOR
                    defaults: {
                        msgTarget: CQ.themes.Dialog.MSG_TARGET
            CQ.Util.applyDefaults(config, defaults);
            Training.Selection.superclass.constructor.call(this, config);
            this.selectionForm = new CQ.Ext.form.TimeField({
                name: this.name,
                hideLabel: true,
                anchor: "100%",
                minValue: '8:00am',
                maxValue: '6:00pm',
                intDate: new Date(),
                validateValue: function(value) {return true}
            this.add(this.selectionForm);
        processRecord: function(record, path){
            this.selectionForm.setValue(record.get(this.getName()));
    CQ.Ext.reg("trainingSelection", Training.Selection);
    I have included headlibs.jsp for an extension of page as per the tutorial, contianing:
    <cq:includeClientLib js="training.widgets"/>
    When debugging the /etc/clientlibs/foundation/librarymanager/CQClientLibraryManager.js file, the path seems to be correct, pointing to:
    /apps/training/widgets.js
    unfortunately, when I try to hit
    http://localhost:4502/apps/training/widgets.js, I get a 404 No resource found error.
    This leads me to believe that I have something wrong with the /apps/training/widgets node, as it is not rendering the .js includes.
    Any help would be greatly appreciated.

    OK, found the problem.
    The clue was that it couldn't find the relevant js files.
    The tutorial tells us to add:
    <cq:inclueClientLib js="training.widgets" />
    Just above they have the line:
    <cq:inclueClientLib categories="cq.foundation-main"/>
    as we have set the property categories(String[])=training.widgets, if we change js to categories as such:
    <cq:inclueClientLib categories="training.widgets" />
    It fixes the issue.

  • Getting error "Cannot read property 'tooltip' of undefined"

    Hi,
    I have Predictive Analysis 1.18. In preferences I have checked Esri ArcGIS online and Entered credentials.
    Also I have reopened the document. But not able to create Geo Map. Getting error as "Cannot read property 'tooltip' of undefined".
    I have attached the screenshot of the same.
    Can anyone please provide the solution?
    Thanks and Regards,
    Bhagyashri

    The new runtime has an internal variable called 'data' in the Symbol class. The code in this composition is also using .data to store some user values which is modifying the internal state of the symbol in runtime and is resulting into js errors. If you change the variable name from data to say _data, this should work. I have already done that in the actions.js file and am attaching the updated copy here. Please do a double check once, as it is used in many places and I might have missed something as I do not understand the domain logic in this code much.
    -Dharmendra

  • Edge.4.js Cannot read property 'symbolData' of undefined

    Hi
    Some times when open my project in the browser I get error: Cannot read property 'symbolData' of undefined   ...../edge_includes/edge.4.0.0.min.js:184
    I found a mention similar in the forum Error playing movie on slow connection
    but I have not a slow connection.
    help, some idea how to fix?
    my files are:
    project.html               3 kb
    project_edge.js          669 kb
    project_edgeActions.js    16 kb
    project_edgePreload.js    15 kb
    thanks,
    Paul

    Hi Paul ,
    We figured out that in some cases this issue comes up if you have empty symbols in your project? Can you check and if you have empty symbols can you delete them from the composition?
    If possible, share the composition with us so that we can investigate the issue better?
    Thanks and Regards,
    Sudeshna Sarkar

  • Error : MustJSAssert: Error calling selector function: TypeError: Cannot read property

    Im getting an error : MustJSAssert: Error calling selector function: TypeError: Cannot read property 'style' of null'
    - with each  page selection on the nav bar
    here is the link
    http://http-shipleybusinesscatalystcom.businesscatalyst.com/index.html

    I'm unable to reproduce the error message at your site (on any of the pages) as tested in multiple browsers on a Windows machine. What browser (with version)/OS/Muse version are you using?
    However, the most likely cause of the error message is the pinned menu at your site. Refer to a similar thread here - http://forums.adobe.com/thread/1117058
    If the problem persists at your end, please try clearing your browser's cache/history/cookies and re-try. Also try a different browser in order to isolate the issue to a specific browser (version).
    Thanks,
    Vinayak

  • Cannot read property 'odata' undefined

    Hello, I need to get employee details from my backend NW service that i created YHK_EMP_SRV. However, i am getting an error "Uncaught TypeError: Cannot read property 'odata' of undefined". I have my code in the controller page "empdetails.controller.js" as below. onInit : function() { var sServiceUrl = "http://someserver.com:8000/sap/opu/odata/sap/YHK_EMP_SRV"; var oModel = new sap.ui.Model.odata.ODataModel( sServiceUrl, true); var oJsonModel = new sap.ui.model.json.JSONModel(); debugging; oModel.read("/EmployeeSet?", null, null, true, function(oData, response) { oJsonModel.setData(oData); }); sap.ui.getCore().setModel(oJsonModel); }, Can someone suggest me where am i doing wrong?

    sap.ui.model.odata
    not
    sap.ui.Model.odata

  • Muse Craziness and Error: Cannot read property 'parent node' of undefined

    I have finished my site and exported as HTML, when you open the index file you see a quick preview of the site then the page goes white.
    If I preview the site in a browser from Muse menu selection, I get this error and the content in my light boxes is all moved and some items not showing. Even pulled my footer items into the light box.
    Note that all of this only happens when previewed or exported as HTML. Everything works as it should in the design mode. When I hit the preview tab, the browser fill shows then Muse is not responsive for 15-25 min.
    I have no "added" Java Scripts, only used the available widgets within muse, I do have widgets nested inside of widgets which I believe may be the problem?
    Error Im getting from the browsers (all of them)
    "MuseJSAssert: Error calling selector function:TypeError: Cannot read property 'parent node' of undefined"
    I have began building my site in DW as this is becoming the usuall trip with Muse, as in every tiny change creates a ton of problems after export. The initial release was great and after the first update things just seem to be going downhill with every new update.

    Hi JKurtBrown,
    You seem to have some invalid HTML in a few of your custom HTML fields that is causing issues with the rest of the page. In many of the places where you have tables, you seem to have copy/pasted from a different source, but you are missing closing </div> tags for some of your code. Cleaning these up and closing these divs should allow your page to work without issue. If you need help narrowing down where the issues are, you can use the W3C Validator and it should be able to tell you where your issues are. The ones that say "No Closing Tag" are the ones you'll want to go through and fix first, as often times those can cause a lot of other issues.
    Hope that helps,
    Andrew

  • Edge Proyect TypeError: Cannot call method 'appendChild' of undefined"  version 2014.1.1

    Hi there, any help with this error?
    this is the log:
    [0123/100157:ERROR:renderer_main.cc(226)] Running without renderer sandbox
    [0123/100157:ERROR:renderer_main.cc(226)] Running without renderer sandbox
    [0123/100157:ERROR:renderer_main.cc(226)] Running without renderer sandbox
    [0123/100159:INFO:CONSOLE(1)] "Uncaught TypeError: Cannot call method 'appendChild' of undefined", source: v8/appCss (1)
    [0123/100159:INFO:CONSOLE(0)] "event.returnValue is deprecated. Please use the standard event.preventDefault() instead.", source:  (0)

    Hi, here the proyect http://macheteapps.com/aure/edge/test_font_error.zip , the error is when I add a new custom font.
    <link href='http://fonts.googleapis.com/css?family=Roboto:900,400&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
    Roboto, sans-serif

  • Cannot set property 'readyState' of undefined?

    Cannot set property 'readyState' of undefined este es mi error cuando utilizo Websocket de coldfusion! Alguna solucion?

    I had the same issue. The problem turned out to be the default port used by websockets (8575) wasn't open by default. Once this was opened, the readystate error disappeared.

  • Share blueprint - TypeError: Cannot call method "OutEdges" of undefined'

    Hello,
    I made a BPMN-model in the BPA-suite and want to share the blueprint with IT. The firsttime I succeeded. But when I change the model and want to share the blueprint with IT, I get the following error:
    internal error: TypeError: Cannot call method “OutEdges” of undefined’.
    I am working on a windows2003 platform, the version of the BPA-suite is 10.1.3.4 and the database is a Oracle 10g express edition.
    Does anyone recognise the problem and know the solution?
    Best,
    Jan Tammenga

    Hi Danilo,
    In what cases can appear that error? I have the same error and I can't share blueprint because of that.
    What is it talking about?
    And by the way: is there any document in which errors generated by BPA are described? I would by thankful, if you could give me any links... :)
    Bye,
    Pawel

  • Cannot read Property file from JSP in a Web Module Project

    I have tried to read the properties file in two ways but am not able to read it because i cannot find the correct path of the properties file.
    1st Method :
    Properties props = new Properties();
    InputStream is =
    application.getResourceAsStream(
    "test.properties");
    if (is != null) {
    props.load(is);
    is.close();
    Enumeration keysEnum = Props.propertyNames();
    while (keysEnum.hasMoreElements()) {
    out.println(keysEnum.nextElement()) ;
    2nd Method :
    Here "com.sap.package" is the package name and "test" is the Properties file name
    ResourceBundlebundle = ResourceBundle.getBundle("com.sap.package.test");
    for (Enumeration e = bundle.getKeys(); e.hasMoreElements();)
    String key = (String) e.nextElement();
    out.print((String) e.nextElement());
    String s = bundle.getString(key);
    request.getComponentSession().putValue(key, s);
    I cannot read the properties file even when I keep in it the WEB-INF folder.

    Properties props = new Properties();
    InputStream is = this.class.getClassLoader().getResourceAsStream(/test.properties);
    if(is != null){
    props.load(is);
    Keep the test.properties in the classes folder under the web-inf folder.
    Thanks,
    Tim

Maybe you are looking for

  • How can I remove theAirPlay instructions that take up my tv screen while my music is playing and running my screen saver?

    Apple support community,               Yo Jim Taylor here. Would like to remove the Airplay screen instructions while Airplay plays music and my screen savers running?

  • How do I install Adobe Photoshop Elements 1.0 on Windows 8?

    I have an older version of Photoshop Elements that came with my camera several years ago. Windows 8 won't let me install it. HELP PLZ!!!

  • DNG and Color Negatives

    This may seem to be out in left field but here goes... I've been using custom camera profiles in LR to help get better color when scanning color negative film using Vuescan from my Nikon scanner. Vuescan can output a DNG file that contains the metada

  • Change the appearance of Skype

    I want to get rid off the pictures of the ladies appearing along my connections in the main window of skype. they are there in order to explain how to use Skype, but after a while, it is just bothering; it is forced upon me. what to do? thank you so

  • How do i autofit an image ?????????

    im working in Dreamweaver 8, i have a table with rows and columns .... in the very bottom cell i have an image, above it there is some text with no preset width, .... so i might need to strech that cell's width ... when i do, that image below it keep