First, I suggest that you review the following topic to learn how to show a custom set of objects in a ListView: How to: Display a List of Non-Persistent Objects.
To create non-persistent objects based on a stored procedure, use the Session.GetObjectsFromSproc method. Use the XPObjectSpace.Session property of the Object Space created for a new DetailView to get a Session instance. Here is an example based on the How to: Display a List of Non-Persistent Objects topic:

void showDuplicatesAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) {
    IObjectSpace objectSpace = Application.CreateObjectSpace();
    StoredProcedureResults resultsHolder = new StoredProcedureResults(); // a custom non-persistent class with a Results collection
    ICollection<MyNonPersistentClass> results = ((XPObjectSpace)objectSpace).Session.GetObjectsFromSproc<MyNonPersistentClass>("mySproc");
    resultsHolder.Results.AddRange(results);
    e.View = Application.CreateDetailView(objectSpace, resultsHolder);
}

 

相关文章:

  • 2021-07-20
  • 2021-07-11
  • 2022-01-06
  • 2021-12-22
  • 2022-12-23
  • 2021-10-06
  • 2021-06-16
  • 2022-12-23
猜你喜欢
  • 2021-10-01
  • 2021-07-17
  • 2021-11-28
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
相关资源
相似解决方案