on 12-23-2010 8:45 AM
hi there,
in my WDA-application i use adobe print forms for output.
i use a table for displaying an internal abap-table.
in the formular-hierarchy it looks like this:
table2
--> line1
--> cell1
--> cell2
--> cell3
my problem is that i am a complete newbie in scripting in print forms.
here is what i want to do:
if cell1 = 'X' then the text in cell2 has to be bold or underlined.
Can someone provide me with a code-example either in javascript or formclac???
thx
David
Hi David,
You can check Help in ALD for scripting reference.
Try this code and check
if(Table2.line1.cell1.rawValue == "X"){
Table2.line1.cell2.font.underline = "1";
}
Thanks & Regards,
Sanoosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thx for answering.
first i tried the following code:
-
data.T1.Tabelle2::ready:form - (JavaScript, Client) -
this.Zeile1.Zelle2.font.weight = "bold";
this.Zeile1.Zelle2.font.underline = "1";
the result is, that cell2 is bold and underlined but only the first row of the table. i want all cell2 in all rows bold and underlined.
then i tried this:
-
data.T1.Tabelle2::ready:form - (JavaScript, Client) -
if(this.Zeile1.Zelle1.rawValue == "01"
{
this.Zeile1.Zelle2.font.weight = "bold";
this.Zeile1.Zelle2.font.underline = "1";
}
nothing happens and i dont understand why. The visible value in Zelle1 is "01"!
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.