Websockets vs API in Teable - Want to Modify Lookup Table Sort Order #1375
-
Hi all, I have a lookup column in Table A that references values from Table B. When I click inside one of those lookup cells in Table A, it opens a popup displaying Table B's data where I can select values. This is great. However, in my popup display view of Table B, I cannot change the sort order of those rows. This is a frustrating pain-point for me. When I apply a sort to Table B, navigate back to Table A, and then click inside one of my lookup cells to open up my popup display where I can select values from Table B, the Table B Row order does not reflect the sort order I just applied. The Table B Row order is only ever sorted according to the ASSUMPTION: I believe this is because the "Normal" Table B grid view where I can apply the Sort is displaying data fetched from the API, whereas the "popup" view of Table B I see after clicking inside a Lookup column cell in Table A is displaying data fetched from the websocket. I tried modifying the API endpoint where the data for the "popup" display view of Table B is being fetched from, and that does not change the sort order, which supports my assumption that this data is being fetched through a websocket connection. QUESTION: Can anybody explain to me how WebSockets are used inside of Teable? It does not make sense to me that WebSockets are used in some places but not others, or that the displays being driven by WebSocket data are also making XHR requests to fetch that data. I would like to know where the entry points are, how I can debug the websocket code, and any other useful information you can share so that when I click inside a Lookup cell in Table A, the popup view of Table B orders the Rows the same way they are in the "Normal" Table B grid view. Thanks ya'll |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When you create a Link Field, in "more options", you can select a certain view. After this, the data will be displayed in the record selection box in the order of the corresponding view. |
Beta Was this translation helpful? Give feedback.
When you create a Link Field, in "more options", you can select a certain view. After this, the data will be displayed in the record selection box in the order of the corresponding view.