forwarding request in xml

webmasterbeta

New Member
In my form I have to fill in three fields that is either Invoice numberv or both payment reference number and customer id.

I have a single button namely Next in the page.

Have got two scenarios to deal with.

When i enter invoice number i have to proceed with scenario 1 pages the State of this page is 'A'

When I enter both payment reference number and customer id(both mandatory) I have to proceed with scenario2 pages.the State of this page is 'INV'


for this I have written a method

function next((frm,stateMachine,state,oper,status)) {

forwardRequest(frm,stateMachine,state,oper);
}

statemachine name is GenPayment.

Pls help me about how to call two different pages by calling the same button using this forwardrequest method.Is this something like this.

<Button Name="fwdBtn" OnClick="javascript:next(this.form,'GenPayment','','','')">Next</Button>


Whoever are aware of this pls help me.

thank you,
svani.
 
Back
Top