Hi Everyone,
in mobile app, in the Account section, we added a link to the order detail, which display the order list for that account.
Unfortunatelly, when selecting one order, the product list is missing.
I did not found a way to display it, using the mobile app assistant.
After some searching, i found that the MobileOrderRecordPageSettingsDefaultWorkplace define the fields to be displayed, but i could not configure it properly to display the product list.
How can it be done, please ?
Thanks.
Patrice
Like
Hello Patrice,
You need to add it to the mobile application manifest.
Find details here:
https://academy.creatio.com/docs/developer/mobile_development/mobile_ap…
Best Regards,
Bogdan
Hello Bogdan,
thank you for your answer.
The mobile application manifest is a part of the solution as one need to add OrderProduct reference in it to make it work.
For my particular issue, i did not set MobileOrderRecordPageSettingsDefaultWorkplace correctly.
Finally, i found the right way :
{ "operation": "insert", "name": "OrderProductDetail", "showForVisibleModule": true, "values": { "caption": "OrderProductDetailCaptionOrder_caption", "entitySchemaName": "OrderProduct", "filter": { "detailColumn": "Order", "masterColumn": "Id" }, "operation": "insert" }, "parentName": "settings", "propertyName": "details", "index": 1 },
If anyone searching for the complete solution, here is the MobileOrderProductRecordPageSettingsDefaultWorkplace :
[ { "operation": "insert", "name": "settings", "values": { "entitySchemaName": "OrderProduct", "details": [], "columnSets": [], "localizableStrings": { "primaryColumnSetOrderProduct_caption": "Informations générales" }, "settingsType": "RecordPage", "operation": "insert" } }, { "operation": "insert", "name": "primaryColumnSet", "values": { "items": [], "rows": 1, "entitySchemaName": "OrderProduct", "caption": "primaryColumnSetOrderProduct_caption", "position": 0, "operation": "insert" }, "parentName": "settings", "propertyName": "columnSets", "index": 1 }, { "operation": "insert", "name": "Product_row_123", "values": { "row": 2, "content": "Nom du produit", "columnName": "Name", "dataValueType": 1, "operation": "insert" }, "parentName": "primaryColumnSet", "propertyName": "items", "index": 2 }, { "operation": "insert", "name": "Quantity_row_123", "values": { "row": 3, "content": "Quantité", "columnName": "Quantity", "dataValueType": 1, "operation": "insert" }, "parentName": "primaryColumnSet", "propertyName": "items", "index": 3 }, { "operation": "insert", "name": "Price_row_123", "values": { "row": 4, "content": "Prix de vente", "columnName": "Price", "dataValueType": 1, "operation": "insert" }, "parentName": "primaryColumnSet", "propertyName": "items", "index": 4 }, { "operation": "insert", "name": "Discount_row_123", "values": { "row": 5, "content": "Réduction", "columnName": "DiscountAmount", "dataValueType": 1, "operation": "insert" }, "parentName": "primaryColumnSet", "propertyName": "items", "index": 5 }, { "operation": "insert", "name": "Product_row_123", "values": { "row": 6, "content": "Détails du produit", "columnName": "Product", "dataValueType": 10, "operation": "insert" }, "parentName": "primaryColumnSet", "propertyName": "items", "index": 6 } ]
Best regards
Patrice
Patrice Vigouroux,
Hello,
Many thanks for sharing your solution with us! :)
Please let us know in case of any additional questions.
Best regards,
Anastasiia