11/22/2024 8:55:38 AM
|
|
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!
Forum to discuss general external development topic (related or not to SalesLogix development). View the code of conduct for posting guidelines.
|
|
|
|
wich is the best choice
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?
|
|
|
|
Re: wich is the best choice
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 |
|
|
|
Re: wich is the best choice
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.
|
|
|
|
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!
|
|
|
|
|
|
|
|