public class FormSample extends LoginSample
In Track+ you can define any number of forms (input masks) and assign them to actions like edit, change status, and so on, depending on project and issue type.
This class demonstrates how to access the form definition information via the web service interface.
The class uses the LoginSample
class to perform the login. You need
to set the URL and the user name and password in that class before you
compile and run this class here.
This example is a Java console application. You can run it directly by
calling its main()
method.
connector, pField, uName, url
Constructor and Description |
---|
FormSample() |
FormSample(TCLFacade connector) |
Modifier and Type | Method and Description |
---|---|
void |
getEditForm() |
static java.lang.String |
getHorizontalAlign(int halign) |
static java.lang.String |
getHorizontalAlign(java.lang.String halignStr) |
static java.lang.String |
getVerticalAlign(int valign) |
static java.lang.String |
getVerticalAlign(java.lang.String valignStr) |
static void |
main(java.lang.String[] args) |
static void |
printForm(WSFormBean formBean) |
checkVersion, handleTCLFacadeException, login, login, run, startTime, stopTime
public FormSample()
public FormSample(TCLFacade connector)
public void getEditForm()
public static void printForm(WSFormBean formBean)
public static java.lang.String getVerticalAlign(java.lang.String valignStr)
public static java.lang.String getVerticalAlign(int valign)
public static java.lang.String getHorizontalAlign(java.lang.String halignStr)
public static java.lang.String getHorizontalAlign(int halign)
public static void main(java.lang.String[] args)