Git Product home page Git Product logo

Comments (8)

jlmonteagudo avatar jlmonteagudo commented on July 20, 2024

Did you define those properties in your model in Sails?

Here's the doc for defining models in Sails:
http://sailsjs.org/documentation/concepts/models-and-orm/models

from generator-angular-crud.

bsfahmi avatar bsfahmi commented on July 20, 2024

yes of course i have defined propoerties in the model.
This is the model
module.exports = {

attributes: {
name: 'string',
address: 'string',
state: 'string',
country: 'string'
}
};

from generator-angular-crud.

bsfahmi avatar bsfahmi commented on July 20, 2024

Yes.
This is the file which contains the models please take a look on it

2016-02-23 17:04 GMT+01:00 Jose Luis Monteagudo [email protected]:

Did you define those properties in your model in Sails?

Here's the doc for defining models in Sails:
http://sailsjs.org/documentation/concepts/models-and-orm/models


Reply to this email directly or view it on GitHub
#5 (comment)
.

from generator-angular-crud.

bsfahmi avatar bsfahmi commented on July 20, 2024

By the way, After running the server i got this error :
error: Sending 500 ("Server Error") response:
TypeError: actionUtil.populateEach is not a function
at findRecords
(C:\Users\user\Desktop\GestionCommande\GestionCommandeServer
api\blueprints\find.js:48:22)

2016-02-23 17:12 GMT+01:00 Fahmi Ben Salah [email protected]:

Yes.
This is the file which contains the models please take a look on it

2016-02-23 17:04 GMT+01:00 Jose Luis Monteagudo [email protected]
:

Did you define those properties in your model in Sails?

Here's the doc for defining models in Sails:
http://sailsjs.org/documentation/concepts/models-and-orm/models


Reply to this email directly or view it on GitHub
#5 (comment)
.

from generator-angular-crud.

bsfahmi avatar bsfahmi commented on July 20, 2024

Hello Mr Jose Luis,
I have upgraded sails and the error is fixed but rest one thing i hope you
answer me .
When i click view list of customers nothing is displayed , the list is
empty despite the file localDiskDb contains data and i have this error
GET http://localhost:1337/client?limit=5&skip=0 500 (Internal Server Error)
so how can i fixt it ?
Than you

2016-02-23 17:25 GMT+01:00 Fahmi Ben Salah [email protected]:

By the way, After running the server i got this error :
error: Sending 500 ("Server Error") response:
TypeError: actionUtil.populateEach is not a function
at findRecords
(C:\Users\user\Desktop\GestionCommande\GestionCommandeServer
api\blueprints\find.js:48:22)

2016-02-23 17:12 GMT+01:00 Fahmi Ben Salah [email protected]:

Yes.
This is the file which contains the models please take a look on it

2016-02-23 17:04 GMT+01:00 Jose Luis Monteagudo <[email protected]

:

Did you define those properties in your model in Sails?

Here's the doc for defining models in Sails:
http://sailsjs.org/documentation/concepts/models-and-orm/models


Reply to this email directly or view it on GitHub
#5 (comment)
.

from generator-angular-crud.

jlmonteagudo avatar jlmonteagudo commented on July 20, 2024

There is an error in your server.

If you get this address ( http://localhost:1337/client?limit=5&skip=0 ) in your Internet Browser then you will get an error. Check in the terminal console that is running Sails the error that throws and then you will be able to guest which is the problem.

from generator-angular-crud.

bsfahmi avatar bsfahmi commented on July 20, 2024

Hello Jose,
please how can i add the name of my application in the url ? when i start
my application i want the url be like this
"localhost/myapplicationName:3000 and not like this localhost:3000
Thanks.

2016-02-23 18:01 GMT+01:00 Jose Luis Monteagudo [email protected]:

There is an error in your server.

If you get this address ( http://localhost:1337/client?limit=5&skip=0 )
in your Internet Browser then you will get an error. Check in the terminal
console that is running Sails the error that throws and then you will be
able to guest which is the problem.


Reply to this email directly or view it on GitHub
#5 (comment)
.

from generator-angular-crud.

JoseLuisRivas avatar JoseLuisRivas commented on July 20, 2024

Hello, Jose Luis

¿How I solve the problem?

error: Sending 500 ("Server Error") response:
TypeError: actionUtil.populateEach is not a function
at findRecords (C:\xampp\htdocs\sails\pruebaAngular\CustumerManagementServer\api\blueprints\find.js:48:22)

from generator-angular-crud.

Related Issues (9)

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.