Strange Behaviour with Infragistics UltraGrid + Required Fields


Author
Message
Aaron Young
Aaron Young
Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
Hi,

I have a simple maintenance form with an UltraGrid (2008 Vol 2) bound to a BBS with a 2 field BO. I set RequiredFields on both fields and when I add a new record to the grid and populate both fields, a save reports that there is a broken rule. On further examination the broken rule reports a value is required for the last field entered. I can see the value in the grid but accessing the field directly from the BO shows it as empty during the save.

If I remove the Required Fields check then I am able to add and save new records.

The following sequence hightlights the problem:-

1. Click the New button to add a new row.

2. Click the first cell, enter a value.

3. Tab into the second cell and enter a value but do not leave the cell. This is the cause of the problem.

4. Click on the form save. The UltraGrid is still in editing mode so the active cell hasn't updated the BO which means it fails the Required Fields check as the BO believes the field to be empty.

I have tried to exit edit mode on the grid but there doesn't appear to be an event that will allow this before the Required Fields check has cached the blank value. I have tried the BeforeSave on the form and CheckRulesOnCurrentRow on the BO. While the grid does exit edit mode and I can see the BO field has been updated correctly in both of these events, it looks like the Required Fields check has already cached the original blank value before these events are fired as the check continues to report the broken rule.

Has anyone encountered this problem and found a way around it?

Thanks in advance.

Aaron

Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Aaron, this may be something that we have to add to a "to-look-at" list as we do not have the latest version of INfragistics loaded and are trying to get the 1.6.6 build out.  We will probably update to the latest prior to the 1.6.6 release (which will be in July prior to the training class).  I know that you don't want to wait that long, so I will see if I can load it on a VM or something within the next week and take a look.  As I mentioned on the other post regarding the grid, you are welcome to post a sample (which you aluded to in your post but I did not see the attachment).  This will definitely speed things up!
Aaron Young
Aaron Young
Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
I am happy for you to leave this to another time. I have a workaround so I can move past this one now.

On a separate note, do you know yet if the multiple relations per business object will be available in the next build?

Aaron

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
On a separate note, do you know yet if the multiple relations per business object will be available in the next build?

This is the one bigger thing that I have on my list to include (hopefully) in the 1.6.6 build.  So the odds are looking good for it Wink

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