Giter Club home page Giter Club logo

mobile-ui-elements's Issues

newbie

I followed the install directions, but doesn't work. I'm on cloud9. I started node, told me it was listening on port 8080, but could not find anything. Usually meteor projects run (after building, etc) but typing "meteor" in the project directory, (in cloud9it actually " meteor --port $IP:$PORT").

How to create a new force-sobject?

Hi,
I'm little in trouble.
I need to create a new record in database, but don't know which recordid I need to pass in my force-sobject in order to do this.

HTML-Code

<force-sobject id="pos" sobject="Zeiterfassung__c" recordid="new"></force-sobject>

JS-Code

save:function(e, detail){
  // add Attributes to field
  this.$.pos.fields.Tag__c = new Date();
  this.$.pos.fields.Arbeitszeit__c = 8;
  this.$.pos.save();
}

Can you help?

Getting Started

Yesterday, I was demoing the library and I jump start from scratch. I followed the instruction here shown @akhileshgupta can you please advice .

After setting up $node proxy.js I went to port http://localhost:9000 which turn out to be blank, I looked at the chrome console and I learned that seemingly app failed to make connection. Please advice, If I missed any step here, I rebuild using grunt and restarted node proxy as well

-----> Calling forcetkClient:describeLayout smartsync.js:47
Refused to set unsafe header "User-Agent" (index):71
------> Calling successCB for smartstoreClient:registerSoup smartsync.js:28
-----> Calling forcetkClient:describe smartsync.js:47
Refused to set unsafe header "User-Agent" (index):1
Failed to load resource: net::ERR_EMPTY_RESPONSE http://localhost:9000/services/data/v29.0/sobjects/account/describe/layouts/012000000000000AAA?_=1406188060373
------> Calling errorCB for forcetkClient:describeLayout smartsync.js:38
Failed to load resource: net::ERR_CONNECTION_REFUSED http://localhost:9000/services/data/v29.0/sobjects/account/describe/?_=1406188060374
------> Calling errorCB for forcetkClient:describe smartsync.js:38

I believe this refused the set connection with org, my org was na17.salesforce.com

Am I missing any step here : attaching picture as well
screen shot 2014-07-24 at 1 14 19 am

CORS error when using on local-hosted app & `grunt dist` error

I want to test out the project, so I followed the instructions in the Readme file, but I encountered errors.

I ran the following commands:

$ git clone https://github.com/ForceDotComLabs/mobile-ui-elements.git
$ cd .\mobile-ui-elements
$ npm install
$ bower install
$ grunt
# Update the `simple.html` file with an accessToken and instanceUrl.
$ python -m SimpleHTTPServer

Then I opened my browser to http://localhost:8000/simple.html to use the app, but I see no content. The JS console has some errors:

GET http://localhost:8000/elements/css/responsive.shim.css 404 (File not found)
GET http://localhost:8000/elements/css/styles.shim.css 404 (File not found)
Refused to set unsafe header "User-Agent" jquery.js:8579
-> In Force.RemoteObjectCollection:sync method=read smartsync.js:1421
--> In Force.fetchRemoteObjects:cacheMode=server-first smartsync.js:1201
---> In Force.fetchSObjectsFromServer:config={"sobjectType":"Account","type":"mru","query":""} smartsync.js:1067
-----> Calling forcetkClient:metadata
OPTIONS https://na8.salesforce.com/services/data/v29.0/sobjects/account/describe/layouts/012000000000000AAA?_=1404262883624 401 (Unauthorized)
XMLHttpRequest cannot load https://na8.salesforce.com/services/data/v29.0/sobjects/account/describe/layouts/012000000000000AAA?_=1404262883624. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8000' is therefore not allowed access.

------> Calling errorCB for forcetkClient:describeLayout

Alright, maybe I missed a build step. I tried running $ grunt dist, but that also gave me an error:

Warning: ENOENT, no such file or directory 'C:\....\mobile-ui-elements\elements\css\responsive.shim.css'

Any ideas? I'm running this on my Windows machine, but that shouldn't matter as the data-related errors seem CORS-related. I know SFDC APIs don't support CORS requests, so how did you get this running locally?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.