Forum Discussion
peterlu wrote:
is there any TKB article or guidde on how to set and retrieve custom settings?
Hi Peter,
Usually these settings are done by our PS team as you'll need access to the backend to change.
so I'm afraid we don't have any external docs (not that I'm aware of).
The closest i've seen is probably this:
Back to your original question, you should try to drop the custom component into page and verify from that page - instead of within studio
(when i tried to drop into a page - albeit modify to match the custom settings i have - it worked fine with admin acct - saw the alert window and console log)
Thanks, Jason. Lets start over.
Just to confirm that we are using the right custom settings as there was some changes made after the initial request. user.data was changed to profile. (hinterlands.demo)
According to what we are aware, these are the settings that have been set up.
<response status="success"> <value type="string">my user data</value> </response>
http://hinterlands.demo.lithium.com/restapi/vc/users/self/settings/name/profile.user.data
<response status="success"> <value type="string">my user data ONE</value> </response>
- JasonL12 years agoLithium Alumni (Retired)
Hi Peter,
I honestly got no clue what's your use cases are nor what intentions were :smileyhappy:
Guessing [profile] user.data is probably what you should be using.
I took a quick look at your env and i think i understand what's happening.
The profile settings were added to your env in revision 588289 (at least from the back-end I see)
when you revert to revision 453056 - the file that contains the profile setting gets deleted
Try reverting back to the 588289 revision, that should do the trick
- peterlu12 years agoChampion
Thank you, Jason, it works now for admin.
---------------------------------------------------------
profile.user.data = ${settings.name.get("profile.user.data")}
----------------------------------------------------------
/restapi/vc/users/self/settings/name/profile.user.data/setBut not for the normal user. Now i get error 303. Permission Denied.
Related Content
- 9 days ago
- 11 months ago
- 2 years ago