Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, June 16, 2024 
 
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!
 Web Forums - SalesLogix Web Client (Pre-7.2)
Forum to discuss using & developing the legacy SalesLogix Web Client (For versions 7.0 and earlier). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Client (Pre-7.2) | New ThreadView:  Search:  
 Author  Thread: Problem navigating between duplicate accounts on Account Detail page
Kent Matthew
Posts: 33
 
Problem navigating between duplicate accounts on Account Detail pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Jul 06 9:48 AM
fiogf49gjkf0d
I'm not sure if this problem is unique to our data, but it's causing me maximum discomfort...! The default group when bringing up the Account List page shows duplicate accounts in some cases. These duplicate accounts have the same account description, but different contact names, create dates, and notes. It's actually only one account in the database, but because of the way it's joined to the contact table, creates two rows in the datagrid.

While this isn't really a problem per se, it causes problems when drilling into the Accounts Detail page. When the hyperlink to jump to the next account is clicked, the "goNext()" JavaScript function determines the next account ID based on the current Account ID. When this account ID is the same as the current account ID as is the case with duplicate accounts, the user can never move past this account on the Account Detail page.

I've examined the "goNext()" function in accinfo.js, but the functions it calls in groupmanager.js (NextInGroup and MoveInLookup) all rely on the next Account ID being different than the current Account ID. I thought I was onto something when I passed the MoveInLookup function a '2' as the value for the intMode parameter instead of a '1', but this function relies on having a value for top.GM.GetCurLookupURL(1), which I don't.

Does anyone have a suggestion for moving two accounts ahead on the Account Detail page? I'm wanting to make the goNext() function a little smarter when the value returned from

top.GM.NextInGroup(top.GM.getCurrentGroupID(1), document.mainform.id.value)

and the value of

document.mainform.id.value

are the same.
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: Problem navigating between duplicate accounts on Account Detail pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Jul 06 10:42 AM
fiogf49gjkf0d
It sounds like the record set you are walking has a join to the contact table which has a 1-to-many relationship with the account table. This is why the account informaiton is repeated.

One option is to remove the contact fields from the record set and the repeated information will go away.

Another option is to write a custom goto next that looks for the next distinct accountid.
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/16/2024 2:24:24 PM