ExportRecordsAsync in csv uses the rawOrLabelHeaders instead of rawOrLabel #122

Closed
opened 2024-03-12 23:34:51 -04:00 by jlewis99 · 1 comment
jlewis99 commented 2024-03-12 23:34:51 -04:00 (Migrated from github.com)

ExportRecordsAsync in csv uses the rawOrLabelHeaders instead of rawOrLabel

lines 3250 and 3372 and 3487 in RedcapApi.cs

            // Pertains to CSV data only
            var _rawOrLabelValue = rawOrLabelHeaders.ToString();
            if (!IsNullOrEmpty(_rawOrLabelValue))
            {
                payload.Add("rawOrLabel", _rawOrLabelValue);
            }

should be:

            // Pertains to CSV data only
            var _rawOrLabelValue = rawOrLabel.ToString();
            if (!IsNullOrEmpty(_rawOrLabelValue))
            {
                payload.Add("rawOrLabel", _rawOrLabelValue);
            }
ExportRecordsAsync in csv uses the rawOrLabelHeaders instead of rawOrLabel lines 3250 and 3372 and 3487 in RedcapApi.cs // Pertains to CSV data only var _rawOrLabelValue = rawOrLabelHeaders.ToString(); if (!IsNullOrEmpty(_rawOrLabelValue)) { payload.Add("rawOrLabel", _rawOrLabelValue); } ------------------------------------------------------------------------------------- should be: ------------------------------------------------------------------------------------- // Pertains to CSV data only var _rawOrLabelValue = rawOrLabel.ToString(); if (!IsNullOrEmpty(_rawOrLabelValue)) { payload.Add("rawOrLabel", _rawOrLabelValue); }
tranpl commented 2024-05-08 21:23:18 -04:00 (Migrated from github.com)

Thanks @jlewis99, will have it ready in 1.3.5

Thanks @jlewis99, will have it ready in 1.3.5
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tranpl/redcap-api#122
No description provided.