Maximo Wire - The IBM Maximo Help & Discussion Forum
May 24, 2012, 12:03:27 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: Can't change viewable info on work logs with custom java class  (Read 505 times)
0 Members and 2 Guests are viewing this topic.
mikael
Newbie
*

Karma: 0
Posts: 5


View Profile
« on: March 17, 2010, 08:59:43 am »

Hi,

I have problem with changing the viewable info on work logs from java code.

I have a custom class that creates work logs and it works fine to set the
worklog description and long description... but the viewable info doesn't change
(in the db it is the WORKLOG.CLIENTVIEWABLE field)

Here's parts of my code

WorkLogSetRemote worklogset = (WorkLogSetRemote)ticket.getMboSet("WORKLOG");
WorkLogRemote newworklog = (WorkLogRemote)worklogset.add();

newworklog.setValue("description", worklogsummary, 11L);
newworklog.setValue("description_longdescription", message, 11L);

newworklog.setValue("clientviewable", 1); // this line doesn't do anything

The logs doesn't say nothing.
Does someone know what's the problem here?


Best Regards,

Mikael
Logged
mikael
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #1 on: March 23, 2010, 06:32:02 am »

Got this solved.

For some reason it didn't worked when trying to set an integer like this (still the clientviewable field is a number field):
>> newworklog.setValue("clientviewable", 1);   // this line doesn't do anything

...but when setting the value as a string it works -->
newworklog.setValue("clientviewable", "1");   // this works
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!