Print IN_Creditors.SpareString1 field in PO Report  Topic is solved

Support for Crystal Reports within Jiwa.

Print IN_Creditors.SpareString1 field in PO Report

Postby sgupta » Tue Nov 17, 2015 10:53 am

Client needs to print IN_Creditors.SpareString1 field in the PO report. If the SpareString1 field is blank, then PO_Lines.Description needs to be printed, otherwise print SpareString1 field.

But this formula (@Part_Description) is not working correctly. The formula SQL statement is as below:

if {IN_Creditor.SpareString1} <> ''
then
{IN_Creditor.SpareString1}
else
{PO_Lines.Description}

The issue is, in some PO print outs, Part Description prints correctly if SpareString1 field is blank, but in other PO print outs, no Part Description is printed and the field space is left blank. I have tested this report in Jiwa Demo database by adding information under SpareString1 under Supply tab in Inventory Maintenance and I am getting the same result.

I have tried to insert a sub report with the required information or create a view and attach it to the existing tables, but none of these methods have worked.

Any assistance in resolving this issue would be greatly appreciated.
sgupta
I'm new here
I'm new here
 
Posts: 2
Joined: Tue Nov 17, 2015 10:44 am

Re: Print IN_Creditors.SpareString1 field in PO Report  Topic is solved

Postby Scott.Pearce » Tue Nov 17, 2015 11:17 am

You may have to deal with NULLs. Try:

Code: Select all
If ISNULL({IN_Creditor.SpareString1}) Or LEN({IN_Creditor.SpareString1}) = 0 Then
    {PO_Lines.Description}
Else
    {IN_Creditor.SpareString1}
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Print IN_Creditors.SpareString1 field in PO Report

Postby sgupta » Wed Nov 18, 2015 1:25 pm

Hi Scott,
It is working okay now.
Thank you for the assistance.
Shalabh
sgupta
I'm new here
I'm new here
 
Posts: 2
Joined: Tue Nov 17, 2015 10:44 am


Return to Crystal Reports

Who is online

Users browsing this forum: No registered users and 16 guests