{Form
FORMNAME:	widgetreq
/*
{Field
	ROW:	2
	COL:	0
	SCREEN:	0
	TEXTATTRS:	bold
	LOCKED-IF:	nodenumber != 0
	DETAIL:
	{DisplayField
		DISPLAY:
		{BoxDisplay
			HEIGHT:	10
			WIDTH:	75
		}
	}
}
*/
{Field
	NAME:	numberfield
	ROW:	4
	COL:	5
	DOWN:	colorfield
	LOCKED-IF:	nodenumber != 0
	DETAIL:
	{InputField
		DISTANCE:	16
		PROMPT:		Serial Number:
		INPUTSOURCE:
		{NumericInput
			DEFAULTVALUE:	12345678
		}
	}
}


{Field
	NAME:	colorfield
	ROW:	6
	COL:	5
	UP:	numberfield
	DOWN:	reasonfield
	LOCKED-IF:	nodenumber != 0
	DETAIL:
	{InputField
		DISTANCE:	16
		PROMPT:		Color:
		INPUTSOURCE:
		{SelectionInput
			TYPE:		exclusive
			CHOICES:	Red,Blue,Green,See-though
			COLUMNS:	999
			DEFAULTVALUES:	3
		}
	}
}

{Field
	NAME:	reasonfield
	ROW:	8
	COL:	5
	UP:	colorfield
	LOCKED-IF:	nodenumber != 0
	DETAIL:
	{InputField
		DISTANCE:	16
		PROMPT:		Reason:
		INPUTSOURCE:
		{TextInput
			LENGTH:		50
		}}}

{Field
	NAME:	commentfield
	ROW:	9
	COL:	5
	UP:	colorfield
	LOCKED-IF:	nodenumber == 0
	INVISIBLE-IF:	nodenumber == 0
	DETAIL:
	{InputField
		DISTANCE:	16
		PROMPT:		Comment:
		INPUTSOURCE:
		{TextInput
			LENGTH:		50
		} } }


/*
{Field
	ROW:	2
	COL:	0
	SCREEN:	0
	TEXTATTRS:	bold
	DETAIL:
	{DisplayField
		DISPLAY:
		{BoxDisplay
			HEIGHT:	10
			WIDTH:	75
		}
	}
}
*/

{Field
	ROW:	0
	COL:	25
	SCREEN:	0
	TEXTATTRS:	bold
	DETAIL:
	{DisplayField
		DISPLAY:
		{TextDisplay
			DATA:	REQUEST FOR WIDGET
		}
	}
}

/*
{Field
	NAME:	helpline
	ROW:	12
	COL:	16	
	DETAIL:
	{DisplayField
		DISPLAY:
		{TextDisplay
			DATA:	Press <tab> to move to next input field
		}
	}
}
*/

}

{Route

{
	NODENUMBER:	0
	STATUSSTRING:	"Being Requested"
	ACTIONLIST:	{"Send request", 1}
	TERMINAL:	0
	DEFAULTQUEUE:	sao
	HIDDEN:		commentfield
	LOCKED:		commentfield
	
}

{
	NODENUMBER:	1
	STATUSSTRING:	"Pending Approval"
	ACTIONLIST:	{"Approve", 2}, {"Reject", 4}
	DEFAULTQUEUE:	sao
	TERMINAL:	0
	LOCKED:	numberfield, colorfield, reasonfield
}

{
	NODENUMBER:	2
	STATUSSTRING:	"Awaiting Purchase"
	ACTIONLIST:	{"Purchase", 3}, {"Cannot Obtain", 4}
	DEFAULTQUEUE:	purchasing
	TERMINAL:	0
	LOCKED:	numberfield, colorfield, reasonfield, commentfield
}

{
	NODENUMBER:	3
	STATUSSTRING:	"Purchased"
	ACTIONLIST:	{}
	DEFAULTQUEUE:	purchasing
	TERMINAL:	1
	LOCKED:	numberfield, colorfield, reasonfield, commentfield
}

{
	NODENUMBER:	4
	STATUSSTRING:	"Denied Or Unavailable"
	TERMINAL:	1
	DEFAULTQUEUE:	sao
	LOCKED:	numberfield, colorfield, reasonfield, commentfield
	ACTIONLIST:	{}
}
}
