Giter Site home page Giter Site logo

Comments (11)

youseries avatar youseries commented on May 24, 2024

可以,见:http://wiki.bsdn.org/pages/viewpage.action?pageId=76448569中数据集表达式:sum介绍

from ureport.

wyubaoyuan avatar wyubaoyuan commented on May 24, 2024

sum(xly_statistics_stock.select(QTY))这样不行

from ureport.

wyubaoyuan avatar wyubaoyuan commented on May 24, 2024

数值一直是0,但明明这个字段不为0

from ureport.

youseries avatar youseries commented on May 24, 2024

正确的写法是:xly_statistics_stock.sum(QTY)

from ureport.

youseries avatar youseries commented on May 24, 2024

最新的2.0.8-SNAPSHOT也支持sum(xly_statistics_stock.select(QTY))这样的写法,请测试。

from ureport.

wyubaoyuan avatar wyubaoyuan commented on May 24, 2024

v_warerecord.sum(gradesA*QTY)这样报错

from ureport.

youseries avatar youseries commented on May 24, 2024

v_warerecord.sum(gradesA*QTY) 这是什么意思?两个属性相乘?ureport2可不支持这种写法,如果是,那正解的写法应该是:
v_warerecord.sum(gradesA) * v_warerecord.sum(QTY)
还是先好好了解下ureport2表达式语法,不能乱来!

from ureport.

wyubaoyuan avatar wyubaoyuan commented on May 24, 2024

v_warerecord.sum(gradesA) * v_warerecord.sum(QTY)这样达不到我的需求,我需要每条记录里的gradesA、QTY这两个字段相乘,再求和

from ureport.

youseries avatar youseries commented on May 24, 2024

嗯,UReport2不支持这么做。
不过你可以在SQL里把这两个属性相乘,以别名形式输出,再在报表里对这个别名求和。

from ureport.

wyubaoyuan avatar wyubaoyuan commented on May 24, 2024

嗯,已经这样处理了

from ureport.

xsl9527-didi avatar xsl9527-didi commented on May 24, 2024

可以,见:http://wiki.bsdn.org/pages/viewpage.action?pageId=76448569中数据集表达式:sum介绍

404

from ureport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.