Skip to content

Commit

Permalink
Fix : ACI0104452
Browse files Browse the repository at this point in the history
  • Loading branch information
delahaye-4D committed Jan 8, 2024
1 parent a19dd1f commit da4c691
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 46 deletions.
51 changes: 27 additions & 24 deletions Project/Sources/Methods/report_AFTER_EDIT.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,41 +39,44 @@ End if
// ----------------------------------------------------
OBJECT SET VISIBLE:C603(*; "cell_menu"; False:C215)

//#DD ACI0104452 ob_area is undefined at this level when esc keydown

//get edited cell
$Lon_area:=OB Get:C1224(ob_area; "area"; Is longint:K8:6)

If (OB Get:C1224(ob_area; "crossReport"; Is boolean:K8:9))
If (ob_area#Null:C1517) //#DD ACI0104452 ob_area is undefined at this level when esc keydown

$Lon_column:=OB Get:C1224(ob_area; "columnIndex"; Is longint:K8:6)
$Lon_row:=OB Get:C1224(ob_area; "rowIndex"; Is longint:K8:6)
//get edited cell
$Lon_area:=OB Get:C1224(ob_area; "area"; Is longint:K8:6)

If ($Lon_column=1)\
& ($Lon_row=1)
If (OB Get:C1224(ob_area; "crossReport"; Is boolean:K8:9))

$Lon_column:=OB Get:C1224(ob_area; "columnIndex"; Is longint:K8:6)
$Lon_row:=OB Get:C1224(ob_area; "rowIndex"; Is longint:K8:6)

If ($Lon_column=1)\
& ($Lon_row=1)

$Lon_column:=0
$Lon_row:=0

End if

$Lon_column:=0
$Lon_row:=0
Else

$Lon_column:=OB Get:C1224(ob_area; "qrColumn"; Is longint:K8:6)
$Lon_row:=OB Get:C1224(ob_area; "qrRow"; Is longint:K8:6)

End if

Else
//%W-533.3
$Txt_buffer:=ST Get plain text:C1092($Ptr_me->{$Ptr_me->})
//%W+533.3

$Lon_column:=OB Get:C1224(ob_area; "qrColumn"; Is longint:K8:6)
$Lon_row:=OB Get:C1224(ob_area; "qrRow"; Is longint:K8:6)
QR_SET_CELL_TEXT($Lon_area; $Lon_column; $Lon_row; $Txt_buffer)

//update data
OB SET:C1220(ob_area; \
"cellEdition"; False:C215)

End if

//%W-533.3
$Txt_buffer:=ST Get plain text:C1092($Ptr_me->{$Ptr_me->})
//%W+533.3

QR_SET_CELL_TEXT($Lon_area; $Lon_column; $Lon_row; $Txt_buffer)

//update data
OB SET:C1220(ob_area; \
"cellEdition"; False:C215)

OBJECT SET ENTERABLE:C238($Ptr_me->; False:C215)

report_AREA_UPDATE
Expand Down
44 changes: 22 additions & 22 deletions Project/Sources/Methods/report_AREA_UPDATE.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,28 @@ End if

// ----------------------------------------------------

//todo: simplification remove $timer_event etc

Case of
: (True:C214)
Form:C1466.timerEvent:=1
SET TIMER:C645(-1)
: (Is nil pointer:C315($timer_event))
QR_area:=QR_area
REDRAW:C174(QR_area)
Else
//mark:ACI0103539
//#DD : old system deprecated use Form.timerEvent instead
$timer_event->:=1
End case
//todo: simplification remove $timer_event etc (DONE)

//Case of
//: (True)

Form:C1466.timerEvent:=1
SET TIMER:C645(-1)

//: (Is nil pointer($timer_event))

//QR_area:=QR_area
//REDRAW(QR_area)

//Else

////mark:ACI0103539
////#DD : old system deprecated use Form.timerEvent instead
//$timer_event->:=1



//End case


// ----------------------------------------------------
Expand Down

0 comments on commit da4c691

Please sign in to comment.