I seem to remember seeing a way to embed javascript in the data source ds.xml files but can't seem to find it any longer. In my particular case, I have a field that I would like to set a ShowIfCondition on. But rather than do that in code I want to put the condition in the ds.xml file itself. I'm using a reusable component with the data source and don't want to have to put custom code in it to deal with this field. The ShowIfCondition is pretty simple. In SmartGWT code I would do something like
	Can I put the same sort of thing in the datasource.ds.xml file.
							
						
					Code:
	
	FormItem fi = new FormItem();
fi.setShowIfCondition(new FormItemIfFunction() {
  @Override
  public boolean execute(FormItem item, Object value, DynamicForm form)   
  {
    return IPGui.isFinanceSystemInstalled;
  }
});

Comment