Make layer visible after LayerList widget has opened

I have a subLayer, "Parcels_9562_6", within a group layer that I need to programmatically make visible, after the LayerList has already opened. Another widget communicates with the LayerList widget during user interaction. I've had no success while fiddling around with the LayerList widget's, Widget.js and LayerListView.js files. Does someone know how this can be accomplished? Thanks.

Well this took some work to figure out. Keep the onRecieveData function in the widget.js and here is what it will look like:

//RJS Add
onReceiveData: function (name, widgetId, data, historyData) {
//this makes sure that it is your event that you are reacting to and not another
if(name === 'eSearch' && data.hasOwnProperty('message')){
//my layer is called Parcel Data so Parcel Data_0 is the first layer or group
//these next lines cause the map to set that layer as not visible
this.operLayerInfos.getLayerInfoById('Parcel Data_0').setTopLayerVisible(false);
this.operLayerInfos.getLayerInfoById('Parcel Data_83').setTopLayerVisible(false);
//this causes the layer list widget to redraw and show that the layers are turned off
this._clearLayers();
this.showLayers();
}
},
//RJS End Add

Well this took some work to figure out. Keep the onRecieveData function in the widget.js and here is what it will look like:

//RJS Add
onReceiveData: function (name, widgetId, data, historyData) {
//this makes sure that it is your event that you are reacting to and not another
if(name === 'eSearch' && data.hasOwnProperty('message')){
//my layer is called Parcel Data so Parcel Data_0 is the first layer or group
//these next lines cause the map to set that layer as not visible
this.operLayerInfos.getLayerInfoById('Parcel Data_0').setTopLayerVisible(false);
this.operLayerInfos.getLayerInfoById('Parcel Data_83').setTopLayerVisible(false);
//this causes the layer list widget to redraw and show that the layers are turned off
this._clearLayers();
this.showLayers();
}
},
//RJS End Add