cancel
Showing results for 
Search instead for 
Did you mean: 

AffectsFormMode and Folder Button not working

Former Member
0 Kudos

I have the AffectsFormMode property set to false for all my Folder buttons. However, when I click a Folder button it is setting the Form mode to Update.

I have commented out all code that is triggered when the Folder button is clicked, yet it still affects the Form mode.

I am setting this property in the FORM_LOAD event like this:

sboForm.Items.Item(FOLDER_UID).AffectsFormMode = false;

Does this property not work in version 6.5? Is there a workaround?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I've tested this issue on SAP Business One Ver. 6.50.99.20 e.g. 6.5 SP1 EF20

It works as designed.

meaning it does not affect the form mode.

I'll be happy to send you a sample that worked fine for me.

you can also send me a short VB sample that recreates the problem.

Regards,

Yaniv G.

SDK Consultant,

SAP manage Israel.

Former Member
0 Kudos

Yaniv,

We are finding that this problem is intermittent. Sometimes the Folder buttons affect the form mode and sometimes they do not.

We are investigating further to try and find out what is different when the Folder buttons do affect the Form mode. I'll let you know if we find the problem.

Former Member
0 Kudos

Yaniv, we have still not found the problem with our Folder buttons. On a simple form, the Folder buttons do not affect the form mode.

On our more complex forms, we can debug print the form mode in the event handler to track what is happening. The form mode is changed in the after click event of the Folder button (not the before click or pressed events).

Is there anything we could send you to help us on this one? Maybe the form xml?

Former Member
0 Kudos

We also had this problem with SBO 6.5 after adding a new tab to a system form. Our solution (a really bad workarround) was just to already change the pane level on the before-click-event and set bubbleevent to false. This way, the form mode was not changed, but the tab was not shown as active either - it doesn't look nice at all but worked as we needed it.

I don't have a 6.5 installation anymore, and i don't know which version it was exactly. The version.asc in the installation directory says "2004/01/26 51020721 #", whatever this means. Maybe there was a special version for Switzerland?

However, we do not have this problem in 2004A anymore. The AffectsFormMode-property works as described. My XML looks as follows:

<Item [...] enabled="1" from_pane="0" to_pane="0" type="99">

-


<Specific caption="My Caption" AffectsFormMode="0" [...] />

</Item>

--

Florian Zeller

Former Member
0 Kudos

That was our workaround as well. Thanks.

Former Member
0 Kudos

Hi together

is there a solution about this problem?

I've made my own form and folders. everytime the formmode sets to update after clicking a folder.

need help.

Rafael