web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Extending Cart in MPOS

(0) ShareShare
ReportReport
Posted on by

I have a requirement to show new field(string) in the header data in the show journals screen. The data for this field will be created in the cartview before making the payment.

On my analysis i came to know that cartview is using crt.salestransaction table so i am updating the table directly by extending the CRT.

The same filed i have to show in the transaction header data from showjournal screen. I did some analysis and found that the transaction is deleted from the crt.salestransaction table once we complete the transaction(Tender payment).

I feel that i have to extend both the cart and the salestransaction entity for this requirement.

Any ideas how we can achieve this.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Iulian Cordobin Profile Picture
    8,201 on at

    I see that you've done some research on this so far. What exactly is it that you are having issues with?

    As you know, you will do the changes in Visual Studio to update the CRT assemblies to pass the new data values, as well as in the TypeScript project of MPOS itself to handle the UI aspects of entering and working with the new field. Are you familiar with these?

    One of the nice blogs on this topic is blogs.msdn.com/.../extensibility-in-dynamics-ax-2012-r3-cu8-crt-retailserver-mpos-part-1.aspx.

  • Community Member Profile Picture
    on at

    Thanks for your reply.

    I have created a new CRT Service and updated the salestransaction table with my new field data when a particular operation is triggered from MPOS.  I am not that much familair with modifying the existing CRT services. I would be more helpful if you provide steps to modfying the OOB CRT service to include the new fields.

  • SergeyP Profile Picture
    2,928 on at

    See whether this topic will be helpful Extending the Cart Line in MPOS if you will still have questions - please describe in details.

  • Hitesh Manglani Profile Picture
    312 on at

    << Update >> With an upgrade to CU11 I am able to get past the below issue. 

    Hello Sergey,

    I am trying to achieve extension of the cart in AX 2012 R3 CU10, I tried to use Extension Properties of the Cart Entity. However based on Extending the Cart Line in MPOS when I tried to persist the ExtensionProperty in CRT DB, am unable to do so because the SalesTransactionDataService doesnt seem to be available to modify in R3  CRT. Any suggestions?

    Also alternatively I tried using the sales order properties framework as described in this link https://technet.microsoft.com/en-us/library/jj991925.aspx

     However I get the below error on trying to do so

    Non-CommerceRuntimeException was thrown.System.Runtime.Serialization.SerializationException: Type 'Microsoft.Dynamics.Commerce.Runtime.DataModel.AttributeTextValue' with data contract name 'AttributeTextValue:http://schemas.datacontract.org/2004/07/Microsoft.Dynamics.Commerce.Runtime.DataModel' is not expected. Consider using a DataContractResolver or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.

    Regards

    Hitesh

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dekion Profile Picture

dekion 4

#2
Virginia99 Profile Picture

Virginia99 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans