Commit 6c33b315 authored by metzlerd's avatar metzlerd
Browse files

Added ability to save label field.

parent 31cb7ead
......@@ -277,7 +277,7 @@ class FrxEditor {
$this->setFrxHeader('parameters', 'parm',
$parmElements,
array('id', 'label', 'require', 'desc', 'data_source', 'data_field', 'type', 'class', 'options'),
array('id', 'label', 'require', 'desc', 'data_source', 'data_field', 'label_field', 'type', 'class', 'options'),
'value');
}
......
......@@ -2288,7 +2288,14 @@ function forena_admin_params_form($formid, $form_state, $report_name) {
'#type' => 'textfield',
'#title' => t('Data Field'),
'#default_value' => $data_field,
'#description' => t('Column in data block to be used for ID'),
'#description' => t('Column in data block to be used data of select boxes and radio buttons. '),
);
$form['params'][$id]['label_field'] = array(
'#type' => 'textfield',
'#title' => t('Label Field'),
'#default_value' => $label_field,
'#description' => t('Column in data block to be used for the label for selet boxes and radio buttons.')
);
$form['params'][$id]['options'] = array(
......
......@@ -59,11 +59,16 @@
</tr>
<tr>
<th scope="row" align="left">data field</th>
<td><p>Thefield that indicates which lookup values will be used to
populate the parameter when a data source is specified.
</p>
</td>
</tr>
<tr>
<th scope="row" align="left">label field</th>
<td><p>
<span
style="color: #3b3b3b; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21px;">The
filed that indicates which lookup values will be used to
populate the parameter when a data source is specified.</span>
The field that indicates which lookup values will be used to
populate the parameter when a data source is specified.
</p>
</td>
</tr>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment