WCS | Command Redirect / Forward to a View


Redirect:
public void performExecute() throws ECException {
..........
..........
        TypedProperty rspProp = new TypedProperty();
        rspProp.put(ECConstants.EC_URL, "ViewName");
        rspProp.put(ECConstants.EC_VIEWTASKNAME,
                ECConstants.EC_GENERIC_REDIRECTVIEW);

.........
.........
}
               
Forward:

public void performExecute() throws ECException {
..........
..........

        TypedProperty rspProp = new TypedProperty();
        rspProp.put(ECConstants.EC_VIEWTASKNAME,
        "
ViewName");       

.........
.........
}

1 comment:

  1. WHAT IF YOU HAVE THREE PARAMETERS SET..

    rspProps.put(ECConstants.EC_URL, postbackURL);
    rspProps.put(ECConstants.EC_VIEWTASKNAME, ECConstants.EC_GENERIC_REDIRECTVIEW);
    rspProps.put(ECConstants.EC_REDIRECTURL, JSPViewNames.View_name);

    ReplyDelete

My Writings........

Salesforce | Administration | Email-to-Case | Create Cases using Email-to-Case

Email to Case Setup ·        Click on Email-to-Case ·         Enable the following flags, ·        Provide the Routing Addres...