This topic is locked

Getting value from Master Record

8/9/2022 8:29:30 AM
PHPRunner General questions
S
Sayed author

Students is the master table
Classes is the details table.

Students List page > From grid record > Add New Class
On Add Class Page. How to get value of field [Rate], from related master record?

If any body can write code? Thanks for help in advance.

I
Imran Minhas 8/9/2022

I am not an expert in coding, but i have done a similar task where child table has a drop down depending on field value from master table's field value.

in dropdeownlist select table details and in WHERE add

"fieldname"=':master.rate'

and then This dropdown list depends on "fieldname"
and filter list "fieldname"

I am not sure if this will help in your case, but try it out.

Sergey Kornilov admin 8/9/2022

PHPRunner has getMasterRecord() function that is specifically designed for this purpose.