Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2756

Re: Datawindow Column Name is created with another name while try to create

$
0
0

Hi Antony,

 

It is a bit confusing, but this is what happens;

  1. When the datawindow is created you have the buffer columns specifified under table(
  2. Each column has a name. This is the name you use for your GetItem... and SetItem
  3. Also a representation of each column is defined for each column to be painted in the detail band. Each have the same name (initially) but the link between the two is in fact the id property
  4. If you change the name of a column in the datawindow painter, the name is changed in both places. This is not what you are doint
  5. If you place an extra representation of a column in any band, you are still referring to the same column in the buffer table( but because you cannot have to names the same it gets an _1 amended but it is the id that "maps" it to the same column

 

This is part of the syntax of a datawindow with the first column named emp_name (id=1) painted twice under two names: emp_name and emp_name_1:

 

 

table(column=(type=char(30) updatewhereclause=yes name=emp_name dbname="emp_name" )

column=(type=char(30) updatewhereclause=yes name=emp_other_name dbname="other_name" )

...

column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="33554432" x="165" y="8" height="72" width="462" format="[general]" html.valueishtml="0"  name=emp_name visible="1" ....

column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="33554432" x="635" y="8" height="72" width="347" format="[general]" html.valueishtml="0"  name=emp_other_name visible="1" ....

column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="33554432" x="1591" y="8" height="72" width="407" format="[general]" html.valueishtml="0"  name=emp_name_1 visible="1" ....

 

Very confusing, but does make sense.

 

HTH

Lars


Viewing all articles
Browse latest Browse all 2756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>