Group Triggers?

rated by 0 users
Not Answered This post has 0 verified answers | 2 Replies | 3 Followers

Not Ranked
Points 95
jims1958 posted on Thu, Jul 29 2010 3:08 PM

I have two cyclic groups and want to keep them in sync with regards to which one of the group items is selected. Is there any way to do this?

For example, group #1 has calculated dimensions for months and years. Group #2 has calculated dimensions, which are different from Group #1, also for months and years. When I change group #1 to months from years I want to also have Group #2 change from months to years.

  • | Post Points: 7

All Replies

Top 75 Contributor
Points 687

hi

sorry for only giving partial reply, but maybe someone can take it from here.

it is possible to get the active field in one group and then to cycle the other a group via automation

take a look at these API samples:

for getting the active field:

groups=ActiveDocument.GetGroups
set fld = groups(0).GetActiveField

for moving the cycle one step:

groups=ActiveDocument.GetGroups
groups(0).Cycle 1

but....... i still cannot figure out a way to trigger these automation calls when ever the user cycles a group

 

Mansyno

 

  • | Post Points: 7
Top 100 Contributor
Points 833

Give this a try:

  • create a variable (say vCyclic1) defined as =GetCurrentField(CyclicGroup1)
  • Use the OnChange variable event trigger on vCyclic1 to fire the macro

Haven't tested this, so let us know whether this works

Jonathan

  • | Post Points: 1
Page 1 of 1 (3 items) | RSS
Share
Feedback Form