Home > database >  The dw information read the text frame's small problem
The dw information read the text frame's small problem

Time:09-25

My intention is this: when the area C to select the corresponding personnel information, click on "deposit management" menu, you can open the staff information of deposit management interface,
Dw_1 area c is the data window,

CodePudding user response:

Menu:
Openwithparam (w_ deposit management interface, dw_1. Object. Personnel ID/getrow)

CodePudding user response:

reference 1st floor xuam response:
menu write:
Openwithparam (w_ deposit management interface, dw_1. Object. Personnel ID/getrow)

An error,,, prompt undefined variable: w_money, dw_1

CodePudding user response:

You must first define the DW, and then assign a value to use.

CodePudding user response:

The
reference 3 floor xuam response:
you must first define the DW, and then assign a value to use.

Do not understand,,, and code

CodePudding user response:

A;
1, assume that the window of the area c is as follows: w_info, c data window of the main fields for the id,
2, false point 'deposit management menu for m_money, open the window for: w_money

M_money Clicked event:

Long ll_row
String ls_id

If IsValid (w_info) then

Ll_row=w_info. Dw_1. Getrow ()
If ll_row & gt; 0 then

Ls_id=Trim (w_info. Dw_1. GetItemString (ll_row, "id"))
If ls_id & lt;> "" And Not isnull (ls_id) then
OpenWithParm (w_money ls_id)
End the if
End the if
End the if


2; The above code can be written in an event or function in w_info, again in the menu clicked event calls,
Such as writing in area c data window doubleClicked event (recommended)

CodePudding user response:

reference 5 floor pbhy007 reply:
one;
1, assume that the window of the area c is as follows: w_info, c data window of the main fields for the id,
2, false point 'deposit management menu for m_money, open the window for: w_money

M_money Clicked event:

Long ll_row
String ls_id

If IsValid (w_info) then

Ll_row=w_info. Dw_1. Getrow ()
If ll...

Click m_money Clicked event such an error

CodePudding user response:

This writing was written when the id as a char type:
Ls_id=Trim (w_info. Dw_1. GetItemString (ll_row, "id"))

If id listed as number type, write to:
Ls_id=Trim (string (w_info. Dw_1. GetItemNumber (ll_row, "id")))

Or simply written as
Ls_id=Trim (string (w_info. Dw_1. Object. Id [ll_row])))
  • Related