Need help for Genarte HTML with Rowspan.

  • Hi All,

    I want to generate the HTML with rowspan and colspan using sql query.

    I can create HTML table but unable to give rowspan to TD tags.

    Please give me the suggestions.

  • panneermca35 (6/27/2016)


    Hi All,

    I want to generate the HTML with rowspan and colspan using sql query.

    I can create HTML table but unable to give rowspan to TD tags.

    Please give me the suggestions.

    Can you please elaborate further with sample data and what you have tried so far.

    😎

  • Hi,

    Unable to paste sample table format here.

    I want to generate html like below

    --------------------------|

    No | name | Department |

    --------------------------|

    1 |Ram | Payroll |

    ------------| |

    2 |John | |

    ---------------------------

    3. |Peter | HRM |

    ---------------------------

    But i generated the below HTML

    --------------------------|

    No | name | Department |

    --------------------------|

    1 |Ram | Payroll |

    ------------|-------------|

    2 |John | |

    ---------------------------

    3. |Peter | HRM |

    ---------------------------

  • Quick though, count the null columns in each row and add the count to the colspan of the last cell.

    😎

  • thanks you for the quick reply.

    I have done the colspan i want to do rowspan?

  • Add the count of each department as the rowspan to the first department cell of each department, easy with count and row_number over (partition by department)

    😎

  • panneermca35 - Monday, June 27, 2016 1:26 AM

    Hi All,I want to generate the HTML with rowspan and colspan using sql query.I can create HTML table but unable to give rowspan to TD tags.Please give me the suggestions.

    I need the same. Can you found the solution?

  • panneermca35 - Monday, June 27, 2016 1:26 AM

    Hi All,I want to generate the HTML with rowspan and colspan using sql query.I can create HTML table but unable to give rowspan to TD tags.Please give me the suggestions.

    I need the same. Can you found the solution?

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply