Can we change the data in string table in K2 via K2 API??
if can how?? because i need some data in string table to be changed by using asp
thx
Can we change the data in string table in K2 via K2 API??
if can how?? because i need some data in string table to be changed by using asp
thx
You can using the WorkflowManagementServer object. Have a look at the following location in the Help File, find the GetStringTable and UpdateStringTable methods:
SourceCode.Workflow.Management Assembly > SourceCode.Workflow.Management Namespace > WorkflowManagementServer
Hi DC,
Thanks for the answer, but i already check the updatestringtable method but it just boolean without any parameter to input with (so how i want to update the data in the string table??) and for the getstringtable method the parameter input is asking for environment but what i know is the key for stringtable
oyeah and i have a problem with workflow management server that i'm not authenticated to acces the getstringtable method, and i'm already using admin acces for it
thank you
You can try the following:
SourceCode.Workflow.Management.WorkflowManagementServer oServer = new SourceCode.Workflow.Management.WorkflowManagementServer();
try
{
oServer.CreateConnection();
oServer.Connection.Open(BuildConnString());
//Params: Environment Name
// Old String table field Name
// New String table field Name
// New String table field Value
oServer.EditStringTableEntry("Development", "Web Service URL", "Web Service URL", "http://localhost:80");
}
finally
{
oServer.Connection.Close();
}
MessageBox.Show("Done");
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.