Carlo, without knowing what addApplicationMap() or toggleApplicationAdd() 
do, it's hard to know exactly what's going on.

Some things you might look at:

-Adding a new item to a list (ListOfApplicationNames) while you have a 
function looping over it might be something to look at
-Stack trace from the error should appear in your Developer Tools console 
in any browser, that should guide you to anywhere else to look - ofentimes 
it's right to the guts of Angular, but you can see what it's trying to do 
and reason backwards to figure out what is specifically causing it
-Add a breakpoint in addApplicationMap or toggleApplicationAdd and see if 
you can identify exactly which operation triggers the error

Good luck

On Thursday, February 12, 2015 at 10:48:01 AM UTC-8, Carlo Robazza wrote:
>
> Let me preface this with, I do not know Java (I'm a C# guy) and I was put 
> onto a project that uses Angular.js.
>
> I'm trying to add (copy actually) some simple functionality: 
> - display a drop down list
> - select an item and save it
> - when an item has been saved, allow the user to "edit" it by selecting a 
> different one.
>
> I pre-populated the database with a record so that I could make sure I had 
> one to do a read. I'm able to display the saved item, edit it and select a 
> different one.
>
> When I try to allow the user to add a new record, the drop down list 
> causes the page to blow up. If I comment out the code the page works. If I 
> uncomment the code, it dies.
>
> Can someone take a look at this and see if there is something obvious in 
> the commented out code that I'm doing wrong or maybe point me in the right 
> direction?
>
>
> <tr data-ng-show="addModeApplication">
> <td class="col-sm-1">
> <!--
> <select class="form-control" 
>  data-ng-model="newApplicationMap.ApplicationID" 
> data-ng-options="c.applicationID as c.applicationName for c in 
> ListofApplicationNames" placeholder="{{ 'appCatalog-Applicationname'' | 
> translate }}" tooltip="{{ 'appCatalog-Applicationname'' | translate }}">
>
> <option value="">{{ 'appcatalog-SelectApplicationName' | translate 
> }}</option>
>
> </select> 
> -->                                        
> </td>
> <td class="col-sm-1">
> <a class="fa fa-save" data-ng-click="addApplicationMap()" 
> href="javascript:;" tooltip="{{'Save' | translate }}"></a> | <a class="fa 
> fa-times" data-ng-click="toggleApplicationAdd()" href="javascript:;" 
> tooltip="{{'Cancel' | translate }}"></a>
> </td>
> </tr>
>
>
>
> Thanks,
>
> Carlo.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to