Author Topic: ShapeSheet PageCount() not Updating inside of String  (Read 2272 times)

0 Members and 1 Guest are viewing this topic.

wes0126

  • Newbie
  • *
  • Posts: 2
ShapeSheet PageCount() not Updating inside of String
« on: July 18, 2013, 02:59:36 PM »
I have a shape that contains two text entries. The second of the two entries is supplied by shape data. The shape data can be set to "This Sheet", "Sheet 2", "Sheet 3", etc. When the user selects "Sheet 2" then the shape is modified to reflect "Sheet 2 of X" where X is the total number of pages. Everything works as it should, however, if a new page is added after the fact, the shapesheet isn't updated to reflect this. Here's an example:

Scenario: User selects sheet 2 in a 5 page document. Shape displays "Sheet 2 of 5".

A new page is inserted into the document resulting in 6 pages total, however the shape reflects "Sheet 2 of 5". If the user changes the shape data the shapesheet then re-determines there are 6 sheets not 5. The string is comprised of text and the value of the number of pages but its like the string only updates itself on a change in shape data, not a change in the data that the string is constructed with.

See file attached for more info. Thanks in advance.
« Last Edit: July 18, 2013, 03:01:07 PM by wes0126 »

Surrogate

  • Hero Member
  • *****
  • Posts: 1078
    • ShapeSheet™ Knowledge Base
Re: ShapeSheet PageCount() not Updating inside of String
« Reply #1 on: July 19, 2013, 03:51:02 AM »
in visio 2010 PAGENUMBER() don't updated too :(

in my document i have some pages, each page have frame with pagenumber (inserted as field).
when i reorder pages - on page text in field of frame look correctly. But if i see in shapesheet fields.value,
it still have old value. I must update this fields.value
i think this is BUG !
« Last Edit: July 19, 2013, 04:02:09 AM by Surrogate »

wes0126

  • Newbie
  • *
  • Posts: 2
Re: ShapeSheet PageCount() not Updating inside of String
« Reply #2 on: July 31, 2013, 06:47:44 AM »
It seems to work fine if the text is not grouped. If the text is contained in a group then you have to make a change to the selection to get it to update the PAGECOUNT().