11/26/2024 8:21:51 PM
|
|
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 writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
Problem linking to a customized Main View from a datagrid...
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... |
|
|
| |
|
Re: Problem linking to a customized Main View from a datagrid...
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 |
|
|
|
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!
|
|
|
|
|
|
|
|