Drop Down Parent field from Master Table

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
wungaz
User
Posts: 214

Drop Down Parent field from Master Table

Post by wungaz »

How can I control the select box of details table after selecting master table? For example when using a master-detail grid add - if I select BMW under model in Master table, I want grid details only have BMW cars


danielc
User
Posts: 1601

Post by danielc »

This is client side selection. So, use Startup Script to add your change event to your field in your master table (see api.jquery.com/change/) and base on this value for your filter and remove it (see api.jquery.com/filter/ and api.jquery.com/remove/).

$("#x_yourmasterfield").change(function() {
var mastersel = $("#x_yourmasterfield").val();
// your code to remove select option for your field in detail table
});


Post Reply