• salesforcesss_deveoper211
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 6
    Replies

Hi

 

I want to create table which has column headers spanning over 2 rows & 3columns please find attached sample table.

 

Please let me me know how can I do it with apex:datatable & apex:column.

 

Thanks.

 


 

Hi,

I have created a metrics using html table & apex:inputfield, here I set required attribute to true for field, but as I am adjusting the size of the inputfield the mandatory red mark appears on border of the table instaed of on field. Here is the code snipet,

<tr>
        <td style="background-color: #1797C0; font-weight: bold; color:#FFFFFF; vertical-align:middle; padding-left: 8px" width="12%">ABC</td>
<td style="vertical-align:middle; text-align:center; width:10%;">
<apex:inputField value="{!ABC__c.Col1__c}" rendered="{!Not(column12ReadOnly)}" required="True" label="" style="width:50%;"/>
<apex:outputField value="{!ABC__c.Col2__c}" rendered="{!column12ReadOnly}" label="" style="width:50%;"/>
</td></tr>\

Also attached below how the field looks like in table. So how can i get the red mark near field.

Hi,

 

I am using html table to create matrics, but on header row when I set required=ture for inputfield the line break gets added.

 

Please find below code snipet. I am not able to upload screenshot but the header cell has 2 rows instead of 1. So how can I put both inputfield & text in one line. Thanks!

 

<Table border="1" STYLE="border: 1px solid gray; border-collapse: collapse; border-spacing: 10pt 5pt" class="AItable" id="AITable">

<tr>
<th STYLE="background-color: #DDECF3; text-align:center;">Col1</th>
<th STYLE="background-color: #DDECF3; text-align:center; width:12%;">Col2</th>
<th STYLE="background-color: #DDECF3; text-align:center; vertical-align:middle;">YTD:&nbsp;
<apex:inputField value="{!CustomObj.Date1__c}" required="True" label="" style="width:40%;"/>
</th>
</Table>





In my opportunity object.When the stage is changed.I need different approval process.I want to add different button for different approval process.I think I can write the Apex for calling the approval process.But how to use the default approval dialog?

 

Thanks 

Hi,

I need to display rows of a Salesforce object for data entry (eg product line items).

Each object has numerous fields (more than 20), and there are only a few rows (eg 5).

 

It would be much more practical my objects as columns in a VisualForce datatable, but that will be very complicated

- 1 or several transient classes to transform the Salesforce model into the displayed model

- 1 custom component for each different "complex" Salesforce type (date, lookup, selection list, etc.), since the VF page will no longer be displaying sObjects

- etc.

 

Is there a quicker way to benefit from all the standard Salesforce and VisualForce stuff (eg InputField instead of Inputtext) in a view where standard rows are transposed into columns ?

 

Thanks for any intelligent design ideas,

Rup