cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to extract R3 attributes directly from portal?

Former Member
0 Kudos

To get an IUser object the following code can be used:


IWDClientUser wduser = WDClientUser.getCurrentUser();
IUser result = wduser.getSAPUser();

The IUser has several methods like getCIty() & getEmail(). Is it possible to retrieve custom attributes for this object?

What does the method getTransientAttribute() do?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,


Object getTransientAttribute(String namespace,String name)

Generic get method to access additional transient attributes.

These attributes are contained in separate namespaces, and

are accessible via their names. Attributes that are in no

distinct namespace are formally located in the namespace

null.

Note: the transient attributes are instance specific.

Parameters:

namespace - namespace the attribute is in (may be null)

name - name of the attribute

Returns:

the values of the respective attribute, or null if this namespace

or attribute within this namespace does not exist

regards

Surender Dahiya

Former Member
0 Kudos

I know how to read the javadocs. My question is more: what does Transient Attributes means... Is it custom defined attributes in the same table as the rest of the attributes like email, telephone, etc.

Former Member
0 Kudos

Its very good to know that u can read javadocs.Transient attributes are those which we use to indicate to the Java virtual machine that the indicated variable is not part of the persistent state of the object.

i.e attributes that u dont want to save it.

for further refference u can read javadocs as u already know how to read them.