Home > database >  After consult, generate dynamic datawindow, how to embed code
After consult, generate dynamic datawindow, how to embed code

Time:10-13

After consult, generate dynamic datawindow, how to embed code, because the number TAB page is dynamic, so also dynamically generated datawindow, I dynamically generated TAB controls, in the dynamic datawindow,
Tab_1. Tabpage_1. Tab_2. OpenTab (uo_test, 0)
Tab_1. Tabpage_1. Tab_2. Control [j_1]. Text=ls_gnmc
N=integer (' 1 '+ string (m_1))
Openuserobject (ldw_cont [n], "datawindow", 0, 0)
Ldw_cont [n]. The dataobject='dw_ylzxlb'
Ldw_cont [n]. The visible=true
Ldw_cont [n]. Hscrollbar=true
Ldw_cont [n]. Vscrollbar=true
Ldw_cont [n]. Height=1200
Ldw_cont [n]. Width=5950
Setparent (handle (ldw_cont [n]), handle (tab_1. Tabpage_1. Tab_2. Control [j_1]))
Ldw_cont [n]. Settransobject (sqlca)
Ldw_cont [n]. Retrieve (is_rwsxh gs_yhm, ls_xz, li_gnxh)
I ask, how to generate code corresponding to the click event?

CodePudding user response:

To get too complicated
To set of tabpage control to control the dataobject, datawindow need only a

CodePudding user response:

reference 1st floor SBKS response:
to get too complicated
To set of tabpage control to control the dataobject, datawindow need only a

Oh, I don't understand, can say detailed point? Because every time I this how many uncertain TAB page, login, according to a SQL find out how much the number of lines to determine the TAB page, so I just put a dynamic TAB page, because the TAB page uncertain, so the datawindow quantity also not sure, so I can dynamic display, dynamic display I realized that there is a window query only, I am sure, implement another window of time, I use the datawindow click function, it will not get, there are ways to replace? Thanks,

CodePudding user response:

Get a code of dw, inheritance can do not

CodePudding user response:

refer to the second floor u011444753 response:
Quote: refer to 1st floor SBKS response:

To get too complicated
To set of tabpage control to control the dataobject, datawindow need only a

Oh, I don't understand, can say detailed point? Because every time I this how many uncertain TAB page, login, according to a SQL find out how much the number of lines to determine the TAB page, so I just put a dynamic TAB page, because the TAB page uncertain, so the datawindow quantity also not sure, so I can dynamic display, dynamic display I realized that there is a window query only, I am sure, implement another window of time, I use the datawindow click function, it will not get, there are ways to replace? Thanks,


Dynamically create tabpage pages, tag or text on page tabpage property Settings can distinguish some tags, in the click event of the TAB, identify tabpage tag or text values, and then go to the busy things a function with respect to OK. That is to say tabpage page to dynamically is enough, for each page tabpage didn't have to create a dynamic datawindow controls, if so, the code to manage a lot of dynamic control, dizzy, oh

CodePudding user response:

Dynamically generated Tab, not dynamically generated DataWindow, according to the dynamic Tab Text or the Tag value, list the all operations of the Tab, code is written in the DataWindow ~

CodePudding user response:

Encapsulates a datawindow object of standard, write cliked code, can be different according to the dataobject, write different logic, then the dynamic open can
  • Related