Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #50951 All Revisions ] Back to Issue ]
Summary 0050951: onCreateDefault not working for non mandatory columns referencing same table
Revision 2022-11-18 13:07 by migueldejuana
Description onCreateDefault works properly when we define a new mandatory column referencing another column of the same table, but it is not working if the new column is not mandatory. It would be nice to also support this case.

For example, this new column in AD_ORG is not working because it is not mandatory:

<column name="EM_OBDO_AD_ORG_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault><![CDATA[AD_LEGALENTITY_ORG_ID]]></onCreateDefault>
       </column>

We should update the documentation:
http://wiki.openbravo.com/wiki/How_to_define_an_on_Create_Default [^]
Revision 2022-11-18 13:06 by migueldejuana
Description onCreateDefault works properly when we define a new mandatory column referencing another column of the same table, but it is not working if the new column is not mandatory. It would be nice to also support this case.

For example, this is not working because it is not mandatory:

<column name="EM_OBDO_AD_ORG_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault><![CDATA[AD_LEGALENTITY_ORG_ID]]></onCreateDefault>
       </column>

We should update the documentation:
http://wiki.openbravo.com/wiki/How_to_define_an_on_Create_Default [^]


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker