Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6842401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:05:46+00:00 2026-05-27T00:05:46+00:00

I have a report which is generated from different models and I am displaying

  • 0

I have a report which is generated from different models and I am displaying it as a table.Is there a way to sort this table.

This is my views code:

 %table
 %th Tester
 %th # Assigned Ics
 %th # Completed ICs
 %th % Completed
 %th Total Estd Effort

-@cycle.release.testers.each do |tester|
  %tr
    %td=link_to tester.name, cycle_ic_runs_path(@cycle, :tester_id => tester.id)
    %td=@cycle.ic_runs_by_tester(tester).count
    %td=@cycle.complete_ic_runs_by_tester(tester).count
    -percent=0
    -if @cycle.ic_runs_by_tester(tester).count >0 && @cycle.complete_ic_runs_by_tester(tester).count >0
      -percent=(@cycle.complete_ic_runs_by_tester(tester).count/@cycle.ic_runs_by_tester(tester).count)*100
    %td=percent
    %td=total_estd_effort_by_tester(@cycle,tester)

Here I want to apply sort to tester’s name and Assigned Ic’s and Completed ICs.
Please help me out with the jquery and the necessary ruby coding.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:05:47+00:00Added an answer on May 27, 2026 at 12:05 am

    An easy way to implement sorting on tables, is to use Javascript on the client side.
    Here’s an overview of some jQuery plugins for this purpose:

    http://www.webdesignbooth.com/15-great-jquery-plugins-for-better-table-manipulation/

    Personaly I’d recomend DataTables.js (which can also handle pagination for you).
    The simplest way to use this to make HTML tables sortable, is to just call $('#my_table').dataTable();

    There are of course also non-jQuery libs for doing this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a RDLC report which has a table, calling a subreport N times.
I have an auto-generated file which looks something like this... static void do_SomeFunc1(void* parameter)
I have a huge report coming out of a tool from which i extract
I have the following code browser.link(:text => 'Generate Report').click browser.radio(:value => 'byTotalValue').wait_until_present(180) which requests
I have a report which is composed of several subreports. I need to render
I have a report which worked perfectly. I inserted a subreport at the top
Is it possible to have a report which has grouping on the underlying data
I have a Crystal Report which is viewed via a CrystalReportViewer control on an
I have a report in which I'm listing total values and then changes in
I have a report to which I have execute-only access - I don't have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.