Hi Hans,
I am getting couple of error and warnings on run-install and are followings: 1) [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: WorkEffort and field: StatusId [java] 2008-08-12 12:55:37,248 (main) [ ModelViewEntity.java: 397:ERROR] [ModelViewEntity.populateFields (ProjectAndPhase)] ERROR: could not find ModelField for field name "StatusId" on entity with name: WorkEffort WorkEffort has a field currentStatusId. 2) [java] 2008-08-12 12:55:37,607 (main) [ GenericDelegator.java: 204:WARN ] =-=-=-=-= Found 3 warnings when checking the entity definitions: [java] 2008-08-12 12:55:37,607 (main) [ GenericDelegator.java: 206:WARN ] [RelationFieldNotFound] The field workEffortId was specified in the keymaps but is not found for relation TimeEntry of entity ProjectAndPhase. [java] 2008-08-12 12:55:37,607 (main) [ GenericDelegator.java: 206:WARN ] [RelationFieldNotFound] The field workEffortId was specified in the keymaps but is not found for relation WorkEffortSkillStandard of entity ProjectAndPhase. [java] 2008-08-12 12:55:37,607 (main) [ GenericDelegator.java: 206:WARN ] [RelationFieldNotFound] The field workEffortId was specified in the keymaps but is not found for relation WorkEffortPartyAssignment of entity ProjectAndPhase. Did not look into yet. Rest of comment is inline. On Aug 12, 2008, at 6:42 AM, [hidden email] wrote: > Author: hansbak > Date: Mon Aug 11 18:12:33 2008 > New Revision: 685013 > > URL: http://svn.apache.org/viewvc?rev=685013&view=rev > Log: > enable the selection of a phase in a project even if it has no tasks > > Modified: > ofbiz/trunk/specialpurpose/projectmgr/entitydef/entitymodel.xml > ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml > > Modified: ofbiz/trunk/specialpurpose/projectmgr/entitydef/ > entitymodel.xml > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/entitydef/entitymodel.xml?rev=685013&r1=685012&r2=685013&view=diff > = > = > = > = > = > = > = > = > ====================================================================== > --- ofbiz/trunk/specialpurpose/projectmgr/entitydef/entitymodel.xml > (original) > +++ ofbiz/trunk/specialpurpose/projectmgr/entitydef/entitymodel.xml > Mon Aug 11 18:12:33 2008 > @@ -155,6 +155,32 @@ > </relation> > </view-entity> > > + <view-entity entity-name="ProjectAndPhase" > + package-name="org.ofbiz.workeffort.project" > + title="WorkEffort for use in project -> phase"> > + <member-entity entity-alias="WEP" entity-name="WorkEffort"/><!-- > project --> > + <member-entity entity-alias="WEPH" entity-name="WorkEffort"/ > ><!-- phase --> > + <alias-all entity-alias="WET"/> This alias WET is not associated to any entity. I think we need to first create a association using <member-entity> ? Though this does not seems to be used anywhere :) Thanks, Vikas > > + <alias entity-alias="WEP" field="workEffortId" name="projectId"/> > + <alias entity-alias="WEP" field="workEffortName" > name="projectName"/> > + <alias entity-alias="WEP" field="StatusId" > name="projectStatusId"/> > + <alias entity-alias="WEPH" field="workEffortId" name="phaseId"/> > + <alias entity-alias="WEPH" field="workEffortName" > name="phaseName"/> > + <alias entity-alias="WEPH" field="StatusId" > name="phaseStatusId"/> > + <view-link entity-alias="WEP" rel-entity-alias="WEPH"> > + <key-map field-name="workEffortId" rel-field- > name="workEffortParentId"/> > + </view-link> > + <relation type="many" rel-entity-name="TimeEntry"> > + <key-map field-name="workEffortId"/> > + </relation> > + <relation type="many" rel-entity-name="WorkEffortSkillStandard"> > + <key-map field-name="workEffortId"/> > + </relation> > + <relation type="many" rel-entity- > name="WorkEffortPartyAssignment"> > + <key-map field-name="workEffortId"/> > + </relation> > + </view-entity> > + > <view-entity entity-name="TimesheetAndTimeEntry" > package-name="org.ofbiz.workeffort.project" > title="Time entry for Timesheets, time entries always have a > timesheet and are always for one day only and recording the hours > for one person which is defined on the timesheet. A timesheet will > always have at least one time entry."> > > Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ > TaskForms.xml > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml?rev=685013&r1=685012&r2=685013&view=diff > = > = > = > = > = > = > = > = > ====================================================================== > --- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml > (original) > +++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml > Mon Aug 11 18:12:33 2008 > @@ -659,8 +659,9 @@ > </drop-down> > </field> > <field name="workEffortParentId" title="$ > {uiLabelMap.ProjectMgrProjectAndPhaseName}*"> > - <drop-down allow-empty="true"> > - <entity-options entity- > name="ProjectAndPhaseAndTask" description="${projectName} : $ > {phaseName}"> > + <drop-down allow-empty="false"> > + <entity-options entity-name="ProjectAndPhase" > description="${projectName} : ${phaseName}" key-field-name="phaseId"> > + <entity-order-by field-name="projectName"/> > <entity-order-by field-name="phaseName"/> > </entity-options> > </drop-down> > @@ -675,12 +676,9 @@ > <field name="statusId"><hidden value="CRQ_ACCEPTED"/></field> > <field name="workEffortId" title="$ > {uiLabelMap.ProjectMgrTaskName}"> > <drop-down allow-empty="false"> > - <entity-options entity- > name="ProjectPartyAndPhaseAndTask" description="${workEffortName} ($ > {phaseName}-${projectName})"> > - <entity-constraint name="partyId" env- > name="userLogin.partyId"/> > - <entity-constraint name="workEffortTypeId" > value="TASK"/> > - </entity-options> > - </drop-down> > - </field> > + <entity-options entity- > name="ProjectPartyAndPhaseAndTask" description="${projectName} - $ > {phaseName}"/> > + </drop-down> > + </field> > <field name="save" title="${uiLabelMap.CommonSave}"><submit/ > ></field> > </form> > </forms> > \ No newline at end of file > > |
Administrator
|
Same kind of errors here
[java] 2008-08-12 14:00:31,062 (main) [ ModelViewEntity.java:326:ERROR] [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: WorkEffort and field: StatusId [java] 2008-08-12 14:00:31,062 (main) [ ModelViewEntity.java:397:ERROR] [ModelViewEntity.populateFields (ProjectAndPhase)] ERROR: could not find ModelField for field name "StatusId" on entity with name: WorkEffort [java] 2008-08-12 14:00:31,062 (main) [ ModelViewEntity.java:326:ERROR] [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: WorkEffort and field: StatusId [java] 2008-08-12 14:00:31,062 (main) [ ModelViewEntity.java:397:ERROR] [ModelViewEntity.populateFields (ProjectAndPhase)] ERROR: could not find ModelField for field name "StatusId" on entity with name: WorkEffort + this one [java] 2008-08-12 14:00:31,062 (main) [ ModelViewEntity.java:560:ERROR] Member entity referred to in alias-all not found, ignoring: WET Jacques ----- Original Message ----- From: "Vikas Mayur" <[hidden email]> To: <[hidden email]> Cc: <[hidden email]> Sent: Tuesday, August 12, 2008 9:59 AM Subject: Re: svn commit: r685013 - in /ofbiz/trunk/specialpurpose/projectmgr: entitydef/entitymodel.xml widget/forms/TaskForms.xml > Hi Hans, > > I am getting couple of error and warnings on run-install and are followings: > > 1) [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: WorkEffort and field: StatusId > [java] 2008-08-12 12:55:37,248 (main) [ ModelViewEntity.java: 397:ERROR] [ModelViewEntity.populateFields > (ProjectAndPhase)] ERROR: could not find ModelField for field name "StatusId" on entity with name: WorkEffort > > WorkEffort has a field currentStatusId. > > 2) [java] 2008-08-12 12:55:37,607 (main) [ GenericDelegator.java: 204:WARN ] =-=-=-=-= Found 3 warnings when checking the entity > definitions: > [java] 2008-08-12 12:55:37,607 (main) [ GenericDelegator.java: 206:WARN ] [RelationFieldNotFound] The field workEffortId > was specified in the keymaps but is not found for relation TimeEntry of entity ProjectAndPhase. > [java] 2008-08-12 12:55:37,607 (main) [ GenericDelegator.java: 206:WARN ] [RelationFieldNotFound] The field workEffortId > was specified in the keymaps but is not found for relation WorkEffortSkillStandard of entity ProjectAndPhase. > [java] 2008-08-12 12:55:37,607 (main) [ GenericDelegator.java: 206:WARN ] [RelationFieldNotFound] The field workEffortId > was specified in the keymaps but is not found for relation WorkEffortPartyAssignment of entity ProjectAndPhase. > > Did not look into yet. > > > Rest of comment is inline. > > > On Aug 12, 2008, at 6:42 AM, [hidden email] wrote: > >> Author: hansbak >> Date: Mon Aug 11 18:12:33 2008 >> New Revision: 685013 >> >> URL: http://svn.apache.org/viewvc?rev=685013&view=rev >> Log: >> enable the selection of a phase in a project even if it has no tasks >> >> Modified: >> ofbiz/trunk/specialpurpose/projectmgr/entitydef/entitymodel.xml >> ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml >> >> Modified: ofbiz/trunk/specialpurpose/projectmgr/entitydef/ entitymodel.xml >> URL: >> http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/entitydef/entitymodel.xml?rev=685013&r1=685012&r2=685013&view=diff >> = = = = = = = = ====================================================================== >> --- ofbiz/trunk/specialpurpose/projectmgr/entitydef/entitymodel.xml (original) >> +++ ofbiz/trunk/specialpurpose/projectmgr/entitydef/entitymodel.xml Mon Aug 11 18:12:33 2008 >> @@ -155,6 +155,32 @@ >> </relation> >> </view-entity> >> >> + <view-entity entity-name="ProjectAndPhase" >> + package-name="org.ofbiz.workeffort.project" >> + title="WorkEffort for use in project -> phase"> >> + <member-entity entity-alias="WEP" entity-name="WorkEffort"/><!-- >> project --> >> + <member-entity entity-alias="WEPH" entity-name="WorkEffort"/ >> ><!-- phase --> >> + <alias-all entity-alias="WET"/> > > This alias WET is not associated to any entity. I think we need to first create a association using <member-entity> ? > Though this does not seems to be used anywhere :) > > > Thanks, > Vikas > >> >> + <alias entity-alias="WEP" field="workEffortId" name="projectId"/> >> + <alias entity-alias="WEP" field="workEffortName" name="projectName"/> >> + <alias entity-alias="WEP" field="StatusId" name="projectStatusId"/> >> + <alias entity-alias="WEPH" field="workEffortId" name="phaseId"/> >> + <alias entity-alias="WEPH" field="workEffortName" name="phaseName"/> >> + <alias entity-alias="WEPH" field="StatusId" name="phaseStatusId"/> >> + <view-link entity-alias="WEP" rel-entity-alias="WEPH"> >> + <key-map field-name="workEffortId" rel-field- name="workEffortParentId"/> >> + </view-link> >> + <relation type="many" rel-entity-name="TimeEntry"> >> + <key-map field-name="workEffortId"/> >> + </relation> >> + <relation type="many" rel-entity-name="WorkEffortSkillStandard"> >> + <key-map field-name="workEffortId"/> >> + </relation> >> + <relation type="many" rel-entity- name="WorkEffortPartyAssignment"> >> + <key-map field-name="workEffortId"/> >> + </relation> >> + </view-entity> >> + >> <view-entity entity-name="TimesheetAndTimeEntry" >> package-name="org.ofbiz.workeffort.project" >> title="Time entry for Timesheets, time entries always have a timesheet and are always for one day only and recording the >> hours for one person which is defined on the timesheet. A timesheet will always have at least one time entry."> >> >> Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ TaskForms.xml >> URL: >> http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml?rev=685013&r1=685012&r2=685013&view=diff >> = = = = = = = = ====================================================================== >> --- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml (original) >> +++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml Mon Aug 11 18:12:33 2008 >> @@ -659,8 +659,9 @@ >> </drop-down> >> </field> >> <field name="workEffortParentId" title="$ {uiLabelMap.ProjectMgrProjectAndPhaseName}*"> >> - <drop-down allow-empty="true"> >> - <entity-options entity- name="ProjectAndPhaseAndTask" description="${projectName} : $ {phaseName}"> >> + <drop-down allow-empty="false"> >> + <entity-options entity-name="ProjectAndPhase" description="${projectName} : ${phaseName}" >> key-field-name="phaseId"> >> + <entity-order-by field-name="projectName"/> >> <entity-order-by field-name="phaseName"/> >> </entity-options> >> </drop-down> >> @@ -675,12 +676,9 @@ >> <field name="statusId"><hidden value="CRQ_ACCEPTED"/></field> >> <field name="workEffortId" title="$ {uiLabelMap.ProjectMgrTaskName}"> >> <drop-down allow-empty="false"> >> - <entity-options entity- name="ProjectPartyAndPhaseAndTask" description="${workEffortName} ($ >> {phaseName}-${projectName})"> >> - <entity-constraint name="partyId" env- name="userLogin.partyId"/> >> - <entity-constraint name="workEffortTypeId" value="TASK"/> >> - </entity-options> >> - </drop-down> >> - </field> >> + <entity-options entity- name="ProjectPartyAndPhaseAndTask" description="${projectName} - $ {phaseName}"/> >> + </drop-down> >> + </field> >> <field name="save" title="${uiLabelMap.CommonSave}"><submit/ >> ></field> >> </form> >> </forms> >> \ No newline at end of file >> >> > |
Free forum by Nabble | Edit this page |