Option 1: This is a formula in some sort of frequency table in each page
So lets say sheet.99 is a group that has the rows of the frequency values
And lets say sheet.100 is a shape to show a frequency.
so in a user cell of sheet.99, you would have something like this
Props.100 = "3.4 GHZ"
User.shape100 = if (stringsame(props.100, "NA"), setf(getref(sheet.99!user.catch_freq), props.100),)
Essentially, the formula sheet.99!user.shape100i checks if the props.100 cell is a good value value
If so, write that value into sheet.100!user.catch_freq cell for use in shape 100's use
i.e. check and push
Option 2 gives the user some control when to push. Action cells allow user to right click the shape and trigger an activity
In this case, you can create several actions
- 1st to open the props GUI Literally docmd(1312)
this allows you add values to the table
- 2nd to push a given value to the shape
the mapping to say sheet.100 is set when you create the table and shape (no dynamic discovery of peer shapes)
here you might use equation in option 1 like this
User.shape100 = if (stringsame(props.100, "NA"), setf(getref(sheet.99!user.catch_freq), props.100),) + dependson (actions.1st.checked)
above formula will be evaluted when the actions.1st.checked changes
to do that,
actions.1st = setf(getref(actions.1st.checked),if(actions.1st.checked, 0, 1))
One sidebar note, there are couple of interesting cells in each props row.
- One is order....so that you can add props but display how you want
Props.3rd.order = "CCC"
Props.2nd.order ="BBB"
Props.1st.order = "AAA"
this would show the value of props.1st....then props.2nd...then props.3rd.
- Another is hidden....this would gate where a props is showed then doing docmd (1312) continuing example
Props.3rd.hidden = <forumula that evaluates to FALSE>
props.2nd.hidden = <evaluate to FALSE>
Props.1st.hiddent = FALSE
Props. 4th.hidden = <forumula evaluates to TRUE>
then props 1st, then 2nd, then 3rd shown....but 4th is not displayed.
Although tedious, you can make context menus to show different sets of props fields
E,g networking attributes, CPU attributes, etc by having props.context to trigger a user cell to set the hidden cells
to show a number of props cells
something like
right and select actions network in the shape
this triggers user.network_hide to 0 and then +docmd(1312) + user.network_hide to 1
this in turn triggers on the network props to be shown (when done, hides those propos).
(props.somecoolcell.hidden = and(user.network_hide, user.cpu_hide, user.port_hide, etc) //any one = False, field shown
Very tedious...is play with a simple square and validate the behavior....then add it to a shape of interest
Attached shows an example of a menu for something like option 2