Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, August 27, 2025 
 
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: Missing lookup results
Leonid
Posts: 32
 
Missing lookup resultsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Feb 09 12:22 AM
Greetings, friends.
I have a terrible bug and do not know what to do with it. The the thing is that i perfrom a search in custom mainview and have data in list view in Lookup Results temporary group. Then I Export this data using Crystal Reports and wshell and when i have the report on the needed data - records from lookup results suddenly disappear. I press F5 to refresh and see the data again, after 18-20 seconds records disappear again ... and so on and so on..
Do someone has a clue what to do?
[Reply][Quote]
Carla Tillman
Posts: 290
 
Re: Missing lookup resultsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Feb 09 9:36 AM
That is odd. What version & OS and is it Lan, Web or both? Is there any code that you think would be helpful for us (the SLXDeveloper Community) to view?

Carla
[Reply][Quote]
Leonid
Posts: 32
 
Re: Missing lookup resultsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Feb 09 12:39 AM
slx 7.2 lan
Frist of all I use code to get id's from group:

Quote:

if Application.MainViews.ActiveView.GroupID = "" then
asql = Application.MainViews.ActiveView.CurrentGroupSQL
set obja = Application.GetNewConnection.Execute(asql)
if obja.RecordCount > 0 then
objA.Movefirst
iCount = obja.RecordCount

for i = 0 to iCount -1 '???? ?? ??????? ? ??????
if i = 0 then
FullIDs = FullIDs & "'" & objA.Fields("spk_propertyid").Value ' ????????? ??????? ??
else
FullIDs = FullIDs & "','" & objA.Fields("spk_propertyid").Value ' ????????? ???? ????? ??????????
end if
objA.MoveNext
Next
set obja = nothing


Then I'am exporting records into report.

Quote:

if tt = "word" then
strReportFile1 = Application.BasicFunctions.GetPersonalDataPath & "\"& Application.BasicFunctions.GetIDFor("SPK_MANAGE") &".doc"
else
strReportFile1 = Application.BasicFunctions.GetPersonalDataPath & "\"& Application.BasicFunctions.GetIDFor("SPK_MANAGE") &".pdf"
end if
strReportFile2 = """" & strReportFile1 & """"
set objRDC = Application.BasicFunctions.GetCrystalReport("Personal:???? Complex Rus")
objRDC.RecordSelectionFormula = "{kf_off_cmp_brief.spk_propertyid} in [" & ComplexIDs & "]"
objRDC.ExportOptions.DestinationType = 1 'File
objRDC.ExportOptions.DiskFileName = strReportFile1
if tt = "word" then
objRDC.ExportOptions.FormatType =14'word
else
objRDC.ExportOptions.FormatType = 31 'PDF
end if
objRDC.Export False
set WshShell = CreateObject ("WScript.Shell") 'DNL
WshShell.Run strReportFile2, 1 'DNL
' Application.MainViews.ActiveView.Refresh
set objRDC = nothing

[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 © 2025 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): 8/27/2025 10:23:45 PM