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!
|
|
Error after creating new entity and main detail page
Posted: 18 Aug 10 9:33 AM
|
Hi all, we have created a new entity called Target and an associated main detail page TargetDetails which contains a datagrid.
When we click on the Target navigation icon we created on the sales navbar the page opens and the datagrid populates with our code on page_load but immediately after this we get the following error:
"Microsoft jscript runtime error: Objects doesnt support this property or method."
When we debug this error points to the following point in code in Target.aspx[dynamic](read-only):
$(document).ready(function() {
if (typeof Sage.SalesLogix.Controls.ListPanel !== "undefined") { var panel = Sage.SalesLogix.Controls.ListPanel.find("MainList"); panel.on("refresh", function() { Sage.FilterUpdateCounts(); }); ---->ERROR POINTS TO THIS LINE svc.addListener(Sage.GroupManagerService.CURRENT_GROUP_CHANGED, Sage.PopulateFilterList); } Sage.PopulateFilterList(); }
Any ideas why this is happening? |
|
|
| |
|
Re: Error after creating new entity and main detail page
Posted: 18 Aug 10 9:47 AM
|
Hi Nick, thanks for your reply. When we built the site first time and viewed our new changes we noticed that clicking on our new navbar item opened the groupviewer which we didnt want. We wanted to replicate the sort of functionality you get on clicking the Reports navabar icon i.e it just opens up your form in the mian detail view.
So we went back into TargetDetails page and removed the LiveGroupViewer (sorry if its wrong name but youll know what i mean) from the smartparts list and made sure the settings of our navabr icon matched those of the reports icon. This meant that our main detail form opened up as we wanted but then the error came. Could this have caused a problem?
We havnt put any filters on the entity. Unless this is something done by default?
P.S first time creating a new entity etc so sorry if im slow catching on!! |
|
|
|
Re: Error after creating new entity and main detail page
Posted: 18 Aug 10 10:08 AM
|
I think you have to remove the GroupViewer module as well as removing the LiveGroupViewer smartpart. Check the modules tab on your new page...then save the page and redeploy. If you look at Reports page and on the modules tab it has no modules specified - you need the other one just not GroupViewer/...
Cheers, Nick |
|
|
|
Re: Error after creating new entity and main detail page
Posted: 19 Aug 10 3:20 AM
|
Thanks Nick, also removed the GroupViewer module buit this did not get rid of the error. Im thinking about going back and making the entity from scratch with these things now in mind. Are there any other settings youd recommend watching out for when re-creating it? |
|
|
|