You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: