Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

RemoteTk enhancements: 7 new methods. #30

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

noeticpenguin
Copy link

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.
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