Complex headers when column tag is used

Hi,

I’m using the below mentioned format to display header of the table







for i=1 to 10





.

.

.



next

for i=1 to 10





.

.

.



next





Here i want the header to be displayed in two different rows when the rowspan=1 and when the rowspan=2 the rows must be merged. But, the result what i’m getting is that all the values are being displayedd in a single row with the rowspan=2. Could you please suggest me on how to proceed to acheive the required functionality.

Init from XML doesn’t support simple format to represent multi-line headers, basically the correct code will be similar to next


   
        1

        2

        3

        4

        5

        6

        7

        8

        9

        10

           
                1.1,#rspan,#rspan,#rspan,#rspan,#rspan,#rspan,#rspan,#rspan,#rspan
           
   
    …

But the values for the header is coming from the datadase. So we can’t specify the exact number of columns to pass the param. Again the the two set of values comes from two For loops. The number of columns are not static. That is why i tried to differentiate the values with the rowspan, so that the values falls in sequence and also with appropriate rowspan. But it is not working for me.For details kindly go through the code once again which was sent by me earlier. Any suggestion on this would be of great help for me.

There is no technical issues to generate the described XML dynamically as well, it just not so clear as it may be



for i=1 to 10

   

   

    …
   

next


var temp
for i=1 to 10

    temp.push("")
    temp.push("#rspan")
    …
    temp.push("#rspan")
next

echo " " temp.join(",") “”





Here the header will not be having the spans alll the time. Only at times when certain conditions are met then only the rows are split.



The syntax format what i’m using is given below.



Am i going through the right format.?




for i=1 to 10
Response.write " data “
Response.write " data “
.
.
.
Response.write " data “
next



if() then
for i=1 to 10



.



.



.



'Somevalue might be anything (blank space/special character…)



sTotal =SomeValue
next 



end if



'Response.Write “”



'Response.Write “<call command=”“attachHeader””>”



Response.Write “” & sTotal & " <CALL command=”" attachHeader??>"



Response.Write “” & sTotal & “” ’



Response.Write “”



'Response.Write “”



'Response.Write “”



.



.



.



.



 







.



.















 

Here the header will not be having the spans alll the time. Only at times when certain conditions are met then only the rows are split.
The syntax format what i'm using is given below.


Am i going through the right format.?


I tried several ways to implement but was not successful. Please reply ASAP



for i=1 to 10
Response.write " data "
Response.write " data "
.
.
.
Response.write " data "
next


if() then
for i=1 to 10


.


.


.


'Somevalue might be anything (blank space/special character....)


sTotal =SomeValue
next 


end if


'Response.Write ""


'Response.Write ""


Response.Write "" & sTotal & " "


Response.Write "" & sTotal & "" '


Response.Write ""


'Response.Write ""


'Response.Write ""


.


.


.


.


 





.


.











 

The rowspans in header defined by #rspan as value of cell which need to be included in rowspan, the usage of rowspan attributes has not any sense.


Still i’m facing the problem in displaying the headers with rowspan. Could you please help me by sending the correct syntax along with the format which i have mentioned.




for i=1 to 10
Response.write " data “
Response.write " data “
.
.
.
Response.write " data “
next



if() then
for i=1 to 10



.



.



.



'Somevalue might be anything (blank space/special character…)



sTotal =SomeValue (Either the value or the #rspan)
next 



end if



Response.Write “”



Response.Write “<call command=”“attachHeader””>”



Response.Write “” & sTotal & " <CALL command=”" attachHeader??>"



Response.Write “” & sTotal & “” ’



Response.Write “”



Response.Write “”



Response.Write “”



'Contents of the grid defined



.



.



.



 







.



.













The code looks correct, please provide exact XML code generated by it , if it cause some problems for you