Developer forum

Forum » Development » Access to ObjectElement and ObjectType in UserTransaction

Access to ObjectElement and ObjectType in UserTransaction

Filip Hein
Reply

Hi DW

We are working on a solution (DW 9.13.8) that makes use of Ecommerce Loyalty. We have a table in frontend showing users their latest transactions using the UserTransaction class. In case there is an order associated with the UserTransaction we want to be able to link to the order details.

- To do this we would like to have access (Get/Set) to the ObjectElement (So we can get the order ID). We would also like Set access to ObjectType (Get is already available).

- We have also noticed some odd behaviour when accessing ObjectType through the API. If the ObjectType is 'OrderDiscount' in the database, when we request it through the API it is returned as 'User' instead. Can this behaviour be changed so we get the ObjectType that is actually stored in the db?

Can you help us with the above?

Best regards

Filip

 


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Filip

I have made them public and fixed the bug related to ObjectType.

The now public setter makes it possible for you to add stuff to transactions that DW does not understand.

BR Nicolai

Votes for this answer: 1
 
Filip Hein
Reply

Excellent, we'll keep that in mind, thank you for your help!

Best regards

Filip

 

You must be logged in to post in the forum