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!
 External Development Forums - General External Development
Forum to discuss general external development topic (related or not to SalesLogix development). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to General External Development | New ThreadView:  Search:  
 Author  Thread: wich is the best choice
veeranjan
Posts: 19
 
wich is the best choiceYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Dec 06 3:09 AM
fiogf49gjkf0d
Application.MainViews.AddEx("System:Contact Details", SalesLogix.TxMainViewStyle.mvsMDIChild, true, true, ContactID, "")
and Application.BasicFuncations.ShowDetails("Tablename","ContactID")
are giving same result .
so what is the differece between the above functions and which one is the better than other? why?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: wich is the best choiceYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Dec 06 9:04 AM
fiogf49gjkf0d
There are not a lot of differences between the two. They both accomplish the same thing. The reasons why you might use one over another:

1) If you need access to the MainView object after loading then you might want to take the approach of using MainViews.AddEx. This way you get back a reference to the MainView that you can later use. Using ShowDetails is great to just quickly load a MainView if you don't care to have a reference to the MainView after and just want to get it to the MainView and display the right record.

2) If you have more than one MainView based on the Contact table, the ShowDetails method with just grab the first one it finds. Since you cannot specify which mainView you want to load for the contact table it just picks one for you. The method of using MainViews.AddEx you can be explicit in which one you want to open.

Make sense?

-Ryan
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: wich is the best choiceYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Dec 06 2:26 AM
fiogf49gjkf0d
Hi Ryan

I absolutely hate to disagree with you Ryan - but I'm going to! There is a *considerable* benefit of using Application.BasicFuncations.ShowDetails (in fact Application.BasicFuncations.ShowDetailsEx is a better, more flexible, version of same thing). If you just want to edit data, based on a table/key sequence and don't want to do anything fancy then ShowDetailsEx is much much much much (very much) faster than MainViews - as there is no overhead. It pops the view very quickly onto the screen whereas the other has to create the objects, do a load of "stuff" of which I know nothing before finally painting the form on screen. So, if you are after speed and nothing else use ShowDetails - otherwise, if you want full access, access to main view, details and pass back of details from one to the other then use MainViews.

[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 9:45:13 AM