<%

'**************************************************
'
'	<MQ:SRC_CAPTION> - <MQ:TGT_CAPTION> Business Rule
'	
'	
'**************************************************


GlobalID="<MQ:GLOBAL_ID_VAL>"
Session(GlobalID & "_EXECUTE_SQL") = "SELECT [<MQ:TGT_TABLE_ID_FIELD>] FROM [<MQ:TGT_TABLE_NAME>] WHERE ([nDependentFieldID]=%1) ORDER BY [<MQ:TGT_TABLE_NAME_FIELD>]"
Session(GlobalID & "_EXECUTE_DS") = <MQ:TGT_DS_TYPE>

'Optional
' Default value for parameter
Session(GlobalID & "_DEF_%1" ) = "-1"

' Default value to set if empty
'Session(GlobalID & "_EMPTY_VAL") = ""

%>

m_objWorkFlow.AddBizRule(
	{
		GlobalID:"<%=GlobalID%>",
	    Conditions:[
	    	{
	    		FieldID: <MQ:SRC_FIELD_ID>,
	     		ParamReplace: "%1"
	    	}
		],
	    Actions:[
	    	{
	    		ActionType:ActionType.PossibleValues,
	    		TargetFieldID: <MQ:TGT_FIELD_ID>,
	     		ValueSource: "<MQ:TGT_TABLE_ID_FIELD>"
	    	}
		],
		TriggerOnChange:true
	}
);



