You need to sign in to do that
Don't have an account?
Naren9
Visualforce Page with Selection Options
Hi All,
Need help in creating Visualforce Page for the below scenario.
OutOftheBox, we can only add one Product to a Case. In my Case I have to add multiple Products to a Case, so I have created the Junction object and I can able to add the Multiple Products to case. Adding Multiple Products to a case is taking more time.
I have create a Custom Button, which will popup all the Products and I should able to select the Products and Save those.
We have this kind of Functionality in Opportunity-->Products by using Add Products Button. I have to mimic below kind of page.
As of now, I am able to create a button and invoked the VFpage and it looks like below
Below is my Code:
<apex:page standardController="Product2" recordSetVar="accounts">
<apex:form >
<apex:pageBlock title="Product List">
<apex:commandLink action="{!Next}">Next</apex:CommandLink>
<apex:pageBlockTable value="{!accounts}" var="a">
<apex:column >
<apex:facet name="header">
Account Name
</apex:facet>
<apex:facet name="footer">
End Of table
</apex:facet>
<apex:outputField value="{!a.Name}"/>
</apex:column>
<apex:column >
<apex:facet name="header">
Account Type
</apex:facet>
<apex:facet name="footer">
End Of table
</apex:facet>
<apex:outputText value="{!a.ProductCode}"/>
</apex:column>
</apex:pageBlockTable>
<apex:commandLink action="{!previous}">Previous</apex:CommandLink>
</apex:pageBlock>
</apex:form>
</apex:page>
Need help in creating Visualforce Page for the below scenario.
OutOftheBox, we can only add one Product to a Case. In my Case I have to add multiple Products to a Case, so I have created the Junction object and I can able to add the Multiple Products to case. Adding Multiple Products to a case is taking more time.
I have create a Custom Button, which will popup all the Products and I should able to select the Products and Save those.
We have this kind of Functionality in Opportunity-->Products by using Add Products Button. I have to mimic below kind of page.
As of now, I am able to create a button and invoked the VFpage and it looks like below
Below is my Code:
<apex:page standardController="Product2" recordSetVar="accounts">
<apex:form >
<apex:pageBlock title="Product List">
<apex:commandLink action="{!Next}">Next</apex:CommandLink>
<apex:pageBlockTable value="{!accounts}" var="a">
<apex:column >
<apex:facet name="header">
Account Name
</apex:facet>
<apex:facet name="footer">
End Of table
</apex:facet>
<apex:outputField value="{!a.Name}"/>
</apex:column>
<apex:column >
<apex:facet name="header">
Account Type
</apex:facet>
<apex:facet name="footer">
End Of table
</apex:facet>
<apex:outputText value="{!a.ProductCode}"/>
</apex:column>
</apex:pageBlockTable>
<apex:commandLink action="{!previous}">Previous</apex:CommandLink>
</apex:pageBlock>
</apex:form>
</apex:page>
Help is appreciated.
Thanks,
Naren