<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=710391008-24062006><FONT face=Arial 
size=2>Dear All,</FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial size=2>I managed to add a 
property to an object by&nbsp;using the manage_addproperty () 
method.</FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial size=2>However, if I don't 
issue a manage.reindexIndex () for the new property, it won't come out in the 
catalog search results.</FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial size=2>So I issue 
reindexIndex (), but when I finally try to display the property, all I get is 
'Missing Value'.</FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial size=2>But if I then issue 
the command refreshCatalog(clear=1), the property is now visible. Although 
refreshCatalog works, it would gobble up the server's CPU and memory resources 
everytime its run.</FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial size=2>My question is, is 
there another command I can use instead of refreshCatalog to make the property 
display ?</FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial size=2>Below is the code 
I'm talking about :</FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial color=#0000ff size=2>wf = 
context.GeneralWorkflow</FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial color=#0000ff 
size=2>instance_id = wf.addInstance( process_id=process, customer=jobname, 
comments=comment, title=subject, activation=1)</FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial size=2><FONT 
color=#0000ff>wf.getInstance(instance_id).<STRONG><FONT 
color=#ff0000>manage_addProperty</FONT></STRONG>('jobname', 'ABC12345', 
'string')</FONT><BR></FONT></SPAN><SPAN class=710391008-24062006><FONT 
face=Arial color=#0000ff size=2>wf.Catalog.<FONT 
color=#ff0000><STRONG>manage_reindexIndex</STRONG></FONT>(ids=['jobname'], 
REQUEST=None, RESPONSE=None, URL1=None)</FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial color=#0000ff 
size=2>jobs&nbsp;= cat.searchResults({'jobname':'ABC12345'})</FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial color=#0000ff size=2>for j 
in jobs:</FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; <FONT 
face=Arial size=2>print j.jobname</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=710391008-24062006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN 
class=736414913-24062006>Danny</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN 
class=736414913-24062006></SPAN></FONT>&nbsp;</DIV></BODY></HTML>