on 08-31-2015 1:54 AM
Hi All,
I am very new to OpenUI sdk.
We are using Panasonic G1 tablet for our SAP Work Manager Implementation. We are currently using Agentry client 70.9.06 and currently building the Barcode/RIFD Scanning using Scan template provided by the OpenUI sdk. In the Class TheScanner.cs we implemented the barcode scanning logic using Panasonic G1 sdk. So we have a method:
public void OnBarcodeScanned(object sender, ScanDataEventArgs sData)
{
myArray = new object[2];
myArray[0] = sData.TextData;
myArray[1] = sData.BinaryData;
which will be called on the click of button action defaultbutton_click , defined in the WindowDebugAlternativeInput.xaml.
We have not tested the functionality ,but according to logic the binary data will be in the myArray[1]. But how would I pass this data to Agentry client UI and how the action of the Agentry client UI button will call the OnBarcodeScanned method in TheScanner.cs.
Also, will this barcode scanning also support RFID scanning , our G1 tablet has a RFID reader.
Regards
Deep
Deep,
The Scanner Template project that comes with the OpenUI Framework is simply a sample template to give a working example. The sample project does two things,
If you are trying to link in an actual scanner you should start with the TheScanner.cs class as a framework and then make sure the following is in place.
I don't think you want to tie this to the defaultbutton_click from the WindowsDebugAlternateInput as that means you need to first display that dialog and then have the user click the button to start the scan. If that is your intent the InitiateScan method is the place to put that.
Good Luck!
--Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
I have followed following steps:
NumberReached += new DelBarcodeScanned(OnBarcodeScanned);
2. Listener has been implemented (onBarcodeScanned).
3. Setup the Initiate Scan method to turn on the scanner in response to the soft scan button being clicked in Agentry - I am not sure how this will be done.
4.Look at use the RaiseAlternateInputReceived method to pass the data back to Agentry as a scan event - I have passed myArray[1] (binary data ) after scan
RaiseAlternateInputReceived(Convert.ToString(myArray[1]));
5. On Agentry , I have created a button having class TheScanner and external field string strPropertyName
6.The external field name is the same argument passed in the :
RaiseAlternateInput(string strPropertyName); method.
I am not getting any data in the strPropertyName , I even tried to hardcode the data :
RaiseAlternateInputReceived("Hello") , but the same result.
Please let me know where excatly , I am going wrong and how can I achieve step
3.
Regards
Deep
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.