Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Transaction Patterns » Business Rules and Display
Business Rules and Display [message #593] Mon, 05 February 2007 11:46 Go to next message
stephenboey is currently offline  stephenboey
Messages: 54
Registered: January 2007
Member
In the tutorials you have demonstrated of validation of data is done.

In radicore how do you process business rules before a screen is displayed (ie. enquire, add, delete and etc...).

Some examples:
1. If an invoice is posted, set checkbox to readonly on list screen
or
2. If an invoice is posted, set some fields in the detail screen to read only.
3. Color a the row of record red if overdue in list screen

Do you have an example?
Re: Business Rules and Display [message #594 is a reply to message #593] Mon, 05 February 2007 14:12 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
If you want to do some processing after a record has been retrieved but before it is displayed then you can use the _cm_post_getData() method.

If you want to change a field to read-only then refer to http://www.tonymarston.net/php-mysql/infrastructure-faq.html #faq10

If you want to change the colour of a field then refer to http://www.tonymarston.net/php-mysql/infrastructure-faq.html #faq73. To do this for a whole row you must apply it to every field in that row.


Re: Business Rules and Display [message #595 is a reply to message #593] Mon, 05 February 2007 16:34 Go to previous message
stephenboey is currently offline  stephenboey
Messages: 54
Registered: January 2007
Member
Gee... Thanks mate! Very Happy You are the best.
Previous Topic: What are Transaction Patterns?
Next Topic: A few Transaction Patterns on the same screen
Goto Forum:
  


Current Time: Thu Mar 28 12:58:29 EDT 2024

Total time taken to generate the page: 0.01451 seconds