I already posted a treat for this problem and got some explanations but still cannot figure out how to do this.
I have currency field which contain negative and positive amounts. I need to convert it totext(I'll explain). But then I am sorting
by this field and my sort come up like:
5.25
6.00
-7.00
7.50
-8.25
9.00....
I need
-8.25
-7.00
5.25
6.00.....etc. And I cannot find a way to do this.
Why I am converting:
I have Parameter field SORT which contain all fields in the report. Then I have a formula Sort where all field should be Totext
Then I grouped by this SORT so user can select a field he wants to sort by. So... my sort is string...........
my @Sort formula looks like:
if {?Sort} = "Provider Name" then {PACS_PROJECT.PROVIDER_NAME}
else
if {?Sort} = "Final date" then totext({PACS_PROJECT_FINANCIAL.FINAL_ISSUE_DATE},"yyyy-mm-dd"
else
if {?Sort} = "Amount Due" then totext({PACS_PROJECT_FINANCIAL.AMOUNT_DUE},"000000000"
else
if {?Sort} = "Balance Due" then totext({PACS_PROJECT_FINANCIAL.BALANCE_DUE},"00000000"
and in the report I display just PACS_PROJECT_FINANCIAL.BALANCE_DUE field
I really need help
Thank you
I have currency field which contain negative and positive amounts. I need to convert it totext(I'll explain). But then I am sorting
by this field and my sort come up like:
5.25
6.00
-7.00
7.50
-8.25
9.00....
I need
-8.25
-7.00
5.25
6.00.....etc. And I cannot find a way to do this.
Why I am converting:
I have Parameter field SORT which contain all fields in the report. Then I have a formula Sort where all field should be Totext
Then I grouped by this SORT so user can select a field he wants to sort by. So... my sort is string...........
my @Sort formula looks like:
if {?Sort} = "Provider Name" then {PACS_PROJECT.PROVIDER_NAME}
else
if {?Sort} = "Final date" then totext({PACS_PROJECT_FINANCIAL.FINAL_ISSUE_DATE},"yyyy-mm-dd"
else
if {?Sort} = "Amount Due" then totext({PACS_PROJECT_FINANCIAL.AMOUNT_DUE},"000000000"
else
if {?Sort} = "Balance Due" then totext({PACS_PROJECT_FINANCIAL.BALANCE_DUE},"00000000"
and in the report I display just PACS_PROJECT_FINANCIAL.BALANCE_DUE field
I really need help
Thank you