fiogf49gjkf0d Hey guys,
This is regarding 7.2.5. I've added the ACTUALID field to all opportunity product grids and am experiencing an odd problem: The changes I've made work when calling Add Opportunity Product from Opportunity Products, but when Add Opportunity Product is called from Insert Opportunity it fails in AddProductsToGrid (i.e. when clicking "add" to add a product to the products grid from the tree), essentially saying that the product grid's field "ACTUALID" can't be found.
It's right there. On the screen. Looking at me. Winking, almost. And is built from the same sub in Insert Opportunity Common no matter what it's called from.
Any ideas where to look? I've tried adding a second column of the same name just to see what happened and it didn't change anything. Confirmed that both GetSelectedProductInfo and GetSelectedPackageInfo are indeed including that field in their result set just in case I was mis-reading the code and the problem was there.
Here's the code adding the column:
Set col = grdProducts.Columns.Add(0) col.FieldName = "ACTUALID" 'DNL col.Caption = Application.Translator.Localize("Actual ID") col.Width = 80 col.ReadOnly = True col.DisableEditor = True
And in AddProductToGrid, with grdProducts.Recordset:
.Fields("ACTUALID").Value = objRS.Fields("ACTUALID").Value
Here's the error message:
"Item cannot be found in the collection corresponding to the requested name or ordinal."
Surely I'm just missing something simple...? |