Hello experts,
I am trying to build a test xs applicaion on HCP(hana.ondemand.com, not a trial, this issue is no problem on hanatrial.ondemand.com) and there is some problem about retrieving odata from a attribute view as public.
When I try to access odata's entry set by below url, it works.
but when I try to access odata's entry data by below url, it does not work.
but If I login to Web-based Development Workbench at least one time by HANA Login page as below, it works.
So I changed some files like below, but it still does not work without SAP HANA authentication.
//.xsaccess
{
"anonymous_connection": "KRHCP::annouser",
"authentication" : null,
"exposed": true
}
//annouser.xssqlcc
{
"description" : "Anon SQL connection"
}
//person.hdbrole
role KRHCP.roles::myrole
{
sql object KRHCP.data::person.person: SELECT, INSERT, UPDATE, DELETE;
sql object KRHCP.iview::AT_PERSON: SELECT;
application privilege: KRHCP::Basic;
package KRHCP.iview: REPO.READ, REPO.READ, REPO.EDIT_NATIVE_OBJECTS, REPO.ACTIVATE_NATIVE_OBJECTS;
}
//execution query for grant-role
call "_SYS_REPO"."GRANT_ACTIVATED_ROLE"('KRHCP.roles::myrole', 'hcmuser')
Please help me.
I want to expose xsodata's data by url without SAP HANA authentication as public.
Regards,
Insung Lee.