Enabling a Custom field using workflow in Acumatica 20R2 - acumatica

I have to enable a custom field in Shipment screen in Complete status. I have tried to enable using the workflow in the customization package and it is not working.
I have inherited the workflow from default and added the custom field in field grid. After publishing the control for ref. no (UseRefNo) is not enabling.
How to fix this issue?

On top of enabling the field through different workflow states you can try and enable the field through code by extending the graph.
Documents in Completed status are closed and shouldn't be editable.
To re-enable any field you must at least re-enable the view:
Base.Document.AllowUpdate = true;

Related

Netsuite approval checkbox on a custom reminder?

I have a custom transaction record with an approval workflow set up in Netsuite. Users want to be able to use reminders to approve. Is there a way to get an approval checkbox on the reminder similar to the way the standard transaction approval reminder functions? They want it to be similar to the standard Netsuite "Requisitions to Approve", "Journals to Approve", etc.
I've set up a custom saved search hoping to at least use inline editing to update Approval Status field. Netsuite doesn't seem to allow inline editing for this transaction type.
Custom record types have a checkbox to allow inline editing

Kentico 10 - Custom action on page update

I am looking to perform a custom action when a content editor in Kentico 10 updates a page and it eventually gets published.
To be more specific we have a custom page type for products which also as an "Updated" checkbox allowing the editor to mark it as updated. When this happens (gets marked as updated) I would like to send an email out to users that have a registered interest in this product that it has been updated.
I was looking through the documentation and came across Global Events here: https://docs.kentico.com/k10/custom-development/handling-global-events/reference-global-system-events#Reference-Globalsystemevents-DocumentEvents
I was wondering if using global events to intercept the save action when the editor updates the product is the way to go here or if there is a better approach.
Kentico does n't have this functionality out of the box, but we can achieve this by writing Custom code for Global Event and a scheduler (if No.of mails is large)
Recommended steps:
Attach custom code to Global event handler while publish specific document publish after event
public override void Init()
{
// Assigns custom handlers to the appropriate events
WorkflowEvents.Publish.After += new EventHandler(DocumentPublishCustomEvent);
}
In the custom code, if required page is published then make entries into custom table for email to be sent [This step is optional you can send mail from custom event handler directly if only few mails to be sent]
3.Implement custom scheduler to pick the user info from custom table and send email to user.
Note: Ideally you can use email Template for send emails
Using Global events is one way of doing this, another way would be to use Kentico's Advanced workflow engine (If you have the EMS license):
https://docs.kentico.com/k10/managing-website-content/configuring-the-environment-for-content-editors/configuring-workflows/designing-advanced-workflows
You could create a custom workflow step and action which the editors would put the page into and which would send emails to interested people - https://docs.kentico.com/k10/managing-website-content/configuring-the-environment-for-content-editors/configuring-workflows/designing-advanced-workflows/creating-custom-action-workflow-steps
If you do not have the EMS License, using Global events seems like the way to go, but I don't see the updated flag field as necessary, you could easily check in the global event handler if the product arrived at the "Published" workflow step in the basic workflow and then send the email to the interested parties.

is there any way to disable/enable upload button upon check/uncheck landed cost per line while user is editing the form?

currently working on "to disable/enable upload button" (an added field) when user checked/unchecked checkbox. it's just for suites script or can do in workflow?
https://i.stack.imgur.com/dtXOt.png
It should be possible with either a client suitescript or a workflow. I believe there is a workflow action called After User Edit. For client suitescript, you will create a function for the field change entry point.

Orchard Dynamic Forms Workflow not invoked

I made a simple workflow in Orchard 1.9.1 to notify when a dynamic forms is submitted.
I didn't set any prpoperty/data on the Start Activity so that it can capture all Dynamic Forms submission. However there seems an issue and the workflow is NOT being invoked.
I followed steps from here: http://docs.orchardproject.net/Documentation/Workflows
But this notify activity or may be even the start activity doesn't seem to be invoked/working . What More settings are required to get this workflow in action ?
Also, I have set the redirect URL in "Forms" element properties but the form isn't redirecting. What can be the issue here as well ?
I have not seen this problem with a workflow before. I assume there's nothing in the logs?
My first guess would be that it's your form that is not submitting properly, try to remove that redirect, also make sure there's isn't some validation error blocking it, if you placed recaptcha element remove it and try again.
Second guess which is not very likely is that you have somehow managed to hide notification zone, either with CSS or in layout view #Zone(Model.Messages)

Built in Approval workflow not started on item edit event

I have requirement where when a user enter new item in a list first approver approves it then publisher approves it. Once publisher approves it the text will be visible to all.
I have used SharePoint built in Approval for that where I have set my workflow to start when new item created and item is changed.
When I Add new item workflow triggers and process of approving the item works fine and update the workflow status as completed.
But when I edit the same item, Workflow on item changed is not fired.
Can any one tell me how to set SharePoint built in workflow to start on new item created as well as item change events.
FYI: I have set content approval to "No" in my versioning settings.
After lots of investigation I found that I have selected checkBox for "After the workflow is completed: Update the approval status (use this workflow to control content approval)".
Here I have not selected require content to be approved option for my list and for the same list I was updating approval status once workflow get completed.
What I observed is deselecting this option my workflow get fired successfully on new item created and Item change events.
To make the checkbox work for you, you need to setup content approval enabled on the library level. If not, it is going to fail with an error in the backgound.

Resources