function GotoView() { var BO : BusObject = TheApplication().GetBusObject("Contact"); var BC : BusComp = BO.GetBusComp("Contact"); this.BusComp().ActivateField("Contact Id"); var sConId = this.BusComp().GetFieldValue("Contact Id"); with(BC) { SetViewMode(AllView); ClearToQuery(); ActivateField("Id"); SetSearchSpec("Id", sConId); ExecuteQuery(ForwardOnly); if (FirstRecord()) { TheApplication().GotoView("Contact Details View", BO); } } }