Hello,
while I test what you have written to me ..
I've been looking, you know how the tag <g: evaluate> works?

I have seen that it allows to execute javascript and give value to the variable 
that you need. Could I do something like that? or something similar..:

                            var select = document.getElementById("packgeItm");
                            select.addEventListener('change',
                            function(){
                                var selectOption = 
this.options[select.selectedIndex];
                                //Here I get what I have selected in the 
ComboBox (selectOption = String)
 
                                var myAction = <st:bind value="${it}" />
                                
myAction.getOrdersForPackage(selectOption.value,function(res){
                                 var result_array = res;
                                //This returns the array I need, or JSON        
                        
                    
                            })
                          });


I need the value of that array to be saved in this variable, to then go through 
it.

Could I do something like this ?:

<g:evalute var="result" object="true">
  
  --Insert the javascript code here--
  result_array;

</g:evaluate>


This way, it does not work ... but some similar idea.. :(

Thanks!!!! 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/87e2fe5c-02c9-4bc0-a06e-4519c5afc341%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to