[ 1922677 ] Export of field doesn't export related reference.

This commit is contained in:
Heng Sin Low 2008-03-21 23:42:07 +00:00
parent f26eacc50c
commit 8fb5a00608
1 changed files with 13 additions and 1 deletions

View File

@ -192,10 +192,22 @@ public class FieldElementHandler extends AbstractElementHandler {
PackOut packOut = (PackOut)ctx.get("PackOutProcess");
if(m_Field.getAD_FieldGroup_ID() != 0){
if(m_Field.getAD_FieldGroup_ID() > 0){
packOut.createFieldGroupElement(m_Field.getAD_FieldGroup_ID(), document);
}
if(m_Field.getAD_Reference_ID() > 0) {
packOut.createReference(m_Field.getAD_Reference_ID(), document);
}
if (m_Field.getAD_Reference_Value_ID() > 0) {
packOut.createReference(m_Field.getAD_Reference_Value_ID(), document);
}
if (m_Field.getAD_Val_Rule_ID() > 0) {
packOut.createDynamicRuleValidation(m_Field.getAD_Val_Rule_ID(), document);
}
document.startElement("", "", "field", atts);
document.endElement("", "", "field");
}