Skip to content

Commit

Permalink
Merge pull request #1425 from dimagi/rc/results-title-response
Browse files Browse the repository at this point in the history
add results title to query response
  • Loading branch information
Robert-Costello authored Jul 11, 2023
2 parents e150d55 + 15498d9 commit 7bbda51
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class QueryResponseBean extends MenuBean {
private DisplayElement[] displays;
private final String type = "query";
private String description;
private String resultsTitle;

QueryResponseBean() {
}
Expand All @@ -35,10 +36,18 @@ public void setDescription(String description) {
this.description = description;
}

public void setResultsTitle(String resultsTitle) {
this.resultsTitle = resultsTitle;
}

public String getDescription() {
return description;
}

public String getResultsTitle() {
return resultsTitle;
}

private void setDisplays(DisplayElement[] displays) {
this.displays = displays;
}
Expand Down Expand Up @@ -85,6 +94,7 @@ public QueryResponseBean(QueryScreen queryScreen) {
}
setTitle(queryScreen.getScreenTitle());
setDescription(queryScreen.getDescriptionText());
setResultsTitle(queryScreen.getResultsTitle());
setQueryKey(querySession.getCommand());
}

Expand Down

0 comments on commit 7bbda51

Please sign in to comment.