Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. Angular Js, MongoDB, Javascript

Angular Js, MongoDB, Javascript

Scheduled Pinned Locked Moved JavaScript
javascriptdatabasehelpmongodbtutorial
11 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 11627379
    wrote on last edited by
    #1

    The following are my requirement before asking this to you people am really too tired of finding solution for that issue.. hope you guys help me..!! well, 1. I'Ve a dropDwonList with 50 items. if user select or change multiple values based on their requirement, the dropdownlist should be added one by one. now, i need to save the user selected values from dropdown in database. here am using AngularJS and MonogoDB, Javascript (am totally new AngularJs). for Example ------------ DropDownList1 , if user select the item from this, it should be saved in DB as first item, if he/she wants to add more items from list, it will also should be added. Clearly, number of times to click = total number of items should be saved in db.. hope you understand. please help me to complete this.

    S Z 2 Replies Last reply
    0
    • U User 11627379

      The following are my requirement before asking this to you people am really too tired of finding solution for that issue.. hope you guys help me..!! well, 1. I'Ve a dropDwonList with 50 items. if user select or change multiple values based on their requirement, the dropdownlist should be added one by one. now, i need to save the user selected values from dropdown in database. here am using AngularJS and MonogoDB, Javascript (am totally new AngularJs). for Example ------------ DropDownList1 , if user select the item from this, it should be saved in DB as first item, if he/she wants to add more items from list, it will also should be added. Clearly, number of times to click = total number of items should be saved in db.. hope you understand. please help me to complete this.

      S Offline
      S Offline
      Sacha Barber
      wrote on last edited by
      #2

      No idea what you are talking about

      U 1 Reply Last reply
      0
      • U User 11627379

        The following are my requirement before asking this to you people am really too tired of finding solution for that issue.. hope you guys help me..!! well, 1. I'Ve a dropDwonList with 50 items. if user select or change multiple values based on their requirement, the dropdownlist should be added one by one. now, i need to save the user selected values from dropdown in database. here am using AngularJS and MonogoDB, Javascript (am totally new AngularJs). for Example ------------ DropDownList1 , if user select the item from this, it should be saved in DB as first item, if he/she wants to add more items from list, it will also should be added. Clearly, number of times to click = total number of items should be saved in db.. hope you understand. please help me to complete this.

        Z Offline
        Z Offline
        ZurdoDev
        wrote on last edited by
        #3

        What is your question exactly?

        There are only 10 types of people in the world, those who understand binary and those who don't.

        U 1 Reply Last reply
        0
        • S Sacha Barber

          No idea what you are talking about

          U Offline
          U Offline
          User 11627379
          wrote on last edited by
          #4

          Sir, am asking about, how to store selected multiple values from dropdownList in database

          1 Reply Last reply
          0
          • Z ZurdoDev

            What is your question exactly?

            There are only 10 types of people in the world, those who understand binary and those who don't.

            U Offline
            U Offline
            User 11627379
            wrote on last edited by
            #5

            Well, Sir am asking about how to store selected multiple values from DropDownList to database

            L 1 Reply Last reply
            0
            • U User 11627379

              Well, Sir am asking about how to store selected multiple values from DropDownList to database

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Capture the values from the list and insert them into the database with an SQL statement. Exactly which part of the process are you having difficulty with?

              U 1 Reply Last reply
              0
              • L Lost User

                Capture the values from the list and insert them into the database with an SQL statement. Exactly which part of the process are you having difficulty with?

                U Offline
                U Offline
                User 11627379
                wrote on last edited by
                #7

                well am using MonoDB, the problem is if the user want to add more items means, they can click add button which creates DrpDwnlist dynamically as per number of times they want. after all i want to save those in db. how? if user have 5 dropDwnlist with different values means it should be saved in db or atleast in array

                L Z 3 Replies Last reply
                0
                • U User 11627379

                  well am using MonoDB, the problem is if the user want to add more items means, they can click add button which creates DrpDwnlist dynamically as per number of times they want. after all i want to save those in db. how? if user have 5 dropDwnlist with different values means it should be saved in db or atleast in array

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  You are just repeating what you want to do, but you have not explained what the coding problem is. Adding items to your database is quite straightforward, and you should be able to find samples and tutorials via Google.

                  U 1 Reply Last reply
                  0
                  • U User 11627379

                    well am using MonoDB, the problem is if the user want to add more items means, they can click add button which creates DrpDwnlist dynamically as per number of times they want. after all i want to save those in db. how? if user have 5 dropDwnlist with different values means it should be saved in db or atleast in array

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    I suggest you go to https://www.mongodb.org[^] and try there.

                    1 Reply Last reply
                    0
                    • L Lost User

                      You are just repeating what you want to do, but you have not explained what the coding problem is. Adding items to your database is quite straightforward, and you should be able to find samples and tutorials via Google.

                      U Offline
                      U Offline
                      User 11627379
                      wrote on last edited by
                      #10

                      am getting confusion sir, i really don't get any ideas to write this particular code..!!! :confused:can't figure it out..!!!

                      1 Reply Last reply
                      0
                      • U User 11627379

                        well am using MonoDB, the problem is if the user want to add more items means, they can click add button which creates DrpDwnlist dynamically as per number of times they want. after all i want to save those in db. how? if user have 5 dropDwnlist with different values means it should be saved in db or atleast in array

                        Z Offline
                        Z Offline
                        ZurdoDev
                        wrote on last edited by
                        #11

                        Member 11661764 wrote:

                        after all i want to save those in db. how?

                        Add a new record that stores what the drop down is and what value they picked. All you have to do is think of what data do you need to store and then create a table that stores that data.

                        There are only 10 types of people in the world, those who understand binary and those who don't.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups