cancel
Showing results for 
Search instead for 
Did you mean: 

How to change a property of multiple roles with ascending values?

Former Member
0 Kudos

Hello,

I would like to change the "Sort priority" priority of 150 roles at once and give it an ascending numbering. The "Multiple Property Replacement" tool only allows you to put fixed values. Is there any way to it more cleverly than manually changing each role's property?

I assume it can be developed but I am searching for a ready made solution...

Roy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Roy

You could export the roles as XML (Under System admin -> Transport), edit the XML file and then reimport.

Make sure you understand the warning that you can seriously damage your portal with an incorrect XML file - you should probably backup the database etc before hand.

Cheers

Former Member
0 Kudos

Hi Michael,

Thank you for the helpful tip.

Now that I am rechecking I see that the roles contain folders and these folders are using as the entry points, so the sort priority property change should be done on the folders instead of the role itself. Now, the xml export doesn't show the properties of the inside folders. Any idea how to acheive this?

Regards,

Roy

Former Member
0 Kudos

Hmm, when I export a role I see the property com.sap.portal.navigation.Priority, which In think is the priority. Are you not seeing this?

Cheers

Former Member
0 Kudos

I do see it but as I said I need the ptroperty of the nested folder inside the role and not the role itself since the folder is using as the entry point and not the role. Since the ordering needs to be done at the entry point level, I will need to do it on the folders...

Regards,

Roy

Former Member
0 Kudos

Hi Roy

When I export a role with a folder, I see the folder in there as an com.sapportals.portal.rolefolder entry with a com.sap.navigation.priority set.

It's also worth noting that the export isn't recursive, so if you have included worksets in the roles, then you need to export those worksets.

Cheers

Former Member
0 Kudos

You are right Michael 10X

Former Member
0 Kudos

I made the export yet it is really hard to follow the file with more than 100 roles in it.

Any pattern I should follow in order to achieve my goal? How do I know which com.sap.portal.navigation.Priority belongs to which role/folder?

Roy

Message was edited by:

Roy Cohen

Former Member
0 Kudos

Hi Roy

Yes, the XML file isn't easy to view. A tool like XMLSpy might help as it gives a quite graphic view..

Cheers

Former Member
0 Kudos

That's an idea, perhaps I will use the NWDS to view it

Answers (0)