I am making a tablet app, wherein I have a list of accounts on the master side and the details should appear on the detail side after clicking on the list.
My configurations are as follows:
On master side of list of accounts, I custom create the JS as 'element.attr("data-sf-id",value.id);'
In the detail service, I store the id as a local storage parameter which is a part of my request url
On the design of master side, on the click even of list, I put custom JS as 'localStorage.setItem("Aid",$(this).attr("data-sf-id"));', where Aid is my local storage variable in detail request. On the same event, I set my detail content.
-Lastly, on the load of the detail page, I invoke detail service.MY authenticatino and Json response are correct but when I get 'Failed to load resource: the server responded with a status of 401 (Unauthorized) ' error.
I am unable to figure out what could be the issue. I look forward to the help.