Home > database >  PB data between data filtering window... O method
PB data between data filtering window... O method

Time:09-18

If: there is a main window, one of the main window data window and a button, another child by button pop-up window, select data in the data in a child window window to return to the main window of the data window, (the main window and the child window table is different, but the same column)

Need to implement the function of the is: after back to the data, the main window data not saved, child window pops up will have again back to the data filter out

The warrior, please grant instruction!!!!! Thank you very much!

CodePudding user response:

Listening to you describe function, isn't that true, such as the main window is the editor of "participation" page, you click a button pop-up window, child window is to choose the "participant" page, you have chosen to "zhang SAN, li si", closing the window to return to the main window, and then click the second child window, hope in the child window to filter out "zhang SAN, li si", is this meaning?

The solution:
1. Add a hidden datawindow in the main window, the datawindow databoject dataobject is set is the same as the child window of DW,

2. The main window of the button is clicked, opened the child window will this hidden datawindow passed as a parameter,

3. The child window, the open event, refresh the DW, after passed through cycle parameters of DW filtering operation,

4. The child window, the close event, returns the processed DW parameters,

CodePudding user response:

refer to the original poster zjjshuanghuan response:
if: there is a main window, one of the main window data window and a button, another child by button pop-up window, select data in the data in a child window window to return to the main window of the data window, (the main window and the child window table is different, but the same column)

Need to implement the function of the is: after back to the data, the main window data not saved, child window pops up will have again back to the data filter out

The warrior, please grant instruction!!!!! Thank you very much!


Passed as a parameter to the data in the main window window child window, move the data from the child according to the main window to the window to the filter buffer, rowsmove can be used directly

CodePudding user response:

1/f, brother said method can be implemented, more than the amount of data when burden will increase program, you can do this, not the pop-up window, on the basis of the main window, to create a TAB, hang a data window, default attributes hidden, when you click on the button for the first time, the TAB properties become visible, to check whether there is data TAB of the data on the window, there is no data is directly from the database, all data, then select the line, you need to use rowsmove, so you got data, want to hide the TAB at the same time, when you click on the button for the second time, to continue to check the data on the TAB window for data, already have data at this time, don't need to extract the data on the TAB window, you only need to change the TAB into visual is ok, at this point the data on the TAB in the window there is no the last time you selected in the data, then choose the corresponding row rowsmove is ok,
  • Related