FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

RemoteTk enhancements: 7 new methods. by noeticpenguin · Pull Request #30 · developerforce/Force.com-JavaScript-REST-Toolkit · GitHub

This repository was archived by the owner on Jan 10, 2024. It is now read-only.

RemoteTk enhancements: 7 new methods. - #30

Open
noeticpenguin wants to merge 5 commits into
developerforce:masterfrom
noeticpenguin:master
Open

RemoteTk enhancements: 7 new methods.#30
noeticpenguin wants to merge 5 commits into
developerforce:masterfrom
noeticpenguin:master

Conversation

Copy link
Copy Markdown

New Methods:

Component | Controller

Clone | sObjectKlone
describeFieldsSet | describeFieldSet
describePicklistValues | describePicklistValues
getObjectType | getObjType
getQueryResultsAsSelect2Data | getQueryResultsAsSelect2Data
queryFromFieldset | queryFromFieldset
soqlFromFieldSet | soqlFromFieldset

New Inner Classes:

Class name | Purpose

picklistValues | Json Helper class
Select2Data | Json / Select2 Helper class
QueryString | Represents soql query clauses

Notes:
While most of the methods are by-name self-explanatory, there are a
couple of important notes:

  1. Select2 is an open source offshoot of Chosen, and can be found here:
    http://ivaynberg.github.io/select2/ the
    getQueryResultsAsSelect2Data method returns the results of the soql
    query as tuples formatted for select2 consumption.
  2. Clone could be more robust.
  3. I've tried to make these as type agnostic / metaprogramming friendly
    as possible, but any insight into making these additions better
    would be greatly appreciated.
  4. Developers only get better through code reviews -- I covet your
    feedback, good or bad.

New Methods:
Component 					| Controller
----------------------------------------------------------------
Clone						| sObjectKlone
describeFieldsSet				| describeFieldSet
describePicklistValues			| describePicklistValues
getObjectType					| getObjType
getQueryResultsAsSelect2Data	| getQueryResultsAsSelect2Data
queryFromFieldset				| queryFromFieldset
soqlFromFieldSet				| soqlFromFieldset

New Inner Classes:
Class name					| Purpose
-----------------------------------------------------------------------
picklistValues				| Json Helper class
Select2Data					| Json / Select2 Helper class
QueryString					| Represents soql query clauses

Notes:
While most of the methods are by-name self-explanatory, there are a
couple of important notes:
1) Select2 is an open source offshoot of Chosen, and can be found here:
	http://ivaynberg.github.io/select2/ the
	getQueryResultsAsSelect2Data method returns the results of the soql
	query as tuples formatted for select2 consumption.
2) Clone could be more robust.
3) I've tried to make these as type agnostic / metaprogramming friendly
	as possible, but any insight into making these additions better
	would be greatly appreciated.
4) Developers only get better through code reviews -- I covet your
	feedback, good or bad.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL