Subject: Please help to get value of tmpChangeWhich item
To find out which is the update option that user has selected for the recurring meeting case I am using value of tmpChangeWhich Item. I am able to find out value of tmpChangeWhich Item through Lotus script using Source.Document.GetItemValue(“tmpChangeWhich”).
I have one C component through which I want to access the value of tmpChangeWhich Item. I am using NSFItemInfo CAPI to get items value. But NSFItemInfo API throws ‘Item not found’ error.
Following is the code snippet for the same:
error = NSFItemInfo(hNote2, “tmpChangeWhich”, (WORD) strlen(“tmpChangeWhich”), &item_blockid, &value_datatype, &value_blockid, &value_len);
if (error)
{
OSLoadString(NULLHANDLE,error,szError,sizeof(szError)-1);
StringCchPrintf( sMessage, 1023, TEXT("Error: %d Desc: %hs"), error, szError);
MessageBox(NULL,sMessage,"Error msg : ",MB_OK);
return;
}
else
{
if (TYPE_TEXT == (LONG) value_datatype)
{
field_len = NSFItemGetText (hNote2, “tmpChangeWhich”, textValue, (WORD) (lenTextValue));
textValue[field_len] = ‘\0’;
}
else
{
return;
}
}
Please help me if I missed something. Please help me to get value of tmpChangeWhich Item using NSFItemInfo CAPI.
Is there any other way to get the value of tmpChangeWhich Item using CAPI?
Thanks,
Abhi