+ Start a Discussion
JBabuJBabu 

To show output values in visual force page

Hi,

I have a visualforce page. Where it accepts opportunities (20 opportunities) .
I have used inputfield for this to accept opportunities.I am storing first 10 opportunties in str1 and 2nd 10 in str2 (with comma seperated values in each of the strings).

These are getting saved in the opportunity table in str1 and str2 columns. But when I refresh the page I dont see the values which I stored in the earlier run in the VF page. I mean the values which are stored are not displayed.

My requirement is when I come to the page newly/refresh the page I need to see the values which I stored earlier and I need to edit them (if needed).

VF Page:

<apex:page standardController="Opportunity" extensions="VisualForceBigOpportunityExtension" title="Edit Big Opportunity">
<apex:sectionHeader title="Edit Big Opportunitys"/><apex:pageMessages ></apex:pageMessages>
<apex:form >
<apex:pageBlock title="Big Opportunitys" mode="detail">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
<apex:commandButton action="{!cancel}" value="Cancel"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Big Opportunitys" collapsible="true" columns="1">
<apex:pageBlockTable value="{!BigOpportunity}" var="BigOpportunity" columns="2">
<apex:column headerValue="Opportunity">
<apex:inputField value="{!BigOpportunity.Opportunity1__c}"/>
</apex:column>
<apex:column headerValue="Opportunity">
<apex:inputField value="{!BigOpportunity.Opportunity2__c}"/>
</apex:column>
</apex:pageBlockTable>
</apex:page>

I can use output field to display the output but the text will not be editable. (I need to accept the values and display at the same place and when I refresh/open new page I need to see the values at same place and they need to be editable)

Please let me know how do I achieve this?

Thanks,
JBabu.

JBabuJBabu

Hi Shailu,

 

My requirement is different from inlineditsupport functionality.

 

Thanks,

JBabu.

chokchok

I have the same requirement, looking for some help.

Thanks in advance!