cancel
Showing results for 
Search instead for 
Did you mean: 

Move transparent container from tab to new view

IanStubbings
Active Participant
0 Kudos

Hi

I have a scenario where I wish to move the whole layout structure from a tab to a new view.

Essentially I want to move from a tabstrip to a roadmap type of development. My issue is that if I copy the transparent container that houses the whole structure, when I paste the structure all my elements have _CP. Is there any way to paste without have this suffix?

Cheers

Ian

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

copy that whole layout structure view to another view(another name)

then automatically it gets copied.

right click mouse on the view and select copy

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

All UI elements must have a Unique ID. The Paste operation uses this prefix as a safety mechansim to ensure that this always remains the case.

IanStubbings
Active Participant
0 Kudos

Hi Thomas

I presumed as much, but in this case I wish to move the structure but have no option for this.

Is there any way I can transfer all the elements from one view to another without copying them?

Ideally I need to move 5 tab layouts to 5 new views and there are a lot of UI elements on each one. To rename all the _CP elements back will take a long while hence me looking for any alternatives.

Cheers

Ian

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I can't think of any offical way of doing this.

I have one suggestion - but it is totally not supported by SAP and if anyone asks you didn't get it from me.

You could use SAPLink to export the component to XML. Once in XML on your desktop, use a text editor to do a mass find and replace. Then reimport the same object back into your system via SAPLink.

[http://code.google.com/p/saplink/|http://code.google.com/p/saplink/]

Just curious however - why worry about the _CP on the UI elements at all? It is just that you don't like the prefix? I agree it makes things look messy, but if you are correcting binding UI to your context instead of directly coding against the UI elements (with the rare exception of really dynamic stuff) the IDs of the element shouldn't break anything in your application.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>

> I can't think of any offical way of doing this.

>

> I have one suggestion - but it is totally not supported by SAP and if anyone asks you didn't get it from me.

> You could use SAPLink to export the component to XML. Once in XML on your desktop, use a text editor to do a mass find and replace. Then reimport the same object back into your system via SAPLink.

> [http://code.google.com/p/saplink/|http://code.google.com/p/saplink/]

>

> Just curious however - why worry about the _CP on the UI elements at all? It is just that you don't like the prefix? I agree it makes things look messy, but if you are correcting binding UI to your context instead of directly coding against the UI elements (with the rare exception of really dynamic stuff) the IDs of the element shouldn't break anything in your application.

PS: Obviously monkeying around with the component using find and replace on the XML and importing via SAPLink could be dangerous. I just thought after I posted I should stress the warning a little more. You probably want to copy your entire component before attempting this - just incase it completely screws things up.

IanStubbings
Active Participant
0 Kudos

Hi Thomas

I like your thinking!

I have already copied the component to a local object and was playing around with it trying to copy the UI elements so no worries there.

I'm afraid I am rather pedantic about naming conventions etc hence I don't like the _CP suffix. I like my components to be 'just so' if possible.

I'll try Saplink and let you know.

Thanks very much for your help

Cheers

Ian