on 11-13-2006 3:18 PM
Hi ,
I want to put edit button in show form which is generated by xml form builder. but the problem is , this button should work on role based. Is this possible....?
regadrs
Ram
Hi Ram,
> Is this possible....?
Not by standard means. BUT: If you put the edit command "around" the RenderListItem form (within the layout set, not within the form itself), you can restrict the command to some roles to be configured, see http://help.sap.com/saphelp_nw04/helpdata/en/9d/233f989a5ba64fa44ed6e0823286ee/frameset.htm ("Roles with Visibility") for details.
Hope it helps
Detlev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ram,
> I am using ep6 sp2
Ah, I see... (You know that standard support for EP6 SP2 ends this year?!)
> is there any way to achive this
You could implement what we call "proxy iView" (search for "proxy iView Detlev" on this forum). This would check which role a user has and then forward to a special layout set - both could be equal except that one has got the edit command in it's resource commands and the other wouldn't.
It's not much development, but you have to configure two layout sets. At least, you could reach your aim with this technique.
Hope it helps
Detlev
Hi Ram,
> searched for proxy iview but couldnt find detail documentation
There is no "detailed documentation" (there is in the meantime, my slides from TechEd 2006; but these are not public, I think). Anyhow, you can find a short description more than one time here in the forum, I'll repeat it once again:
Implement an AbstractPortalComponent, implement an empty doContent method, overwrite doOnNodeReady, and at the end of this method call <i>request.redirect(...)</i> with the navigation component (com.sap.km.cm.navigation, you can get this from the KM URLGenerator) as the new target, passing the component parameters as URL parameter (so, among others, "rndLayoutSet=YourLayoutSet1" or the second, dependent on the role the user has got, which is the logic to be implemented in your method). The isloation level of the iView built out of this component must be URL isolated (otherwise the redirect does not work).
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.