[V7] How to hide/show grid in child table, based on parent field value?

@girumtibebu
Did you find a solution for this?

@jose.aca … I didn’t find a solution for it. so users are adjusting column visiblity manually. If there was a way to programatically do so it’d be a better user experience.

Can try this

  • to hide a field when open any row, put “eval:parent.field” in Display Depend on
  • to hide a column in table grid, do this
const grid = frm.get_field('table').grid;
grid.update_docfield_property("field", "hidden", 1); //use 0 to display
grid.reset_grid();
//'in list view' must be checked

You can use something like this
eval: parent.travel_type === “International”