Action Row Chaining?

Started by Bubba2413, June 10, 2012, 02:52:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bubba2413

Just wondering if it's possible (and how) to chain action rows.  I'm thinking it would be helpful be able to create a 'library' of actions, sort of like subroutines that could then be combined, mixed and matched as needed.  or am I overthinking this?

vojo

lets say, for example, that you have 10 prop fields you want to show with docmd(1312).   But you only want to show certain ones based on context.

You could do this:
   Action1   setf(getref(action1.check), if (action1.checked,0,1)
   Action2   setf(getref(action2.check), if (action2.checked,0,1)
   Action3   setf(getref(action3.check), if (action3.checked,0,1)
   Action4   setf(getref(action4.check), if (action4.checked,0,1)
   action5  docmd(1312)

   Prop1.invisible    if (action1.checked & action2.checked, 0,1)
   Prop2.invisible    if (action1.checked & action3.checked, 0,1)
   ....
   prop5.invisbile    if (action4.checked & action2.checked, 0, 1)
   ....
   prop10.invisbile  if action4.checked & action3,checked & action2.checked & action1.checked, 0, 1)

   Basically, set the actions 1 thru 4 as user desired to restrict or filter which props to be displayed then hit
   action 5 which will call up props window and only show the props where .invisible = 0.

   Note...there are 3 or 4 other ways to do this

  Below uses actions to pick a subset of props to show
  (network, storage, processor, etc)
  results are echoed back to the shape geometries et al to show info as icons / colors / etc