Catching the character in ET1 DataWedge

// Expert user has replied.
J Jon Preedy 3 years 7 months ago
56 2 0

Hi team...
 
I'm trying to capture the character from a code128 and send it through as a printable delimiter for an application (such as a ! character).
 
In DataWedge for WinMo, we have the ability to set this via KeyMap... but it appears we don't have equivalent functionality in Android? Or we've buried that capability somewhere in the UI.
 
Can anyone point me in the right direction?
 
Many thanks!
-JP

Please Register or Login to post a reply

2 Replies

R Ritesh Gupta

Hey Jon,

Try using the “Advanced Data Formatting” feature exposed by DataWedge.  All the required details are in the ET1 Integrators’ Guide : http://supportcentral.motorolasolutions.com/support/search.do?cmd=displ… 0 523600148

Look within section : “Generating Advanced Data Formatting Rules” in page 4-21.  I believe the “Replace String” action could solve the problem.

Regards,
Ritesh

P Pavel Machala

Hi Jon,
ADF rules are only possible solution on Android, however it is little bit tricky on 2.3.4 version.

You have to use "Send Up To" or "Replace String". Unfortunately both actions expect to put string which corresponds with that particular control character (GS,RS,....). On WM we were using \x1D or \u... strings for such characters but these are not supported in GingerBeard. It will be supported in JB.

However there is the following workaround
Example how to remap GS character:
Scan barcode with default datawedge settings in DWdemo or browser or somewhere else. Now you should be able to see unknown symbols similar to square. So delete everything besides that particular square which belongs to GS character.
Then select that “square” and copy it.
Go to Datawedge ADF rule settings in "Replace String" action you have to paste the character in the first string and in second string you can put whatever string you want to see instead of that square e.g. “%”

When you want to replace all GS characters use following actions
Replace String
Send Remaining

If you want to send data till GS character, use   Send up to.

CONTACT
Can’t find what you’re looking for?