Hi Expert's,
I am trying to access a function in 'form.js' from my data entry screen as:
In form.js:
function openingBalanceData(){
var dataSetId = dhis2.de.currentDataSetId;
console.log(dataSetId);
dhis2.de.currentOrganisationUnitId = selection.getSelected()[0];
console.log(dhis2.de.currentOrganisationUnitId);
var a=10;
console.log(a);
}
In my data entry screen:
------------------------------------------------------------------------------------------
<script>
window.openingBalanceData();
</script>
------------------------------------------------------------------------------------------
What is the problem in my script or can i not call from data entry screen?
Waiting for your valuable opinion.
Thanks
Julhas
Dhaka, Bangladesh
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp