HPE Anywhere Developer Forum
Showing results for 
Search instead for 
Do you mean 

UserSettingsService setUserSetting ?

SOLVED
Go to Solution
Advisor

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.

 

1 ACCEPTED SOLUTIONS
Honored Contributor

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.
7 REPLIES
Honored Contributor

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

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

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

Re: UserSettingsService setUserSetting ?

[ Edited ]

Hi Yossi,

 

Is there any update on implementation plan of this feature?

 

Thanks

Advisor

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

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.

Highlighted
Honored Contributor

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.