Coder Social home page Coder Social logo

field-dev's Introduction

xtuple-field-dev-sample

Overview

Proof of concept for the most common type of field dev: adding fields to lists. This example adds four fields to the prospect list to exemplify how to approach for different types of list augmentation.

  • Attribute based on new postgres function
  • Attribute that was already in the query but wasn't in the view
  • Attribute requiring extra join in the database
  • Attribute based on custom client-side logic

File organization

This extension crams a lot of files together that would, by best practices, be separate. If you were to follow the convention of xtuple-ice-cream, for example, there would be two database scripts, and four clientside files, spread between four directories. All that is overkill for an off-the-cuff piece of rapid field dev work, so this extension is an example of the least amount of scaffolding and ceremony is necessary.

Naming conventions

The name of this extension, per the package.json and manifest.js, is xtuple-field-dev-sample. This repo has a slightly different name. It's best practice to use the same name throughout, but it's not strictly necessary, although if this were a private-extension or an xtuple-extension, it would be necessary to use a directory by the same name. And if you're using the trick of symlinking to this directory from xtuple-extensions/source during development, the name of the directory you reference with build_app.js -e has to be xtuple-field-dev-sample. Lastly, the context of your ORMs also has to be the exact full name.

field-dev's People

Contributors

shackbarth avatar

Watchers

 avatar

field-dev's Issues

simple customization

add columns to a list
add a function
join in another table
column exists in a query
column exists on the table but not the query

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.