Code Monkey home page Code Monkey logo

Comments (7)

huchister avatar huchister commented on July 18, 2024

Hint here is that you would need to dynamically create the column whenever your form changes.
If you would do this in MySQL way, you would need to call 'alter' command multiple times.
My best bet is use JSON data and send system using AJAX, save your JSON data in MongoDB using your language. Since MongoDB is document oriented and JSON friendly(stored as in BSON).

from bootstrap-form-builder.

qfard avatar qfard commented on July 18, 2024

can you please skype me, my id is "q.fard"  it is "Q.FARD"
 thank you.-----Original Message-----From: [email protected]: Fri, 13 Jun 2014 09:12:39 -0700To: [email protected]: Re: [Bootstrap-Form-Builder] Save to database & re-edit - were you sucessful? (#10)Hint here is that you would need to dynamically create the column whenever you make form change.
In MySQL way, you would need to call alter multiple times and this may turns ugly.
My best bet is use JSON data and send to system using AJAX, save your JSON data in MongoDB using your language. This way you won't need to worry about it.

—Reply to this email directly or view it on GitHub.

Free Online Photosharing - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!

from bootstrap-form-builder.

qfard avatar qfard commented on July 18, 2024

I can save it ok, and display it but since they are not objects and just HTML, I can't manipulate the fields..

do you have a working copy I can use?

my direct email is:

[email protected]

and my Skype is:

Q.Fard

Thank you.

from bootstrap-form-builder.

huchister avatar huchister commented on July 18, 2024

Unfortunately I don't have working copy yet, I am in the middle of process building new mechanism to support sub field set of drag and drop. In the middle of development and seeing all these code, I figured I would be better off to completely come up with my own solution base upon this.
You can still use this and figure out where would be the good place to trigger the ajax query.
For manipulating fields, I believe it was in assets/js/views/my-form-snippets.js on save handler function.

Coming up with new field set, you would need to manipulate json on (/data/) folder, and /template/snippet-template.js file.

from bootstrap-form-builder.

peterb-2795 avatar peterb-2795 commented on July 18, 2024

I found that the easiest way was to work with the original html text display panel (but keeping it hidden). That is always updated following any UI event. I simply added a new tab in to the code with a save button, etc to control when to send to database (stored the data directly as JSON to DB). This was effected by adding a JSON template at the bottom of each component snippet (wrapped in a html comment) that was then parsed when user clicks on save. Unfortunately, no success in bringing JSON back from DB and re-instituting the html state back to the formbuilder UI.

As you will be aware, backbone updates the template values automatically as you modify the UI. The 'commented out' JSON element is thus constantly available to you in a (if you choose, 'hidden') textarea that you can acquire the content of and parse. Of course, this solution is not elegant - but it did get me past the post and taught me a lot about the backbone MVC implementation.

It was a painful learning experience working with the backbone library. I did not find it particularly intuitive and am not convinced about the whole box-and-die MVC approach on the client (to me , it is overkill when you already have model and controller as java services). I am sure that to some, these words will appear as a heresy. In mitigating this statement, earlier this year, I started to use Knockout.js which is MVVM and immediately discovered an affinity with its use. It is increasingly becoming a standard part of my client side projects and, where I have the opportunity, have started to back-port some existing projects onto it. But, as they say, "horses for courses"....

Having said all of the above, I am very grateful to the author(s) of this particular Bootstrap formbuilder tool as it has saved myself and others many, many hours of otherwise quite laborious and repetitive work. Kudos to the authors...

from bootstrap-form-builder.

huchister avatar huchister commented on July 18, 2024

Indeed, my salute also goes to those authors who were able to step ahead and build these tools for greater uses.

from bootstrap-form-builder.

dleffler avatar dleffler commented on July 18, 2024

Is there a snippet or code repo available with this mod (saving to db)?

from bootstrap-form-builder.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.