Simplicty and flexibility!


Function::Internal

jsSetValue
jsSetValue("de85ObjectName","htmlID")
Save Changes!


To set the value of a field in the DE85 form from inside a WebObject.

DataEase will move more and more towards Web/HTML and this is part of the bridging API between the internal WebObject and the DE85 Windows Form.

Parameters


ObjectName: String

This is the Object Name of the editfield you want to populate in the form with the value from the HTML Input control.

ID: String

The ID of the HTML input control you want to read the value out of to put into 

Returns/Result


Nothing

Examples


Example 1

<style>

body {color:white;}

</style>

<h1>DataEase Web Hosted Form Test</h1>

<p>This is a test on TWO-Way communication between WebObject and PRISM</p>

<p>This form is hosted on a remote server, but commuicate with the local PRISM.....</p>

<p id="message">Your message</p>

<input id="CustomerName" placeholder="Customer Name" value="" style="width:30%">

<input id="CustomerAddress" placeholder="Customer Address" value="" style="width:30%">

<br>

<a onclick='jsSetValue("CustomerName","CustomerName");jsSetValue("CustomerAddress","CustomerAddress");jsDerivation("RecordSave()");'>Save Changes!</a>

<script>

var tester = document.getElementById("CustomerName").value=jsDerivation("CustomerName");

var tester = document.getElementById("CustomerAddress").value=jsDerivation("GetValue(\"CustomerAddress\")");

</script>

<p style="margin-top:100px;padding:10px;border:solid 1px">This is "impossible".....but works!</p>

Reference

See Also


jsDerivation()
ExecDerivation()
ExecDQL()
MemoExecDQL()
LabelExecDQ()

On the forum about jsSetValue

Hmmm... jsSetValue

Hmmm.. try to use jsSetValue .But how ever i try it ,it will not tranfer valiue from html to my Form.Do have anyone succsess with it ?I have orientetd me at the demoscript in the helpindex.Are there some new infos for it or...

Product: Dataease [{8}]FIVE. Written by grohmann.papier@t-online.de 25/03/16 at 15:02:06

Re:Hmmm... jsSetValue

Hi Markus.Sorry, you are just too enthusiastic.For documentation purposes we list the functions in the help file as we make then, and sometimes that means that the functions are listed there ahead of them being released.These f...

Product: Dataease [{8}]FIVE. Written by DataEase 28/03/16 at 13:35:06

On the blog about jsSetValue


dg3_HelpView