HPE Anywhere Developer Forum
cancel

UserSettingsService setUserSetting ?

SOLVED
Go to solution
Highlighted
Andywzzz
Trusted Contributor.

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.

 

7 REPLIES
Yossi_Gutin
Outstanding Contributor.
Solution

Re: UserSettingsService setUserSetting ?

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.
Andywzzz
Trusted Contributor.

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. 

 

Yossi_Gutin
Outstanding Contributor.

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.
Andywzzz
Trusted Contributor.

Re: UserSettingsService setUserSetting ?

Hi Yossi,

 

Is there any update on implementation plan of this feature?

 

Thanks

David_L
Valued Contributor.

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

Avi-Vaknin
Regular Contributor.

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.

Yossi_Gutin
Outstanding Contributor.

Re: UserSettingsService setUserSetting ?

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.