Coder Social home page Coder Social logo

sf-mass-child-junction's Introduction

sf-mass-child-junction

Deploy to Salesforce

In my example, I have a questionnaire, and a list of potential questions. User can build the questionnaire by joining the pre-built questions to the questionnaire using this junction object (questionnaire item).

Junction Object diagram

So obviously re-using the questions saves the user work, but the process of adding questions is kinda clunky.

  • Click on the Add Questionnaire Item button
  • Click on the lookup dialog button
  • Search Question Texts (hopefully you know them all by heart!)
  • Save
  • Repeat--for maybe a few dozen questions?

So what I made was a visualforce page to list all the optional questions, check their boxes, and then hit the add button.

###New Version see the page called MassChildJunctionAddParameterized

###Older Version (see the page called MassChildJunctionAdd) Mass Add Questions Page

For nicety, I did these using some of the standard VF components (pageblock, buttons, etc). You probably won't want to do that if your intent is to do this in the Salesforce1 mobile app.

All the code is on github. I used angularJS, connected to Salesforce by a lovely package called ngforce written by MVP Kevin Poorman. My github repo contains a packaged-up-version of ngforce saved as a static resource if you'd like to play with it quickly.

To load the page, there's a custom button I added Custom Button Config

You can then drop it onto the questionnaire (original parent) layout. It takes the recordId from the questionnaire which is then used to populate the children.

sf-mass-child-junction's People

Contributors

mshanemc avatar

Stargazers

Mike Letulle avatar

Watchers

James Cloos avatar  avatar

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.