Jump to content
  • 0
Sign in to follow this  
ETFIA

Can Caspio Create Cell Shading Or Background Styles From Excel?

Question

Is it possible to configure a report view to display table rows of data that have background table shading either based on a set criteria of the cell data, or copying from an excel data source file?

For example, green shaded cellsi in excel data source are green in Caspio output, or Caspio programming can set cell shading based on cell values? Ie. if value > 1 then green shading, otherwise no shading.

Any guidance I appreciated, could not see this in the support files.

Thanks,

Anthony

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

You can include the field in an HTML Block using the insert icon (http://howto.caspio.com/datapages/form-elements/html-blocks.html). For instance if the Status is Closed the show the text in red:

<script>
function mycolor(){
if ("[@field:Status]" == "Closed") {
var str = "[@field:Status]";
document.write(str.fontcolor("red"));
}
else document.write(str);
}
mycolor();
</script>

Share this post


Link to post
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...