Looking at the manual, we’ve got two functions we can use inside the datasets, If I use an alert like: alert($(“#Zdx2UHSluH7-efg0iPzSOl7-val”).val());
onFormLoad - This functions looks to occur before data values are populated from past data entry activities, so the alert box is empty
onValueSave - This function looks occur when a value is entered/modified, but it does not if the value has already been entered from a previous data entry session
Is there function that will fire when a datavalue is populated from the database? Any other ideas?
If I understand you correctly, you can use “dhis2.de.event.dataValuesLoaded” event, which is triggered on the document when all previous data values are loaded.
On Fri, Oct 24, 2014 at 12:21 PM, Timothy Harding hardingt@gmail.com wrote:
Hello all,
Looking at the manual, we’ve got two functions we can use inside the datasets, If I use an alert like: alert($(“#Zdx2UHSluH7-efg0iPzSOl7-val”).val());
onFormLoad - This functions looks to occur before data values are populated from past data entry activities, so the alert box is empty
onValueSave - This function looks occur when a value is entered/modified, but it does not if the value has already been entered from a previous data entry session
Is there function that will fire when a datavalue is populated from the database? Any other ideas?
On Fri, Oct 24, 2014 at 5:25 PM, Morten Olav Hansen mortenoh@gmail.com wrote:
Hi
If I understand you correctly, you can use “dhis2.de.event.dataValuesLoaded” event, which is triggered on the document when all previous data values are loaded.
On Fri, Oct 24, 2014 at 12:21 PM, Timothy Harding hardingt@gmail.com wrote:
Hello all,
Looking at the manual, we’ve got two functions we can use inside the datasets, If I use an alert like: alert($(“#Zdx2UHSluH7-efg0iPzSOl7-val”).val());
onFormLoad - This functions looks to occur before data values are populated from past data entry activities, so the alert box is empty
onValueSave - This function looks occur when a value is entered/modified, but it does not if the value has already been entered from a previous data entry session
Is there function that will fire when a datavalue is populated from the database? Any other ideas?