UniGrid field link to orders

Wei Wang asked on March 2, 2020 18:58

I have a custom table that contains orderitemID. I want to make this field link to the order detail/order invoice in the UniGrid defined in XML. How can I do that?

thanks

Recent Answers


Nikhila Reddy Pocha answered on March 3, 2020 09:08

Hi Wei Wang,

If you want add this field in UnGrid you need to customize the XML and add that field as ungrid column please refer this examples for customization.

Refer1: https://docs.kentico.com/k8/references/kentico-controls/ui-controls/unigrid/reference-unigrid-definition

Refer 2: https://devnet.kentico.com/articles/advanced-unigrid-example

Thanks Nikhila

1 votesVote for this answer Mark as a Correct answer

Wei Wang answered on March 3, 2020 14:04

thanks. is there a way to link the orderID directly to the orders module or orders invoice page?

0 votesVote for this answer Mark as a Correct answer

Wei Wang answered on March 3, 2020 16:21

ok, I tried to use href to link to the invoice page but got an issue.

<column source="BookingOrderItemID" caption="Order Item ID" externalsourcename="#transform: ecommerce.orderitem.OrderItemOrderID" parameters="OrderItemOrderID" href="~/CMSModules/Ecommerce/CMSPages/GetInvoice.aspx?orderid={0}" ></column>

I need the parameter to be the orderID, but since the class does not have this field (only orderitemID field) I got the message: Message: OrderItemOrderID is neither a DataColumn nor a DataRelation for table Table.

I can use the transform in externalsourcename to reference this field though. How can I make the parameter to be the same as the externalsourcename?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.