I have created a class dialog, which has 1 select field, called ReasonId.
In this class I have a method returning a value:
ReasonId reasonId()
{
return reasonId::ValueX;
}
Also, I have a method making use of a find method, with a filter based on the above enum value:
ReasonId documentReasonId()
{
return DocumentReasons::findByReason(this.reasonId()).Name;
}
In the dialog method, I am trying to display the values returned by the find method, there are more values in the table, but since I'm searching based on the Reason, I only want to display these values:
public Object dialog()
{
DialogGroup dialogGroup;
;
dialogRunbase = super();
dialogGroup = dialogRunbase.addGroup();
dialogGroup.caption("CaptionLabel");
dialogReasonId = dialogRunbase.addFieldValue(this.reasonId(), "Label1","Label2");
return dialogRunbase;
}
The way I have configured it now, is to show my goal in this dialog, I am not sure how to accomplish this.
DocumentReasonscontain multiple records with the sameReasonId? - 10pDocumentReasons.Namevalues - in a grid? in a multiline text box? in another way? - 10p