Play Games

Search This Blog

Wednesday, April 23, 2014

How to increase the width of a column of page block table

When working with <apex:pageblocktable> ,sometimes we need to adjust the width of columns.
In order to do that we need to use  "columnsWidth" attribute of  <apex:pageblocktable> and specify the width of columns in order in terms of percentages
for examples if there are 3 columns,then

<apex:pageBlockTable value="{!account}" var="item" columnsWidth="60%,20%,20%">

If  column have some input fields,then to increase the textfield area, we can use styes.
For example
   <apex:column headerValue="Site Name">    <apex:inputfield value="{!item.Site}" id="amt" style="width: 360px; height: 40px"/></apex:column>

Here site is a input field.

The following Example will give an idea..

Create a visualforce  page with the folowing code

<apex:page standardController="Account" showHeader="false" sidebar="false">
<apex:form >
    <apex:pageBlock title="Increase Columns Width">

        <apex:pageBlockTable value="{!account}" var="item" columnsWidth="80%,20%">

            <apex:column headerValue="Site Name">    <apex:inputfield value="{!item.Site}" id="amt" style="width: 360px; height: 40px"/></apex:column>
             <apex:column value="{!item.name}"/>

        </apex:pageBlockTable>

    </apex:pageBlock>
</apex:form>
</apex:page>

The output will be as follows







    

Thursday, April 17, 2014

Dev 401 Dumps

1. Standard fiscal years can start on the first day of any month of the year ?
A.True
B.False

Ans. A
2. The organization IDs of your sandboxes remain same each time your sandbox is refreshed
A. TRUE
B. FALSE

Ans. B
3. An opportunity can have only one primary partner
A. TRUE
B. FALSE

Ans. a
4. Which of the following is not a correct statement?
A. Tags can be enabled by enabling Tags permission for the Organization
B. Tags can be enabled by enabling Tags permission for the Profiles
C. Tags can be added on the Records
D. Tags can be accessed from the Sidebar component

Ans. b
5. Encrypted fields are editable regardless of whether the user has the “View Encrypted Data” permission.
A. True
B. False

Ans. A