Business Rules

Phani Pasupulet
Tera Contributor

Can Any one please help me 
It is a easy on but I stuck at here
I have a table with two choice fields

PhaniPasupulet_3-1690641738964.png

PhaniPasupulet_4-1690641764639.png

I want to apply business rule before update 
and I want to traverse on the below table 

if I submitted Aug 29 and Bus 1

PhaniPasupulet_5-1690641885657.png

 

 

Any record matches Aug 29 and Bus 1
It should print a message suppose Hii

Here is my business rule

PhaniPasupulet_6-1690641998399.png


PhaniPasupulet_7-1690642147584.png

Here I am using two tables Booking and Personal 
In each table 2 fields 
Every field of choice type 


 

please help me why my query is not finding any matching records

 

 

 

 

2 REPLIES 2

Niklas Peterson
Mega Sage
Mega Sage

Hi,

 

You are not executing the query, You need to add

 

gr.query();

 

before your while loop.

 

Regards,
Niklas

DanielCordick
Mega Patron
Mega Patron

From looking at your code, it looks like your missing gr.query();