infor.com
concierge
infor u
developer portal
Posts
Categories
Groups
Hubs
Developer
Healthcare
Hospitality
Public Sector
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
Your Groups
User Groups
Migrated Forums
FSM/HCM/S3 - Infor Lawson 10.x
HCM/S3 - Learning and Development
HCM/S3 - Global HR
HCM/S3 - Talent Acquisition
HR Service Delivery
Human Capital Management (HCM) - EMEA
Infor Configuration Management for Service Industries
Lawson - Business Intelligence
Lawson - Financials
Lawson - Human Resources
Lawson - Supply Chain
Lawson - Supply Chain Management
Lawson - Technology
MSCM on Landmark
About
Community News
Email Community Support
Home
Groups
Infor CRM - Developer Customer Community
Removing Default vaule for account type in web client
Legacy Contributor
Hi
Is there a way to remove prospect as default value for account type while creating new account.
Find more posts tagged with
Comments
blair
Yes, you can add code to the OnCreate event for the Account Entity in the Application Architect. It might look something like this:
public static partial class AccountBusinessRules
{
public static void OnCreateStep( IAccount account)
{
// TODO: Complete business rule implementation - Your Date - Your Signature
account.Type = "";
account.Status = "";
}
}
Note that this approach should be effective for both the Insert Account and Insert Contact/Account options. Hope this helps
Legacy Contributor
Hi,
I would suggest to write the code in an external dll.
This makes it easier to manage the code and use source control systems.
Alexander
Legacy Contributor
Hi All
Thanks for the reply
I want to remove default value of account type when the screen is loaded.
by default when you create new account it puts default value for account type as prospect. I want to set the value to blank on load.
Many Thanks in Advance
Pritesh
Timezone.jpg
Attachment_4584.zip
Legacy Contributor
Hi,
So here is what you need to do:
Go to the account entity.
Go to the OnCreate rule
Open it up and insert a Post-Execute step
You get a reference to the account entity and just can do:
account.Type = "YourType";
For code managing I would advice you to create an external visual studio project and create a class library there. This class library should have at least a reference to Sage.Entity.Interfaces.dll from you modeldeployment folder.
I recommend you use an external LFS so not the VFS for development.
Thanks! Alexander
Important Links
Community Hubs
Discussion Forums
Groups
Community News
Popular Tags
CPQ: Ask a Colleague
FAQs, How-To, and Best Practices
Idea
Infor OS Portal
UI Design
CPQ: Tips and Tricks
Infor Homepages
Widget Development
Infor EPM Migration
Infor Ming.le