Dominican1979
IS-IT--Management
Hello Everyone,
I'm trying to figure out how to sort by multiple fields using parameters. Right now i have the following: I have a parameter field where the user can choose one option, but i would like to have several where they can sort by name, then by city, etc or by whatever combination they want. Also I would like the parameter field to have all blanks initially as default because right now, the default option that is filled in on the parameter is name. Thanks a lot for your help
if {?SortField} = 'Name' then {USASalesRepCustListMS.Name} else
if {?SortField} = 'City' then {USASalesRepCustListMS.City} else
if {?SortField} = 'State' then {USASalesRepCustListMS.State} else
if {?SortField} = 'Zip' then {USASalesRepCustListMS.Zip} else
{USASalesRepCustListMS.Zip}
I'm trying to figure out how to sort by multiple fields using parameters. Right now i have the following: I have a parameter field where the user can choose one option, but i would like to have several where they can sort by name, then by city, etc or by whatever combination they want. Also I would like the parameter field to have all blanks initially as default because right now, the default option that is filled in on the parameter is name. Thanks a lot for your help
if {?SortField} = 'Name' then {USASalesRepCustListMS.Name} else
if {?SortField} = 'City' then {USASalesRepCustListMS.City} else
if {?SortField} = 'State' then {USASalesRepCustListMS.State} else
if {?SortField} = 'Zip' then {USASalesRepCustListMS.Zip} else
{USASalesRepCustListMS.Zip}