on 2017 Jul 10 11:55 AM
Hello colleagues,
I've faced a strange issue with the duplicate ID's while navigating from ObjectPage layout control to another view and back.
What I'm trying to do - is to navigate from a block (BlockBase.js) to another view. When I navigate to this view - everything is OK, but when a navigate back - I'm getting the following Error: adding element with duplicate id '__xmlview2-layoutData'.
What could be wrong here?
The subsection looks like:
<ObjectPageSubSection title="Item Section" id="subSectionId">
<blocks>
</blocks>
</ObjectPageSubSection>
I need a router instance inside my block controller, so I have to leave blocks section empty and add a view using router.
I have the following routes and targets:
routes: [
{
name: "listview",
pattern: "",
target: "listview"
},
{
name: "objectpage",
pattern: "listview/{ItemId}",
target: ["objectpage", "objectBlock"],
},
{
name: "objectdetails",
pattern: "listview/{ItemId}/Subitems/{SubItemId}",
target: "objectdetails"
}
],
targets: {
listview: {
viewName: "listview",
viewLevel: 1,
clearAggregation: true
},
objectpage: {
viewName: "objectpage",
viewLevel: 2,
clearAggregation: true
},
objectBlock: {
parent: "objectpage",
controlId: "subSectionId",
controlAggregation: "blocks",
viewPath: "testroute.blocks",
viewName: "ObjectDetailsBlock",
clearAggregation: true
},
objectdetails: {
viewName: "objectdetails",
viewLevel: 3,
clearAggregation: true
}
}
Request clarification before answering.
seems it is creating ObjectPage again, if you are not refering to it's id in your code you can remove the id property for ObjectPage, otherwise check where it is creating the ObjectPage again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.