How do I enable locked fields, like we used to in Automation Steps? I’m seeing it’s under Customizations now, but I am not seeing a useful walkthrough on this. I want to unlock a date filed on the SO Header when a shipment is created.
2021 R1 Enable Locked Fields
Hi
Please find the attached package and screenshot for your reference.
Let me know if this is working for you as well.
Hi
We can even enable the fields in 2021 R1 using workflow mechanism and I have enabled “Order Date“ field when Sales Order is in Shipping status.
Below are the steps and hope this help!!
Okay
Hi,
Regarding the fee to do the customization, I’ve never seen anyone post in this forum anything about pricing for customizations. I think it is kind of a taboo subject as many members of the forum do it for a living. However, that being said, did you mean to type 5K? Or is that a typo?
Hi!
I am being charged 5000 to enable my invoice screen to update the default sales person on an invoice once the invoice is released. Salesperson getting credit changes all the time!
It looks like it should be a straight forward workflow change. I do not have the ability to code myself in ACUMATICA but this seems like highway robbery. Thoughts?
5k, does seem a bit high, but if your system is highly modified, maybe not.
- Open Customization Projects, and EXPORT the one you intend to work on, so you have a backup. If you fail at any following step, re-import the backup and pretend you were never here. I assume you know how to publish & unpublish, if not then you should pay someone as customizations are the fastest way to break your system. (I would know, I’ve done terrible things to mine that required us to remotely unpublish as we couldn’t even log in)
- Follow the steps in the part marked BEST answer in this thread. If you don’t see your screen, add it under the SCREENS heading.
- Find the post from Naveen about adding in the code in this thread, you DO need to set the enabled flag, which he shows you how to do. The “hard” part is ensuring you’re targeting the objects as Naveen is likey not targeting what you need specifically. Side Note: Naveen is awesome and will always keep you going down the right path.
- Once you have the field on the workflow under the completed/closed/released/whatever status & the code is enabled, then you can publish and see if the field is unlocked for you.
Hi
Attached screenshot and customization package for your reference.
Hi
Attached screenshot and customization package for your reference.
Hi Naveen, I know this post is relatively old, but I got the following error while trying to follow along.
I want to enable the External Reference number on the Open, Pending Approval and Awaiting Payment status.
I added them in the Workflow Engine, but trying to use the code structure you gave leads to this error:
Any Idea of what I am doing wrong. I tried edCustomerRefNbr as well.
If I check with Inspect Elements or even on the field within the Customization package the format should be SOOrder.CustomerRefNbr
Disregard. The issue was SOOrder.CustomerRefNbr needs to be lower case when in <> brackets.
SOOrder.customerRefNbr
As soon as shipment created and Sales Order will be moved to the “Shipping” and all the document fields will go the non-editable mode.
To enable these fields, we need handle in 2 place.
- Code Level
- Automation Steps screen level
Code Level: We need have a Row_Selected event to enable fields. please find the sample code below.
protected virtual void SOOrder_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(cache, e);
SOOrder row = e.Row as SOOrder;
if (row != null)
{
PXUIFieldAttribute.SetEnabled<SOOrder.Date>(cache, row, true);
}
}
Automation Steps: Please find the screenshot for reference.
Hope this helps!!
If you’re ever in Oregon, I owe you a beer good sir! I found the workflows, but didn’t think to make a new one (which explains all my greyed options).
LOL BTW… I’m from India… I'm happy that I helped you on this :)
Hi
Hi
Apart from this, we also need to enable from code level, then only fields will be enabled on the screen. Here is code and screenshots for your reference.
protected virtual void ARInvoice_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(cache, e);
ARInvoice row = e.Row as ARInvoice;
if (row != null)
{
PXUIFieldAttribute.SetEnabled<ARInvoice.invoiceNbr>(cache, row, true);
}
}
Hi
Hi
Thank You!
Hi!
I am being charged 5000 to enable my invoice screen to update the default sales person on an invoice once the invoice is released. Salesperson getting credit changes all the time!
It looks like it should be a straight forward workflow change. I do not have the ability to code myself in ACUMATICA but this seems like highway robbery. Thoughts?
This question relates to 2021. I actually do have the same type of question but it actually is for 2020 R2. I am going to post another question to the forum which is basically the same as
I know this is an old post, but I am curious as to why the need for both code and workflow? Isn’t the point of workflow to be a no code solution? It also seems redundant to enable it using workflow and code.
Hi
Attached screenshot and customization package for your reference.
Hi Naveen, I know this post is relatively old, but I got the following error while trying to follow along.
I want to enable the External Reference number on the Open, Pending Approval and Awaiting Payment status.
I added them in the Workflow Engine, but trying to use the code structure you gave leads to this error:
Any Idea of what I am doing wrong. I tried edCustomerRefNbr as well.
If I check with Inspect Elements or even on the field within the Customization package the format should be SOOrder.CustomerRefNbr
Hi
Attached is my package I’m working on.
I appreciate any and all suggestions/help!
HI
Among other fields yes. Right now, all my dates get locked once a shipment is created, I want to be able to modify those dates. This used to be handled through automation steps. If anyone knows how or has a guide I can use, that’d be aces!
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.