newdevs:angular_making_calls
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
newdevs:angular_making_calls [2024/03/28 22:53] – [Updating data in the database] add pcrud example sandbergja | newdevs:angular_making_calls [2024/03/28 23:16] (current) – [NetService example] sandbergja | ||
---|---|---|---|
Line 159: | Line 159: | ||
==== NetService example ==== | ==== NetService example ==== | ||
- | coming soon | + | Here is an example of refreshing the contents of an automatically-generated carousel (the one with ID 201): |
+ | |||
+ | this.net.request(' | ||
+ | ' | ||
+ | this.auth.token(), | ||
+ | 201).subscribe(() => { | ||
+ | alert(' | ||
+ | }); | ||
===== Deleting data in the database ===== | ===== Deleting data in the database ===== | ||
- | Examples coming soon | + | ==== PcrudService example ==== |
+ | |||
+ | As with updating objects, you will need to retrieve an object and have a copy in memory before you can delete it. The following example searches for all shelving locations called " | ||
+ | |||
+ | this.pcrud.search(' | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | |||
+ | ==== NetService example ==== | ||
+ | |||
+ | Here's an example of deleting record bucket #13 from the database, along with all its bucket entries (assuming the currently logged in user has the DELETE_CONTAINER permission): | ||
+ | | ||
+ | ' | ||
+ | this.auth.token(), | ||
+ | ' | ||
+ | 13).subscribe(() => { | ||
+ | alert(' | ||
+ | }); | ||
===== Troublsehooting OpenSRF calls in your browser ===== | ===== Troublsehooting OpenSRF calls in your browser ===== | ||
newdevs/angular_making_calls.1711680822.txt.gz · Last modified: 2024/03/28 22:53 by sandbergja