Anonymous_User Absent Member.
Absent Member.
330 views

IDVault.get problem


Hello, I have a problem with idvault.get.
Have a wf with only one entity activity, I try to get an edir attr from
user picked from DNLookup control.
In DNlookup control events (onchange) have the script:

===============================
getDetail(form.getValue("identidad"),'datos','Surname');


function getDetail( dn, fldName, attrName )
{
if ( dn == "" ) return;
try
{
var av = IDVault.get( fldName, dn, 'Identity', attrName );
} catch(e) {
alert( fldName+": error getting "+attrName+" for "+dn+": "+e );
}

}
======================
"identidad" is DNlookup control
'Identity' is an custom DAL entity

allways have null result.


Whats wrong ?

thx


--
juanma
------------------------------------------------------------------------
juanma's Profile: https://forums.netiq.com/member.php?userid=332
View this thread: https://forums.netiq.com/showthread.php?t=49172

Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: IDVault.get problem

Add some alerts or debug statement to see what happens.



getDetail( field.getValue(),'datos','Surname');

function getDetail( dn, fldName, attrName )
{
if ( dn == "" ) return;
try
{
var aValue = IDVault.get( fldName, dn, 'Identity', attrName );
alert( aValue );
} catch(e) {
alert( e );
}
}

Wolfgang


On 07.11.2013 20:04, juanma wrote:
>
> Hello, I have a problem with idvault.get.
> Have a wf with only one entity activity, I try to get an edir attr from
> user picked from DNLookup control.
> In DNlookup control events (onchange) have the script:
>
> ===============================
> getDetail(form.getValue("identidad"),'datos','Surname');
>
>
> function getDetail( dn, fldName, attrName )
> {
> if ( dn == "" ) return;
> try
> {
> var av = IDVault.get( fldName, dn, 'Identity', attrName );
> } catch(e) {
> alert( fldName+": error getting "+attrName+" for "+dn+": "+e );
> }
>
> }
> ======================
> "identidad" is DNlookup control
> 'Identity' is an custom DAL entity
>
> allways have null result.
>
>
> Whats wrong ?
>
> thx
>
>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: IDVault.get problem


found the problem !!!!!

var av = IDVault.get( fldName, dn, 'Identity', attrName );

'Identity', in DAL key was 'identity' with lowercase I !!!

thanks




Wolfgang Schreiber;236656 Wrote:
> Add some alerts or debug statement to see what happens.
>
>
>
> getDetail( field.getValue(),'datos','Surname');
>
> function getDetail( dn, fldName, attrName )
> {
> if ( dn == "" ) return;
> try
> {
> var aValue = IDVault.get( fldName, dn, 'Identity', attrName );
> alert( aValue );
> } catch(e) {
> alert( e );
> }
> }
>
> Wolfgang
>
>
> On 07.11.2013 20:04, juanma wrote:
> >
> > Hello, I have a problem with idvault.get.
> > Have a wf with only one entity activity, I try to get an edir attr

> from
> > user picked from DNLookup control.
> > In DNlookup control events (onchange) have the script:
> >
> > ===============================
> > getDetail(form.getValue("identidad"),'datos','Surname');
> >
> >
> > function getDetail( dn, fldName, attrName )
> > {
> > if ( dn == "" ) return;
> > try
> > {
> > var av = IDVault.get( fldName, dn, 'Identity', attrName );
> > } catch(e) {
> > alert( fldName+": error getting "+attrName+" for "+dn+": "+e );
> > }
> >
> > }
> > ======================
> > "identidad" is DNlookup control
> > 'Identity' is an custom DAL entity
> >
> > allways have null result.
> >
> >
> > Whats wrong ?
> >
> > thx
> >
> >



--
juanma
------------------------------------------------------------------------
juanma's Profile: https://forums.netiq.com/member.php?userid=332
View this thread: https://forums.netiq.com/showthread.php?t=49172

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.