I've got a ProgramDS with a nested PersonDS with the relevant field declarations as follows:
PersonDS
	ProgramDS
	I have successfully used setDisplayField() and setValueField() to have an editable form displaying the person's 'fullName' while the underlying value is the personId. Now I need to use the same DS with a DetailViewer and I want to display the fullName instead of the personId.
I can't find the right argument for setDataPath() to do this (assuming that is the way to do it). My best guess was:
	But this yields a blank entry. Leaving the DataPath null or setting it to "manager" yields the personId. Any tips?
v8.2p_2012-04-25/EVAL
					PersonDS
Code:
	
	    DataSourceField field1 = new DataSourceTextField ("personId", "Person Id");
    field1.setRequired(true);
    field1.setPrimaryKey(true);
    DataSourceField field2 = new DataSourceTextField ("fullName", "Full Name");
    field2.setRequired (false);
Code:
	
	    DataSourceField managerField = new DataSourceTextField("manager", "Manager");
    managerField.setForeignKey(personDS.getID()+".personId");
    managerField.setEditorType(new ComboBoxItem());
    managerField.setTypeAsDataSource(personDS);
I can't find the right argument for setDataPath() to do this (assuming that is the way to do it). My best guess was:
Code:
	
	    managerDVField = new DetailViewerField("manager", "Manager");
    managerDVField.setDataPath("manager/fullName");
v8.2p_2012-04-25/EVAL
Comment