Refreshing Properties Panel without applying pipeline object

I have a reader that reads data from two files: one holding a grid and one holding fields. The sequence for loading this data is to open the file with the grid and then select the file holding the fields using a selector in the Properties Panel GUI.

That all works fine except the GUI is supposed to also list all the fields to select which ones to load. The problem is that these array selection widgets need the fields file to populate them, but the fields file is not known until after the GUI is built and the widgets should be populated. After you hit Apply, the fields get refreshed with the proper information, but by then it is too late as the data is already loaded.

Is there a way to create a property in the panel that refreshes the panel when the value is changed?

Yes, find the secondary file automatically in RequestInformation and parse it. It means the secondary file cannot be a user input, it has to be found automatically.

If thats not possible, you need to create a dedicated domain that will handle the parsing of the second file for you and add a button in the widget to update the list of fields after the second file has been selected, but its definitely harder to implement and more custom.