function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
amoldavskyamoldavsky 

temporary storage

Hey,

 

Is there a facility for temporary storage for the duration of the session or even a page refresh?

 

I want to carry over some data between the frame reloads (in the App) while the user is paging through some lost list of results. Now I can do that with cookies or localStorage/sessionStorage but it would be simpler to use a ready facility if there is one.

 

Any ideas?

 

Thanks

-Assaf

AmitSahuAmitSahu
There is nothing like that out of the box.
Best to use cookies....
amoldavskyamoldavsky

 

I thought you can store data in the SF db by using custom fields?

 

Let me give you another scenario... a user performs a search using our app and it returns a number of results so the user picks one. When he/she comes back in a week we want the same resuklt to automatically be picked instead of the user making the search and looking through the results again and picking the same one over again.

 

Can't I store an entry in the SF db something like a "search query" -> "user preferred result"?

 

Thanks

-Assaf

AmitSahuAmitSahu

Ahhh. I got it .. Yes you can store this info in an Object.