Try our conversational search powered by Generative AI!

Purchase Order Meta Fields in Order List

Vote:
 

I have several Mata Fields defined and attached them to the Purchase Order and I would like to show these in the Order List grid in the Commerce Manager. I see I can add the default Purchase Order fields as columns in the file "Orders-list.xml", but I have no clue as too how to show the Meta fields here.

Anybody know how to do this?

#81621
Feb 20, 2014 16:55
Vote:
 

Hi Rene,

That view is defined by Orders-List view.
Look in the LeftMenu.xml file in Apps/Order/Config/View/Navigation. In that file you will see how the Purchase order list is defined:

<Command id="cmdOrderPurchaseOrdersToday">
<CommandType>ClientAction</CommandType>
<ClientScript>CSManagementClient.ChangeView('Order', 'Orders-List', 'filter=today&amp;class=PurchaseOrder')</ClientScript>
<EnableHandler type="Mediachase.Commerce.Manager.CommandHandlers.PermissionEnableHandler, Mediachase.ConsoleManager" />
</Command>

ChangeView's second command - Orders-List - is a xml file that defines the view. You can find Orders-List.xml in Apps/Order/Config/View/Grids.

But beware that you cannot just add what ever columns you want, there's a control that you need might need to modify (create your own) that controls what data is available.
In this case, look in the bottom of the Orders-List.xml file and you will find that a Order/OrderList.ascx user control is referenced. This control decides what data is available to the view to use.
You can then use reflector to reference this control when you make your own.

So in short, modifying that view requires you to code a custom control for it and can't be modified within the Commerce Manager.

#81622
Feb 20, 2014 19:38
Vote:
 

Hi Tony,

Thank you for your quick reply. I will try this. 

#81633
Feb 21, 2014 10:01
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.