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
Vaibhav BabrekarVaibhav Babrekar 

Can anyone help me for this requirement of VisualForce pages

1.We need to develop a two-step wizard to update account information and manage attachments related to the account.
2.Take a custom button and place it on the detail page for account.
3.On click of the button, a Visualforce page should be opened.
4.The page should display the account details in a page block and display the related attachments in page block below it in tabular format.
5.The table showing the attachments should have link to delete an attachment record.
6.The page consists of Edit button and on click of which a two-step wizard should be opened.
7.On the first step of the wizard, the details of the account should be shown in edit mode and on click of the next button, page should navigate to the second step.
8.On the second step, a browse button should be shown so that user can browse for a file and upload it as an attachment.
9.The account details entered by the user and the uploaded file using browse button shouldbe saved on click of save button the second step.
PriyaPriya (Salesforce Developers) 
Hey Vaibhav,

I can help you with displaying the Account detail using pageblock on visualfoce page. Sample code is below :-
<apex:page controller="example4">
  <apex:pageBlock >
    <apex:pageBlockSection title="Page Block Table">
       <apex:pageBlockTable value="{!accs}" var="a">
           <apex:column value="{!a.Name}"/>
       </apex:pageBlockTable>
    </apex:pageBlockSection>
 </apex:pageBlock >
</apex:page>

controller :-
public with sharing class example4 {

     public list<Account> accs {get;set;}

     public example4() {
           accs = [Select Name From Account Limit 100];
     }
}

You can modify the above code as per your requirement.

Kindly let me knwo if you need further help.
 

Kindly mark it as the best answer if it works for you.

 

Thanks & Regards,

Priya Ranjan


​​​​​​​
Vaibhav BabrekarVaibhav Babrekar
Hi Priya,
Thank you for your response but I want to design two step wizard VF page in which I want to show account related attachments if any and also delete link for that in tabular form. If you can see the requirement there are lots of things. If you can please help me with that.

Thanks in Advance
PriyaPriya (Salesforce Developers) 
Hi Vaibhav,

Sure I will help you. 

Kindly refer this link to make the wizard :- 
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_wizard.htm

If you face any issue here implementing it, let me know i will fix it.

Kindly mark it as the best answer if it works for you.
 
Thanks & Regards,
Priya Ranjan