create table by Hierarchical Viewer transformation

Mehrdad ilchizadeh asked on December 6, 2014 08:58

hi

i need create table to show my custom table.. plz help me how transformation for this.

for this pic i show my table but my table show 1 row but ihave more rows.

Image Text

Recent Answers


Brenden Kehren answered on December 6, 2014 18:48

Not sure you'd want to use a hierarchical viewer for that. It looks like tabular data so why wouldn't it be a grid of some sort?

1 votesVote for this answer Mark as a Correct answer

Mehrdad ilchizadeh answered on December 7, 2014 10:36

because i need some column link by custom data. for example:

<a href="~/ثبت-گزارش-ارزیاب.aspx?parvandeid=<%# (Eval("ParvandeID")) %>">گزارش ارزیاب</a>
  </td>

grid have just column from table

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on December 9, 2014 15:28

Hi,

You should be able to generate a table/tables using one hierarchical transformation. How looks your Item transformation? I would move all table declaration to Header/footer transformation and one row of a table ... would be one item in Item transformation.

Best regards,
Jan Hermann

1 votesVote for this answer Mark as a Correct answer

Mehrdad ilchizadeh answered on December 15, 2014 08:33

hi hi i have more item but this show just one item... Image Text

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on December 15, 2014 13:57

Hello,

Transformation list looks fine, however I need the content of your item transformation. in your case it would be something like:

Header transformation: <table>
Footer transformation: </table>
Item transformation: <tr><td>{%FirstField%}</td><td>{%SecondField%}</td><td>{%ThirdField%}</td></tr>

Best regards,
Jan Hermann

1 votesVote for this answer Mark as a Correct answer

Mehrdad ilchizadeh answered on December 15, 2014 15:34

Header transformation:<div class="CSSTableGenerator"> <table> <tr> <td> نام کامل شرکت </td> <td> نام استان </td> <td> نماینده شرکت </td> <td> موبایل </td> <td> نمابر </td> <td> تلفن </td> <td> ایمیل </td> </tr> Footer transformation:

</table> </div>

Item transformation: <tr> <td> <%# Eval("companyname") %> </td> <td> <%# Eval("ostan") %> </td> <td> <%# Eval("rabet") %> </td> <td> <%# Eval("mobilerabet") %> </td> <td> <%# Eval("faxrabet") %> </td> <td> <%# Eval("tellrabet") %> </td> <td> <%# Eval("Email") %> </td> <td> <a href="<%# GetDocumentUrl() %>">تکمیل پرونده </a> </td> <td> <a href="editparvande.aspx?id=<%# Eval("ParvandeID") %>">ثبت محصولات </a> </td> <td> <a href="~/وظیفه.aspx?ProjectName=<%# Myclass.getcodenameproject(Eval("projectid")) %>">لیست وظیفه ها</a> </td> </tr>

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on December 17, 2014 12:38

There is an inconsistency in cells you have for each row. The header contains 7 of cells, but the items transformation has 10 of them.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.