FoxInCloud
Error when opening a form within a formset
Gravatar is a globally recognized avatar based on your email address. Error when opening a form within a formset
  Paul
  All
  Aug 18, 2019 @ 09:00pm

Hi,

I know that FiC does not support formsets in web mode, but the problem is that after automatic adaptation formsets experience an error in lan mode - I suggest that FiC should accommodate this in lan mode and not produce an error.

awfrm.load IF m.this.DataSession = 2 && Private dataSession
awfrm.wcLangUser_assign case this.DataSession # 2 && default datasession, not private

The problem is that this.DataSession does not exist on a form within a formset.
I could simply not run the FiC Load() on a formset-form, but it sets some useful properties so I would rather not interfere in the natural flow of code.

Paul

Gravatar is a globally recognized avatar based on your email address. re: Error when opening a form within a formset
  FoxInCloud Support - Thierry N.
  Paul
  Aug 20, 2019 @ 02:47am

OK, thanks for the feedback and for learning that a form member of a formSet does not have the .dataSession property.

What if you replace in awFrm:
this.DataSession
by
Iif(Type('thisForm.DataSession') == 'N', thisForm.DataSession, thisFormSet.DataSession)
?

Gravatar is a globally recognized avatar based on your email address. re: Error when opening a form within a formset
  Paul
  FoxInCloud Support - Thierry N.
  Aug 20, 2019 @ 06:44pm

Yes, if you are going to make that change in FiC then I will make the change in my version now.

Gravatar is a globally recognized avatar based on your email address. re: Error when opening a form within a formset
  Paul
  Paul
  Dec 3, 2019 @ 06:22pm

FYI, the proposed fix is not present in awfrm.Load in beta.4

Paul

Gravatar is a globally recognized avatar based on your email address. re: Error when opening a form within a formset
  FoxInCloud Support - Thierry N.
  Paul
  Dec 4, 2019 @ 09:10am

right, done in .wcLangUser_assign() but not elsewhere… not sure what happened, will fix in next beta

© 1996-2024