Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hello everyone,
I want to ask: why there is no data shape choosing for infotable input in events router function? It makes event router useless for cases when data shape of function output is needed - for example, if I want to use output infotable for dropdown, list or data grid.
I'm using TW 8.5
Thanks a lot
Solved! Go to Solution.
Hello @lala_guliyeva,
I don't know why, so I don't have an answer to your question.
However, as a workaround you can try the following trick, which works for us at least for Dropdowns:
I believe that it should also work for Grids and other widgets. The reason why it works is because even if you replace the binding to Data, the widget still keeps the old config (unless you change it again).
I'm not sure whether it's a bug or feature, but we've been exploiting it quite extensively.
Regards,
Constantine
Hello @lala_guliyeva,
I don't know why, so I don't have an answer to your question.
However, as a workaround you can try the following trick, which works for us at least for Dropdowns:
I believe that it should also work for Grids and other widgets. The reason why it works is because even if you replace the binding to Data, the widget still keeps the old config (unless you change it again).
I'm not sure whether it's a bug or feature, but we've been exploiting it quite extensively.
Regards,
Constantine
thank you for your answer! But it doesn't work for my custom data grid widget. I use another way: I send output of events router to one 'dumb' service that returns me the same infotable with defined datashape, but this is kinda ugly trick. Why I think that this is not right:
I've just thought of another workaround, which is just as ugly, but should do the trick without waiting for the response from the server (it will still send the request though) -- bind the result of your event router to an INFOTABLE session variable and then bind it back to your widget.
If your custom widget is based on Advanced Grid, you might be able to configure the columns explicitly via a JSON parameter.
I agree that it should be supported out of the box.
/ Constantine
Hi @lala_guliyeva.
If one of the previous responses answered your question, please mark the appropriate one as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon