infor.com
concierge
infor u
developer portal
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
ION Connect
ION Workflow
ION API Gateway
Syteline Development
CPQ Discussion Ask a Colleague
Infor Data Fabric
Infor Document Management (IDM)
LN Development
API Usage
FAQs, How-To, and Best Practices