This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GUI Composer: How to assign values to CCS variables

Hi. I am writing from Argentina. and newbie with GUI Componer (CCS 6.0). 

I need to catch the value of a CCS variable when I push a button in GUI composer. How this can be done?

 This catched value will be used next in CCS code.

I mean this: when I push a button in GUI, I need to do this statement:  

variable1 = variable2; 

Both variables will be used in CCS application code.

I know that it must be created a javascript file that run with the event "click" of the button object.

Can you share with me an example?

Thanks in advance!

Guillermo.

  • Hi Guillermo,

    Guillermo Luis Acosta Licitra said:
    Can you share with me an example?

    There are no examples as such but I'm looping you to a GUI expert.

    Regards,

    Gautam

  • Hi Guillermo, 

    If I understood your requirement, then ValueButton should accomplish what you are looking for. It works well for simple data types. Link below contains a short description of this widget. If ValueButton works, then you do not need javascript or onclick handler. It can write a single static value. 

    http://processors.wiki.ti.com/index.php/GUI_Composer_Widgets_And_Properties#ValueButton

    Martin

  • Hi Martin,

    ValueButton works for sending a single variable. what about data types like structure or array?
    My requirement is to capture values from a drop down, 3 text boxes and a radio button. any idea to accomplish this?
    From Java Script in GUI composure we can create an object. Now the question comes how to capture the same in CCS using C.
    Please share your thoughts.

    - Bhavesh