Perzival Posted April 12, 2019 Report Share Posted April 12, 2019 Hello, I want to add a characteristic to my data in my search and report. I want to like highlight a row when the user hovers his cursor to that row to indicate the selected data set. I know that it is possible but not really sure how to do it. I appreciate any help. Quote Link to comment Share on other sites More sharing options...
Harbinger Posted April 12, 2019 Report Share Posted April 12, 2019 Hello, you can add a header and footer to that particular DataPage then disable the "enable HTML editor" from the advance tab, and in the standard tab, kindly right the following script. <style> #caspioform > table tbody tr:hover { background-color: #f5f5f5; } </style> Perzival 1 Quote Link to comment Share on other sites More sharing options...
Perzival Posted April 12, 2019 Author Report Share Posted April 12, 2019 Hi @Harbinger For some reason, this code is not working on my end and shows up in my DataPage. Any thoughts? Quote Link to comment Share on other sites More sharing options...
Harbinger Posted April 12, 2019 Report Share Posted April 12, 2019 I see. I forgot to encapsulate the code inside the <style></style> tag. I updated my answer. Let me know if it works. Quote Link to comment Share on other sites More sharing options...
Perzival Posted April 12, 2019 Author Report Share Posted April 12, 2019 You're awesome, it did now worked! One more thing, if I wanted to have the same style applied to all my pages do I have to include this code to each DataPages? Perhaps there is another way? Thanks! Quote Link to comment Share on other sites More sharing options...
kpcollier Posted April 12, 2019 Report Share Posted April 12, 2019 @Perzival You could try editing it in Styles. If you are using the same Style across your search and reports, you can edit the specific style. Under DataPage Elements, select the different options you want to change. Here, you could go to Data or Table Layout and change the 'Hovered' color to whatever you want. You can check the preview before saving. Quote Link to comment Share on other sites More sharing options...
kpcollier Posted April 12, 2019 Report Share Posted April 12, 2019 If your search and report is a Tabular report, go to Table Layout in the Style setting. Then for the Element Type select Data Rows and change Hovered Rows to the desired color. Make sure Enable Hovered Rows is checked, too. Then apply this style to whatever pages you want and they all should have the same effect. Quote Link to comment Share on other sites More sharing options...
Harbinger Posted April 12, 2019 Report Share Posted April 12, 2019 Just to add, in case you want a fully customizable style, you can go to the Styles as what KPCollier instructed, then go to the source and look for the tr tag. From there you can add CSS codes to customize your table's attributes. kpcollier 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.