2005 IR Help Posted September 2, 2006 Share Posted September 2, 2006 By: propsystem - propsystem Display different value using same field and 2005-08-16 20:34 i want to display and print different value in 1 row. Now they display same value when i copy same field By: andersons - andersons RE: Display different value using same field and 2005-08-17 06:26 You could try using the print horizontal option. I don't know if that will help at all, but it's a possible solution. Susan Link to comment Share on other sites More sharing options...
megotronx Posted June 18, 2007 Share Posted June 18, 2007 have you solved this problem? I have the same... Link to comment Share on other sites More sharing options...
megotronx Posted June 18, 2007 Share Posted June 18, 2007 have you solved this problem? I have the same... Link to comment Share on other sites More sharing options...
redwine Posted June 19, 2007 Share Posted June 19, 2007 can't quite understand your requirements. could you explain your requirements in more detail? all i can tell you at this point is that you may need to use a conditional statement to determine which values you want. however, as far as i know, you can't use a single text element to display values of different types. if you want to display values of different types, you will need to position text elements that will display your values one on top of the other and use the print when expression condition to control when a certain text element containing a value of a particular type will be displayed. edwin Link to comment Share on other sites More sharing options...
megotronx Posted June 20, 2007 Share Posted June 20, 2007 My own problem is:I have the table TESTNO ANALYS VALUE0001 A 200001 B 100001 C 50002 A 170002 B 150002 C 20 and in report i need this:TESTNO A B C0001 20 10 50002 17 15 20 How to put ANALYSES in header and VALUES in detail section Link to comment Share on other sites More sharing options...
svenn Posted June 20, 2007 Share Posted June 20, 2007 megotronx you could create a report with a group and then set all the Band Heights to 0 except for the Group Header and detail section. The SQL in the main report would create your header area. You could then put a subreport in you detail section and use that to create you Value section. Link to comment Share on other sites More sharing options...
redwine Posted June 21, 2007 Share Posted June 21, 2007 if i understand correctly, i think that what you actually need to do is to ... construct the right query that will ... create a new table that will ... have columns representing the unique values from your ANAYSIS column which is in the table that you are currently getting data from. in short - reorginize data from your table. if this is what you want, i'm thinking that you may need to use subqueries (nested select statements) in your report query... that is if your data is being taken directly from a database using a report query. not the easiest thing to do (at least for me) but it's worth understanding how it works and learning how to do it. i haven't done this yet but i've seen this kind of sql query before... this means that your challenge has a solution. from what i remember, the query (similar to the one that you will need in your report template) produced several views or tables (possibly temporary) created from existing tables in some database. it would be great if someone who has more experience in creating complex sql queries would be kind enough to give us a walkthrough on how to go about this. at any rate, see if you could find out more about this... subqueries and all. :) edwin Link to comment Share on other sites More sharing options...
jmurray Posted June 21, 2007 Share Posted June 21, 2007 Looks to me like a crosstab would provide a suitable solution... Link to comment Share on other sites More sharing options...
megotronx Posted June 22, 2007 Share Posted June 22, 2007 hey.thank you for helping.I solved the layout problem with crosstabs, but still have a problems with data in it.Instead 3 records i see 3*8=24records.it may be in fact that i have 8 Analys and 3 testno in database.But need to see just that 3 records.My sql in subdataset and in main report are the same: SELECT TESTIN.TESTNO, TESTIN.SERIALNO, TESTIN.ANALYS, TESTIN.ANALYSEX, TESTIN.MEANVALFROM TESTIN where testin.testtype='DOCUMENTS' and testin.analys='SAL' or testin.analys='PAV' or testin.analys='BLANK' or testin.analys='ID' or testin.analys='KLANR' or testin.analys='KLATIP' or testin.analys='KLAAPR' or testin.analys='QUANT' Help me to solve this who have more experience with crosstabs Thank you in advance Link to comment Share on other sites More sharing options...
jmurray Posted June 27, 2007 Share Posted June 27, 2007 There is an error in your SQL syntax - you need parentheses around your composite OR SELECT TESTIN.TESTNO, TESTIN.SERIALNO, TESTIN.ANALYS, TESTIN.ANALYSEX, TESTIN.MEANVALFROM TESTIN where testin.testtype='DOCUMENTS' and (testin.analys='SAL' or testin.analys='PAV' or testin.analys='BLANK' or testin.analys='ID' or testin.analys='KLANR' or testin.analys='KLATIP' or testin.analys='KLAAPR' or testin.analys='QUANT') This may fix your problem. Note: you may be able to use IN instead of the composite OR SELECT TESTIN.TESTNO, TESTIN.SERIALNO, TESTIN.ANALYS, TESTIN.ANALYSEX, TESTIN.MEANVALFROM TESTIN where testin.testtype='DOCUMENTS' and testin.analys in ('SAL', 'PAV', 'BLANK', 'ID', 'KLANR', 'KLATIP', 'KLAAPR', 'QUANT') Link to comment Share on other sites More sharing options...
megotronx Posted June 28, 2007 Share Posted June 28, 2007 no,this doesn`t solved my problem.with parentheses and with IN syntax i have "this document has no pages" erroranyway i solved this problemi put the crosstab in the detail section and need in summary :dry:Post edited by: megotronx, at: 2007/06/28 13:47 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now