Home > database >  Composite properties report how to reference the son report
Composite properties report how to reference the son report

Time:09-17

A composite type data window dw_composite, there are two child statements, a free dw_child_free type statements, a label dw_child_label type statements, when click the dw_child_label dw_composite how to get the number of rows in the label type statements,

CodePudding user response:

Your report in: edit open source way, then find the datawindow property lines, should be the second line, behind a property: processing=0,
The 0 to 1, and then save, in the window to manipulate, the dw report in a report, it is similar to a common dw, the DDDW column of the operation of the child window,

CodePudding user response:

I'm sorry to tell you that I failed,
I created the report like you said 3 datawindow, processing=? , also do not need to change, it can be used directly in the window,
How many can I get to the label, but unable to get to the current line which, you can specify which lines of data access, for example, I am here is to take line 2 colname values,
Code in the designated line, button:
Datawindowchild dwc_1
Dw_9. Getchild (" dw_2 dwc_1)
Messagebox (' label value ', 'the first' + sle_24. Text + 'lines of colname value:' + dwc_1. Getitemstring (long (sle_24. Text), "colname"))

CodePudding user response:

To see this http://blog.csdn.net/huwenqing1971/article/details/3914018

CodePudding user response:

refer to the original poster superbigboy response:
dw_composite a composite type of the data window, there are two child statements, a free dw_child_free type statements, a label dw_child_label type statements, when click the dw_child_label dw_composite how to get the number of rows in the label type statements,


So try

In the clicked event code

Datawindowchild ldwc_child
Enclosing getchild (" dw_child_label ldwc_child)
Messagebox (' ', ldwc_child getrow ())

Have a try

CodePudding user response:

The
reference 4 floor lzp_lrp reply:
Quote: refer to the original poster superbigboy response:

A composite type data window dw_composite, there are two child statements, a free dw_child_free type statements, a label dw_child_label type statements, when click the dw_child_label dw_composite how to get the number of rows in the label type statements,


So try

In the clicked event code

Datawindowchild ldwc_child
Enclosing getchild (" dw_child_label ldwc_child)
Messagebox (' ', ldwc_child getrow ())

Try

I've tried, getrow () this function, the return is less than the right line, returns 0, don't know if I didn't get to

CodePudding user response:

reference 5 floor yh10231033 reply:
Quote: refer to 4th floor lzp_lrp response:

The
Quote: refer to the original poster superbigboy response:

A composite type data window dw_composite, there are two child statements, a free dw_child_free type statements, a label dw_child_label type statements, when click the dw_child_label dw_composite how to get the number of rows in the label type statements,


So try

In the clicked event code

Datawindowchild ldwc_child
Enclosing getchild (" dw_child_label ldwc_child)
Messagebox (' ', ldwc_child getrow ())

Try

I've tried, getrow () this function, the return is less than the right line, returns 0, don't know if I didn't get to


That should be the problem of compound statements, estimated to be less than the current row
  • Related