Change detail table lookup values based on master table fiel

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

Change detail table lookup values based on master table fiel

Post by zunair »

My master field name is branch_id and i want to show products(lookup_field) in detail table
which are related to master_table branch_id. I found following but don't know how to complete.

             "   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
                   });

Please help.


mobhar
User
Posts: 11768

Post by mobhar »

As mentioned above, you should refer to api.jquery.com/filter/ and api.jquery.com/remove/ in order to filter or remove the select option in the combobox.

Always try it by your hand first, and post your code for discussion.


Post Reply