Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LAPI : Add empty value to a date field

Status
Not open for further replies.

hanreb

Technical User
Jan 23, 2008
90
US
Hello,

I am using Livelink 9.7.0.

How can I add an empty value to a date attribute field through LAPI ?

I am able to set any valid dates to the date attribute. But there are cases where the date value is empty hence I need to put the empty value to the date field as we can do in the Livelink UI.


Appreciate your help .

Thanks,
Sunu





 
Ok. Got it.

attrValues.add(new LLValue());
helps to set empty value to the field.

Below is the piece of code I was looking for..


attrValues.setList();
attrValues.add(new LLValue());
if (attr.AttrSetValues(catVersion, "Audit Date", attr.ATTR_DATAVALUES, attrValPath, attrValues) != 0)
{
System.out.println("AttrSetValues Failed in date.");
return;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top