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
Bill_PomeroyBill_Pomeroy 

Attempting to create a button to update a field

Hi Everyone,

 

Thank you for taking the time to read this.   I am new to salesforce, visualforce and apex and am hoping that someone on the board can at least point me in the right direction for what I am attempting to do.

 

 

Intent:

1) Go to Customer Assets Tab

2) From Search list, select multiple accounts.

3) Click on a button labeled "Update Build Version"

4) From a picklist, change the version from x to y.

5) Save.

6) Selected Assets Build Version changed.

 

I started to look through the visualforce documentation but I can't seem to find what I am looking for.

 

I attempted to customize the code from:

http://www.salesforce.com/us/developer/docs/fundamentals/Content/adg_composite_app_create_mass_update_try_it_out.htm

 

I can see how it is supposed to work, but I know that I am missing several steps.  

 

Field Label: Build / Mod / Version

Object Name:  Customer Asset

Field Name: Mod_Version

Data Type: Picklist

API Name:  Mod_Version__c

Best Answer chosen by Admin (Salesforce Developers) 
AroraAnupAroraAnup

Hi Bill,

 

If I understand correctly, you are trying to do a mass update from a list view (where you need features like Inline editing in lists and enhanced list views). Though you can do this using Visual Force but I believe there is also a custom app available for this on the AppExchange:

 

Mass Update And Mass Edit From List View

https://appexchange.salesforce.com/listingDetail?listingId=a0N300000018mbBEAQ

 

Good part is that this is a free app from Force.com Labs. So would be worth exploring this before you start writing your own code.

 

Hope this helps! Let me know if you need further help

All Answers

AroraAnupAroraAnup

Hi Bill,

 

If I understand correctly, you are trying to do a mass update from a list view (where you need features like Inline editing in lists and enhanced list views). Though you can do this using Visual Force but I believe there is also a custom app available for this on the AppExchange:

 

Mass Update And Mass Edit From List View

https://appexchange.salesforce.com/listingDetail?listingId=a0N300000018mbBEAQ

 

Good part is that this is a free app from Force.com Labs. So would be worth exploring this before you start writing your own code.

 

Hope this helps! Let me know if you need further help

This was selected as the best answer
Bill_PomeroyBill_Pomeroy

CloudKnight wrote:

Hi Bill,

 

If I understand correctly, you are trying to do a mass update from a list view (where you need features like Inline editing in lists and enhanced list views). Though you can do this using Visual Force but I believe there is also a custom app available for this on the AppExchange:

 

Mass Update And Mass Edit From List View

https://appexchange.salesforce.com/listingDetail?listingId=a0N300000018mbBEAQ

 

Good part is that this is a free app from Force.com Labs. So would be worth exploring this before you start writing your own code.

 

Hope this helps! Let me know if you need further help



Thanks CK I'll try that out tomorrow!

Bill_PomeroyBill_Pomeroy

CloudKnight,

 

Thank you so much.  That worked perfectly!

 

Only issue I have now is that when I use the massupdate instead of the Asset Name I am getting the Salesforce Guid (15 digit code) instead..  Any advise on how to fix that?


CloudKnight wrote:

Hi Bill,

 

If I understand correctly, you are trying to do a mass update from a list view (where you need features like Inline editing in lists and enhanced list views). Though you can do this using Visual Force but I believe there is also a custom app available for this on the AppExchange:

 

Mass Update And Mass Edit From List View

https://appexchange.salesforce.com/listingDetail?listingId=a0N300000018mbBEAQ

 

Good part is that this is a free app from Force.com Labs. So would be worth exploring this before you start writing your own code.

 

Hope this helps! Let me know if you need further help