GET-VALUE used in a <td>

xscottehx

Member
is it possible to use a get-value command with a <td></td> element to return whatever is inside the element?

for example if i have:

DEF​
VAR cparamlocn AS CHAR NO-UNDO.

ASSIGN​
cparamlocn = GET-VALUE("location").

{&OUT}​
'<form method="post">
<table>
<tr>
<td name="location">red</td><td>blue</td>
</tr>
</table>
</form>'
.


{&OUT} '<b>' cparamlocn '</b>'.

This does not work. is there a solution using progress or is done with javascript?
 

uranicjhonny

New Member
Hi xscottehx
As I understand the get-value returns the value of the object is an example of html
<input type="submit" name="button" value="Generate">
where the value of the button is to generate
not a lot of html, and if you can not put a value property
 

israelm

New Member
Try this code:

HTML:
{&OUT} "<tr><td>" + GET-VALUE("miVar") + "</td></tr>".
Or This one:

HTML:
<tr><td>`GET-VALUE("myVAr")`</td></tr>
This symbol: `` indicates WebSpeed embedded code. Works like php <?= ?>
To assign a value to a form control do something like ->

HTML:
<input type="hidden" name="myVar" value="`GET-VALUE('myVar')`" />
Regards!
 
Top