cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
slalithp
Helper I
Helper I

Business Rule - Model Driven Application

Hi, I have created a business rule where my price should be greater than 0, when ever I click on new form I get the default validation as Price must be greater than zero without me entering any data, how can i solve this? 

 

BusinessRule Error.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisPiasecki
Super User
Super User

Hi @slalithp,

 

Do you want it to only show this error when the user enters in a value for the column and its less than or equal to 0?

 

If so, in your condition add another statement that checks if <column name> contains data AND <field name> value is equal to or less than 0.

 

Note that numeric columns can be configured with a minimum and maximum value, so if in all cases it should be 1 or greater for example, then set the minimum value to 1 in your column settings. Then you don't need to use a business rule.

 

---
Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

View solution in original post

1 REPLY 1
ChrisPiasecki
Super User
Super User

Hi @slalithp,

 

Do you want it to only show this error when the user enters in a value for the column and its less than or equal to 0?

 

If so, in your condition add another statement that checks if <column name> contains data AND <field name> value is equal to or less than 0.

 

Note that numeric columns can be configured with a minimum and maximum value, so if in all cases it should be 1 or greater for example, then set the minimum value to 1 in your column settings. Then you don't need to use a business rule.

 

---
Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (39,563)