UserSettingsService setUserSetting ? (581 Views)
Reply
Advisor
Posts: 18
Registered: ‎07-11-2012
Message 1 of 8 (581 Views)
Accepted Solution

UserSettingsService setUserSetting ?

Hi,

 

As far as I can see in the UserSettingsService  API there is only method for reading settings values. Is there any possibility to write from code user setting? 

 

If not then do you plan to add this functionality and when?

 

Thanks in advance.

 

Honored Contributor
Posts: 209
Registered: ‎04-04-2013
Message 2 of 8 (569 Views)

Re: UserSettingsService setUserSetting ?

[ Edited ]

Hi Andy
You are correct, it's read only API. Currently there are no plans to provide update for user settings.

Please elaborate more what is the use case for such API.
Thanks

 

---

Update: starting from version 10.02, the apps could use the KeyValueStorageService service. It provides a Map like API, for storing and retrieving data by key. It can be used by app to store arbitrary strings... see more

--------------------------------------------------------------------------------------
If some answer solves your problem, please mark it as a solution.
Advisor
Posts: 18
Registered: ‎07-11-2012
Message 3 of 8 (565 Views)

Re: UserSettingsService setUserSetting ?

Yossi, thank you for answer.

 

One of the possible usage of such API would be changing of user settings from custom UI provided by MiniApp. 

 

Honored Contributor
Posts: 209
Registered: ‎04-04-2013
Message 4 of 8 (560 Views)

Re: UserSettingsService setUserSetting ?

I see.
There are plans to support persistancy in MiniApp in the future, I will forward your use case to R&D.
--------------------------------------------------------------------------------------
If some answer solves your problem, please mark it as a solution.
Advisor
Posts: 18
Registered: ‎07-11-2012
Message 5 of 8 (527 Views)

Re: UserSettingsService setUserSetting ?

[ Edited ]

Hi Yossi,

 

Is there any update on implementation plan of this feature?

 

Thanks

Advisor
Posts: 17
Registered: ‎04-26-2010
Message 6 of 8 (506 Views)

Re: UserSettingsService setUserSetting ?

Hi Andy,

 

We have added your request to our backlog.

 

We will try to prioritize it into one of our upcoming releases, but there is no timeline for it yet.

 

Once it is scheduled to be released, we will update this thread with the relevant information.

 

Thanks,

David

Occasional Advisor
Posts: 15
Registered: ‎03-13-2013
Message 7 of 8 (461 Views)

Re: UserSettingsService setUserSetting ?

What is currently the best practice to set a user settings programatically? some of the user settings can not be displayed with the current capabilies of the default user settings ui.

Honored Contributor
Posts: 209
Registered: ‎04-04-2013
Message 8 of 8 (450 Views)

Re: UserSettingsService setUserSetting ?

[ Edited ]

Hi Avi,

 

Could this new service in 10.02 help?

 

The KeyValueStorageService provides a Map like API, for storing and retrieving data by key. It can be used by app to store arbitrary strings... see more 

 

--------------------------------------------------------------------------------------
If some answer solves your problem, please mark it as a solution.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.