Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 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!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Groups
David Nunnally
Posts: 206
 
GroupsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jul 06 2:21 PM
fiogf49gjkf0d
A request has been brought to my attention that has me stumped. They need a group to display all open opportunities that (for a lack of a better term) are grouped. ex. An opp has 5 products totaling $500.

Account | ProductGroup | Opp description | Item Potential | Opp Potential
xyz | software | ver1 to ver2 upgrade | 100.00 | 500.00
xyz | software | ver1 to ver2 upgrade | 100.00 | 500.00
xyz | hardware | ver1 to ver2 upgrade | 100.00 | 500.00
xyz | hardware | ver1 to ver2 upgrade | 100.00 | 500.00
xyz | cable | ver1 to ver2 upgrade | 100.00 | 500.00

This would display in the group as

Account | ProductGroup | description | Item Potential | Opp Potential
xyz | software | ver1 to ver2 upgrade | 200.00 | 500.00
xyz | hardware | ver1 to ver2 upgrade | 200.00 | 500.00
xyz | cable | ver1 to ver2 upgrade | 100.00 | 500.00


And most importantly the Item Potential taken from the ext price will totaled based on the grouped ProductGroup.

Is this posible with the Groups in the Sales Client?
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: GroupsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jul 06 3:29 PM
fiogf49gjkf0d
I would say no. Groups look at the raw record data so if there is 2 records that correspond to xyz | software | ver 1 to ver2 upgrade then you're going to get 2 entries in the group.

What you're asking for is to combine every record where Account, ProductGroup, and Description match then add up the item potential but leave the opportunity potential. A group doesn't have that flexibility to stop the recordset mid-stream and do this kind of processing. A grid on the other hand can by parsing the entire recordset before any data is displayed then binding to only the combined recordset output you're looking for. You can use footer rows to give totals which is impossible with groups. If "Export to Excel" is your only reasoning for this to be a group you can easily use the same functionality with grids. The Export_Grid_RS_To_Excel VBScript plugin is what you would use.

The only downside to any of this type of work is that it tends to be highly customized and there is no way to have this in a group so that you can make changes on the fly. You can get around that by providing a little flexibility on the front end but it'll probably never be as easy as making a change to a group and re-releasing.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: GroupsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jul 06 3:45 PM
fiogf49gjkf0d
Well you could do it easy enough in a SQL view. It's been a few versions since I tried using a view for a group, so I am not sure if you can do that now or not (worth checking since that is the only way you'd be able to pull this off AFAIK)
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: GroupsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jul 06 3:57 PM
fiogf49gjkf0d
Guys! You disappoint! I was sure you would pull some rabbit out of the hat!
I was sure going in that it was not possible. Just thought I would ask just on the outside chance.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: GroupsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jul 06 4:10 PM
fiogf49gjkf0d
Aw, come on! That's a rabbit if I ever saw one .

Here's your steps to make the magic happen (ar at least to test it out - I haven't tested this out or anything but it should work).

1) Build your SQL view that gathers the data (make sure it has some unique identifier for each row)
2) Build an opportunity group and build a local join to the SQL view (I just tried this in 6.2.3 and it worked)
3) Fire up a kettle for some rabbit stew and put your hat back on

-Ryan
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: GroupsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jul 06 4:18 PM
fiogf49gjkf0d
To clarify a few point so I understand correctly.

Build sql view - as in create a sql view using the administrator sql tool?
Am I correct that this would not be available to the remote users?
If this works do I invite you for some stew Doc?
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: GroupsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jul 06 4:27 PM
fiogf49gjkf0d
Interesting approach. How do you get the view to sync out the the remotes?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: GroupsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jul 06 5:43 PM
fiogf49gjkf0d
IIRC, "create view" statements do sync, however, you will have problems since many views will not parse by the SLX Provider.

Here's how I do it (in a very overly simplified nutshell).

1) Create a table to contain the text for your views and add the text for your view(s) to it.
2) Create a script that runs through that table and executes the statement via a native connection (for remote databases only). Then tie that to the DBOpen event so it runs when SLX is opened and then creates all the views if they are missing in the local database.

I've done it that way many times and works great (also to get stored procs out to remotes)
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: GroupsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jul 06 6:28 PM
fiogf49gjkf0d
DBOpen? Isn't it better to use the Application_Logon global script routine instead? I thought DBOpen was prone to not quite work 100% reliably.

Wouldn't triggers benefit from this method? I thought their problem was they don't synchronize though there may be a bigger issue keeping them from behaving nicely.
[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): 11/22/2024 8:07:49 PM