You need to sign in to do that
Don't have an account?
Ethan West
Mass Create Button; Possible?
Just posting a query; I'm looking to create a Custom Button / Link that relates to a VisualForce page for assignment records.
I already have pre-existing Mass-Edit buttons made via VisualForce which were relatively straight forward and was curious whether the functionality to create a "Mass Create" exists as I can't find much about it online.
Many thanks.
I already have pre-existing Mass-Edit buttons made via VisualForce which were relatively straight forward and was curious whether the functionality to create a "Mass Create" exists as I can't find much about it online.
Many thanks.
Greetings to you!
I haven't tried it but you can refer to the below link which might help you.
https://salesforce.stackexchange.com/questions/57297/what-is-the-best-approach-to-mass-create-records-from-a-button-click
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Hi Khan,
I actually think I may have found what I'm looking for a little after posting this on this site;
https://www.salesforcetutorial.com/visualforce-page-add-multiple-records/
I'll run between the two choices I have now and see which product resolves my query.
I'll make sure to come back and mark whichever option seems best for anyone else's later reference.
Many thanks,
Ethan
Visualforce:
Controller:
Regards,
Khan Anas
Hi Khan,
I tried quickly making my own before I try and get deeper with yours just so I can get a better base understanding - this is also made a tad difficult by the fact I'm using a Custom Object.
this error was also occurring when I kept it as:I'm having an issue as I work through the errors on my Apex Class with Line 5 Column 12 which is:
You wouldn't happen to know / see the issue here would you?
[Please see below for full code I'm working my way through]
Many thanks,
Ethan
Try below code:
Hi Khan,
Absolutely silly mistake, saw it just as you were commenting!
Apex Class: Returning VF-Resolution Page: Happen to have any tips at all?My only query now is adding list view potential to the VisualForce code for the custom button/link - I assumed it would be to change my standardController to "pse__Assignment__c" and add extension="AddmultipleAssignmentController", but this didn't seem to work.
As requested please find below the VisualForce Page and the Apex Class;
VF:
Thank you very much,
Ethan!
Hi Khan,
Just coming back to this; not sure if you can help.
I was trying your version just to see whether it operated the same way as my other version.
Following your protocol I attempted to recreate the same in my VF page, see below;I've got the Apex Class set out as such:
However, now I'm met with the error:
Error: Unknown property 'pse__Assignment__cStandardController.listAssignment'
Any chance you could see where this error is coming from at all?
Kind regards,
Ethan