cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting Problem

Former Member
0 Kudos

Hi

I have a problem in sorting and i have used the table sorter where i have a date field and the data i get from web service has date format <b>yyyyMMddHHmmss</b> and i want to show in date in <b>dd:MM:yyyy HH:mm:ss</b> this format but when i apply new format to date it does not sort well it returns some wrong sorting (only in new format)

please tell me what could be the problem

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi nk,

AFAIR, TableSorter has constructor wich takes array of Comparator`s. Implement appropriate comparator wich will comapre NOT context attrubute which is bound to cell editor (formated) BUT initial one (not formated).

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

I am not getting any thing i am new to web dynpro and don't get any thing. can you please explain a bit more

former_member182372
Active Contributor
0 Kudos

OK.

In case you are not getting anything it can be too long to explain.

Please, answer:

Do you know what is Comparator?

Do you know what is constructor and constructor parameters?

Do you know what is binding between context attributes and UI elements properties in terms of WD?

Do you know the nesting structure of Table UI element and approprtiate properties of involved objects?

Do you have rough understanding how TableSorter works?