Sunday, May 4, 2014

Deployment Folder Structure

Leave a Comment
When a document is identified by its path and its name, we will create the following folder
structure: Domain > CompanyName > ApplicationName
For example: de.acme.mobility
Read More...

Design-Time Folder Structure

Leave a Comment
In your project, you can create folders and documents in any way you want to. Cordys is not enforcing a methodology; however it is important to use standards and naming conventions in your projects. Using a standard way of working improves team productivity and project maintenance. 
Here are the standard names:
  • Business Process Models
  • Case Models
  • Meta Data
  • Roles
  • Runtime References
  • User Interfaces
  • Web Services 
  •  WS-AppServer
  • Cordys Install dir 
  •  Cordys Web dir 
  • XML Store
[Will be updated...]
Read More...

Wednesday, March 12, 2014

JavaScript code to Approve a Task

Leave a Comment
1


function btnApprove_Click(eventObject)
{
approve.setValue("Y");
LeaveDetailsModel.synchronize();
Workflow.completeTask();
}

[ *approve is a field which is updated to "Y" on click of Approve Button ]
Read More...

Thursday, March 6, 2014

Save Button to Synchronize

Leave a Comment

function btnSave_Click(eventObject)
{
CustomerDetailsModel.synchronize();
btnSave.hide();
btnCancel.hide();
btnModify.show();
CustomersGroup.disable();

}
Read More...

Setting namespace, value

Leave a Comment

function loginPassword_Validate(eventObject)
{
if( loginCustomer.getValue() != loginPassword.getValue() )
{
eventObject.errorMessage = "Wrong Password! Please Try Again.";
eventObject.valid = false;

}

else
{
grpLogin.hide();
CustomersGroup.show();
btnModify.show();

var customerRequest = CustomerDetailsModel.getMethodRequest();
var namespacesArray = cordys.getXMLNamespaces(customerRequest);
namespacesArray["cus"] = "http:/"+"/schemas.cordys.com/MphasisMetadata";
cordys.setXMLNamespaces(customerRequest,namespacesArray);
cordys.setNodeText(customerRequest,".//cus:CustomerID",loginCustomer.getValue());
CustomerDetailsModel.getDataset();
CustomersGroup.disable();
}
}
Read More...

Hide a Groupbox on Form Load

Leave a Comment

function Form_Init(eventObject)
{
CustomersGroup.hide();
}

Read More...

Password Check: Display Error

Leave a Comment

function loginPassword_Validate(eventObject)
{
if( loginCustomer.getValue() != loginPassword.getValue() )
{
eventObject.errorMessage = "Wrong Password! Please Try Again.";
eventObject.valid = false;

}
}
Read More...