Skip to main content
Oct 25, 2018 12:32 PM UTC
Solved

Data-Driven Menu - Replace Page

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

posipovaAnswer
Oct 26, 2018 1:27 PM UTC

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

5 replies

Oct 25, 2018 5:55 PM UTC

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.

amittal1Author
Oct 26, 2018 2:28 AM UTC

Hello,

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

-Aditya

posipovaAnswer
Oct 26, 2018 1:27 PM UTC

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