Error "There are no rows in the current data table. An edit is not allowed."


Author
Message
Michel Levy
Michel Levy
Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Hi,

On editing from the form, I get a message "There are no rows in the current data table.  An edit is not allowed." It is a SF message, not of mine.

(There are no rows in the current data table.  An edit is not allowed.
   à MicroFour.StrataFrame.Business.BusinessLayer.Edit(Boolean CheckSecurity)
   à MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Edit(Boolean CheckSecurity)
   à MicroFour.StrataFrame.UI.Windows.Forms.MaintenanceFormToolStrip.cmdEdit_Click(Object sender, EventArgs e)
...)

After validating the message, I can edit and save.

On a maintenance form, I've 3 BO. The IncludeInFormEditType property is set to DeterminedByBusinessObject.
The Primary BO is set on IncludeInFormEdit = True, the 2 other one are set to False. Only the primary BO is set to ManageUIReadOnlyState = True.
One of these BO is a child of the primary BO (ChildAutoFilter is set to MatchCurrentRow). There is a ChildFormDialog on this form, with BO translations for the primary and its child.
The only BO with no row is neither the primary, neither its child (the third one...)

The code for the EditingStateChanged for the form is in a Try/Catch, and the catch is never raised. Same thing with a try/catch on EditingStateChanged of each BO.

What could be the origin of this message? How could I trap it?
Reply
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Good to know that, Michel.

Yep, I do that all the time and then I try to break up the logic into small pieces and go 1 by 1 untill I can isolate where the issue is.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search