public override void Configure(PXScreenConfiguration configuration)
        {
            base.Configure(configuration);

            WorkflowContext <POOrderEntry, POOrder> context = configuration.GetScreenConfigurationContext <POOrderEntry, POOrder>();

            context.UpdateScreenConfigurationFor(screen =>
            {
                return(screen.WithFlows(flows =>
                {
                    flows.Update <POOrderType.regularOrder>(flow =>
                    {
                        return flow.WithFlowStates(states =>
                        {
                            states.Update <POOrderStatus.open>(state =>
                            {
                                return state.WithFieldStates(fields =>
                                {
                                    fields.AddField <POLineExt.usrVendConfDate>();
                                });
                            });
                            //states.Update<POOrderStatus.rejected>(state =>
                            //{
                            //    return state.WithActions(actions => { }).WithFieldStates(fields =>
                            //    {
                            //        fields.AddField<POOrder.orderDesc>();

                            //        fields.AddField(typeof(POLineExt), "usrVendConfDate");
                            //    });
                            //});
                        });
                    });
                }));
            });
        }
        protected virtual void Configure(WorkflowContext <ProjectEntry, PMProject> context)
        {
            var synGanttSmartsheetProject = context.ActionDefinitions
                                            .CreateExisting <ProjectEntrySmartsheetExt>(g => g.synGanttSmartsheetProject, a => a
                                                                                        .InFolder(FolderType.ActionsFolder)
                                                                                        );

            context.UpdateScreenConfigurationFor(screen =>
            {
                return(screen
                       .WithActions(actions =>
                {
                    actions.Add(synGanttSmartsheetProject);
                }));
            });
        }