Hi All,
Document library has two fields, title and name.I am having a custom action that enables when user selects a document in document library. custom action invokes java script function. this function fetch the meta data of selected document using client object model (ECMA Script). here i need to write a logic that if title field contains something, load the same else load thename field. Along this i load the modified by and modified on. It should be done in single hit.
here i am facing the problem that if title is option, document are being uniquely identified using Document ID. problem comes when title doesn't have value, instead returning the null, client object model through exception.
Could anyone please guide me how can i achieve this? also do anyone now that is the internal name for name field in doc library. actually i the same to load the field in client object model( ecmal script),
Regards Amit