PDA

View Full Version : cWebGrid problem



Sam Neuner
25-Jan-2014, 09:13 PM
I migrated a WebApp from 17.1 to 18.0. I have a very complicated view with about 15 tab pages and about 20 grids. In this particular view (not others) NO NEW rows may be added to ANY of the grids. Existing data can be edited, but no new data added! Any suggestions?

Vincent Oorsprong
26-Jan-2014, 01:49 AM
Sam,

How about setting pbAllowAppendRow, pbAllowInsertRow and pbAllowDeleteRow to false?

Sam Neuner
26-Jan-2014, 10:18 AM
None of those properties are set to false! The grids worked in 17.1.

Sam Neuner
26-Jan-2014, 10:24 AM
I even have a button, "New Line", at the top of each grid to Append a new row! Even this does not work now!

Stephen W. Meeley
26-Jan-2014, 10:29 AM
It's hard to attempt to diagnose this without knowing more (you say it's a very complex view). A thought might be to run under the debugger in 17.1 (where it works) and step through what is executed when you hit the New Line button. Then do the same in 18.0 and see where the execution path differs...

Sam Neuner
28-Jan-2014, 02:33 PM
FYI: Turns out that the culprit was in an OnLoad of one of the cWebGrids where there is a Rebuild_Constraints and Send RefreshListFromDD. The Send RefreshListFromDD was the cause! Wonder why this would affect all the grids in the view?