Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new fields list orders #18

Closed
freskandol opened this issue Jul 21, 2014 · 1 comment
Closed

add new fields list orders #18

freskandol opened this issue Jul 21, 2014 · 1 comment

Comments

@freskandol
Copy link

How I can add new fields to the list of orders

I created new fields in the Orders table.
I added fields to the file order.cs and customer.js
I modified the file OrderTable.html. But I can not see setOrder ('myField')
Please I could put a clear example.

Thanks in advance

@DanWahlin
Copy link
Owner

That's not something I can provide a sample for but I'd start by first making sure you're first getting the backend updated properly. It sounds like you've updated the table and the order.cs file on the server-side. Make make sure that when you make the Ajax call (http://localhost:[yourPortNumber]/api/dataservice/customerbyid/[theCustomerId] you're getting back the new order field. If not then your problem is likely on the server-side. Alternatively you can set a break-point in the customersService.js file within the factory.getCustomer() function and see if the data is coming back properly.

If you are getting it back then I'd start looking at the client-side. You shouldn't have to change anything in customersService.js so I'd look at orderTable.html and make sure the binding is correct:

{{ order.yourProperty }}

Double-check the case and things of course. Aside from that, it's hard to say. You're probably just missing something simple I'd guess. I'd start with double-checking that the Ajax call is returning your new field in it for orders though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants