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

QQ登录

只需一步,快速开始

查看: 4271|回复: 21

[结贴] rootView中添加gridSelect后无法查询另一个表数据

[复制链接]

18

主题

86

帖子

210

积分

中级会员

Rank: 3Rank: 3

积分
210
QQ
发表于 2014-12-10 15:28:58 | 显示全部楼层 |阅读模式
我建立了两张表:一张产品大类表,一张产品小类表,他们两个没有主外键关系,
在产品小类里添加数据时,需要先选择产品大类代码、名称,我就在产品小类维护页面增加了一个
gridSelect,但是配置后,这个下拉框出不来。请高手指教。

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36185
发表于 2014-12-10 17:07:54 | 显示全部楼层
gridSelect的定义发一下看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

18

主题

86

帖子

210

积分

中级会员

Rank: 3Rank: 3

积分
210
QQ
 楼主| 发表于 2014-12-10 17:11:38 | 显示全部楼层
你能加我qq吗 ?276715978
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36185
发表于 2014-12-10 17:22:22 | 显示全部楼层
先把gridSelect的定义发一下看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

18

主题

86

帖子

210

积分

中级会员

Rank: 3Rank: 3

积分
210
QQ
 楼主| 发表于 2014-12-10 17:51:54 | 显示全部楼层
jishuang 发表于 2014-12-10 17:22
先把gridSelect的定义发一下看看

我没办法发图片
回复 支持 反对

使用道具 举报

18

主题

86

帖子

210

积分

中级会员

Rank: 3Rank: 3

积分
210
QQ
 楼主| 发表于 2014-12-10 21:27:54 | 显示全部楼层
<data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="xml" auto-load="true" id="bizData2" concept="WH_TCPDL" direct-delete="false" store-type="grid" order-by="fCPDLMC desc"><creator id="default68"></creator>
  <reader id="default69" action="/warehouse/whbase/logic/action/queryWH_TCPDLAction"></reader>
  <writer id="default70"></writer>
  <master id="master2"></master></data>
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36185
发表于 2014-12-11 09:33:51 | 显示全部楼层
不是data的定义是gridSelect的
把.w上传看看
bbs中发附件点下面的这个
bbs.png
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

18

主题

86

帖子

210

积分

中级会员

Rank: 3Rank: 3

积分
210
QQ
 楼主| 发表于 2014-12-11 10:13:22 | 显示全部楼层
<?xml version="1.0" encoding="utf-8"?>

<xui:window xmlns:xui="http://www.justep.com/xui" xmlns="http://www.justep.com/xui" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.justep.com/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" component="/UI/system/components/window.xbl.xml#window" id="window">  
  <xforms:model id="model1" style="height:auto;left:231px;top:207px;">
    <data auto-load="true" component="/UI/system/components/data.xbl.xml#bizData" concept="WH_TCPXL" confirm-refresh="false" data-type="xml" direct-delete="true" id="detailData" limit="20" onSaveCommit="mainActivityDetail.detailDataSaveCommit" relations="WH_TCPXL,version,fCPDLBM,fCPDLMC,fCPXLBM,fCPXLMC,fCreatePerson,fCreateDate,fModifyPerson,fModifyDate" store-type="simple">
      <reader action="/warehouse/whbase/logic/action/queryWH_TCPXLAction"/>  
      <writer action="/warehouse/whbase/logic/action/saveWH_TCPXLAction"/>  
      <creator action="/warehouse/whbase/logic/action/createWH_TCPXLAction"/>
    </data>

    <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bizData1" concept="WH_TCPDL"><creator id="default16" action="/warehouse/whbase/logic/action/createWH_TCPDLAction"></creator>
  <reader id="default17" action="/warehouse/whbase/logic/action/queryWH_TCPDLAction"></reader>
  <writer id="default18" action="/warehouse/whbase/logic/action/saveWH_TCPDLAction"></writer></data></xforms:model>  
  <xui:view auto-load="true" id="rootView">
    <xhtml:div component="/UI/system/components/windowReceiver.xbl.xml#windowReceiver" id="windowReceiver" onReceive="mainActivityDetail.windowReceiverReceive"/>  
    <xui:view class="xui-container" id="detailView" auto-load="true">
      <xui:layout id="layout1" style="height:100%;width:100%;position:relative;;position:relative;" type="absolute">
        <place control-label="iptFCPDLBM" id="default1" style="position: absolute;left:30px;top:38px;"/>  
        <place control="iptFCPDLBM" id="default2" style="position: absolute;left:175px;top:30px;width:217px;height:30px"/>  
        <place control-label="iptFCPDLMC" id="default3" style="position: absolute;left:464px;top:38px;"/>  
        <place control="iptFCPDLMC" id="default4" style="position: absolute;left:609px;top:30px;width:217px;height:30px"/>  
        <place control-label="iptFCPXLBM" id="default5" style="position: absolute;left:30px;top:78px;"/>  
        <place control="iptFCPXLBM" id="default6" style="position: absolute;left:175px;top:70px;width:217px;height:30px"/>  
        <place control-label="iptFCPXLMC" id="default7" style="position: absolute;left:464px;top:78px;"/>  
        <place control="iptFCPXLMC" id="default8" style="position: absolute;left:609px;top:70px;width:217px;height:30px"/>  
        <place control-label="iptFCreatePerson" id="default9" style="position: absolute;left:30px;top:118px;"/>  
        <place control="iptFCreatePerson" id="default10" style="position: absolute;left:175px;top:110px;width:217px;height:30px"/>  
        <place control-label="iptFCreateDate" id="default11" style="position: absolute;left:464px;top:118px;"/>  
        <place control="iptFCreateDate" id="default12" style="position: absolute;left:609px;top:110px;width:217px;height:30px"/>
      <xui:place control="gridSelect1" id="controlPlace1" style="position:absolute;top:274px;left:134px;"></xui:place></xui:layout>  
      <xforms:input id="iptFCPDLBM" ref="data('detailData')/fCPDLBM"></xforms:input>  
      <xforms:input id="iptFCPDLMC" ref="data('detailData')/fCPDLMC"></xforms:input>  
      <xforms:input id="iptFCPXLBM" ref="data('detailData')/fCPXLBM"></xforms:input>  
      <xforms:input id="iptFCPXLMC" ref="data('detailData')/fCPXLMC"></xforms:input>  
      <xforms:input id="iptFCreatePerson" ref="data('detailData')/fCreatePerson" readonly="true"></xforms:input>  
      <xforms:input id="iptFCreateDate" ref="data('detailData')/fCreateDate" readonly="true"></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('bizData1')/fCPDLBM" label-ref="data('bizData1')/fCPDLMC" ext-ref="data('bizData1')/rowid">
   <xforms:label ref="fCPDLMC" id="default13"></xforms:label>
   <xforms:value ref="fCPDLBM" id="default14"></xforms:value>
   <xforms:itemset id="default15" data="detailData" auto-load-data="true"><xforms:column ref="fCPDLBM" id="default19"></xforms:column>
  <xforms:column ref="fCPDLMC" id="default20"></xforms:column></xforms:itemset>
  <xforms:ext-value id="default21" ref="rowID"></xforms:ext-value></xhtml:div></xui:view>  
    <xui:layout style="width:100%;height:100%;">
      <xhtml:div component="/UI/system/components/borderLayout.xbl.xml#borderLayout" id="borderLayout1" style="width:100%; height: 100%;;">
        <top id="borderLayout-top1" size="40px">
          <xhtml:div collapsed-label="隐藏过滤" component="/UI/system/components/buttonBar.xbl.xml#buttonBar" expandable="false" expanded="true" expanded-label="展开过滤" expanded-position="5" expanded-width="75" id="navigatorBar" separator="false" separator-size="1">
            <xui:place control="newTrigger" id="controlPlace3"/>  
            <xui:place control="deleteTrigger" id="controlPlace5"/>  
            <xui:place control="refreshTrigger" id="controlPlace6"/>
          </xhtml:div>
        </top>  
        <center id="borderLayout-center1">
          <place control="detailView" style="position:relative;"/>
        </center>
      </xhtml:div>  
      <xui:place control="windowReceiver" id="controlPlace2" style="top:129px;left:644px;"/>
    </xui:layout>  
    <xforms:trigger appearance="image-text" class="button-blue" component="/UI/system/components/trigger.xbl.xml#trigger" id="newTrigger" operation="new" operation-owner="detailData">
      <xforms:label id="newTriggerLabel">新建</xforms:label>
    </xforms:trigger>  
    <xforms:trigger appearance="image-minimal" component="/UI/system/components/trigger.xbl.xml#trigger" id="deleteTrigger" operation="save" operation-owner="detailData">
      <xforms:label id="deleteTriggerLabel"/>
    </xforms:trigger>  
    <xforms:trigger appearance="image-minimal" component="/UI/system/components/trigger.xbl.xml#trigger" id="refreshTrigger" operation="refresh" operation-owner="detailData">
      <xforms:label id="refreshTriggerLabel"/>
    </xforms:trigger>
  </xui:view>  
  <resource id="resource1">
    <xhtml:script id="htmlScript1" src="mainActivityDetail.js"/>
  </resource>
</xui:window>
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36185
发表于 2014-12-11 11:43:11 | 显示全部楼层
detailData这个data的store-type改为grid
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

18

主题

86

帖子

210

积分

中级会员

Rank: 3Rank: 3

积分
210
QQ
 楼主| 发表于 2014-12-11 12:44:35 | 显示全部楼层
您好,gridSelect在页面上没有出来
11111111111111.png
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-7-4 15:35 , Processed in 0.125657 second(s), 27 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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