Skip to main content
Solved

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


Forum|alt.badge.img+6

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!

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+8
  • Captain II
  • 362 replies
  • 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+6
  • Author
  • Captain II
  • 551 replies
  • Answer
  • August 29, 2024

I found the solution here:

Thanks @darylbowman for your solution on that thread!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings