Skip to content

Commit

Permalink
eCRF field ref UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenn committed Feb 27, 2024
1 parent 5762eca commit 64a74db
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public static void copyEcrfFieldOutToIn(ECRFFieldInVO in, ECRFFieldOutVO out) {
in.setJsVariableName(out.getJsVariableName());
in.setJsValueExpression(out.getJsValueExpression());
in.setJsOutputExpression(out.getJsOutputExpression());
in.setRef(out.getRef());
in.setExternalId(out.getExternalId());
}
}
Expand Down Expand Up @@ -100,6 +101,7 @@ public static void initEcrfFieldDefaultValues(ECRFFieldInVO in, Long trialId, Lo
in.setJsVariableName(Messages.getString(MessageCodes.ECRF_FIELD_JS_VARIABLE_NAME_PRESET));
in.setJsValueExpression(Messages.getString(MessageCodes.ECRF_FIELD_JS_VALUE_EXPRESSION_PRESET));
in.setJsOutputExpression(Messages.getString(MessageCodes.ECRF_FIELD_JS_OUTPUT_EXPRESSION_PRESET));
in.setRef(Messages.getMessage(MessageCodes.ECRF_FIELD_REF_PRESET, CommonUtil.generateShortUUID()));
in.setExternalId(Messages.getString(MessageCodes.ECRF_FIELD_EXTERNAL_ID_PRESET));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ public interface MessageCodes {
public static final String ECRF_FIELD_JS_VALUE_EXPRESSION_PRESET = "ecrf_field_js_value_expression_preset";
public static final String ECRF_FIELD_JS_OUTPUT_EXPRESSION_PRESET = "ecrf_field_js_output_expression_preset";
public static final String ECRF_FIELD_EXTERNAL_ID_PRESET = "ecrf_field_external_id_preset";
public static final String ECRF_FIELD_REF_PRESET = "ecrf_field_ref_preset";
public static final String SELECT_ECRF = "select_ecrf";
public static final String SELECT_PROBAND_LIST_ENTRY = "select_proband_list_entry";
public static final String SELECT_ECRF_FIELD_STATUS_ENTRY = "select_ecrf_field_status_entry";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ ecrf_field_js_variable_name_preset=
ecrf_field_js_value_expression_preset=//leave this field blank to use entered values directly,\n//or provide a javascript snippet that calculates this\n//variable's value\:\n// - specify involved variables as signature parameters\n// - provide the variable's new value as return value\n// - available special variables\: $enteredValue, $oldValue,\n// $selectionSetValues\n//example\: calculate the Body Mass Index from variables\n//'size' and 'weight'\:\n//function(size,weight) {\n// return weight / (size * size);\n//}
ecrf_field_js_output_expression_preset=//leave this field blank if no output is desired, or provide\n//a javascript snippet that assembles a string output\n//to be displayed below user input\:\n// - specify involved variables as signature parameters\n// - provide text/html output as return value\n// - available special variables\: $enteredValue, $oldValue,\n// $selectionSetValues\n//function(bmi) {\n// return sprintf("the BMI value results in\: %.2f",bmi);\n//}
ecrf_field_external_id_preset=
ecrf_field_ref_preset={0}
select_ecrf=select eCRF

select_ecrf_field_status_entry=select eCRF issue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ ecrf_field_js_variable_name_preset=
ecrf_field_js_value_expression_preset=//leave this field blank to use entered values directly,\n//or provide a javascript snippet that calculates this\n//variable's value\:\n// - specify involved variables as signature parameters\n// - provide the variable's new value as return value\n// - available special variables\: $enteredValue, $oldValue,\n// $selectionSetValues\n//example\: calculate the Body Mass Index from variables\n//'size' and 'weight'\:\n//function(size,weight) {\n// return weight / (size * size);\n//}
ecrf_field_js_output_expression_preset=//leave this field blank if no output is desired, or provide\n//a javascript snippet that assembles a string output\n//to be displayed below user input\:\n// - specify involved variables as signature parameters\n// - provide text/html output as return value\n// - available special variables\: $enteredValue, $oldValue,\n// $selectionSetValues\n//function(bmi) {\n// return sprintf("the BMI value results in\: %.2f",bmi);\n//}
ecrf_field_external_id_preset=
ecrf_field_ref_preset={0}
select_ecrf=eCRF ausw\u00E4hlen

select_ecrf_field_status_entry=eCRF Issue ausw\u00E4hlen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,7 @@ ecrffield_ecrffield_list_notify_column=Notify
ecrffield_ecrffield_list_external_id_column=External ID
ecrffield_ecrffield_list_field_external_id_column=Ext. ID (input field)
ecrffield_ecrffield_list_number_of_values_column=#Values
ecrffield_ecrffield_list_ref_column=Reference
ecrffield_ecrffield_list_section_column=Section
ecrffield_ecrffield_list_series_column=Series
ecrffield_ecrffield_list_position_column=Position
Expand Down Expand Up @@ -1118,6 +1119,10 @@ ecrffield_externalid_label=External ID:
ecrffield_externalid=External ID
ecrffield_externalid_tooltip=This eCRF field's identifier in data exports.

ecrffield_ref_label=Reference\:
ecrffield_ref=reference
ecrffield_ref_tooltip=This eCRF field's identifier when importing an updated eCRF setup.

ecrffield_field_calculation_js_snippets_field_set=Field value calculation and output

ecrffield_js_value_expression_label=Value expression:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,7 @@ ecrffield_ecrffield_list_notify_column=Benachrichtigen
ecrffield_ecrffield_list_external_id_column=Externe ID
ecrffield_ecrffield_list_field_external_id_column=Ext. ID (Eingabefeld)
ecrffield_ecrffield_list_number_of_values_column=#Werte
ecrffield_ecrffield_list_ref_column=Referenz
ecrffield_ecrffield_list_section_column=Abschnitt
ecrffield_ecrffield_list_series_column=Serie
ecrffield_ecrffield_list_position_column=Position
Expand Down Expand Up @@ -1112,6 +1113,10 @@ ecrffield_externalid_label=Externe ID\:
ecrffield_externalid=Externe ID
ecrffield_externalid_tooltip=Die Kennzeichnung dieses eCRF Feldes in Datenexports.

ecrffield_ref_label=Referenz\:
ecrffield_ref=Referenz
ecrffield_ref_tooltip=Die Kennzeichnung dieses eCRF Feldes beim Import eines aktualisierten eCRF Setups.

ecrffield_audit_trail_label=Audit Trail\:
ecrffield_audit_trail_tooltip=\u00C4nderungen des Eingabefeldwertes aufzeichnen.

Expand Down
41 changes: 41 additions & 0 deletions web/src/main/webapp/META-INF/includes/trial/ecrfField.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@
<h:outputText
value="#{applicationScopeBean.getEcrfFieldValueCount(ecrfField.vo)}" />
</p:column>
<p:column sortBy="#{ecrfField.vo.ref}"
filterBy="#{ecrfField.vo.ref}">
<f:attribute name="visibleDefault" value="false" />
<f:facet name="header">
<h:outputText
value="#{triallabels.ecrffield_ecrffield_list_field_ref_column}" />
</f:facet>
<h:outputText value="#{ecrfField.vo.field.ref}" />
</p:column>
<p:column sortBy="#{ecrfField.vo.section}"
filterBy="#{ecrfField.vo.section}"
filterOptions="#{ecrfFieldBean.filterSections}">
Expand Down Expand Up @@ -749,6 +758,38 @@
</p:tooltip>
</h:panelGroup>
<p:message for="ecrfFieldNotify" />


<h:outputLabel for="ecrfFieldRef"
value="#{triallabels.ecrffield_ref_label}" />


<h:panelGrid columns="2" cellpadding="0">
<h:panelGroup>
<p:inputText id="ecrfFieldRef"
value="#{ecrfFieldBean.in.ref}" required="true"
label="#{triallabels.ecrffield_ref}"
styleClass="ctsms-control">
</p:inputText>
<p:tooltip rendered="#{enableTooltips}"
for="ecrfFieldRef">
<h:outputText
value="#{triallabels.ecrffield_ref_tooltip}"
escape="false" />
</p:tooltip>
</h:panelGroup
<p:commandButton process="@this"
title="#{userlabels.generate_password_button_label}"
actionListener="#{ecrfFieldBean.generatePassword}"
icon="ui-icon ui-icon-gear" ajax="true"
disabled="#{!passwordBean.createable}" update="password" />
<h:outputLabel />
</h:panelGrid>



>
<p:message for="ecrfFieldRef" />

</h:panelGrid>
<p:fieldset rendered="#{ecrfFieldBean.inputVisible}"
Expand Down

0 comments on commit 64a74db

Please sign in to comment.