on 10-24-2011 5:52 AM
Hello all,
I am woring on an interactive adobe form being called by a web dynpro application.
The adobe form interface used is XML Schema based. The form displays some data at header level and item level.
The item details are displayed in a table. Now. my requirement is that i have a field 'STATUS' in the item table. I want to display the row with RED color if the STATUS = 'X' . How can i achieve this.. i tried using java script at Row initialze event but that didn' work.
Please let me know if you have some solutions.
Thanks & Regards,
Ravi Aswani
Try this code
var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
var custordertext;
for (var i=0; i <= fields.length-1; i++)
{
if (fields.item(i).name == "STATUS")
{
if(fields.item(i).rawValue == "X")
{
this.fillColor = "50, 50, 255";
}
}
}
use this event in calculate event
Thanks,
Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rakesh,
I tried with the code you provided but after applying the code as Java Script the complete ITEM table gets colored . I need to color only those rows where the value of STATUS = 'X'. The test table i am using has 5 entries with status 'X' and 2 entries with STATUS = 'C'. All the 7 entries are displayed in colored rows. Can you please check .
Thanks & Regards,
Ravi Aswani
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.