You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

using Grid widget how to display an image for a incident column

Accepted answer
6
Views
1
Comments
edited Feb 12, 2018 12:25PM in Customer Portal 1 comment

Content

I have created an Report to display in the CP page. 

We can able to display the image during initial load of the page. but when we do sort or search a column in the grid report. we image disaapers.

below is the logic code: i have added the code in the _onReportChanged function.

if(newdata.headers[j].heading=="view"){ // column name
newdata.data[i][j]="<a href='/app/account/questions/detail/i_id/"+newdata.data[i][j]+"'><img src='/euf/assets/Inspina/images/search.jpg'></a>";
//alert(newdata.data[i][j]);
}
 
view file code :
 
 <td role="gridcell" class="yui3-datatable-cell block">

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!