Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 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 - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Problem linking to a customized Main View from a datagrid...
Martin Navarro
Posts: 18
 
Problem linking to a customized Main View from a datagrid...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Oct 06 2:18 AM
fiogf49gjkf0d
I made a Custom Main view to hold work orders and a Custom Lookup form with a datagrid... The functionality is supposed to be the same as the Account's "Ticket Detail"... (when doublecliking on a particluar Ticket Record, the "System:Ticket Details" gets displayed). My script does not take me to the intended Main view.... Fallowing is the script I am using:

If dgTickets.Recordset.RecordCount > MaxCount Then
Application.MainViews.AddEx "System:QSI_MVWO", 1, blnExisting, 1, strCurrentID, "" 'DNL
Else
For i = 0 to dgTickets.Recordset.RecordCount - 1
strIDList = strIDList & dgTickets.Recordset.Fields("WORKORDERID").Value & "," 'DNL
dgTickets.Recordset.MoveNext
Next
If Len(strIDList) > 0 Then
strIDList = Left(strIDList, Len(StrIDList) - 1)
End If

'We're passing an invalid RecordID so to avoid multiple refreshes to the mainview.
Application.MainViews.AddEx "System:QSI_MVWO", 1, blnExisting, 1, "Invalid", "" 'DNL
Application.MainViews.ActiveView.ShowIDsAsLookupResult strIDList, strCurrentID


Thanks in advanced for any help you can give me...
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Problem linking to a customized Main View from a datagrid...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Oct 06 2:23 PM
fiogf49gjkf0d
If you want to "jump" to the (MainView) based record:
Application.MainViews.GetViewForRecord RecordPKid, BaseTableNameOfTheMainView

--
rjl
[Reply][Quote]
Martin Navarro
Posts: 18
 
Re: Problem linking to a customized Main View from a datagrid...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Oct 06 4:34 PM
fiogf49gjkf0d
Thanks,
Thogh Application.MainViews.ActiveView.ShowIDsAsLookupResult strIDList, strCurrentID keeps the list for the grid and creates a temp group...

I found that it works fine all the way to the point where I close the Modaless form.... If I close the form by clicking the Red X, there is no problem....

... So, now I am looking for a way to simiulate the clicking of the Red X through script...


Thanks again
[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/26/2024 6:47:03 PM