How to display data from a client script to an HTML widget and display its value in a text field.

John Clyde Ap_a
Giga Expert

I have a custom with label variable in a record producer that is connected to this widget and I am trying to display data from a value that has been set in the client script. (green box)

find_real_file.png

How to implement it so it will show the value in a text field? 

 

1 ACCEPTED SOLUTION

okay @John Clyde Ap[as ,

i think i got your requirement now .

you are storing total cost in total cost variable .

If yes then do like this

in client controller add this line

c.data.cost=totatCost;

HTML

<div>

<input type="text" value ={{c.data.cost}}>

</div>

try this and let me know

View solution in original post

14 REPLIES 14

@John Clyde Ap[as can you try this ?

<div>

<input type="text" value ={{c.data.label}}>

</div>

 

Hello thank you for the quick reply.

 

I have tried it but Its still not showing up. The alerts are working as shown in the image but its not showing the value in the field

find_real_file.png

find_real_file.png

 

More over I have tried to add an alert to see the value but it says undefined.

find_real_file.png

find_real_file.png

okay @John Clyde Ap[as ,

i think i got your requirement now .

you are storing total cost in total cost variable .

If yes then do like this

in client controller add this line

c.data.cost=totatCost;

HTML

<div>

<input type="text" value ={{c.data.cost}}>

</div>

try this and let me know

Hello again Mohith,

It is now working. Thank you very much for helping me.

find_real_file.png

No worries @John Clyde Ap[as mark the answer correct and close the thread so that it will be helpful for future readers