Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: link on partial match Post Reply Post New Topic
Author Message
carstowal
Groupie
Groupie


Joined: 31 Jul 2008
Online Status: Offline
Posts: 80
Quote carstowal Replybullet Topic: link on partial match
    Posted: 29 May 2012 at 10:29am
when the shipper (packlist) is created an invoice ID is applied by the system
SHIPPER.INVOICE_ID

an example might be  SHIPPER.INVOICE_ID 164331 on SHIPPER.PACKLIST_ID PK250999

additionally  users are allowed on the receivables side to manually create invoices without having created a shipper.  this is how we create credit memos
our users will take the an Existing Invoice_ID to which a credit memo is related to and add cm to the end
manually creating a new Receivables.Invoice_ID of 164331cm in the system

so both 164331 & 164331cm exist on the Receivables side, however the cm is not linked in any way to the Shipper db

Is there a way to link SHIPPER.INVOICE_ID and RECEIVABLE.INVOICE_ID based only on the first 6 characters so that RECEIVABLE.INVOICE_ID 164331 & 164331cm both link back to SHIPPER.INVOICE_ID 164331
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 29 May 2012 at 12:01pm
Do you want to group, filter, display? Using a function where it returns the left six characters is easy to set up ( LefT({SHIPPER.INVOICE_ID},6) )
IP IP Logged
carstowal
Groupie
Groupie


Joined: 31 Jul 2008
Online Status: Offline
Posts: 80
Quote carstowal Replybullet Posted: 30 May 2012 at 3:10am
I want to LINK the fields in the table based on the left 6 characters
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 May 2012 at 4:17am
use a command object to get the data set and create a field with the left 6 characters which can be used to join
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.017 seconds.