ORM Relationships - "Repeated column problem"

Hi there
I'm having a problem with relationships in ORM. I have set up one that is working but another is not.
I am getting the error;
Repeated column in mapping for entity: company column: company_id (should be mapped with insert="false" update="false")
I have 3 components; company, country and city.
<!--- ORM companies --->
<cfcomponent persistent="true" table="companies">
<cfproperty name="company_id" fieldtype="id" generator="native">
<cfproperty name="company_name">
<cfproperty name="address1">
<cfproperty name="address2">
<cfproperty name="address3">
<cfproperty name="city_id">
<cfproperty name="postcode">
<cfproperty name="web">
<cfproperty name="telephone">
<cfproperty name="fax">
<cfproperty name="company_description">
<cfproperty name="date_added">
<cfproperty name="added_by">
<cfproperty name="date_last_updated">
<cfproperty name="last_updated_by">
<!--- Create Relationship to city.cfc :: Not working?????? --->
<cfproperty name="City" fieldtype="one-to-one" cfc="city" fkcolumn="company_id" inverse="true">
</cfcomponent>
<!--- ORM country component --->
<cfcomponent persistent="true" table="countries">
<cfproperty name="country_id" fieldtype="id" generator="native">
<cfproperty name="country_name">
<cfproperty name="currency_id">
<cfproperty name="flag">
<!--- Create Relationship to city :: This works fine --->
<cfproperty name="Cities" fieldtype="one-to-many" cfc="city" fkcolumn="country_id" inverse="true">
</cfcomponent>
<!--- ORM City --->
<cfcomponent persistent="true" table="cities">
<cfproperty name="city_id" fieldtype="id" generator="native">
<cfproperty name="country_id">
<cfproperty name="city_name">
<!--- Create "many-to-one" Relationship back to country :: Also Doesn't work for some reason?? --->
<cfproperty name="Country" fieldtype="many-to-one" cfc="country" fkcolumn="country_id">
</cfcomponent>
This works fine;
<cfset cnt = EntityLoad("country")>
<cfdump var="#cnt#">
I can see my cities when I dump out the countries
Can someone tell me why my other relationships in particular the first one are failing??
Thanks folks
Ian.

theraptor wrote:
I probably didn't explain it correctly. I am trying to populate these tables with data about financial instruments.
Table 2 and 3 share a primary key (INSTRUMENT). The primary key is generated in table 2, and the same value has to be later inserted into table 3. Sorry, I'm not following this at all. I don't think two tables should "share" a primary key. Both should have their own. Perhaps Table 3 would have a foreign key relationship with Table 2. OR the two tables should be one. But this notion of sharing doesn't sound right to me, and apparently Hibernate agrees. I think you have a bad design.
Table 2 has a one to many relation with table 3. Then they can't share a primary key. It's 1:m, which you can easily model with Hibernate.
(By many I mean it could be 0 as well, since hibernate does not provide a (one to 'maybe' one 'maybe zero) relation.Fine. Then it's a 1:m relationship. You've been thinking about it incorrect.
Table 3 has an additional column PARENT_INSTRUMENT which is a foreign key to the the primary key of table 2.No. Wrong.
Yes Instrument is financial in nature. However, I am not trying to model what you have spoken about above.Yes, I get it. Listen to Hibernate - your original idea is quite incorrect. Table 2 is 1:m with Table 3. Model it that way, and forget about this incorrect notion of "sharing a primary key". Give Table 3 its own auto generated key.
%

Similar Messages

  • Problem with my tabular form report repeating columns

    hello,
    i have a problem like, I have created a tabular form report and I have just copied the page to an another new page in the same application.
    once i copied the page to a new page, and when i tried to run the report the columns are repeating. I ahve seen the report attributes, in the new page they were repeating. I am not able to understand what might be the problem.
    can anyone plz sort it out this problem.
    thanks.

    hi,
    Copy page will never repeat columns anywhere in page ... this s just a suggestion..
    delete the new page and try once again the copy of Tabular form page. if still come problem then we can solve it by some other way !
    Thanks
    Mark Wyatt

  • Repeated column in mapping error - Hibernate mapping

    Hi, I am relatively new to using Hibernate. I have two tables which I have tried to map unsuccesfully.
    Table 1:
    Primary Key(Instrument) -> Generated using function.
    Table 2:
    Primary Key(Instrument) -> Referenced from primary key of table 1
    Table 3:
    Primary Key(Instrument) -> Referenced from primary key of table 2
    Additional Column(Parent_Instrument) -> Referenced from the primary key of table 2
    So, two columns in Table 3 have to be mapped to the primary key of table 2.
    I have tried mapping them but am getting the following error:
    Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: com.db.csb.model.securitycreation.entities.tradegate.WiBonds column: INSTRUMENT (should be mapped with insert="false" update="false")
         at org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentClass.java:652)
         at org.hibernate.mapping.PersistentClass.checkPropertyColumnDuplication(PersistentClass.java:674)
         at org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentClass.java:696)
         at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:450)
         at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
         at org.hibernate.cfg.Configuration.validate(Configuration.java:1102)
         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)
         at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
         at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:807)
         at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:740)
         at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
         ... 32 moreThe following is my code:
    TABLE 2
    @Entity
    @Table(name="BOND_SPEC")
    @Id
         @GenericGenerator
         @GeneratedValue
         @Column(name="INSTRUMENT", nullable=false,insertable=false,updatable=false)
         public long getInstrument() {
              return instrument;
         public void setInstrument(long instrument) {
              this.instrument = instrument;
    @OneToMany
         @JoinColumn(name = "INSTRUMENT", nullable=false, insertable=false)
         public Set<WiBonds> getWiBonds(){
              return Wi_Bonds;
         public void setWiBonds(Set<WiBonds> Wi_Bonds){
              this.Wi_Bonds = Wi_Bonds;
    TABLE 3
    @Entity
    @Table(name="WI_BONDS")
         @Id
         @GenericGenerator(name = "fk_bondspec", strategy = "foreign", parameters = { @Parameter(name = "property", value = "BondSpec") })
         @GeneratedValue(generator = "fk_bondspec")
         @Column(name="INSTRUMENT", nullable=false,insertable=false,updatable=false)     
         public long getInstrument() {
              return instrument;
         public void setInstrument(long instrument) {
              this.instrument = instrument;
         @ManyToOne(targetEntity = BondSpec.class)
         @JoinColumn(name = "INSTRUMENT", nullable = false, insertable=false, updatable=false)
         public BondSpec getBondSpec() {
         public void setbondSpec(BondSpec bondspec) {
         @OneToOne(targetEntity = BondSpec.class)
         @JoinColumn(name = "PARENT_INSTRUMENT", nullable = false, insertable = false, updatable = false, unique=true)
         public long getParent_instrument() {
         public void setParent_instrument(long parent_instrument) {
         }What am I doing wrong?

    theraptor wrote:
    I probably didn't explain it correctly. I am trying to populate these tables with data about financial instruments.
    Table 2 and 3 share a primary key (INSTRUMENT). The primary key is generated in table 2, and the same value has to be later inserted into table 3. Sorry, I'm not following this at all. I don't think two tables should "share" a primary key. Both should have their own. Perhaps Table 3 would have a foreign key relationship with Table 2. OR the two tables should be one. But this notion of sharing doesn't sound right to me, and apparently Hibernate agrees. I think you have a bad design.
    Table 2 has a one to many relation with table 3. Then they can't share a primary key. It's 1:m, which you can easily model with Hibernate.
    (By many I mean it could be 0 as well, since hibernate does not provide a (one to 'maybe' one 'maybe zero) relation.Fine. Then it's a 1:m relationship. You've been thinking about it incorrect.
    Table 3 has an additional column PARENT_INSTRUMENT which is a foreign key to the the primary key of table 2.No. Wrong.
    Yes Instrument is financial in nature. However, I am not trying to model what you have spoken about above.Yes, I get it. Listen to Hibernate - your original idea is quite incorrect. Table 2 is 1:m with Table 3. Model it that way, and forget about this incorrect notion of "sharing a primary key". Give Table 3 its own auto generated key.
    %

  • Repeated column headers in Crosstab report when exported to Excel

    I have created a Cross tab report and wanted to export it in the format "Microsoft Excel(97-2003) (*.xls)", as the formatting of the report is lost in Excel  Data Only format. But when I export the data the column headers are repeated in the Excel. Is there any solution to avoid repeated column headers without losing the formatting of layout?

    I suppose one answer we should have before anything else;
    Does the export work from the CR designer?
    You may also want to see the following:
    How to WYSIWYG SAP Crystal Reports Export to XLS
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to have repeating columns for SharePoint list

    Hi
    I am working on SharePoint 2013 environment and trying to customize a SharePoint list using infopath form.
    Have a list called "Future Actions" and users need to submit their actions. An user can submit
    n number of Planned actions and every user will submit different number of actions.
    Columns:
    1. Title                                   TEXT
    2. Month                                 Choice
    3. Planned Actions                   TEXT
    I want to capture user's actions in the same form, such that he would have option to expand the
    Planned actions column to add n number of Actions.
    Simply, For one Month, user should be able to define all actions in one form. and the number of planned actions will vary from user to user.
    Pls suggest

    Hi,
    The OOTB can't provide a feature to meet your requirement.
    Here is a similar thread for your reference:
    http://social.msdn.microsoft.com/Forums/en-US/e475cc7f-435f-4e6e-b579-c74311d67b4e/creating-repeating-columns-in-sharepoint-2010-list
    In SharePoint 2013, we can also customize a special field type using client-side rendering.
    http://msdn.microsoft.com/en-us/library/office/jj220061(v=office.15).aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • I installed Adobe CS6 Design & Web Premium on my Mac Book Pro a few years ago but have repeatedly encountered problems with the programs freezing or not opening properly. It's a Student and Teacher Licensing version so an academic ID is required but I am

    I installed Adobe CS6 Design & Web Premium on my Mac Book Pro a few years ago but have repeatedly encountered problems with the programs freezing or not opening properly. It's a Student and Teacher Licensing version so an academic ID is required but I am no longer a student--can I still reinstall it since my academic ID may no longer be valid?

    Erin Elzo as long as the serial number has been registered under your account at http://www.adobe.com/ then you should be able to continue to utilize the software.  You can find details on how to locate your registered serial number at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.

  • AP 1300 in repeater mode problem

    I have a 1300 workin as root and second 1300 that works fine as non-root, but cannot work as repeater(association problem). Also some of the commands in 1300 guide are missing from real 1300 IOS.The IOS is 12.4 What could be the problem?
    Thank you

    I stand corrected - but if you want to use the AP as a repeater - you need to set an infrastrcuture SSID. The AP needs to know which SSID to associate on when there is more that one SSID

  • Column Problems Between Explorer and Firefox

    First, I apologize if this is something that has been posted.
    The search function doesn't seem to be working, so I've been unable
    to check for previous posts on-point.
    I am having trouble with the columns in a table layout on a
    site I am designing. It's located at
    www.staggsmarketing.com/fleishell.html. The columns render properly
    in firefox, but not at all so in Explorer. If you view the Explorer
    version, the problem is quite obvious, so I won't explain further.
    If anyone can take a look at the site and suggest what I've
    done wrong, I would appreciate it. It was designed in CS3, and I've
    run all the standard dreamweaver tests (from the results tab) to no
    avail.
    Thanks in advance!

    > As to Walt's apparent suggestion that it's a total
    mistake to rely on DW
    > without extensive HTML/CSS knowledge, I hope nobody else
    is scared away
    > from DW
    > after reading it.
    Walt's suggestion was right on target. Using DW with no
    knowledge of HTML
    will always produce sub-optimal results.
    > I've designed maybe 4 to 5 dozen sites with DW and only
    a
    > scintilla of coding knowledge compared to many of the
    folks on these
    > forums,
    > and I really have only had to deal with three or four of
    Walt's blind
    > alleys
    > (including this one).
    You are in blind alleys you do not yet know about. This
    philosophy is
    short-changing you AND your paying customers.
    > Web design is a hobby for me
    And your output will always reflect this.
    > I recommend it to anyone with an
    > "HTML and CSS for Dummies" level of knowledge.
    I don't. It will be a continual frustration for them,
    especially if they
    want to rise above the 'hobby' level.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "testaggs" <[email protected]> wrote in
    message
    news:[email protected]...
    > Alan, thanks -- I took a look at the path you were
    talking about, and it's
    > a
    > leftover from something before I put the site online. I
    am able to remove
    > it
    > without issue. Still doesn't fix the column problem; I
    may take Walt's
    > advice
    > and start over on the columns if I don't get any
    more-helpful posts on the
    > problem, but I'll wait a few days to see what others
    might suggest. The
    > few
    > times I've run into real problems before in DW, it's
    always been a simple
    > fix
    > that was just outside my skillset. I'm hoping someone
    sees that here and
    > says,
    > "You idiot, it's the ???? tag."
    >
    > As to Walt's apparent suggestion that it's a total
    mistake to rely on DW
    > without extensive HTML/CSS knowledge, I hope nobody else
    is scared away
    > from DW
    > after reading it. I've designed maybe 4 to 5 dozen sites
    with DW and only
    > a
    > scintilla of coding knowledge compared to many of the
    folks on these
    > forums,
    > and I really have only had to deal with three or four of
    Walt's blind
    > alleys
    > (including this one). I agree it's a great tool for
    those with good
    > coding
    > knowledge; but even with only an introductory level of
    coding knowledge,
    > I've
    > found it to be a fantastic program. Would I be better if
    I had that
    > knowledge?
    > Yes, loads. Would I be able to design anything with my
    current coding
    > skills
    > but WITHOUT DW? Not even a one-line blank page (that's
    an exaggeration,
    > but
    > you see the point). Web design is a hobby for me, and DW
    has been a
    > great
    > vehicle to help me make it a useful one. I recommend it
    to anyone with an
    > "HTML and CSS for Dummies" level of knowledge.
    >

  • Cross tab with multiple repeating columns

    Hi All,
    I'm developing a cross tab report.. my sample xml file is
    <?xml version="1.0" encoding="UTF-8"?>
    <ROWSET>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Back Office</DD_CODE>
    <NOTE_DATE>12</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Back Office</DD_CODE>
    <NOTE_DATE>11</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Back Office</DD_CODE>
    <NOTE_DATE>14</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Back Office</DD_CODE>
    <NOTE_DATE>112</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Monitoring</DD_CODE>
    <NOTE_DATE>121</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Monitoring</DD_CODE>
    <NOTE_DATE>122</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Monitoring</DD_CODE>
    <NOTE_DATE>131</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Monitoring</DD_CODE>
    <NOTE_DATE>111</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Back Office</DD_CODE>
    <NOTE_DATE>11</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Back Office</DD_CODE>
    <NOTE_DATE>143</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Back Office</DD_CODE>
    <NOTE_DATE>122</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Back Office</DD_CODE>
    <NOTE_DATE>111</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Monitoring</DD_CODE>
    <NOTE_DATE>1432</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Monitoring</DD_CODE>
    <NOTE_DATE>112</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Monitoring</DD_CODE>
    <NOTE_DATE>121</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Monitoring</DD_CODE>
    <NOTE_DATE>123</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Visit - WDE Office</DD_CODE>
    <NOTE_DATE>123</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Visit - WDE Office</DD_CODE>
    <NOTE_DATE>1321</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Visit - WDE Office</DD_CODE>
    <NOTE_DATE>1312</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Visit - WDE Office</DD_CODE>
    <NOTE_DATE>211</NOTE_DATE>
    </ROW>
    </ROWSET>
    If I use the cross tab wizard ...I'm get the following output..
    -------------Call - Back Office-------Call - Monitoring-------Site Visit - Back Office-------Site Visit -Monitoring-----Visit - WDE Office
    product              12                      121                       11                                    1432                   123
    but I'm looking for output like...
    -------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
    product-------12 11 14 112-----------121 122 131 111----------11 143 122 111------------------1432 112 121 123 ---------123 1321 1312 211The numbers under each column are dynamic ..I might be getting 2,3,4..(In this case all are four)...I looked at the below link but it had static 2 repeating columns..but in my case the repeating columns are unknown...
    http://winrichman.blogspot.com/2008/09/crosstab-with-multiple-repeating.html
    Is is possible to build a cross tab like that..?
    Thanks in Advance..

    Hi..
    Thanks alot for your time..
    can I e-mail you my actual xml file..? becuase if there are multiple rows(multiple <?NAME?>)...the column headers(DD_CODE) are repeating for every row(<?NAME?>)..also is it possible to get each NOTE_DATE in a cell(here all the NOTE_DATE are displaying in a table)....
    present output...
    -------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
    product-------12 11 14 112-----------121 122 131 111----------11 143 122 111------------------1432 112 121 123 ---------123 1321 1312 211
    -------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
    product1-------11 15 13 12-----------00 111 132 444----------12 434 123 171------------------1832 162 221 124 ---------143 1231 1311 241
    looking for output like..
    -------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
    product-------12 11 14 112-----------121 122 131 111----------11 143 122 111------------------1432 112 121 123 ---------123 1321 1312 211
    product1-------11 15 13 12-----------00 111 132 444----------12 434 123 171------------------1832 162 221 124 ---------143 1231 1311 241Thanks in Advance...

  • Repeated columns in export to excel

    Dear all,
    I ve gone thr. many forums for this problem bt cud nt find the rite soln.
    I m trying to export the data from web dynpro table to excel sheet but when the numeric column is transported then that column gets repeated with alias '#agg'.
    Please advice me wid some solution.
    Thank u,
    anuja

    Hi,
    in your code you use "exportCollectionButton" on the commandImageLink and "exportLink" in the code, so this sample doesn't make sense. Assuming its a typo in the code and in fact the notToShow() method calls
    ActionEvent ae = new ActionEvent(exportCollectionButton);
    ae.queue();
    then the cricular reference is not a surpise because you queue an action on the command link itself, which then again queues the same action etc.
    Frank

  • Database Adapter: Insert, relationships, sequences and problems of course

    Hello Everyone!!
    I'm trying to do an insert in an Oracle Express Database with a database adapter. I'm trying to do the insert in two tables: SOLICITUDES with a column called NUMSOLICITUD that is also the primary key of the table and it's populated from its own sequence and the other table whose name is DOCJUST with a field NUMSOL. SOLICITUDES has a 1:M relationship with DOCJUST and the fields used in this relationship are NUMSOLICITUD and NUMSOL. The problem is that when the adapter do the insert, the first insert made on SOLICITUDES is correct, but when it tries to insert in the DOCJUST table, when it's supposed to insert in NUMSOL the same value inserted in NUMSOLICITUDES instead of that, a NULL value is inserted in NUMSOL so the process fails. Is it because the NUMSOLICITUDES column is populated from a sequence? How can I resolve that?
    Thanks!!

    Hi,
    OK, I found the following article: http://soa-bpel-esb.blogspot.com/2010/04/understanding-catch-and-catchall.html
    Using the info from that article I have created a test flow, which contains the same insert database adapter as the production flow. I have placed the Invoke within its own scope and attached a "CatchAll" block to this scope. To this block I have added a "empty" step (do nothing).
    In my tests, I see the desired results i.e. the second time I initiate the flow with the same data, the CatchAll block executes, which does nothing, and processing continues after the scope.
    So far so good - my query is how would I catch the specific error of unique index violation rather than general catchall?
    As before, and assistance/comments greatly appreciated.
    Anit

  • SQL repeating rows Problem

    Please can anyone help.
    I have a search where i search for employee by firstname or
    lastname or both columns. It also searches other columns but my
    problem is around the firstname and lastname.
    When i have the Firstname ticked it displays the correct
    amount of rows.
    When i have the Surname ticked it also displays the correct
    amout of rows.
    When both are ticked it repeats the results by the amount of
    sites.
    Now i guess its something to do with the table join and the
    OR part of the SQL.
    Any help would be appreciated.
    My query is as follows:

    Hi,
    Yes thats it.
    Thankyou very much, thought it would be something staight
    forward.
    cheers
    Matthew

  • Fluid column problem

    I'm new to CSS but have opted to go for a 2 col fluid site.
    One page is causing the background to repeat - I've made it "no-repeat" so now just have a black bg at the bottom.
    I believe the thumbnails are pushing the page down but I don't know how to sort it out.
    CSS & HTML code below.
    Many thanks for any advice.
    Paul
            COLUMNS
    #col1
        float: left;
        margin-left:8%;
        margin-right:1%;
        margin-top:25px;
        border-top:1px solid #999999;
        padding-top:10px;
        width:35%;
        font-family:Garamond, "Palatino Linotype", Georgia;
        font-size:17px;
        color:#333333;
    #col2
        float:left;
        margin-left:1%;
        width: 45%;
        margin-top:25px;
        border-top:1px solid #999999;
        padding-top:10px;
        font-family:Garamond, "Palatino Linotype", Georgia;
        font-size:18px;
        color:#333333;
        text-align:center;
            FOOTER
    #footer
        width:50%;
        float:left;
        margin-left:8%;
        margin-right:2%;
        font-family:Garamond, "Palatino Linotype", Georgia;
        font-size:16px;
        text-align:left;
        color:#ffffff;
        margin-top:20px;
    #subfooter
        width:32%;
        float:right;
        margin-left:1%;
        margin-right:1%;
        font-family:Garamond, "Palatino Linotype", Georgia;
        font-size:12px;
        text-align:center;
        color:#ffffff;
        margin-top:20px;
            DYNAMIC DRIVE images
    <style type="text/css">
    /*Credits: Dynamic Drive CSS Library */
    /*URL: http://www.dynamicdrive.com/style/ */
    .gallerycontainer{
    position: relative;
    /*Add a height attribute and set to largest image's height to prevent overlaying*/
    .thumbnail img{
    border: 1px solid white;
    margin: 0 5px 5px 0;
    float:right;
    .thumbnail:hover{
    background-color: transparent;
    .thumbnail:hover img{
    border: 1px solid #AFB3B4;
    .thumbnail span{ /*CSS for enlarged image*/
    position: absolute;
    background-color: #000000;
    padding: 5px;
    left: -1000px;
    border: 2px solid #AFB3B4;
    visibility: hidden;
    color: black;
    text-decoration: none;
    margin-top:175px;
    margin-left:2px;
    .thumbnail span img{ /*CSS for enlarged image*/
    border-width: 0;
    padding: 2px;
    .thumbnail:hover span{ /*CSS for enlarged image*/
    visibility: visible;
    top: 0;
    left: 0px; /*position where enlarged image should offset horizontally */
    z-index: 50;
    </style>
    HTML
    <div id="col1">
    <p><span class="style10">A well trained dog brings so much more enjoyment to the owner than one who constantly pulls on the lead or who refuses to return when let off it.<br>
      <p>While an obediant dog doesn't "just happen", there is no purpose in giving timelines for this stage or that. Every dog is different.</p>
      I always train on a "one to one" basis and the training is tailored to suit your needs. Training is structered and will require time and commitment from and you.
      <p><strong>But the results are well worth your hard work.</strong></p>All training ??etc etc etc TO CONTINUE...<br>
      The early training commences the better - even a young puppy can be taught basic manners! <br><br>
      Having been surrounded by a variety of breeds as diverse as Rottweilers and Border Terriers, my love of dogs has, over the past 25 years,
      introduced me to all types of issues. <br>
      <br>
      This experiance I have gained has proven invaluable to many owners and their dogs - from the smallest puppy requiring basic training to an Akita with a real attitude problem.
      <p><strong><a href="Training.htm">Training</a></strong> and correcting <strong><a href="Behaviour.htm">behaviour</a></strong> is carried out on a "one to one" basis. Just me and you - and your dog!</p>
      <p>This personal service is retained for <strong><a href="Boarding.htm">boarding</a>.</strong> No draughty kennels for my guests, but the warmth and security of my own home. One of the family!
      And I mean personal. Never any more than two dogs at a time.</p>
      </span></p></div>
    <div id="col2"><br>
    <div class="gallerycontainer">
    <a class="thumbnail" href="#thumb"><img src="images/JANET1.jpg" width="250px" height="165px" border="0" /><span><img src="images/JANET1a.jpg" /><br />She's the one!</span></a>
    <a class="thumbnail" href="#thumb"><img src="images/PUPPIES1.jpg"  width="250px" height="165px" border="0" /><span><img src="images/PUPPIES1a.jpg" /><br />Do you think they've seen us?</span></a>
    <br />
    <a class="thumbnail" href="#thumb"><img src="images/SLEEPIN1.jpg" width="250px" height="165px" border="0" /><span><img src="images/SLEEPIN1a.jpg" /><br />ZZZzzzzZZZZZZzzzzz....</span></a>
    <a class="thumbnail" href="#thumb"><img src="images/FRAN1.jpg"    width="250px" height="165px"  border="0" /><span><img src="images/FRAN1a.jpg"/><br />Have you got my left profile?</span></a>
    <br />
    <a class="thumbnail" href="#thumb"><img src="images/JANET1.jpg" width="250px" height="165px" border="0" /><span><img src="images/JANET1a.jpg" /><br />She's the one!</span></a>
    <a class="thumbnail" href="#thumb"><img src="images/PUPPIES1.jpg"  width="250px" height="165px" border="0" /><span><img src="images/PUPPIES1a.jpg" /><br />Do you think they've seen us?</span></a>
    </div>
    </div>
    <div id="footer">Bolton <strong>&middot;</strong> Appleby in Westmorland <strong>&middot; </strong>Cumbria <strong>&middot; ;</strong><strong>&middot;</strong> </div>
    <div id="subfooter">&copy; The Magic 6 2010</div>
    </body>
    </html>

    Hi Paul,
    I could not reproduce the black bottom background with your source code. What I could see is this (Both images refer to the same line, I only was cutting them because of the Adobe width upload limit. You could them put together again :-))):
    and:
    Perhaps it's possible that you tell me the link to this page. If not already done, load the page on your server, no matter whether you are satisfied with it or not.
    In any case, I recommend Nancy O. 's self-explanatory templates on this issue. Here is one of the links:
    http://alt-web.com/Image-slices-in-a-CSS-based-layout.html
    Dont fear this comment: "The page you seek cannot be found, but countless more exist..." and look at the right side "Free templates aso...
    Hans-G.

  • Faux Columns - Problems Understanding and Implementing

    Here's my site. It's not functional yet, so clicking on links won't do you any good. You can if you really want to, though:
    http://www.ladyhawkslair.com/index04.html
    The layout content consists of
    A header (left; position absolute)
    mainContent (floated right)
    mainNav (floated left)
    sidebar (floated left)
    footer (cleared: both)
    wrapper (contains everything and provides stone texture background)
    I've read a little about faux columns, but
    1) I'm not entirely sure I understand the concept. I'm really new to CSS.
    2) I want to apply a fix to my current site and not re-do everything.  Because I am new to CSS, it's taken me forever!
    The examples cited on the pages I read dealt with columns of the same length.  On my page, the "main content" starts at the top and the sidebar starts further down.  I could cheat and add more height to the sidebar and main content, but it might not look very good if someone is using a font-size of 30 or something.  Also, my footer would get lost. (Would this be an adequate if nothing else works?
    Here's my code : http://www.ladyhawkslair.com/code.txt
    If you can help me apply a column fix to my current design, please explain it to me like I'm five years old.
    If I have to redo everything, I could put the header, mainNav and sidebar into a single column, since they are the same size.  In that case, still explain it to me like I'm five.

    I've messed around with a wrapper similar to the one you made for me (very nice by the way), but I don't think the faux column approach will work for me without a major page design overhaul.  The repeating structure is interrupted at various points by a 15 px border of the stone texture, which I would like to keep, especially around the header. The wrapper background is then out of sync with the rest of the page. (The tear pattern doesn't match between the background for the sidebar and the background for the wrapper.)  I tried setting top padding. I can get the two to sync, but then the top of the page looks ridiculous.
    I could re-design the header, mainNav and the sidebar into a single column, but sync between the wrapper and the images on the sidebar would still be a problem because I would like to keep the 15px border around the logo on the left and (if possible) between "main nav" and the sidebar.
    I've read about a javascript solution, but there are some issues:
    1) I know nothing about javascript
    2) I'm wondering if the two columns must start at the same place on the page.  My "sidebar" div starts way below the "main content" div. I'd like both to extend to the end of the "main content" div.
    3) If I created a two-column page (each column starts at the same distance from the top of the page, would the javascript work? Will it work with the page layout as it is?
    My last resort would be to set the height to "auto" on the main content and match the height of the sidebar according to default font size.  It may not look as pretty as it could for some people, but it's better than nothing, I suppose.
    If you can think of a better option for me, let me know, especially if someone could help me with the javascript.
    P.S. Here is the "last resort" solution: http://www.ladyhawkslair.com
    P.P.S It turns out it's not much of a solution because it doesn't look the same in live view, Firefox and IE.  Each is different.

  • Comp. Primary key class-field mapping to DB columns problem.(EJB 2.0 CMP)

    Hi!
    I have deal with EJB 2.0 CMP bean.
    I have a composite PK so use the java class to store it. And there is a corresponding field in the Entity Bean with its primary key class type.
    The problem is: when deployment tool creates sql query for the findByPrimaryKey(PKClass ck)
    where ck is an object with 3 fielde : a_id, b_id, c_id.
    it says:
    <sql>SELECT "ck" FROM "MyTable" WHERE "ck" = ? </sql>
    And it means by the "ck" simple a column in DB but NOT the composite key which has to be splited into 3 different fields. So the container can't do the proper mapping.
    Does anyone know solutions?

    I was wrong about primary key class fields, take a look at Ejb2.0 Specification (10.8.2):
    The primary key class must be public, and must have a public constructor with no parameters.
    All fields in the primary key class must be declared as public.
    The names of the fields in the primary key class must be a subset of the names of the container-managed
    fields. (This allows the container to extract the primary key fields from an instance�s container-managed
    fields, and vice versa.)
    Right now I'm using BMP and I don't have this problems. Primary keys, calculated fields and types not supported by the DB can be easily achieved. But I understand your interest on CMP, is clearly evolving!

Maybe you are looking for

  • Extension Manager will not open and Adobe doesn't care

    Just search on "extension manager will not open" in the Adobe Forums or Google and pages of hits come up going back to CS4. This is a serious problem that Adobe is simply ignoring. I have Windows 7 Professional 64-bit with Design Premium CS5 installe

  • INTER COMPANY PURCHASING.......??

    Hi MM Gurus, how to do purchasing inter company and without inter company with the same vendor. normalley when we create PO with inter company we r getting automatically Goods issuee also. but some time we need to create normal purchase order without

  • DAM Search by Tag-- Group Tag parameter is excluded

    I Have Tag structured like below companyname:Topic      companyname:Topic/Articles      companyname:Topic/videos      companyname:Topic/casestrudies On of the resource is taged as "companyname:Topic". In the DAM content finder. if i check the checkbo

  • Playing an album switch to another and the old one keeps playing

    If I am playing a song from an album and I switch to a different album, the original will continue to play. Do I have (some way) shut down the old album before I can play a new one?

  • I have too many unread messages for my computer to...

    Help would be very much appreciated,  I haven't been able to find a customer support to call so I'm asking here. Pretty much I have a really old computer and I recently had to work out of state without internet for a few months. When I got back  one