I would like to know if it is possible to sort the results of a link field ALPHABETICALLY instead of by the last edited sorting that the system follows by default.
Whether I need to put a custom client side script or custom server side script for the same.
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
On 29-May-2014, at 11:56 am, Aditya Duggal <ad...@gmail.com> wrote:
Hi,
I would like to know if it is possible to sort the results of a link field ALPHABETICALLY instead of by the last edited sorting that the system follows by default.
Whether I need to put a custom client side script or custom server side script for the same.
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
On 29-May-2014, at 11:56 am, Aditya Duggal <ad...@gmail.com> wrote:
Hi,
I would like to know if it is possible to sort the results of a link field ALPHABETICALLY instead of by the last edited sorting that the system follows by default.
Whether I need to put a custom client side script or custom server side script for the same.
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
On 29-May-2014, at 11:56 am, Aditya Duggal <ad...@gmail.com> wrote:
Hi,
I would like to know if it is possible to sort the results of a link field ALPHABETICALLY instead of by the last edited sorting that the system follows by default.
Whether I need to put a custom client side script or custom server side script for the same.
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
Sort Field and Sort Order are used to determine how to sort the records in the list view when displaying it and it is not related to the link field.
I am really looking for a method to sort the values of the link field alphabetically (from A to Z or from Z to A). For example, when I click on item code, I need to see the codes of the item arranged ascending from A to Z (Aword1, Bword2, Cword3, … etc). How to achieve this?
As settings, I did not find.
And I did not continue working on this issue.
But as coding (customization): have you tried set_query if it possible to take the ordering as argument? I think this need to be checked or ask on the forum about it.
If set_query resolved your problem, please let me know.
I have the same problem. I don’t really know how to fix this. All linked fileds seems to be sorted randomly. Is there any solution out of the box? Or script? But it affects all linked field so to script this will be a lot of work
First of all, as there is no query will be done, so you need to use set_query and not get_query.
Second: I do not think you need to use filters because you are not filtering, but rather you are ordering.
Third: you need to check (we need someone to confirm) if it is possible to use order_by as in below example: