11/26/2024 11:26:19 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
|
|
|
|
LAN Grid: Displaying non SLX data (a recordset): Operation is not allowed when the object is closed. Error
Posted: 10 Jun 09 3:37 PM
|
Am retrieving a recordset and applying it to a grid that I'm building the columns for. Data displays just fine. When I click on the grid, I get an error. Same kind of error when you try to inline edit a mutiple table joined row using left outer join.
I have a unique rowid (1,2,3,4,5,6,7,8...).....have tried to place the field name into KEYFIELD with no luck. I can look at each row in the datagrid recordset, add up fields, fire off OnCustomDrawCell, etc.
Basically I think SLX is looking for a key table and key field based on SalesLogix tables.....when I've done this in the past, I've been able to start with the A1 base table pointing at Opportunity Product, etc. Here the A1 table could be Account, keyfield AccountID and simply repeat the row ID Valuess.....SLX ignoring SecondaryKey Field not in the A1.Table.....but I'm still getting the error.
Tried setting ActiveConnection to Nothing, which works fine as a disconnected recordset, but still get the error on the grid.
Basically rs.Open "Select RowNo, B, C, D, F from AARDVARK " SET Grid.RecordSet = RS
RowSelect is true, don't post changes, readonly is true.....no events other than OnCustomDrawCell (and was getting the error prior to that).
Any ideas?
|
|
|
| |
| |
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|