Event Based on Custom Property

H

halej51

I have a diagram that connects to a database of computers. One of the custom
attributes is the last time the machine connected in to the server (a
heartbeat). What I would like to be able to do is write code behind this
object so that it turns red if a certain time has passed since it's last
heartbeat. I'd like this to be dynamic, on a timer or such, so that the
diagram refreshes and checks the value in the custom proprety periodically.

First, is this feasible and second can anyone point me towards some
resources that would assist in doing this?

Thank you
 
A

Al Edlund

well the easy part is "can you change colors based on a custom property",
yes. John Marshall has some example code on his site to demonstrate that
(www.mvps.org/visio). The act of updating the appropriate shapesheet field
is all that it takes. the next step is to just create a simple timer routine
to periodically query your database and compare the last connect with the
current time to update the shape sheet.
just requires some intermediate programming skills,
al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top