Skip to main content
1-Visitor
October 25, 2018
Solved

Data-Driven Menu - Replace Page

  • October 25, 2018
  • 1 reply
  • 3406 views

Hello,

I am trying to use Data-Driven Menu and I am able to get the type of menu that I need, however I am not able to achieve one functionality of 'Replace Page' and 'New Page'. I am not able to figure out how to Replace page on clicking the menu, everytime I click, the Mashup opens up in a New Page.

To fill the data I have a property of type Infotable with 'MenuEntry' as its datashape.

I assume, to achieve this, I need to fill the value of 'linkTarget' field, but what should be the value I am not able to find out. I have tried to fill this field with following values:

 - "Replace Page"

 - "REPLACE"

- "Replace"

- "REPLACE PAGE"

but none of them seems to work. Any help would be appreciated.

Thanks

Aditya Mittal

Best answer by posipova

Please look at the last comment in this thread (by me), I have attached entities with a sample there. https://community.ptc.com/t5/ThingWorx-Developers/Is-it-possible-to-open-a-second-mashup-in-a-contained-mashup/m-p/577864#M31794

1 reply

20-Turquoise
October 25, 2018

Are you utilizing a master mashup? You should put your menu in a master header and then bind all mashups that are menu items to that master.

amittal11-VisitorAuthor
1-Visitor
October 26, 2018

Hello,

Yes I am using a master Mashup, but the menu that I am utilising is on contained Mashup. Is that approach incorrect?

-Aditya

posipova20-TurquoiseAnswer
20-Turquoise
October 26, 2018

Please look at the last comment in this thread (by me), I have attached entities with a sample there. https://community.ptc.com/t5/ThingWorx-Developers/Is-it-possible-to-open-a-second-mashup-in-a-contained-mashup/m-p/577864#M31794