How can I get the count of a Group?

Source: Internet
Author: User

 

1. How to get the count of the Group?

A. cumulativeSum (if (group column name [-1] = group column name [0], 0, 1) for all)

B. GetRow ()-First (GetRow () for Group 1) + 1

C. count (grouping field for all distinct)

2. How to get the row number of the Group?

CumulativeSum (1 for group 1)

3. How to pass parameters to a subdata window?

Datawindowchild ldwc_name

Ldwc_name = dw_name.getchild ('column ', ldwc_name)

// If you do not know what the search parameters of dddw are, you can fool dddw and let him think that the data already exists:

Ldwc_name.insertrow (0)

Dw_name.retrieve ()

// If you know the search parameters:

Ldwc_name.settransobject (sqlca)

Ldwc_name.retrieve (arguments)

Dw_name.settransobject (sqlca)

Dw_name.retrieve ()

4. How to compare the days of data difference between two time (date) types?

Date ld_date1, ld_date2

Long ll_diff

Ll_diff = daysafter (ld_date1, ld_date2)

5. In DW, each row of data is displayed in different colors.

Background. Color Express:

If (mod (getrow (), 2) = 0, RGB (0,255, 0), RGB (255,255,255 ))

6. Operation of the visible attribute in the window

Way1: select option from the design menu of the window canvas, and click the show invisible check box.

Way2: select control list from the edit menu, select the button you want to find, and click the visible check box in the property.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.