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: Placing condition on Crystal Report
Paul
Posts: 3
 
Placing condition on Crystal ReportYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 May 06 6:45 PM
fiogf49gjkf0d
Does anyone know whether the "ReportAddCondition" function supports custom tables or not?
It seems I can filter the SLX tables but not the custom tables.
I get "Nor owset was returned for this table, query..." error.

Script 1: for opening the report

Application.GlobalInfo.Item("g_InvoiceID") = txtuInvoiceID.Text
application.BasicFunctions.PrintDetail "Coop:Co Op Invoice By Vendor"


Script 2: for "When Open" event of the report

application.BasicFunctions.ReportClearConditions
application.BasicFunctions.ReportAddCondition "S_C_INVOICE:S_C_INVOICEID", "=", "'" & _
Application.GlobalInfo.Item("g_InvoiceID") & "'", "String", ""

I'm running SLX 6.2.0
Please help. Thank you.
[Reply][Quote]
Peter Ormon
Posts: 3
 
Re: Placing condition on Crystal ReportYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 May 06 8:34 AM

buy abortion pill online usa

abortion pill mifepristone buy online
fiogf49gjkf0d
Paul,
If your custom table is not the main table for the report, then you will need to add a join between the main table for the report and your custom table. For instance, if the main table is ACCOUNT:

application.BasicFunctions.ReportAddCondition "ACCOUNT:ACCOUNTID=ACCOUNTID:S_C_INVOICE!S_C_INVOICEID", "=", "'" & _
Application.GlobalInfo.Item("g_InvoiceID") & "'", "String", ""
[Reply][Quote]
Paul
Posts: 3
 
Re: Placing condition on Crystal ReportYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 May 06 10:24 AM
fiogf49gjkf0d
Thanks, Peter...

However, S_C_Invoice is the main table.
I tried using the above code (and variations of it) but it didn't work...

I even created global joins but that didn't help neither.
[Reply][Quote]
Peter Ormon
Posts: 3
 
Re: Placing condition on Crystal ReportYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 May 06 10:31 AM
fiogf49gjkf0d
Paul,
If S_C_Invoice is the main table then you won't need the join. You also should not add the single quotes to your string variable. That gets resolved when you specify the datatype "string".

Peter
[Reply][Quote]
Paul
Posts: 3
 
Re: Placing condition on Crystal ReportYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 May 06 10:51 AM

difference between naltrexone and naloxone

naloxone and naltrexone read
fiogf49gjkf0d
That was a quick response ^^

I found out why it wasn't working...
I was using "PrintDetail" to bring up the report when I should've been using "DoInvoke" to bring up the report...

Thank you very much for your help.
[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 2:30:14 AM