cancel
Showing results for 
Search instead for 
Did you mean: 

CFL Event Fires more than ONE Time

Former Member
0 Kudos

Hi,

Does anybody in here experienced that when an add-on form is created with a CFL in the matrix, and you closed the form, and then opens the same form again ( by clicking a menu and without exiting the application), the CFL event fires equal to the times you closed the form?

for example i closed the form 3 times, and then when i debug the application, it fires the CFL event also 3 times..

It seems its some kind of creepy bug..

Thanks...

BTW im using SAP B1 2007 A (8.00.175) SP:00 PL:30

Accepted Solutions (1)

Accepted Solutions (1)

YatseaLi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Robert,

Does it work fine in the previous or latest version? if yes, there may be a bug in the patch, you may need to update to latest version.

How ever these is a workaround:

Have a CFL counter (lCounter) to count the times of CFL event fired at the beginning of Event handler.

if (lCounter > 3)
     Exit Sub

Kind Regards

-Yatsea

Answers (7)

Answers (7)

Former Member
0 Kudos

HI David and Billa,

sorry for taking me too long to respond...

well i controlled the event in the program.. it seems working now fine.. tnx for your support..

Regards Robert

Former Member
0 Kudos

Hi...

can u send me the code.

Regards..

Billa 2007

Former Member
0 Kudos

Hi Billa 2007,

thanx for your suggestion to make the innerevent =false

but it makes the add on form not to show at all. innerevent value is always set as true

regards robert

Former Member
0 Kudos

Hi...

use Flag..

Regards..

Billa 2007

Nussi
Active Contributor
0 Kudos

Hi Robert,

well, when it's a bug you have not much solutions.

first try a newer patch - that's the easiest way.

if the problem stays you can create your own bool "innerevent" clone (which you set within code to true/false) but that will not solve that the CFL event will be released/fired.

lg David

Former Member
0 Kudos

Hi...

try this one

pVal.InnerEvent = False

Regards...

Billa 2007

Former Member
0 Kudos

hi Yatsea,

it seems to be working fine during our upgrade from 2005, i only experience this problem when we upgraded to 2007

yes i did the control in the program but i worry that it would make the programs performance be affected..

tnx for your reply

regards Robert

Former Member
0 Kudos

Hi Teun

tnx for your reply.When the add on is restarted it works fine but when i close the form and open it again the problem is still arises.

I'm suspecting that there was a variable that was not released,

and the problem is I have no idea what variable should be clear.

i tried to use

GG.Collect()

but still no good

Regards Robert

Former Member
0 Kudos

Hello Robert,

Maybe your form is still in the memory?! What if you shutdown the addon and restart it??

Or try to clear the objects for test..

Hth.

Regards Teun