Skip to main content
Answer

How do I add a new dropdown item to SOCreateShipment action field.

  • August 27, 2024
  • 2 replies
  • 108 views

Forum|alt.badge.img+7

I’d like to add a new menu item on the dropdown for the action field on SOCreateShipment (SO50100).

The Action field is defined as follows:

#region Action
[PX.Data.Automation.PXWorkflowMassProcessing(DisplayName = "Action")]
public virtual string Action { get; set; }
public abstract class action : PX.Data.BQL.BqlString.Field<action> { }
#endregion

Digging into the PXWorkflowMassProcessingAttribute via VisualStudio (because I think think we don’t have the source for that attribute) I see that it expects to look back at the calling object for a class called WellKnownActions and from that class it builds the string list.

Should I cacheattach that field and override with a PXStringList?

Or should I just add the action through the workflow editor which seems to be fairly easy to do.

Best answer by Django

I found the solution here:

Thanks @darylbowman for your solution on that thread!

2 replies

Forum|alt.badge.img+8
  • Captain II
  • August 27, 2024

Hi @Django 

 

Would PXDBStringList work here to list the methods or does it only work for classes? Not too familiar with how the PXDBStringList attribute works.

 

Aleks


Forum|alt.badge.img+7
  • Author
  • Captain II
  • Answer
  • August 29, 2024

I found the solution here:

Thanks @darylbowman for your solution on that thread!