You need to sign in to do that
Don't have an account?
rajesh k 10
How to display below page Outputfield values ?
Hi,
Using below code i displayed outputfields,but how to retrive these fields related values?
page:
......
<apex:page id="pageId" standardcontroller="Account" extensions="Detailpage1Cls">
<apex:form id="formId">
<apex:pageblock id="pbId">
<apex:pageblocksection columns="1" id="pbsIs">
<apex:repeat value="{!$ObjectType.Account.FieldSets.account_fields}" var="f">
<apex:outputField value="{!Account[f]}"/>
</apex:repeat>
</apex:pageblocksection>
</apex:pageblock>
</apex:form>
</apex:page>
Controller
----------------
public class Detailpage1Cls {
public List<Account> records{get; set;}
public Detailpage1Cls(ApexPages.StandardController controller) {
records=new List<Account>();
records=[SELECT name,phone,fax FROM Account];
}
}
help me......
Using below code i displayed outputfields,but how to retrive these fields related values?
page:
......
<apex:page id="pageId" standardcontroller="Account" extensions="Detailpage1Cls">
<apex:form id="formId">
<apex:pageblock id="pbId">
<apex:pageblocksection columns="1" id="pbsIs">
<apex:repeat value="{!$ObjectType.Account.FieldSets.account_fields}" var="f">
<apex:outputField value="{!Account[f]}"/>
</apex:repeat>
</apex:pageblocksection>
</apex:pageblock>
</apex:form>
</apex:page>
Controller
----------------
public class Detailpage1Cls {
public List<Account> records{get; set;}
public Detailpage1Cls(ApexPages.StandardController controller) {
records=new List<Account>();
records=[SELECT name,phone,fax FROM Account];
}
}
help me......
You can refer below visulaforce page code:
If this solves your problem, kindly mark it as the best answer.
Thanks,
Vatsal
All Answers
Have you given id in the URL?
You can refer below visulaforce page code:
If this solves your problem, kindly mark it as the best answer.
Thanks,
Vatsal
How to check in an object record is there or not ?
Apex:repeat will print the value if records are there in the list.
If you want to try this, you can try by appending limit 0 in your query.
I have 3 objects ob1(junction object of ob2 and ob3),ob2,ob3.i displayed object 2 fields in a pageblock table one column as command link.When user click this command link page refers to outputfields details page(using fieldset i displayed output fields of command link related record as detail page).I this detail page i gave one button as "view pdf" ,when user click this view pdf button ,check this cord is there or not in ob3.Suppose record is there means update that date of object How?
please help me.............