CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Execption IWSession Not Processing Submit for TIWCGJQEdit

by MCarver » 20 Apr 2016 20:54

CG Gurus,

A few versions back, I began getting the following error:

'The following exception occurred:
"myCGEditInner: The IW Session is not processing submit !"

These TIWCGJQEdit controls reside on a DialogEx, which resides on a CGFrame. The error occurs upon attempting to close the DialogEx, provided the data has been changed in a CGEdit. If no data for a CGEdit has been changed the DialogEx will close with out incident. Once the error surfaces, a subsequent attempt to close the DialogEx is successful and changes the data as expected. Note the "Inner" appended to the name of my control.

This error appeared to surface about the same time the zIndex behavior of the DialogEx was changed (probably coincidence). As a further point of interest, only a Databound CGEdit is affected with this error. And the data does not need to be changed to receive the error, but only receive focus.

Please advise, As I have been unable to find a resolution these last few weeks on my own.

Regards,
Monte Carver
MCarver
 
Posts: 48
Joined: 27 Sep 2013 19:15

by Alexander Bulei » 21 Apr 2016 09:35

Hi MCarver,

The error occurs upon attempting to close the DialogEx


What do you have in OnClose event?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by MCarver » 21 Apr 2016 19:31

I am not using the OnClose Event. Best I can tell, this is a Javascript error, as the IW server is not hit.
MCarver
 
Posts: 48
Joined: 27 Sep 2013 19:15

by MCarver » 22 Apr 2016 20:26

To further understand this problem, I have removed all but one IWCGJQEdit from my DialogEx, and the problem still persists. However, if I set for this edit control the SubmitOnAsync = False, then the error disappears. BUT of course my changes do not get submitted. Please note that this problem does NOT EXIST for the TCGJQMemoEx

More info.. I remove the TCQJQMemoEx and run again. NOW the error has disappeared. I have several other forms with this same problem, but i have NO IDEA why the error disappeared.

So what I am discovering?

Please Advise. Have I found a bug, or am I doing something wrong? Suggestions for resolving are greatly appreciated.

Regards,
Monte Carver
MCarver
 
Posts: 48
Joined: 27 Sep 2013 19:15

by Alexander Bulei » 26 Apr 2016 09:27

Hi MCarver,

The fastest way to help you, doing the remote session if you have premium tickets, otherwise, send us the simple testcase project.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by MCarver » 26 Apr 2016 15:40

Alex,

I believe I finally found the problem. I had a DataSource OnChange event that was doing a ReloadGrid. This was the culprit that was causing the Exception. I never did understand why I would not consistently receive this error between identically designed frames.

The ReloadGrid was then occurring when the DialogEx was Opened. Any subsequent action raised the error (sometimes). The ReloadGrid of course is necessary when detail data of Master Data is being inserted/Modified thru the DialogEx. How would you suggest refreshing the grid? Currently I switched to having it fresh when the DialogEx is Saved/Canceled

Thanks your for consideration and time on this matter.
Monte Carver
MCarver
 
Posts: 48
Joined: 27 Sep 2013 19:15

by Alexander Bulei » 26 Apr 2016 18:18

Hi MCarver,

I'm glad that you found the problem ;)

Currently I switched to having it fresh when the DialogEx is Saved/Canceled


Yeah, I think it's a suitable place for it.
The session must be alive and component exists on page.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQEdit

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.