Activity Forums Salesforce® Discussions Wizard on button click which will take all values of cost and send it to particular users

  • Wizard on button click which will take all values of cost and send it to particular users

    Posted by Utsav on April 14, 2016 at 7:45 am

    I faced a situation recently in which,

    I need a wizard on button click which will take all values of cost and "Send Quote" button will take the values and generate the document and also send it to the specific user whose email id i put it in the wizard.

    The problem here is if I made the same controller for both wizard and document then I have to make all things in constructor itself and if I make separate constructors then sending lot of values through URL is not a good idea as far as security is concerned.

    Kindly provide a better arch. for this.

    • This discussion was modified 8 years, 8 months ago by  Utsav.
    • This discussion was modified 8 years, 8 months ago by  Forcetalks.
    • This discussion was modified 8 years, 8 months ago by  Forcetalks.
    Prakhar replied 8 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Prakhar

    Member
    June 9, 2016 at 1:05 pm

    Hii Utsav,

    Yes you are right that sending a lot of values thrugh URL's is not an good idea and that too in an constructor, which will load every time when a page is being loaded, which is of course an bad issue.

    What I would suggest is use an action attribute which is of page. In that way your code would be easily readable and also it would make your constructor rather simple.

    Hope that helps.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos