Issue #734 has been updated by Frédéric POISSON.
You're right but if i update the code with
<pre>
function descriptionDataset(SOURCE)
{
...
main = "CN="
+ srcBean.getDatasetFirstValueById("cn").trim()
+ ","
+ SOURCE.attribute(SOURCE.search("ou=lsc", "(seeAlso="
+ base + ")").get(0), "description" ).get(0);
...
}
</pre>
I have the same error, it seems that LSC fail to compute the function call with
an undefined argument. So i understand that the error message is on the fact
that i have the ReferenceError with srcLdap.
If i replace js:descriptionDataset(srcLdap) by js:descriptionDataset(srcBean)
and changing the function code like this : s/srcBean/SOURCE/g i have no error
but a bad behavior as if i don't give argument (see above).
----------------------------------------
Bug #734: External Javascript file do not load srcLdap
http://tools.lsc-project.org/issues/734
Author: Frédéric POISSON
Status: Assigned
Priority: Normal
Assigned to: Raphaël Ouazana
Category: Core
Target version: 2.1.2
Problem in version: 2.1.1
Hello,
While i'm trying to run LSC with an external JavaScript file defined with
scriptInclude, i use a function with srcLdap object. But i have a
<pre>"srcLdap" is not defined.</pre> error and my JavaScript code do not run
correctly. If i try to give the srcLdap as an argument of my function i have
the error <pre>ReferenceError: "srcLdap" is not defined.</pre>, but if i put
the code of the function inside lsc.xml file and the dataset, all is running
fine.
Could you tell me if srcLdap and ldap from org.lsc.jndi.ScriptableJndiServices
are available with LSC 2.1.1 ? And how to use them ?
Thanks,
Regards
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev