Open jacomyma opened 11 years ago
Just a short reminder, I need to know more :)
(...continuation) Ok, so the issue is that I have a list and I need to update only certain elements, or even a single element. For now I just write the whole process in the 'success' function of the service querying these elements to update. I imagine that we could have a way to do it without editing a success function.
We do not need to edit a success function when we update a single property, because we have the path. I would like the same type of helper to just update a single element in a list. Honestly I'm not sure this is a better solution than a custom success function, but maybe you have an idea... The fact is that I (almost) always write the same thing in my success functions. The process is typically:
The same way, it may be possible to have an index for my elements. In my previous example, I have a "jobs_byId" property, in order to retrieve easily an element. Here is a suggestion but there are other solutions:
Maybe this can be done with shortcuts, but I do not understand how to do it.
We have done nothing yet about this in the new version (see the reboot-proposal
branch to know more).
I'll try to take this into account before releasing it.
I propose a new feature to deal with a common issue. I often need to deal with properties that are lists of items. For instance I have a list of jobs to display, and I have a property called "jobsList" that is an array. Domino is not much adapted to dealing with this kind of properties. I'll just write here what I would like.
(...to be continued, sorry no more time today)