[progress Communities] [progress Openedge Abl] Forum Post: Re: [4.2] - Rbv_error_title Is...

  • Thread starter Thread starter Mohammed Siraj
  • Start date Start date
Status
Not open for further replies.
M

Mohammed Siraj

Guest
Right. The above mention function definitions are available only on a NewUI page. However, these are just utility methods that internally leveragy HTML5 sessionSotrage API. You can very well consider using it directly. Here are some utility methods that you can add to your page: function getFromSessionStorage(storeKey) { var storeVal = (storeKey && sessionStorage.getItem(String(storeKey))) || null; try { //will always JSON.stringify before adding to sessionStorage.. storeVal = (storeVal !== null) ? JSON.parse(storeVal) : null; } catch (err) { storeVal = null; } return storeVal; } function addToSessionStorage (storeKey, storeVal) { storeKey = storeKey && String(storeKey); if (!storeKey || storeVal === undefined) { return; } try { sessionStorage.setItem(storeKey, JSON.stringify(storeVal)); } catch (err) { console && console.error("[Error] Failed to update Session Storage " + err); } }

Continue reading...
 
Status
Not open for further replies.
Back
Top