function AddMetadata(customField, customValue , customDescription, parentValue){
// return either the cached value or jqXHR object wrapped Promise
var payload ={};
if(parentValue===null){
payload = { database: "Blah",
id: customValue,
description: customDescription,
wstype: customField,
enabled: true,
hipaa: false
};
}
else{
payload = { database: "Blah",
id: customValue,
description: customDescription,
wstype: customField,
enabled: true,
hipaa: false,
parent: {
id: parentValue
},
};
}
return $.when(
// cache[ "Token" ] ||
$.ajax({
url: cache["baseurl"] +'customs/'+ customField,
type: 'post',
headers: {
'X-Auth-Token':cache[ "Token" ],
'Content-Type': 'application/json'
},
dataType: 'json',
data: JSON.stringify(payload),
success: function( resp ){
//debugger;
//cache[ "doc_id" ] = resp.data[0].id ;
console.log("AddMetadata:success");
},
failure: function( resp ){
console.log("AddMetadata:failure");
console.log(resp);
}
})
);
}
///////////////////////////////////////////////////////////////
Monday, May 15, 2017
Adding Imanage metadata - JS Example
IManage groups
NOS values
- 6 - Active Directory
- 2 - Virtual
An external user or a user in an external group will only have access to workspaces that have explicit access. So public workspaces will not be visible for external users.
Friday, May 12, 2017
IManage work installation issues
we have a firewall that only allows calls to 443 and 80 ports
so you cant communicate to the IManage server unless ports 1080, 1081 are opened
so you cant communicate to the IManage server unless ports 1080, 1081 are opened
Imanage uploading a file the second time
There is something that is very
annoying with iManage concerning uploading documents
If you upload a document to a
folder twice you will get 2 different documents , not a choice for overwriting
or a new version
This is true if you drag and
drop or use file upload
To get a new version you need to
either
Or edit the doc and save as new
version in imanage word plugin
This, BTW, is the default
behavior in desk site, but you can change that in the registry
In desk site there is a
different problem in that when you upload a doc you have to fill the author
(it’s not set from the user who’s logged in) and it doesn’t figure out
the class
In this instance the web is
better
Tuesday, February 28, 2017
ie 11 history folder
C:\Users\user\AppData\Local\Microsoft\Windows\History
history is hidden so just write it out
history is hidden so just write it out
Monday, February 20, 2017
Wednesday, February 8, 2017
pip in modern python
if you download latest you will automatically get pip
the path is set with the install
so in cmd window type whatever - pip install requests - for example and that should work
the path is set with the install
so in cmd window type whatever - pip install requests - for example and that should work
Subscribe to:
Comments (Atom)



Options
Set the following DWORD value:
Name: Default SaveAs Option
Values:
1 – The New Document option is selected by default.
2 – The Replace Original option is selected by default.
3 – The New Version option is selected by default.