connect two tables without a proper foreignkey in crystal reports 2013 -


i have 2 tables in report.

one has string field called product group stores , array of values:

table 0:

product_group 12,23,01,44 

table 1:

product_code description 12           "sandles" 23           "high heels" 01           "runners" 

the table holds description has record each product group code , can run when field value, ie dept = "shoes".

my question how link tables if 1 array , 1 string?

any appreciated.

the best solution redesign tables bit:

category:

id  description 1   "runners" 12  "sandles" 23  "high heels" 

product:

id  name 1   "pink sandles" 2   "air runners" 

product category:

productid categoryid 1         12 2         1 

this allow join tables want.

otherwise, you'll have this:

  • use subreport create associated array (two arrays: 1 ids; 1 descriptions); pass these arrays main report via shared variable
  • create formula parse comma-delimited string, substitute value in description array, using position of id stored in id array.

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -