Posted 1/12/2007 3:08:40 PM | | | | I have a strange problem with the lookup control, when I use it in testing (VS2005, right click,"view in browser") everything works well. 
But when I have added it to CRM, using a link/entry in the site map that points to the website address: ("http://mycrmsvr/c360sdk/lu.aspx). The lookup appears, and I can select entites etc, however the entity does not appear in the lookup control, as you can see from the graphic below. 
Additionally, the code that executes when the field changes does not execute! I have tried the three lookups sample supplied with the SDK, same problem! Shows the entry (icon & "description") when not accessed via CRM, but it does not when accessed from CRM! This is the case with core entities and custom entities. Any Ideas. |
| Posted 1/14/2007 4:58:34 PM | | | This may be simply due to cross-site restrictions in your browser. Have you tried to specify the link without the http://mycrmserver?
|
| Posted 1/15/2007 10:04:58 AM | | | | Sorry I mislead you slightly, I did not use myCRMsrv, but localhost instead, as in "localhost:portnumber/c360sdk/xxxxx.aspx", this does not work. The Grids all appear to work as expected, double click and the entity edit form opens, I can make changes etc. I have not "published" this site yet, so surely I must use the Url as "localhost:portnumber/x/y.aspx". I also tried with "//localhost:portnumber/x/y.aspx", this did not work. |
| Posted 1/15/2007 10:42:14 AM | | | In that case, review you browser security settings: there is a setting where you can allow or disallow cross-site scripting. In your case, you want to enable it because your CRM site is in one "domain" (for example: http://mycrmserver) while your lookup control runs in a different "doamin" (for example: http://mydevmachine:5555/blablabl.aspx).
|
| Posted 1/16/2007 3:07:05 AM | | | | Jeremie, The testing of this solution has been on a virtual machine, with the following settings: SBS2003 standard, VS2005, CRM SBE I log in as myself on the machine, using SBS:5555 for CRM and the localhost:4925 for the VS2005/C360DSK website. I have tried every setting in IE to "enable" the function I want, both websites are trusted in the same zone (intranet), with medium security, "auto-login" etc. I seem to remember that IE blocks "cross-site" by default and have trawled the internet for settings to change this, without much luck I must add. I am personally at a loss on this, I checked the personal firewall on the SBS, I haven't tested it with ISA2004 (not installed on this VM), but cannot see any restrictions that will affect it. Any further ideas? Am I overlooking a setting, I have enabled every option as far as I can see. Cheers in advance Steve |
| Posted 1/16/2007 3:32:40 AM | | | | Jeremie, Maybe I should add that the four buttons on the grid call functions on the aspx page, such as : grid1.MenuItems.Add(ControlFactory.CreateMenuItem("Add jobs to Group", "imgs/ico_16_1039_associated.gif", "", "showLookupObjects()")); grid1.MenuItems.Add(ControlFactory.CreateMenuItem("Remove from Group", "imgs/ico_16_1039_remove.gif", "", "removeJobs()")); //ico_18_4003.gif
These work as expected, when selected. The only functionality that doesn't is populating of the field with the lookup value.
|
| Posted 1/16/2007 3:50:23 AM | | | | I have now tested the client side code for the change event on the lookup, but adding the function to an additional button on the grid, this calls the function and the alerts display null values as expected, even after selecting a value from the lookup dialog. As stated before the only functionality missing is the changing of the value in the forms lookup field. I have had a quick scan of the forum, and the SDK training/reference to see if there are some client side methods to "inject" a lookup value for testing, but cannot seem to locate one. Any ideas what I can try next, I am thinking of changing the look/feel by using two grids, but feel this may confuse the end user. Steve |
| |
|