Retrieving Page custom property from ShapeSheet

Started by BenP, July 15, 2010, 12:52:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BenP

Hello !

Here's my problem :

I have a Page in which I have define a custom property field in the ShapeSheet:

Prop.OneImportantDataOnMyPage = "MyValue"

I want to retrieve from a ShapeSheet of a shape the value of my "OneImportantData". In my formula I try :

Prop.PropOfOneShapeInMyPage = ThePage!Prop.OneImportantData

but it doesn't works...

How can I do that ?
Thank you for any response !...

Paul Herber

Prop.PropOfOneShapeInMyPage = ThePage!Prop.OneImportantDataOnMyPage

???
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

BenP

Thank you for your response,

Sorry, it was not clear...

On my visio Page I got a Property named : "Prop.OneImportantDataOnMyPage"

I want to use the value of that property on one formula. The problem is that formula is on a custom shape inserted on my page. I don't known how to access to the page properties from a formula define on a shape.



wapperdude

Right. 

As Paul indicated, the formula in the custom shape's shapesheet, must be set equal to the name of the property on the page.  Thus, for the page, there is a property named, OneImportantDataOnMyPage, then the referenece to that property would be, ThePage!Prop.OneImportantDataOnMyPage.   Now, in the custom shape's shapesheet, there would be the formula that Paul gives:  Prop.PropOfOneShapeInMyPage = ThePage!Prop.OneImportantDataOnMyPage

HTH
Wapperdude
Visio 2019 Pro

BenP