GNARF: chunk datavalue import, multi text support on dataElements, override rule, fix single row export#389
Conversation
BundleMonNo change in files bundle size Groups updated (1)
Final result: ✅ View report in BundleMon website ➡️ |
Ramon-Jimenez
left a comment
There was a problem hiding this comment.
@gqcorneby I gave it a try using American Samoa 2023 and I got the 'existing data' pop-up showing that there were 3000 DEs with data already. Just wondering if, in fact, there are 3000 DEs with data, or if there is some additional fix to be done in the 'existing data' part that is making it look like there is only 3000 DEs (because of the chunk size) when there are, in fact, more DEs with data
Also, I got this warnings:
Thanks!
Hi @Ramon-Jimenez! The chunking should be isolated during saving so it shouldn't affect this part of the code. It seems like the 3000 displayed here is just a coincidence. I tried importing the the filled file again and it showed 11,355 In terms of the warning, these dataElements are indeed integer types but they have an optionSet. All of the Country Progress 3.1 dataElements are integers but some have warnings and some are saved. I'll investigate this further.
|
|
Hi @Ramon-Jimenez! I updated the PR description to include all the issues and fixes to make the template work for import and export. I was able to test import, export, edit, then import. |
Ramon-Jimenez
left a comment
There was a problem hiding this comment.
Thanks @gqcorneby , working great


📌 References
📝 Implementation
Issue 2 - multi text
multiTextDataElementDelimiteris setIssue 3 - template formulas
Issue 4 - single row export
fillRowsByDataEntry) vs templates with one data entry with fields spread out (fillRowsByKeyLookup).fixedOrgUnitandfixedPeriodare single entry templatesfillRowstoresolveDataElementValuesandresolveDataElementValueto be reusedIssue 5 - Defined-name formula resolution on export
readCellResolvingDefinedNamesfrom ExcelReader to a shared helper that checks if a cell's formula is a defined name and returns the ID, otherwise return value.This is the template used to test. Update the period or org unit in "Introduction" tab to test
NTD_GNARF_Template_filled.xlsm
🔥 Notes for the reviewer
🎨 Screenshots
📑 Others