起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

12
返回列表 发新帖
楼主: qinzhengying

[结贴] gridSelect

[复制链接]

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35942
发表于 2014-11-11 11:19:01 | 显示全部楼层
1.gridSelect的ref和label-ref关联的是dataMaster中的关系
2.gridSelect itemset中的data-ref关联你的学号的studentInformationData,用于下拉啊

仔细看看http://www.justep.com/x5knowledg ... 8C8104C0C53764.html

远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

61

主题

308

帖子

242

积分

中级会员

Rank: 3Rank: 3

积分
242
QQ
 楼主| 发表于 2014-11-12 14:05:22 | 显示全部楼层
jishuang 发表于 2014-11-11 11:19
1.gridSelect的ref和label-ref关联的是dataMaster中的关系
2.gridSelect itemset中的data-ref关联你的学号 ...

按照这么做了没用
还报错
Cannot read property '_cellType' of undefined
TypeError: Cannot read property '_cellType' of undefined
at Object.dhtmlXGridObject.(anonymous function).cells4 (http://localhost:8080/x5/$vea093c92cd2f4d65847a676c748b5b03/form/form.js?language=zh_CN:1:636664)
at Object.dhtmlXGridObject.(anonymous function).cells (http://localhost:8080/x5/$vea093c92cd2f4d65847a676c748b5b03/form/form.js?language=zh_CN:1:636322)
at Object.getValueById (http://localhost:8080/x5/$vea093c92cd2f4d65847a676c748b5b03/form/form.js?language=zh_CN:1:267287)
at null.rowRenderHandler (http://localhost:8080/x5/$vea093c92cd2f4d65847a676c748b5b03/form/form.js?language=zh_CN:1:437308)
at null.rowAfterFillHandler (http://localhost:8080/x5/$vea093c92cd2f4d65847a676c748b5b03/form/form.js?language=zh_CN:1:351809)
at Object.z [as ev_onafterfillrow] (http://localhost:8080/x5/$vea093c92cd2f4d65847a676c748b5b03/form/form.js?language=zh_CN:1:77516)
at Object.obj.(anonymous function) [as callEvent] (http://localhost:8080/x5/$vea093c92cd2f4d65847a676c748b5b03/form/form.js?language=zh_CN:1:77243)
at Object.dhtmlXGridObject.(anonymous function)._fillRow (http://localhost:8080/x5/$vea093c92cd2f4d65847a676c748b5b03/form/form.js?language=zh_CN:1:619744)
at Object.dhtmlXGridObject.(anonymous function)._process_json_row (http://localhost:8080/x5/$vea093c92cd2f4d65847a676c748b5b03/form/form.js?language=zh_CN:1:616776)
at Object.dhtmlXGridObject.(anonymous function).render_row (http://localhost:8080/x5/$vea093c92cd2f4d65847a676c748b5b03/form/form.js?language=zh_CN:1:629859)

所有的爱情只能有一个结果 我深深知道 那绝对不是我
回复 支持 反对

使用道具 举报

61

主题

308

帖子

242

积分

中级会员

Rank: 3Rank: 3

积分
242
QQ
 楼主| 发表于 2014-11-12 14:05:43 | 显示全部楼层
<?xml version="1.0" encoding="UTF-8"?>

<xui:window xmlns:xui="http://www.justep.com/xui" xmlns="http://www.justep.com/xui" xmlns:xforms="http://www.justep.com/xforms" component="/UI/system/components/window.xbl.xml#window" id="window" xmlns:xhtml="http://www.w3.org/1999/xhtml">  
  <xforms:model id="model1" style="left:33px;width:610px;top:450px;height:57px;"><data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="Father" concept="ApplyMain" store-type="simple"><creator id="default1" action="/studentManagement_RCUpdate4/student/logic/action/createApplyMainAction"></creator>
  <reader id="default2" action="/studentManagement_RCUpdate4/student/logic/action/queryApplyMainAction"></reader>
  <writer id="default3" action="/studentManagement_RCUpdate4/student/logic/action/saveApplyMainAction"></writer></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="Son" concept="ApplyDetail"><creator id="default4" action="/studentManagement_RCUpdate4/student/logic/action/createApplyDetailAction"></creator>
  <reader id="default5" action="/studentManagement_RCUpdate4/student/logic/action/queryApplyDetailAction"></reader>
  <writer id="default6" action="/studentManagement_RCUpdate4/student/logic/action/saveApplyDetailAction"></writer></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bizData4" concept="StudentInformatin" store-type="simple"><creator id="default13" action="/studentManagement_RCUpdate4/student/logic/action/createStudentInformatinAction"></creator>
  <reader id="default14" action="/studentManagement_RCUpdate4/student/logic/action/queryStudentInformatinAction"></reader>
  <writer id="default15" action="/studentManagement_RCUpdate4/student/logic/action/saveStudentInformatinAction"></writer></data></xforms:model>  
  <xui:view id="rootView" auto-load="true">
    <xui:layout style="height:100%;width:100%" id="rootLayout"><xui:place control="view1" id="controlPlace1" style="height:100%;width:100%;background-color:#C0C0C0;"></xui:place></xui:layout>
  <xui:view auto-load="true" id="view1" class="xui-container">
   <layout type="absolute" style="position:relative;" id="layout1"><xui:place control="Master" id="controlPlace12" style="position:absolute;top:6px;left:2px;width:767px;display:block;border-style:solid solid solid solid;height:132px;"></xui:place></layout>
  <xui:view auto-load="true" id="Master" class="xui-container">
   <layout type="absolute" style="position:relative;" id="layout4"><xui:place control-label="fApplyDate" style="font-size:10pt;position: absolute;left:10px;top:18px" id="controlLabel7">申请日期</xui:place>
  <xui:place control="fApplyDate" style="position: absolute;width: 153px;left:95px;top:10px" id="controlPlace13"></xui:place>
  <xui:place control-label="fStatus" style="font-size:10pt;position: absolute;left:275px;top:18px" id="controlLabel8">状态</xui:place>
  <xui:place control="fStatus" style="position: absolute;width: 153px;left:360px;top:10px" id="controlPlace14"></xui:place>
  <xui:place control-label="fClass" style="font-size:10pt;position: absolute;left:540px;top:18px" id="controlLabel9">班级</xui:place>
  <xui:place control="fClass" style="position: absolute;width: 153px;left:625px;top:10px" id="controlPlace15"></xui:place>
  <xui:place control-label="fXueHao" style="font-size:10pt;position: absolute;left:10px;top:48px" id="controlLabel10">学号</xui:place>
  <xui:place control="fXueHao" style="position: absolute;width: 153px;left:95px;top:40px" id="controlPlace16"></xui:place>
  <xui:place control-label="fName" style="font-size:10pt;position: absolute;left:275px;top:48px" id="controlLabel11">姓名</xui:place>
  <xui:place control="fName" style="position: absolute;width: 153px;left:360px;top:40px" id="controlPlace17"></xui:place>
  <xui:place control-label="fSex" style="font-size:10pt;position: absolute;left:540px;top:48px" id="controlLabel12">性别</xui:place>
  <xui:place control="fSex" style="position: absolute;width: 153px;left:625px;top:40px" id="controlPlace18"></xui:place>
  <xui:place control-label="gridSelect1" id="controlLabel13" style="position:absolute;top:82px;left:10px;"></xui:place><xui:place control="gridSelect1" id="controlPlace19" style="position:absolute;top:78px;left:103px;"></xui:place></layout>
  <xforms:input ref="data('Father')/fApplyDate" id="fApplyDate"></xforms:input>
  <xforms:input ref="data('Father')/fStatus" id="fStatus"></xforms:input>
  <xforms:input ref="data('Father')/fClass" id="fClass"></xforms:input>
  <xforms:input ref="data('Father')/fXueHao" id="fXueHao"></xforms:input>
  <xforms:input ref="data('Father')/fName" id="fName"></xforms:input>
  <xforms:input ref="data('Father')/fSex" id="fSex"></xforms:input>
  <xhtml:div component="/UI/system/components/select.xbl.xml#gridSelect" row-height="36" dropdown-class="xui-grid-hide-VLine" label-separator="," value-separator="," ext-separator="," id="gridSelect1" ref="data('bizData4')/fXueHao" label-ref="data('bizData4')/fXueHao">
   <xforms:label ref="" id="default10"></xforms:label>
   <xforms:value ref="" id="default11"></xforms:value>
   <xforms:itemset id="default12" auto-load-data="true" data="Father"></xforms:itemset></xhtml:div></xui:view></xui:view></xui:view>  
  <xui:resource id="resource1"/>
</xui:window>
所有的爱情只能有一个结果 我深深知道 那绝对不是我
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35942
发表于 2014-11-12 14:27:57 | 显示全部楼层
_cellType

这个错就是写的关系概念中没有仔细检查一下关系名都写的正确吗?注意大小写
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-19 19:29 , Processed in 0.057729 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表