1

Please show me example how work with CRUD in Lightning Component: I want to create order system for restaurant. User is waiter. He make all CRUD operation with orders. There are "close" and "open" orders. All orders link to table number. System must to give order cost. I have 2 problems: 1 - I can't retrieve id and name of my dishes. 2 - my page do not refreshView when event.fire()... Please offer me problem solving or another example. (sorry for my english)

Here is part of my code:

Lightning App

http://pastebin.com/GhgaXgL8

Apex Controller

http://pastebin.com/2SG2D3M3

Lightning Component + JS Controller

http://pastebin.com/0kh3ecmC

Another Lightning Component + JS Controller and Helper

http://pastebin.com/VAQiVgYU

0

There is now a Lightning Security Best Practices Guide that has two CRUD/FLS examples. We can also add more examples if needed.

https://developer.salesforce.com/page/Lightning_Security

The Guide is part of our wiki and so a work in progress -- any comments would be appreciated as we want to make it easy to read as well as relatively comprehensive. Please send feedback to securecloud@salesforce.com.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.