This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Value not populating for one of the attribute  RSS feed

 
Hardik Modi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to populate the values from couple of attributes and storing all this information in file via below code.



So while compiling this code, I am getting all the values for the attributes but not for the Email.

out.write("IdentityName,UserName,First_Name,Last_Name,WorkforceID,Organization,Email");

its constantly writing null value in file.

I am not able to figure out where i am making the mistake.any takers and help me out.
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

That line of code returns null. There is no "mail" attribute in user - either you are using the wrong name ("mail") to look the value up or you are not storing the value to begin with.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!