function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mikesfdc123Mikesfdc123 

Drag and Drop...

Hi all -

 

Can you please suggest a starting point for learning required code - APEX/Visualforce (or another method) for enabling drag and drop functionality on the front-end - for users and even internal staff. For example, if creating a blueprint and have objects such as walls, roof, chiminey, ... and wanted to pick each object up and move to respective place...

 

Please let me know if you need any more information.

 

Thanks!

 

Mike

kevoharakevohara

Standard Salesforce UI features will not give you drag/drop capabilities, but its fairly easy to implement a 3rd party Javascript library like jQuery which does drag/drop very well.  There is some good information on jQuery usage with Salesforce on (@teh_nrd) Jason Venables blog: http://www.tehnrd.com/

 

You will need to know how to build a Visualforce page with an Apex controller, plus know how to implement jQuery.

Idd BaksheeshIdd Baksheesh

You can also use Flex or YUI  (my personal favorite) for drag and drop libraries. Just google YUI and flex.

Mikesfdc123Mikesfdc123

Thank you very much for those suggestions.  They have already been very helpful. Do you have any best practices for making a field's record from Salesforce available on a Visualforce page, such as Contact Name from the Contact Object and being able to "drag and drop" on a page, such as on top of a shape? Any suitable examples online for reference or thoughts?

 

 

Idd BaksheeshIdd Baksheesh

The drag and drop properties are available only using some third party tools such as jquery, YUI or Flex

 

Should suggest, you refer to this for development using Flex.

 

http://developer.force.com/flextoolkit

 

The objects can be accessed using WSDL and REST Api

hd sdhd sd
Verify that the roofing company adheres to local building codes and regulations for roofing (https://amiroofingcontractors.com/). Failure to comply with these rules could lead to problems later on.