I am doing a simple rest service and I want to populate a field with the result of my invoke and i'm having a difficult time of it. I put a datagrid on the page so I know I am getting valid data. I can do a rowselect event and pass the field from the grid by setting my field sel_zipcode with ${event.zipcode} but if I try to do it directly to the field when i'm invoking using field sel_zipcode with {result.zipcode} it does not work.
I am invoking my rest client from a button.
setting the property of sel_zipcode with the result of ws call result.zipcode
my textbox has a value of ${sel_zipcode}
when the user clicks the button I would like to fill in fields on the screen with the result.
This setup looks absolutely valid. I think the only reason it won't work is if the REST method fails or returns different result than the expected. Can you check in your browser's developer tools what the server response is?
The DataGrid usually expects an array of items. Is this what your REST API returns? Can you paste here a sample response (or a screenshot from your browser's network tab)?