Pass Parameter UX file at JS file

good morning, how do I pass a parameter file ux to a js file, this parameter I need to pass this way is because I’m going to send my api Rest so you can get me just the data I need.

![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/XNqAYFX9T0cV-image-1476276049283.36.32 AM.png)> Jimmy Rodriguez wrote:

good morning, how do I pass a parameter file ux to a js file, this parameter I need to pass this way is because I’m going to send my api Rest so you can get me just the data I need.

in the first image ux file has a classe called “items” and is a component that loads the data within the data shown I need to take a value and send it to a js file and make a fetch to retrieve data only that value is an id.

example:
I retrieve the data that are surveys, and the id of that table is the need to send to retrieve the survey questions.

![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/MqPmtN7YHZ9z-image-1476276504325.44.36 AM.png)

ONLY I NEED TO KNOW, HOW TO PASS A PARAMETER BETWEEN UX FILE TO JS FILE,.

This is documented here.