Forum Discussion

MatthieuR's avatar
MatthieuR
New Contributor III
12 days ago
Solved

"In Use" property: Time and Scenario Dependent maintenance

Hello All, for our project, we are using the In Use property in UD2 with the Time/Scenario dependency option. Seems to work but the problem for us and also raised by customer is the maintenance part ...
  • T_Kress's avatar
    12 days ago

    You should be able to set up a dynamically calculated U8 reporting member that looks like this::

    Dim viewMember As ViewMember = ViewMember.GetItem(api.Pov.View.MemberPk.MemberId)
    
    If viewMember.IsAnnotationType Then
    	If viewMember.Name = "Annotation" Then 
    		Return api.UD1.InUse(api.Pov.UD1.MemberId, True, True)	
    	End If
    End If

    The first "True" is vary by scenario and the second is vary by time.

    In this way you can pull V#Annotation:U8#U1InUse

    On a cube view and it will show when it has changed from True to False or vice versa.