Home > database >  Itemchanged events can trigger what reason be
Itemchanged events can trigger what reason be

Time:10-08

Consult ace pb 9 questions, I am not very familiar with pb, want to ask some questions, also please don't laugh,
Today in the modified ERP application, one of the Windows in itemchenged incident, if a column value to select a specified value, will popup selection window,
Part of the code is as follows:
Double ll_mess
String ls_bz ls_cod, ls_kh, ls_data
Dec ldc_hl, ldc_num
Long ll_i
IF row<1 THEN Return

IF dwo. Name='apply_class' AND (data='https://bbs.csdn.net/topics/100' OR data='https://bbs.csdn.net/topics/101') THEN

ls_data=https://bbs.csdn.net/topics/data
The SELECT CVALUE INTO: ls_data FROM SYS_SETUP WHERE CSYSNAME='YFYKSQ' AND CKEY='FOOT' | | : ls_data;
SELECT COUNT (*) INTO: ll_i FROM LKDJ WHERE SFZC=0 AND CLASS=: ls_data;
IF ll_i & lt; 1 THEN
SetText (' ')
Return 2
END the IF
OpenWithParm (w_yfgl_lr_pjretrieve, ls_data + '0')
,,,,,,,,,,,,,,,
END the IF

But IF dwo. Name='apply_class' AND (data='https://bbs.csdn.net/topics/100' OR data='https://bbs.csdn.net/topics/101') THEN the inside of the code are not performed, note 'apply_class column name is correct, what reason be excuse me? I added a message, no popup information window, ask ace to give directions


Another has a problem, I created a freeform report window, can you tell me whether how to dynamically modify the detail of the line height? Is adjusted according to how many of the lines, I want to detail the line height, if less rows, row as high, on the other hand, could you tell me how to implement, thank you!

CodePudding user response:

The parameters of the data is the itemchanged, said the current column value
In the if... Then... , if the if conditions have null values, to experience, I faced is not directly execute

So, must be the data value is null. You can add a variable to observe whether that is. Then you add some code to handle it can perform the if... Then... The
In addition, had better before processing, will be floating on the column value back into the data window

String ls_data

Enclosing accepttext ()
Ls_data=https://bbs.csdn.net/topics/data
If isnull (ls_data) then ls_data='

.

CodePudding user response:

Under the breakpoint debugging behind IF you look at the conditions of which part is not satisfied

CodePudding user response:

Itemchanged to trigger, want to switch to other editable columns, after the triggering event, to debug the if condition is normal, if all the other columns can't edit, unable to trigger the itemchanged events

CodePudding user response:

The 19th floor right, it is also possible that the column name is case sensitive, dwo. Name='apply_class', upper (dwo. Name)='apply_class'

CodePudding user response:

Edit box itemchanged need to display call accepttext () or focus change after the item is going to be a trigger, can write in editchanged corresponding code

CodePudding user response:

The enter key

CodePudding user response:

Itemchanged is the way
  • Related