12-15-2011 04:00 PM
<?xml version="1.0" encoding="UTF-8"?>
<alfresco-config>
<config evaluator="model-type" condition="pmtdl:WorkplanItem">
<forms>
<form>
<field-visibility>
<show id="pmtdl:OrderID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:Name" />
<show id="pmtdl:Description" />
<show id="pmtdl:Teamwork" />
<show id="pmtdl:Importance" />
<show id="pmtdl:BaselineStartDate" />
<show id="pmtdl:BaselineDueDate" />
<show id="pmtdl:BaselineDuration" />
<show id="pmtdl:Assignee" />
<show id="pmtdl:Predecessor" />
</field-visibility>
</form>
<!– –>
<form id="datagrid_PlanificationScheduleView">
<field-visibility>
<show id="pmtdl:OrderID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:Name" />
<show id="pmtdl:Description" />
`
<show id="pmtdl:Teamwork" />
<show id="pmtdl:Importance" />
<show id="pmtdl:BaselineStartDate" />
<show id="pmtdl:BaselineDueDate" />
<show id="pmtdl:BaselineDuration" />
<show id="pmtdl:Assignee" />
<show id="pmtdl:Predecessor" />
</field-visibility>
</form>
<form id="datagrid_PlannificationBudgetView">
<field-visibility>
<show id="pmtdl:OrderID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:Name" />
<show id="pmtdl:BudgetDescription" />
`
<show id="pmtdl:BaselineCost" />
<show id="pmtdl:Category" />
<show id="pmtdl:FixedCost" />
<show id="pmtdl:FixedPrice" />
<show id="pmtdl:BudgetResponsible" />
<show id="pmtdl:BudgetApprovedBy" />
</field-visibility>
</form>
<form id="datagrid_ExecutionScheduleView">
<field-visibility>
<show id="pmtdl:ID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:Semaphore" />
<show id="pmtdl:Status" />
<show id="pmtdl:Importance" />
<show id="pmtdl:Name" />
<show id="pmtdl:Completion" />
<show id="pmtdl:RealStartDate" />
<show id="pmtdl:RealDueDate" />
<show id="pmtdl:RealDuration" />
<show id="pmtdl:Assignee" />
<show id="pmtdl:Deliverables" />
</field-visibility>
</form>
<form id="datagrid_ExecutionBudgetView">
<field-visibility>
<show id="pmtdl:ID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:BudgetDescription" />
`
<show id="pmtdl:Category" />
<show id="pmtdl:ActualCost" />
<show id="pmtdl:ActualRevenue" />
<show id="pmtdl:PercInvested" />
<show id="pmtdl:Profitability" />
<show id="pmtdl:BudgetApprovedBy" />
</field-visibility>
</form>
<form id="datagrid_BaselineFinanceView">
<field-visibility>
<show id="pmtdl:ID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:Name" />
<show id="pmtdl:BaselineCost" />
<show id="pmtdl:BaselineCostsVariance" />
<show id="pmtdl:ExpectedRevenue" />
<show id="pmtdl:BaselineRevenue" />
<show id="pmtdl:BaselineRevenueVariance" />
</field-visibility>
</form>
<form id="datagrid_BaselineScheduleView">
<field-visibility>
<show id="pmtdl:ID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:Name" />
<show id="pmtdl:BaselineStartDate" />
<show id="pmtdl:BaselineStartDateVariance" />
<show id="pmtdl:BaselineDueDate" />
<show id="pmtdl:BaselineDueDateVariance" />
<show id="pmtdl:BaselbaselineDuration" />
<show id="pmtdl:BaselineDurationVariance" />
</field-visibility>
</form>
</forms>
</config>
<config evaluator="node-type" condition="pmtdl:WorkplanItem">
<forms>
<form>
<field-visibility>
<show id="pmtdl:OrderID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:Name" />
<show id="pmtdl:Description" />
<show id="pmtdl:Teamwork" />
<show id="pmtdl:Importance" />
<show id="pmtdl:BaselineStartDate" />
<show id="pmtdl:BaselineDueDate" />
<show id="pmtdl:BaselineDuration" />
<show id="pmtdl:Assignee" />
<show id="pmtdl:Predecessor" />
</field-visibility>
</form>
<!– Data Grid view –>
<form id="datagrid_PlanificationScheduleView">
<field-visibility>
<show id="pmtdl:OrderID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:Name" />
<show id="pmtdl:Description" />
`
<show id="pmtdl:Teamwork" />
<show id="pmtdl:Importance" />
<show id="pmtdl:BaselineStartDate" />
<show id="pmtdl:BaselineDueDate" />
<show id="pmtdl:BaselineDuration" />
<show id="pmtdl:Assignee" />
<show id="pmtdl:Predecessor" />
</field-visibility>
</form>
<form id="datagrid_PlannificationBudgetView">
<field-visibility>
<show id="pmtdl:OrderID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:Name" />
<show id="pmtdl:BudgetDescription" />
`
<show id="pmtdl:BaselineCost" />
<show id="pmtdl:Category" />
<show id="pmtdl:FixedCost" />
<show id="pmtdl:FixedPrice" />
<show id="pmtdl:BudgetResponsible" />
<show id="pmtdl:BudgetApprovedBy" />
</field-visibility>
</form>
<form id="datagrid_ExecutionScheduleView">
<field-visibility>
<show id="pmtdl:ID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:Semaphore" />
<show id="pmtdl:Status" />
<show id="pmtdl:Importance" />
<show id="pmtdl:Name" />
<show id="pmtdl:Completion" />
<show id="pmtdl:RealStartDate" />
<show id="pmtdl:RealDueDate" />
<show id="pmtdl:RealDuration" />
<show id="pmtdl:Assignee" />
<show id="pmtdl:Deliverables" />
</field-visibility>
</form>
<form id="datagrid_ExecutionBudgetView">
<field-visibility>
<show id="pmtdl:ID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:BudgetDescription" />
`
<show id="pmtdl:Category" />
<show id="pmtdl:ActualCost" />
<show id="pmtdl:ActualRevenue" />
<show id="pmtdl:PercInvested" />
<show id="pmtdl:Profitability" />
<show id="pmtdl:BudgetApprovedBy" />
</field-visibility>
</form>
<form id="datagrid_BaselineFinanceView">
<field-visibility>
<show id="pmtdl:ID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:Name" />
<show id="pmtdl:BaselineCost" />
<show id="pmtdl:BaselineCostsVariance" />
<show id="pmtdl:ExpectedRevenue" />
<show id="pmtdl:BaselineRevenue" />
<show id="pmtdl:BaselineRevenueVariance" />
</field-visibility>
</form>
<form id="datagrid_BaselineScheduleView">
<field-visibility>
<show id="pmtdl:ID" />
<show id="pmtdl:TaskType" />
<show id="pmtdl:Name" />
<show id="pmtdl:BaselineStartDate" />
<show id="pmtdl:BaselineStartDateVariance" />
<show id="pmtdl:BaselineDueDate" />
<show id="pmtdl:BaselineDueDateVariance" />
<show id="pmtdl:BaselbaselineDuration" />
<show id="pmtdl:BaselineDurationVariance" />
</field-visibility>
</form>
</forms>
</config>
</alfresco-config>
12-26-2011 01:58 PM
Alfresco.util.Ajax.request({
url: Alfresco.constants.URL_SERVICECONTEXT + "components/form",
dataObj: {
itemKind: "type",
itemId: "${field.endpointType}",
formId: ${templateId}, // This is populated from a user-selected field on the form
mode: "create",
submitType: "json",
showCaption: "false",
editInline: "true",
destination: "${form.destination?html}",
mimeType: "text/plain",
htmlid: "${fieldHtmlId}"
},
method: "GET",
successCallback: {
fn: function() {
// Display returned form
},
scope: this
},
failureCallback: { … }
};
http://localhost:8081/share/service/components/form?itemKind=type&itemId=p%3Asco&formId=test-templat...
01-03-2012 06:30 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.