a month ago - last edited a month ago
Hi,
we faced a recent issue on a rule that previously worked correctly on Tablet(Samsung A9+ on Android 14).
On the OnValueChange event of ListPicker we have a Rule with this code:
// get selected value properties let bindingObject = clientAPI.getValue()[0].BindingObject;
// get controllers let barcodeControl = clientAPI.evaluateTargetPathForAPI("#Page:CreateSalesOrderItem/#Control:FCCreateItemBarcode"); let descriptionControl = clientAPI.evaluateTargetPathForAPI("#Page:CreateSalesOrderItem/#Contmdk mobile development kit clientrol:FCCreateItemDescription"); let customerProdControl = clientAPI.evaluateTargetPathForAPI("#Page:CreateSalesOrderItem/#Control:FCCreateItemCustomerProduct");
// set controllers values barcodeControl.setValue(bindingObject.EAN); descriptionControl.setValue(bindingObject.Description); customerProdControl.setValue(bindingObject.CustMaterial);
The instruction clientAPI.getValue()[0].BindingObject; does not works anymore and returns undefined
We need to get all the property of the selected item of the entity for set Value on some ReadOnly SimpleProprety fields.
On Phone(Samsung A23 on Android 14) seems to work correctly.
We tried to reset the app on both, phone and tablet but nothing changed.
Why this does not works anymore on Tablet ?
Thank you.
First thing would be to verify the MDK version in use on the tablet. Access to the list picker binding object is only available in MDK 24.4 and above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@bill_froelichYes, probably this is the problem.
For debug purpose I had an older MDK Client(23+) for build and debug apps in VSCode.
I downloaded the 24.7.3 MDKClient. Now i have a new problem, after "create-client" and after "tns run android --device XXX" i can't authenticate in the app because after the Log In Button i got a "HTTP Status 400".
The BrandedSettings.json was the same of previous app, I checked all the ConnectionSettings and seems to be ok.
What else I can check ?
Thank you
I tried to remove the template folder and recreate and worked.
What I meant to say is that I downloaded the MDK Client SDK from SAP Download Center, i do not use the MDK Client from Play Store because I need to debug the App trough Android Studio Device Simulator and VSCode.
I do not know if there is another way to debug directly from device.
User | Count |
---|---|
75 | |
9 | |
9 | |
8 | |
8 | |
7 | |
7 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.