cancel
Showing results for 
Search instead for 
Did you mean: 

xml form...editing on role based

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Detlev,

I am using ep6 sp2...in this , there is no option to show commands on role basis...is there any way to achive this.....?

regards

Ram

detlev_beutner
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Detlev,

I searched for proxy iview but couldnt find detail documentation...can u plz give me some detail about it...

regards

Ram

detlev_beutner
Active Contributor
0 Kudos

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!

Former Member
0 Kudos

Hi Detlev,

thanks for ur reply...

regards

Ram

Answers (0)