Discussion:
Creating Global Data
(too old to reply)
CalgaryBob
2010-02-08 20:23:02 UTC
Permalink
Is there a way to create a global data structure (or variable) that is
accessible by more than 1 shape?

I would like the data to be used by several shapes, but would like to change
the data in only one place? Is this possible?

Everything I have tried just creates a new instance of data, if I change the
value of the orginal shape, the value in the assigned shapes does not change.
AlEdlund
2010-02-08 20:34:06 UTC
Permalink
Consider datarecordsets (a feature of v2007 professional).
al
Post by CalgaryBob
Is there a way to create a global data structure (or variable) that is
accessible by more than 1 shape?
I would like the data to be used by several shapes, but would like to change
the data in only one place? Is this possible?
Everything I have tried just creates a new instance of data, if I change the
value of the orginal shape, the value in the assigned shapes does not change.
CalgaryBob
2010-02-08 23:58:01 UTC
Permalink
I did try using the Shape Data Sets, but it simply created an instance of the
data at the time I applied it to the the shapes. If I went and changed the
data in the set, it did not update the shapes it was assigned to, even more,
if i tried assigning the new data, it just ignored it and kept the data
initially assigned.

But thank you for your response

Bob
Post by AlEdlund
Consider datarecordsets (a feature of v2007 professional).
al
Post by CalgaryBob
Is there a way to create a global data structure (or variable) that is
accessible by more than 1 shape?
I would like the data to be used by several shapes, but would like to change
the data in only one place? Is this possible?
Everything I have tried just creates a new instance of data, if I change the
value of the orginal shape, the value in the assigned shapes does not change.
Paul Herber
2010-02-08 20:38:59 UTC
Permalink
Post by CalgaryBob
Is there a way to create a global data structure (or variable) that is
accessible by more than 1 shape?
I would like the data to be used by several shapes, but would like to change
the data in only one place? Is this possible?
Everything I have tried just creates a new instance of data, if I change the
value of the orginal shape, the value in the assigned shapes does not change.
The page (or document) can contain Custom Properties (ShapeData) or User-defined data.
Click on the page so no shape is selected, menu Data -> Shape Data and define your data
(say, myData)..
Now in the shape insert a field as ThePage!Prop.myData.
--
Regards, Paul Herber, Sandrila Ltd.
Electronics for Visio http://www.sandrila.co.uk/visio-electronics/
Electrical for Visio http://www.sandrila.co.uk/visio-electrical/
Electronics Packages for Visio http://www.sandrila.co.uk/visio-electronics-packages/
CalgaryBob
2010-02-09 00:03:01 UTC
Permalink
Thank you for the reply Paul, I was unable to get Visio 2007 to accept the
syntax you suggested, but I did manage to edit the text fields (using shape
sheet editor) to display the shape data of another shape on the sheet. I
can't figure out what the syntax for a page number needs to be.

All is good now though, thanks

Bob
Post by Paul Herber
Post by CalgaryBob
Is there a way to create a global data structure (or variable) that is
accessible by more than 1 shape?
I would like the data to be used by several shapes, but would like to change
the data in only one place? Is this possible?
Everything I have tried just creates a new instance of data, if I change the
value of the orginal shape, the value in the assigned shapes does not change.
The page (or document) can contain Custom Properties (ShapeData) or User-defined data.
Click on the page so no shape is selected, menu Data -> Shape Data and define your data
(say, myData)..
Now in the shape insert a field as ThePage!Prop.myData.
--
Regards, Paul Herber, Sandrila Ltd.
Electronics for Visio http://www.sandrila.co.uk/visio-electronics/
Electrical for Visio http://www.sandrila.co.uk/visio-electrical/
Electronics Packages for Visio http://www.sandrila.co.uk/visio-electronics-packages/
.
John Goldsmith_Visio_MVP
2010-02-09 12:59:53 UTC
Permalink
Have a look at this link for more details on cell references:

http://msdn.microsoft.com/en-us/library/aa200961(office.10).aspx

Best regards

John
Post by CalgaryBob
Thank you for the reply Paul, I was unable to get Visio 2007 to accept the
syntax you suggested, but I did manage to edit the text fields (using shape
sheet editor) to display the shape data of another shape on the sheet. I
can't figure out what the syntax for a page number needs to be.
All is good now though, thanks
Bob
On Mon, 8 Feb 2010 12:23:02 -0800, CalgaryBob
Post by CalgaryBob
Is there a way to create a global data structure (or variable) that is
accessible by more than 1 shape?
I would like the data to be used by several shapes, but would like to change
the data in only one place? Is this possible?
Everything I have tried just creates a new instance of data, if I change the
value of the orginal shape, the value in the assigned shapes does not change.
The page (or document) can contain Custom Properties (ShapeData) or User-defined data.
Click on the page so no shape is selected, menu Data -> Shape Data and define your data
(say, myData)..
Now in the shape insert a field as ThePage!Prop.myData.
--
Regards, Paul Herber, Sandrila Ltd.
Electronics for Visio
http://www.sandrila.co.uk/visio-electronics/
Electrical for Visio
http://www.sandrila.co.uk/visio-electrical/
Electronics Packages for Visio
http://www.sandrila.co.uk/visio-electronics-packages/
.
Loading...