1234
if (Document.ActivePageReference.DetailsOnDemandPanel.Visible == False): Document.ActivePageReference.DetailsOnDemandPanel.Visible = Trueelse: Document.ActivePageReference.DetailsOnDemandPanel.Visible = False