ChainsawJoe
Programmer
This is driving me crazy now. Can someone PLEASE tell me why I'm told "A (datatype refering to the previous entry) is required here" after each table field datatype changes?!
Pleeeeeease!! I've done so well today.. got Crystal working in .Net, got it passing parameters back to itself - now all I want to do is use the parameter "?sortfield" within the formula "@sort" (which is used as the Sort Order) to change the sorting of the results...
--------------------------------------------------
- better than toast.
Penguins - better than --------------------------------------------------
Code:
If {?sortfield} = "Title" Then
{Pages.Title}
Else
If {?sortfield} = "Author" Then // <-- up to here is fine
{Person.Surname}
Else
If {?sortfield} = "Created" Then // <-- up to here is peachy
{KnowledgeBaseItem.CreatedDate}
Else
If {?sortfield} = "Update" Then // <-- "A string is required here"
{Pages.UpdatedDate}
Else
If {?sortfield} = "Hits" Then // <-- "A datetime is required here"
{KnowledgeBaseItem.Hits}
Else
If {?sortfield} = "Category" Then // <-- "A number is required here"
{KnowledgeBaseGroupSubtype.Name}
Else
{Pages.Title}
Pleeeeeease!! I've done so well today.. got Crystal working in .Net, got it passing parameters back to itself - now all I want to do is use the parameter "?sortfield" within the formula "@sort" (which is used as the Sort Order) to change the sorting of the results...
--------------------------------------------------
- better than toast.
Penguins - better than --------------------------------------------------