Skip to Content
1

I receive this error: "template was found that neither was marked with templateShareable... why ?

Feb 01, 2017 at 09:17 PM

1.5k

avatar image
Former Member

During a clone operation, a template was found that neither was marked with 'templateShareable:true' nor 'templateShareable:false'. The framework won't destroy the template. This could cause errors (e.g. duplicate IDs) or memory leaks (The template is used in aggregation 'items' of object '__box0').For more information, see documentation under 'Aggregation Binding'. -

2017-02-01-16-08-15.png

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Sai Vellanki Feb 02, 2017 at 01:52 AM
1

Hello Karlyn,

I checked your code, but I am not sure what is the source control for onItemPress event. Is it a list / table ?

However this error is due to complex binding, you need to mention templateShareable Boolean value. Consider you're using a list control, while binding the aggregation 'items' in XML view, you have to try something like below:

<List items="{/products}">
    <items>
	<CustomListItem>
		<content>
			<Select items="{path:'materials', templateShareable:false}">
				<items>
					<core:Item text="{materialdesc}" key="{materialno}" />
				</items>
			</Select>
		</content>
	</CustomListItem>
    </items>
</List>  

For more information, please check this link: Understanding templateShareable in SAPUI5

Regards,

Sai.

Share
10 |10000 characters needed characters left characters exceeded
Jun Wu Feb 01, 2017 at 09:33 PM
0

how u get that error?

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 01, 2017 at 09:37 PM
0

After the implantation of EHP8

SAPUI version before 1.28.9 and now 1.38.16

Show 1 Share
10 |10000 characters needed characters left characters exceeded

which line of code give u error?

0
avatar image
Former Member Feb 02, 2017 at 04:35 PM
0

Check the view page:

I add the templateSharable

2017-02-02-11-31-37.png

I add too in the controller page and I receive the same error

2017-02-02-11-33-15.png


Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 02, 2017 at 08:43 PM
0

The error arrive on line oNavContainer.to(oPage.getId()); in the App.Controller.js (see attachments)

2017-02-02-15-40-22.png


Show 1 Share
10 |10000 characters needed characters left characters exceeded

check what is the __box0

0