I am attempting to linkup the Begin and End dates of a basic line timeline from Page-1 to a master page that contains what I would like to call the master timeline.
I would like to create multiple pages and link timelines on those pages to one master page.
Thanks for any help you can offer.
SubPlanner
Update Info: I am using V2010 Pro version.
Thanks for any help.
SubPlanner
The operation of timeline shapes is under the control of a built-in addin, and it seems that playing with the stored values for the start and end dates for a timeline get overwritten by the addin.
That sound about right. So we can read shape data from page to page but not date info from one timeline to another?
I was hoping for a way to make this work cuz I would hate to have to rebuild this for multiple pages.
Thanks for your Help.
SubPlanner
Reading it isn't a problem, the problem is putting a formula into the receiving shape, it just gets overwritten.
I've had luck writing the dates to the user.visBeginDate and user.visEndDate fields with VBA. It does write the datevalue to the correct place. However, the timeline doesn't always visually update...but if you right-click on the timeline, select Configure Timeline..., then just click OK, it updates (the dates are pre-populated and the timeline behaves correctly otherwise, but doesn't update visually until you open the dialog).
serialStart = Format(startdate, "00000") 'get the serial date...this is what the timeline likes
serialEnd = Format(enddate, "00000")
Set vsopage = Application.ActiveWindow.Page
Set tlShape = vsopage.Shapes.ItemFromID(1) 'set the timeline shape
Set modcell1 = tlShape.CellsSRC(visSectionUser, 1, visUserValue) 'set the shapesheet start date box to edit
Set modcell2 = tlShape.CellsSRC(visSectionUser, 2, visUserValue) 'set the shapesheet end date box to edit
modcell1.FormulaU = serialStart 'edit the start date box
modcell2.FormulaU = serialEnd 'edit the finish date box
Thanks for the updates.
I ended up writing a series of macros that does it all for me. I launch from a button on a separate page. This as a continuous vba string with code at the end of each macro to call the next step.
Here's what I did:
Macro1: Create a new tab.
Macro2: Drop a master timeline onto the new tab, place it directly over the location of the current master timeline depicted from the background. Drop a start milestone and an end milestone and link the timeline start and end dates to the milestones.
Macro3: Drop another timeline onto the page and link the start and end dates to the master timeline as well as pinning the BeginX and EndX to the master timeline.
Macro4 thru Macro10: same as Macro3. Just adding 9 more timelines.
I left the timelines blank, so that when you drop milestones on them, they will line up with the master at the top of the page.
I have a template as a background that displays a master timeline for visualizing the date range on any added pages.
I can post the working example of this if there is any interest.
SubPlanner
Browser ID: smf
(is_webkit)
Templates: 1:
Printpage (default).
Sub templates: 4:
init,
print_above,
main,
print_below.
Language files: 1:
index+Modifications.english (default).
Style sheets: 0:
.
Hooks called: 58 (
showintegrate_autoload, cache_get_data, integrate_pre_load, integrate_load_session, integrate_verify_user, cache_get_data, integrate_user_info, integrate_load_board, cache_get_data, integrate_board_info, cache_get_data, integrate_allowed_to_general, integrate_pre_load_theme, cache_get_data, integrate_allowed_to_general, integrate_simple_actions, integrate_allowed_to_general, integrate_load_theme, integrate_pre_log_stats, integrate_actions, integrate_pre_parsebbc, integrate_bbc_codes, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_menu_buttons, integrate_current_action, integrate_theme_context, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general)
Files included: 25 - 925KB. (
show/home/iw0lkfe3x6cq/public_html/vgforum/index.php, /home/iw0lkfe3x6cq/public_html/vgforum/Settings.php, /home/iw0lkfe3x6cq/public_html/vgforum/cache/db_last_error.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/QueryString.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Auth.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Errors.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Load.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Security.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Compat.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Db-mysql.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/CacheApi.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/CacheApiInterface.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/APIs/FileBased.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Charset.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/Metadata.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/QuickCheck.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Session.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Logging.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Class-BrowserDetect.php, (Current Theme)/languages/index.english.php, (Current Theme)/languages/Modifications.english.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Printpage.php, (Current Theme)/Printpage.template.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/CaseUpper.php)
Memory used: 773KB.
Tokens:
post-login.
Cache hits: 6: 0.00098s for 22,291 bytes (
showget modSettings: 0.00043s - 19982 bytes, get known_languages: 0.00021s - 1277 bytes, get board_parents-0: 0.00013s - 2 bytes, get permissions:-1: 0.00008s - 50 bytes, get theme_settings-1: 0.00011s - 980 bytes, get menu_buttons--1-english: 0.00003s - 0 bytes)
Cache misses: 1: (
showget menu_buttons--1-english)
Queries used: 8.
[Show Queries]