I am printing a dynamic table and written the below code for a cell, this is populated via calculation but can be edited by the user, if he wants to. I have writtenhtmltable=htmltable+{<input type=‘text’ name=‘regAmount’ value=‘|+regAmount +|’ + }
I get |+regAmount +| in the column value, not the actual value.
Also, I need to make the column value integer, so that the total of the column can be done at the bottom.
Any sample code woudl be helpful.
Subject: printing table and adding cell values
Your start and end delimiters have to match. You are beginning the string literal with “{”, so if you want to end the literal to include a variable, you need to use “}”, not “|”.
Subject: printing table and adding cell values
Rekha,
It should be ,
htmltable=htmltable+{}
Rishi
Subject: printing table and adding cell values
Hello Rekha,
I think you are getting following value and not the actual value:
|+regAmount+|
Please try below:
htmltable=htmltable+{<input type=‘text’ name=‘regAmount’ value=‘|}+regAmount +{|’ + }
For total of these values, you might have to convert them in the numeric format separatly while computing the total.