Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: BenP on July 15, 2010, 12:52:28 PM

Title: Retrieving Page custom property from ShapeSheet
Post by: BenP on July 15, 2010, 12:52:28 PM
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 !...
Title: Re: Retrieving Page custom property from ShapeSheet
Post by: Paul Herber on July 15, 2010, 01:22:15 PM
Prop.PropOfOneShapeInMyPage = ThePage!Prop.OneImportantDataOnMyPage

???
Title: Re: Retrieving Page custom property from ShapeSheet
Post by: BenP on July 15, 2010, 02:06:48 PM
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.


Title: Re: Retrieving Page custom property from ShapeSheet
Post by: wapperdude on July 15, 2010, 02:46:32 PM
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
Title: Re: Retrieving Page custom property from ShapeSheet
Post by: BenP on July 15, 2010, 04:47:29 PM
Ok ! it's work ! Thank you !