You need to sign in to do that
Don't have an account?
KB Kim
Putting a table in detail-view page
I have to make a table chart on each case detail view page.
This code works in another custome object but Standard Case object.
No errors, but It does not show colum names even though I already passed the ID.
In addition, if possible... is there any way that I can make a button to add more raws on the table?
We have multiple fields most time when we enter the new cases, so I want to give users option wheather to add more field on the table or not.
I appreciate for your help in advance !
<apex:page standardController="Case">
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!Case}" var="c">
<apex:column value="{!c.Coil_ID__c}"/>
<apex:column value="{!c.Product__c}"/>
<apex:column value="{!c.Specification__c}"/>
<apex:column value="{!c.Defect__c}"/>
<apex:column value="{!c.Quantity__c}"/>
<apex:column value="{!c.Invoiced_Price__c}"/>
<apex:column value="{!c.Coil_Cost__c}"/>
<apex:column value="{!c.CSV__c}"/>
<apex:column value="{!c.Scrap_Value__c}"/>
<apex:column value="{!c.PCC__c}"/>
<apex:column value="{!c.ACC__c}"/>
<apex:inlineEditSupport />
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
This code works in another custome object but Standard Case object.
No errors, but It does not show colum names even though I already passed the ID.
In addition, if possible... is there any way that I can make a button to add more raws on the table?
We have multiple fields most time when we enter the new cases, so I want to give users option wheather to add more field on the table or not.
I appreciate for your help in advance !
<apex:page standardController="Case">
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!Case}" var="c">
<apex:column value="{!c.Coil_ID__c}"/>
<apex:column value="{!c.Product__c}"/>
<apex:column value="{!c.Specification__c}"/>
<apex:column value="{!c.Defect__c}"/>
<apex:column value="{!c.Quantity__c}"/>
<apex:column value="{!c.Invoiced_Price__c}"/>
<apex:column value="{!c.Coil_Cost__c}"/>
<apex:column value="{!c.CSV__c}"/>
<apex:column value="{!c.Scrap_Value__c}"/>
<apex:column value="{!c.PCC__c}"/>
<apex:column value="{!c.ACC__c}"/>
<apex:inlineEditSupport />
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Can I just show the table without putting the fields on the page?
I think the fields are not visible to the user from which you are performing your actions.
Please move to the field detail page and check the visibility of field.
If they are not visible to the profile of current user than they will not appear in your page.
Let me know if you need more help.
Regards,
Abhishek
However, I don't want to show the field to users. I just want to show the table on the detail page. is it possible?
In my opinion, Addition of fields on th page layout will not make any change and the fields will stll be not visible.
What i was saying is :
Please follow the below steps:
1. Go to setup -> Customize -> Cases -> Fields
2. In the Case fields page select all the fields one by one which you are using in your custom Table Page.
3. When the field detail page is opened you will see a button on Top as "Set Field Level Security".
4. Check that wheteher the field is visible to the profile from which you have login.
5. If Visible Checkbox is not Checked than please Check it.
6. Repeat step 3, 4 and 5 for all fields one by one.
Than you will be able to see the fields on your page.
Let me know if you need more clarification on this or if you have any issue.
Regards,
Abhishek
The field (column) in the table became visible when I put those fields on the pagelayout.
The other issue I am asking is that I want to see ONLY the table on the case detail page, not the fields.