Giter Club home page Giter Club logo

snbulkinsertquestionchoices's Introduction

BulkInsertQuestionChoices

Description:

Do you agree that it is a pain when you are trying to insert multiple question choices to a select variable on catalog? You have to ensure a consistent Choice label and value style, maintain ordering while inserting the choices, etc.

Wouldn't it be nice to do a bulk insertion of choices and save some time to do the actual development?

Installation:

  • Install the updateset found in dist folder.
  • The update set will create a record producer, related variables and scripts. It adds a button that will be visible for Select type variable and is used to access the utility.

Usage:

On clicking the newly added button * Add Choices *, you will get a record producer where you can fill the required details.

  • There are two insertion mode - Alphabetical and As-Is, which inserts the choices in the given order.
  • The variable is auto populated if you had opened the record producer via the Add option button.
  • Enter the options separated by Newline and Click Submit.

Note:

  • This does clean up of the choices and allows only (,),-, space and alphanumeric characters for choice label. You can change the Regex as per your need.
  • Capitalizes each word of choice label to maintain consistency.
  • Converts the choice value to lower text separated by '_'

Additionally, the following concepts are used and can be understood reading the source components.

  • Regex usage.
  • Record producer and Producer script usage
  • Autopopulating catalog variable using URL.
  • Reference qualifier of variables.
  • UI action and redirection.
  • Gliderecord query and insertion.

snbulkinsertquestionchoices's People

Contributors

iamkalai avatar

Stargazers

 avatar

Watchers

 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.