Hello, I’ve a TEA that stores a GS1 code (QR code) and a program rule extracting values and allocating them to 2 other TEA. I’m using AI 91 and 92 (COMPANY_INTERNAL_1 and COMPANY_INTERNAL_2) in my GS1 code. While the extraction works fine on the web version, it looks like Android is unable to spot the second AI although I’ve use \x1D separator. I’ve also tried without the separator but still not working. Is there another separator that can be used?
Hello @KathyBuelens,
thanks for your report. In order to narrow down the cause of the problem, could you give us this information?:
- Version of the Android Capture app.
- The extraction of the arguments in Android, does it work for the first paremeter? Or doesn’t it work for either of them?
- You mentioned it worked in web version, is it Tracker Capture app or the new Capture app? Which DHIS2 version are you using?
- Is the program rule assigning a TEA value from an event? I think this is not supported.
Hello Victor,
I’m currently using dhis2 2.40.7 and Android v3.1.1.1.
On Android the extraction works for the 1st argument (using separator \x1D or \u001D):
Regarding the web version it works both on Capture app and Tracker Capture app (I’m using the latest Capture app 101.33.1):
Tracker Capture App
Capture App:
The program rule is assigning values to two other tracked entity attributes.
My guess is that there is an issue with \ character in Android. As a workaround, I tried to use d2:split function but the \ gets ignored on Android (works fine on web version):
Capture App:
Android:
Thanks for looking into it. Let me know if I need to report this as a bug on jira.
Kind regards
How is the code being captured? Is the user typing the code or is it scanned?
If the users are generating the GS1 data matrix code with some online generator, for example, they need make sure they have the correct separator. In the example below the \F is used as separator (FNC1).
If the users are typing it, I’m afraid android doesn’t support any printable separator. So I recommend to use the split function as you mentioned. I used “\” in my example as well and it seems to be working fine.
Let me know if you have any other questions
Hello Nancy,
I used a python script to generate the QR code. I’ll update it to use \F separator and users are supposed to scan the QR code.
Thanks for the clarification, I’ll try with the updated QR code and use the ‘\’ in my split function (I was actually using '').
Kind regards,
Kathy Buelens