Skip to content

Commit

Permalink
feat: Add default displayed on vue.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Apr 24, 2024
1 parent 9c80fd0 commit a004acb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/org/spin/eca56/util/support/documents/Browser.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ private Map<String, Object> parseField(MBrowseField field) {
detail.put("display_logic", field.getDisplayLogic());
detail.put("sequence", field.getSeqNo());
detail.put("grid_sequence", field.getSeqNoGrid());

// Custom display
detail.put("is_displayed_as_panel", field.isQueryCriteria() ? "Y" : "N");
detail.put("is_displayed_as_table", field.isDisplayed() ? 'Y' : 'N');

// Editable Properties
detail.put("is_read_only", field.isReadOnly());
detail.put("read_only_logic", field.getReadOnlyLogic());
Expand All @@ -186,7 +189,12 @@ private Map<String, Object> parseField(MBrowseField field) {
elementName = field.getAD_Element().getColumnName();
}
detail.put("element_name", elementName);
ReferenceValues referenceValues = ReferenceUtil.getReferenceDefinition(columnName, field.getAD_Reference_ID(), field.getAD_Reference_Value_ID(), field.getAD_Val_Rule_ID());
ReferenceValues referenceValues = ReferenceUtil.getReferenceDefinition(
elementName,
field.getAD_Reference_ID(),
field.getAD_Reference_Value_ID(),
field.getAD_Val_Rule_ID()
);
if(referenceValues != null) {
Map<String, Object> referenceDetail = new HashMap<>();
// referenceDetail.put("id", referenceValues.getReferenceId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ Map<String, Object> parseProcessParameter(MProcessPara parameter) {
// Display Properties
detail.put("display_logic", parameter.getDisplayLogic());
detail.put("sequence", parameter.getSeqNo());
// Custom display
detail.put("is_displayed_as_panel", "Y");

// Mandatory Properties
detail.put("is_mandatory", parameter.isMandatory());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ private Map<String, Object> parseField(MField field) {
detail.put("sequence", field.getSeqNo());
detail.put("is_displayed_grid", field.isDisplayedGrid());
detail.put("grid_sequence", field.getSeqNoGrid());
// Custom display
detail.put("is_displayed_as_panel", field.isDisplayed() ? "Y" : "N");
detail.put("is_displayed_as_table", field.isDisplayedGrid() ? 'Y' : 'N');

// Editable Properties
detail.put("is_read_only", field.isReadOnly());
Expand Down

0 comments on commit a004acb

Please sign in to comment.