This is a migrated thread and some comments may be shown as answers.

Generating Dictionary object in JavaScript

0 Answers 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
HAN MING
Top achievements
Rank 1
HAN MING asked on 02 Feb 2017, 02:31 AM

Hi,

I having problem generating a dictionary object out in a Grid Template, it is saying there a incorrect syntax.

Can anyone help me?

     template: '<div id="#=ReferenceNumber#_#=CreateAward#">

                                        <a href="#=EffectiveProcurementURL#" target="_blank">#=CreateAward#</a>
                                        <img src="/images/navdown.gif" style="cursor:pointer;" onclick="toggleDisplay("#=ReferenceNumber#")" />

                                        <ul>
                                            # for (var key in OtherProcurementOption) { #  
                                                #=var value = OtherProcurementOption[key];#  

                                                <li><a href="#=value#" target="_blank">#=key#</a></li> 

                                                # } #


                                        </ul>
                                    </div>'

No answers yet. Maybe you can help?

Tags
Grid
Asked by
HAN MING
Top achievements
Rank 1
Share this question
or