I followed the steps listed here:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=7700
but for some reason my script is failing. I am stuck (for the time being) using message box debugging, since i do not have permissions to debug scripts on my machine (yet).
The script gets pasts the var row = igtbl_addNew(cbo.grid.Id, 0) line, but does not get past
row.getCell(o).SetValue("Some String");
Any and all help would be greatly appreciated
Is this the exact code that you have written? If so, there's two problems - you're using the letter "o" instead of the number "0", and you have incorrect capitalization of the setValue() function.
Does this help?
No, that was just terrible re-typing of my code, my code is on another system, so what I typed was from memory, the line you have written is the line I am using
row.getCell(0).setValue("Some String");
Have you tried running the sample that's connected to this KB article? If you're using VS2005 or VS2008, open up the sample in the IDE first to upgrade the sample to the version of the .NET Framework that you're using. You can then use the Project Upgrade Utility to update it to the same version of NetAdvantage for .NET that you're using. Once you've done this, does the sample work?
If it does, then there's probably some difference between your code and what's being done in the sample. We'd need more information to find out.
If it doesn't, then something may have changed that makes this KB article no longer accurate, which would require us to do some research to find out how to update it. If this is the case, please submit a support request so that a Developer Support Engineer can start looking into what may need to be changed.
I got it. It was programmer error, I changed the permissions on the wrong combo. Doh
An update, it appears as if the row is NOT being added, checking in the documentation it claims that igtbl_addNew will return the row as an object if successful and null if not. Well I am being returned null. So now I am pretty sure that some properties on the Combo are not correct, but I have made sure to add the AllowAddNewDefault and AllowUpdateDefault Params to yes... so anyone have any ideas for me?
Thanks for your help,
I'll have to try again tomorrow to submit the support request, as the link from the Infragistics homepage keeps routing me to an error page
In that case, the best advice I can give is for you to submit a support request, as detailed in my previous post. We'll take a look to see if we can get it running, and if we can, we'll need to compare this to what you're running to see what's different.
Unfortunately I am not able to run the sample code attached, short of typing the sample by hand, which unfortunately I do not have time for. I know that the code I am typing is exactly the same, however I am not sure about the settings of the control itself. I am really at a loss, and without a solution in the very near future I might have to go another way with this.