|
版本: |
X5.2.7 |
小版本号: |
|
|
|
数据库: |
MS SQLServer |
服务器操作系统: |
Windows |
应用服务器: |
Tomcat |
客户端操作系统: |
Windows 7 |
浏览器: |
IE10 |
|
|
mainActivity.dataMasterAfterSave = function(event){
var moveid=justep.xbl("dataMaster").getCurrentID() ;
var DataBudget= justep.xbl("bizDataBudget");
//DataBudget.loadDataByMaster();
var cnt=DataBudget.getCount() ;
if(cnt>0)
{}
else
{
var options = {
defaultValues : [
{SumMoney:"888",GlobeID:moveid}
]};
DataBudget.newData(options);//这里会报错!
DataBudget.saveData();
}
};
点保存时显示 JUSTEP231020, data保存失败!!,无法获取未定义或 null 引用的属性“controlId”
页面源码是
<?xml version="1.0" encoding="utf-8"?>
<window xmlns="http://www.justep.com/xui" xmlns:data="http://www.justep.com/x5/xui/data#" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:justep="http://www.justep.com/x5#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xforms="http://www.justep.com/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xui="http://www.justep.com/xui" component="/UI/system/components/window.xbl.xml#window" id="window">
<xforms:model id="mdDefault" style="top:361px;left:404px;height:130px;">
<data auto-load="false" auto-new="true" component="/UI/system/components/data.xbl.xml#bizData" concept="CRM_Movement" data-type="json" id="dataMaster" limit="20" offset="0" store-type="simple" update-mode="whereVersion">
<reader action="/CRM/Custom/logic/action/queryCRM_MovementAction" id="default8"/>
<writer action="/CRM/Custom/logic/action/saveCRM_MovementAction" id="default9"/>
<creator action="/CRM/Custom/logic/action/createCRM_MovementAction" id="default10"/>
</data>
<data auto-load="true" component="/UI/system/components/data.xbl.xml#bizData" concept="CRM_CostBudgetSub" data-type="json" id="dataDetail" limit="20" offset="0" update-mode="whereVersion">
<master data="dataMaster" id="master1" relation="GlobeID"/>
<creator action="/CRM/Common/logic/action/createCRM_CostBudgetSubAction" id="default2"/>
<reader action="/CRM/Common/logic/action/queryCRM_CostBudgetSubAction" id="default3"/>
<writer action="/CRM/Common/logic/action/saveCRM_CostBudgetSubAction" id="default4"/>
</data>
<data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bizDataBudget" concept="CRM_CostBudget"><creator id="default13" action="/CRM/Common/logic/action/createCRM_CostBudgetAction"></creator>
<reader id="default14" action="/CRM/Common/logic/action/queryCRM_CostBudgetAction"></reader>
<writer id="default15" action="/CRM/Common/logic/action/saveCRM_CostBudgetAction"></writer>
<master id="master2" data="dataMaster" relation="GlobeID"></master></data>
</xforms:model>
<xui:view auto-load="true" id="rootView">
<xhtml:div component="/UI/system/components/process.xbl.xml#process" data="dataMaster" id="flw"/>
<xforms:trigger appearance="image-text" class="button-green" component="/UI/system/components/trigger.xbl.xml#trigger" id="advanceTrigger" operation="advance" operation-owner="flw">
<xforms:label id="default32"/>
</xforms:trigger>
<xforms:trigger appearance="image-minimal" component="/UI/system/components/trigger.xbl.xml#trigger" id="saveTrigger" operation="save" operation-owner="dataMaster">
<xforms:label id="default33"/>
</xforms:trigger>
<xhtml:div component="/UI/system/components/menuButton.xbl.xml#menuButton" id="menuButton1" label="更多" mode="left">
<menuitem id="menuitem1" name="suspend" operation="suspend" operation-owner="flw"/>
<menuitem id="menuitem2" name="abort" operation="abort" operation-owner="flw" separator="true"/>
<menuitem id="menuitem3" name="customized" operation="customized" operation-owner="flw"/>
<menuitem id="menuitem4" name="process-chart" operation="showChart" operation-owner="flw"/>
<menuitem id="menuitem5" name="transfer" operation="transfer" operation-owner="flw"/>
<menuitem id="menuitem6" name="back" operation="back" operation-owner="flw"/>
<menuitem id="menuitem7" name="menuitem7" operation="executeList" operation-owner="flw"/>
</xhtml:div>
<xui:view auto-load="true" class="xui-container" id="vDetail">
<layout id="layout3" style="position:relative;" type="flow">
<xhtml:div component="/UI/system/components/excelLayout.xbl.xml#excelLayout" id="excelLayout1" src="mainActivity.xls" style="width:100%;height:100%;"></xhtml:div>
</layout>
<xforms:input class="xui-autofill" id="iptGlobeID" ref="data('dataMaster')/GlobeID" style="display:none;"></xforms:input>
<xforms:input class="xui-autofill" id="iptBH" ref="data('dataMaster')/BH"></xforms:input>
<xforms:input class="xui-autofill" id="iptTopic" ref="data('dataMaster')/Topic"></xforms:input>
<xforms:input class="xui-autofill" id="iptMType" ref="data('dataMaster')/MType"></xforms:input>
<xforms:input class="xui-autofill" id="iptGoal" ref="data('dataMaster')/Goal"></xforms:input>
<xforms:input class="xui-autofill" id="iptMarkReq" ref="data('dataMaster')/MarkReq"></xforms:input>
<xforms:input class="xui-autofill" id="iptStartTime" ref="data('dataMaster')/StartTime"></xforms:input>
<xforms:input class="xui-autofill" id="iptEndTime" ref="data('dataMaster')/EndTime"></xforms:input>
<xforms:input class="xui-autofill" id="iptOwner" ref="data('dataMaster')/Owner"></xforms:input>
<xforms:input class="xui-autofill" id="iptUserIDS" ref="data('dataMaster')/UserIDS"></xforms:input>
<xforms:input class="xui-autofill" id="iptAType" ref="data('dataMaster')/AType"></xforms:input>
<xforms:input class="xui-autofill" id="iptLev" ref="data('dataMaster')/Lev"></xforms:input>
<xforms:input class="xui-autofill" id="iptPreLine" ref="data('dataMaster')/PreLine"></xforms:input>
<xforms:input class="xui-autofill" id="iptDescript" ref="data('dataMaster')/Descript"></xforms:input>
<xforms:input class="xui-autofill" id="iptSProcess" ref="data('dataMaster')/sProcess" style="display:none;"></xforms:input>
<xforms:input class="xui-autofill" id="iptSProcessName" ref="data('dataMaster')/sProcessName" style="display:none;"></xforms:input>
<xforms:input class="xui-autofill" id="iptSActivity" ref="data('dataMaster')/sActivity" style="display:none;"></xforms:input>
<xforms:input class="xui-autofill" id="iptSActivityName" ref="data('dataMaster')/sActivityName" style="display:none;"></xforms:input>
</xui:view>
<xforms:trigger appearance="image-text" class="button-blue" component="/UI/system/components/trigger.xbl.xml#trigger" id="newTrigger" operation="new" operation-owner="dataDetail">
<xforms:label id="newTriggerLabel"/>
</xforms:trigger>
<xforms:trigger appearance="image-minimal" component="/UI/system/components/trigger.xbl.xml#trigger" id="deleteTrigger" operation="delete" operation-owner="dataDetail">
<xforms:label id="saveTriggerLabel"/>
</xforms:trigger>
<xforms:trigger appearance="image-minimal" component="/UI/system/components/trigger.xbl.xml#trigger" id="refreshTrigger" operation="refresh" operation-owner="dataDetail">
<xforms:label id="refreshTriggerLabel"/>
</xforms:trigger>
<xhtml:div component="/UI/system/components/bizDataFilterMenu.xbl.xml#bizDataFilterMenu" data="dataDetail" id="bizDataFilterMenu2"/>
<xhtml:div class="grid-compact" component="/UI/system/components/grid.xbl.xml#grid" data="dataDetail" header-row-height="30" id="grdDetail" row-height="30" show-header-menu="hide-column,save-layout,group-column,adjust-column">
<column id="default5" label="主题" ref="Topic" type="ed" width="100px"/>
<column id="default6" label="费用类型" ref="CostType" type="ed" width="100px"/>
<column id="default7" label="单据号" ref="BillNo" type="ed" width="100px"/>
<column id="default12" label="费用金额" ref="CostMoney" type="ed" width="100px"/>
<column id="default11" label="备注" ref="BZ" type="ed" width="100px"/>
</xhtml:div>
<xhtml:div component="/UI/system/components/attachmentEditor2.xbl.xml#attachmentEditor2" display-buttons="upload:true;template:true;download:true;edit:true;delete:true;history:true;" limit="-1" runtime="html4" id="attachment" class="xui-attachmentEditor2" ref="data('dataMaster')/Attach"></xhtml:div><xhtml:div align="right" component="/UI/system/components/pagination.xbl.xml#pagination" data="dataMaster" first-label="首页" id="pagination1" items="first last pre next" last-label="尾页" next-label="下页" page-count="15" pre-label="上页"/>
<layout id="layout1" style="height:100%;width:800px;margin:auto;">
<place control="flw" id="controlPlace7" style="width:24px;top:233px;left:16px;"/>
<xhtml:div component="/UI/system/components/buttonBar.xbl.xml#buttonBar" id="buttonBar1" separator="false" separator-size="16">
<xui:place control="advanceTrigger" id="controlPlace6"/>
<xui:place control="saveTrigger" id="controlPlace8"/>
<xui:place control="menuButton1" id="controlPlace5"/>
</xhtml:div>
<place control="vDetail" id="controlPlace1" style="width:100%;border-top:1px solid #B5B5B5;border-bottom:1px solid #B5B5B5;height:330px;"/>
<xui:place control="bizDataFilterMenu2" id="controlPlace10" style="top:47px;left:467px;"/>
<xhtml:div id="div1" style="padding:3px 3px 3px 3px;font-size:medium;font-family:微软雅黑;font-weight:bolder;">
相关文档:</xhtml:div>
<xui:place control="attachment" id="controlPlace11"></xui:place>
<xhtml:div id="div2" style="padding:3px 3px 3px 3px;font-size:medium;font-family:微软雅黑;font-weight:bolder;">预算信息:</xhtml:div>
<xhtml:div collapsed-label="隐藏过滤" component="/UI/system/components/buttonBar.xbl.xml#buttonBar" expandable="true" expanded="true" expanded-label="展开过滤" expanded-position="5" expanded-width="75" id="ngtbMaster1" separator="false" separator-size="1">
<xui:place control="newTrigger" id="newTriggerPlace" />
<xui:place control="deleteTrigger" id="saveTriggerPlace" />
<xui:place control="refreshTrigger" id="refreshTriggerPlace" />
<xui:place control="queryTrigger" id="controlPlace3" />
</xhtml:div>
<place control="grdDetail" id="controlPlace2" style="width:100%;height:148px;"/>
<xui:place control="pagination1" id="controlPlace9"/>
</layout>
<xforms:trigger appearance="image-minimal" component="/UI/system/components/trigger.xbl.xml#trigger" id="queryTrigger" operation="show" operation-owner="bizDataFilterMenu2">
<xforms:label id="default1"/>
</xforms:trigger>
</xui:view>
<resource id="rsMain">
<xhtml:script id="htmlScript1" src="mainActivity.js"/>
</resource>
</window>
|
|