on 07-01-2014 10:43 AM
Hi,
I am new to agentry. I have property type as Date on agentry side, I want to set value in that field in the detail screen from Java. I don't care the java datatype. I tried String and Date from java side but it is not working. It is showing blank value. How can I do this ?? What formatting I need to do in java code ??
Thanks in advance,
Sujit Ghanti
Tags edited by: Michael Appleby
Hi,
Are you trying to set the default date in java and show it in front end,or the date property in java is getting value from another back end,please try to check the property names in front end and java classes
Thanks & Regards,
Sravanthi Polu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sravanthi,
Thank you for your reply. Currently I am setting date value from java only. And I have checked the property name on agentry side and the Object class field name on java side, they are the same. How can I make this thing work ? Is there any formatting required ?
Thanks,
Sujit Ghanti
Sujit,
Your dates should be defined as string in Java. Turn on logging for Agentry server and user. Look in the log for the section when data is getting fetched and mapped. It might tell you what is wrong if it can't map the dates back to Agentry. Try a simple date format like: "07/01/2014" when setting the date in Java.
Jason Latko - Senior Product Developer at SAP
Hi all,
I sent a simple String in MM/dd/yyyy format. Like "12/13/1989" and it worked. I think agentry only understands MM/dd/yyyy format. Because earlier I was sending the String like "13/12/1989" which is dd/MM/yyyy format so thats why it was showing blank on the detail screen. Then I simply sent "12/13/1989" and it worked. I think we should always send it in "MM/dd/yyyy" format from java, am I right ??
Thank you all,
Sujit Ghanti
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.