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
Omega3kOmega3k 

Displaying Data in VF Page

Hello,

 

My VF page isn't displaying the data that I expect it to. Here is the code for what I want to see on screen:

 

                    <apex:panelGrid id="pgridres" rendered="{!NOT(caseinpt) }">
                        <center>
                            A Case has been submitted successfully - Use Case Number {!Casedata.CaseNumber}
                            for your future reference...
                        </center>
                    </apex:panelGrid>     

 

 

Basically, the Case Number doesn't populate on screen, even though the case (and Case Number) are created in SFDC. This only seems to be an issue with the !Casedata.CaseNumber, because if I try to display any other field on screen (i.e. id, subject, etc.), it works.

 

Any thoughts?

 

Thanks

Ankit AroraAnkit Arora

Hi,

 

Same code works for me, my apex code for getting case data is :

 

 

public class caseData
{
    public Case Casedata
    {
        get
        {
            return [select id,CaseNumber from case Limit 1] ;
        }
        set;
    }
}

 

and visualforce code is :

 

 

<apex:page controller="caseData">
<apex:panelGrid id="pgridres" rendered="true">
    <center>
        A Case has been submitted successfully - Use Case Number {!Casedata.CaseNumber}
        for your future reference...
    </center>
</apex:panelGrid>  
</apex:page>

 

 

Please provide more code info if your problem doesn't get solved by this

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page