xTuple.com xTupleU Blog & News Customer Support

Default Warehouse

In the dspPOItemsbyItems screen for the warehouse group I would like to set the default across the board to be all sites. Its not saving the last one used and for some users its defaulting to All Sites and for others its set to a specific site. I would imagine this can be done with a quick script but I’m not sure what the radio button parts of the WarehouseGroup widget are in order to set it to that one.

Thank you

The WarehouseGroup widget has a setAll() slot, so you can just call _warehouse.setAll() to force it to choose the All option. If you wanted it to happen once the window was loaded and everything call it inside showEvent()

var _warehouse = mywindow.findChild("_warehouse");

function showEvent(event) {
  // we are ignoring the event
  _warehouse.setAll();
}