Problems with displaying results in dom-module

44 views
Skip to first unread message

te...@terryarnett.com

unread,
Mar 18, 2017, 6:28:30 PM3/18/17
to Polymer
My first post asking for help, so please be patient with a newbie ..

Why doesn't this work?  The console.log shows that data is being returned from the database.
Nothing show up in the <paper-item dropdown.



code..........................

<dropdown-Payee></dropdown-Payee>
                            

                            <dom-module id="dropdown-Payee">

                                <template>

                                    <paper-dropdown-menu label="Pay to the Order Of :" style="width:375px;margin-top:-5px">

                                        <paper-listbox class="dropdown-content" id="ddlPayTo">

                                            <template is="dom-repeat" repat="{{item in items_array}}">
                                                <paper-item name="{{item.pName}}">{{item.pName}}</paper-item>
                                            </template>

                                        </paper-listbox>

                                    </paper-dropdown-menu>

                                </template>


                                <script>
                                    Polymer({
                                        is: "dropdown-Payee",
                                        ready: function () {
                                            $.ajax({
                                                type: "POST",
                                                url: "PayeeService.asmx/GetPayees",
                                                data: "",
                                                contentType: "application/json; charset=utf-8",
                                                datatype: "json",
                                                success: function (data) {
                                                    var items_array = data.d;
                                                    console.log(items_array);
                                                }
                                            });
                                        }
                                    });
                                </script>

                            </dom-module> 

Karl Tiedt

unread,
Mar 18, 2017, 7:15:00 PM3/18/17
to te...@terryarnett.com, Polymer
repat="{{item in items_array}}"

This doesn't have meaning to polymer...toy probably want this to be items=....

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/edd07573-b814-44db-814b-adf8960a0e33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Karl Tiedt

unread,
Mar 19, 2017, 6:16:45 PM3/19/17
to te...@terryarnett.com, Polymer
Since Terry decided to take this private, I am forwarding the responses to this list to keep the history. Especially since after attempting to help Terry with both the answer to his problem and some basic advice for getting help from community mailing lists... his end response was "Up yours".

Good luck Terry, you'll need it at this point.


-Karl Tiedt

---------- Forwarded message ----------
From: <te...@terryarnett.com>
Date: Sun, Mar 19, 2017 at 3:08 PM
Subject: RE: Private message regarding: [polymer-dev] Problems with displaying results in dom-module
To: Karl Tiedt <kti...@gmail.com>


up yours !!!!

-------- Original Message --------
Subject: RE: Private message regarding: [polymer-dev] Problems with
displaying results in dom-module
From: Karl Tiedt <kti...@gmail.com>
Date: Sun, March 19, 2017 4:56 pm
To: te...@terryarnett.com

And I'm telling you how you get help in these communities... If you are gong to ignore my help, then by all means, don't bother following up when I answer your questions, but you should leave all emails on the mailing list so others can learn too.

Good luck

On Mar 19, 2017 2:24 PM, <te...@terryarnett.com> wrote:
I'm asking for help, not criticism.  

-------- Original Message --------
Subject: Re: Private message regarding: [polymer-dev] Problems with
displaying results in dom-module
From: Karl Tiedt <kti...@gmail.com>
Date: Sun, March 19, 2017 3:26 pm
To: te...@terryarnett.com

You did not have "repeat" though you had "repat", either way, "repeat" is not listed as a valid property or method of dom-repeat... Also responding off list defeats the purpose of having a mailing list for support, it removes relevant information from the thread....

-Karl Tiedt

On Sun, Mar 19, 2017 at 11:17 AM, <te...@terryarnett.com> wrote:
I have used both combinations, "repeat=" and "items="

To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.


-Karl Tiedt

Karl Tiedt

unread,
Mar 19, 2017, 6:52:19 PM3/19/17
to Polymer
Dude, quit while your hole isn't too deep to crawl out of... I answered your question and offer relevant advice. At this point you should drop it.

---------- Forwarded message ----------
From: <te...@terryarnett.com>
Date: Mar 19, 2017 3:34 PM
Subject: RE: [polymer-dev] Problems with displaying results in dom-module
To: "Karl Tiedt" <kti...@gmail.com>
Cc:

Have you always been an asshole, or has it been since you took over as "Head Dick" for a mailing list community?
Awesome responsibility. Highlight of your career I bet.
You received this message because you are subscribed to a topic in the Google Groups "Polymer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/polymer-dev/r58F4BuBLSg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to polymer-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CADNgbTH%2B%2BRc9docR0xu%3DB-iKQuixMxnJuuXyVEatXUfiEDaRng%40mail.gmail.com.

Karl Tiedt

unread,
Mar 19, 2017, 7:36:17 PM3/19/17
to Polymer
Feel free to include any of my correspondence if you feel I neglected to include anything such as these:

repat="{{item in items_array}}"
This doesn't have meaning to polymer...you [typo corrected] probably want this to be items=....

Or maybe this one?

You did not have "repeat" though you had "repat", either way, "repeat" is not listed as a valid property or method of dom-repeat... Also responding off list defeats the purpose of having a mailing list for support, it removes relevant information from the thread....

Or maybe this one?

And I'm telling you how you get help in these communities... If you are gong to ignore my help, then by all means, don't bother following up when I answer your questions, but you should leave all emails on the mailing list so others can learn too.
Good luck

Note, twice I pointed out "repat" and "repeat" have no meaning to "dom-repeat", feel free to point out where my "lame" response was left out.

Either respond to the mailing list or do not respond at all to me, I will no longer respond to your private emails, but I will continue to share your insults with the list if you continue to attack me privately, because this is meant to be a professional place to seek help and attacking those who help achieves absolutely nothing. It also wastes the time of the volunteers here who offer their time freely for yours and the community's benefit.

-Karl Tiedt

On Sun, Mar 19, 2017 at 4:20 PM, <te...@terryarnett.com> wrote:
No "Dude", you didn't. And I also noticed you didn't include your lame response in the mailing list, that, by the way, doesn't work.  

Reply all
Reply to author
Forward
0 new messages