on 09-19-2013 2:22 PM
Hi,
how to change the value in entry point properties of the role using webdynpro java application.
Hi,
I am try to change the value of entry point properties in role and able to find 2 method to changing the role attribute value.
Below are the 2 methods.
1)role.setAttribute.
2)role.setBinaryAttribute
If give below method ,will able to change value of entry point properties in role. But the value of entry point changing to string data type instead of change the value of check box.
After change the entry point ,not able see the check box in entry point attribute.
Method:role.setAttribute("com.sap.portal.pcd.role", "EntryPoint",new String[]{"FALSE"} );
The above method is working for description change.
Kindly advice how to change the value of entry point properties in role
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Entry point is an iView/role property. Its a surprising request to edit it from the application.
However, If you have such requirement, try to use PCD APIs.
Refer the document in the link:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61...
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saurabh,
Thanks for the reply.
Only user management api require for role editing.below are the sap help link.
Below code for using editing the role properties.
IRole role=rolefactory.getroleByUniquename("pcd:portal/content/com.test.test_role");
role.setAttribute("com.sap.portal.pcd.role","EntryPoint",new String[]{"false"});
Since the value passing as string in the code, entry point value of the role is saving as string instead of check box(boolean).So somebody help me how we can pass the value as boolean .
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.