no data from query to parameter in function

no data from query to parameter in function

  
Hi,

I have a function getting parts with given category (to show in combo).
When I test the query in service studio I get 4 lines
video 4
video a3 ...
At run time I get only the first line, length = -1 and no data to output parameter, as shown in attachment

Best regards

Hi,

 

I believe that might be due to the platform performance optimizations.

 

The list and the length will only get fetched at the time (and if) they are used. If you put the breakpoint in the place the list is actually used you might be able to see those items .

 

Cheers,

Tiago Simões

Hi,
Thanks for the quick answer.
This happens when I've choosen a category, the action is previously called but with no input parameter and no output, as expected.

the data
models: pc, server
categories: memory, video
parts: memory 1, memory 2, memory 3 video 1, video 2, video 3 (with corresponding categories)

Something must be wrong in action-function / query / parameters

Is there an example of feeding a combo with a function ? If not, could you take a look at my oml ?

Thanks in advance

Hi,

 

I took a look and it seems to me that in the onChange action you'll only need to use an Ajax Refresh to refresh the combo box that uses that function in the source record list.

 

Cheers,

Tiago Simões