10526 : In the GTP.Net version is there a way to find a UserReference?

Question

In the GTP.Net version is there a way to find a UserReference like there is in the ActiveX version (FindFromUserVariantReference)?

Answer

In GTP.NET 3.0 you can use Grid.FindGridNodeUserReference to find GridNodes based on UserReference, Gantt.FindTimeItemUserReference  to find time items in the entire Gantt or Layer.FindTimeItemUserReference to find in a single layer.

To find time item links use Gantt.FindTimeItemLinkUserReference.

Prior to GTP.NET 3.0 there is no “FindFromUserReference” function . The work around is to iterate and search yourself, or keep a hash-index on the side that you add the Gantt-object and the UserReference to each time you add something.

 

Leave a Reply