• hylim1215
  • NEWBIE
  • 60 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 31
    Questions
  • 18
    Replies
Hi, i have a VFP rendered as PDF and i would like to dynamically resize the image in my VFP if the image exceed 200px width. if the image width is below 200px, i do not want to stretch the image to 200px, keep it as it is. is that possible?

i tried to set Style = "width 50%" but it will stretch the smaller size image which doesnt look good.
Hi, my company has a very complex role hierarchy setup. Sample as below:

IT Manager
--IT Team Lead
----Technician

Business Manager
--Sales Manager
----Sales Rep

So we have sharing setting to share account owned by 'Sales Manager' to 'IT Team Lead' and that makes IT Manager also seeing 'Sales Manager' records. Is that a way to prevent IT Manager to see 'Sales Manager' records?

Thanks
hi, when we convert the lead we have an option (checkbox) to "Do not create a new opportunity upon conversion."

how can i track if the user check this checkbox? Many of my users claim that they did not check this checkbox but no opportunity was created after the conversion, so i would like to track this checkbox if they do accidently check it or other problem causing opportunity not being created.
I have developed a Visualforce page to render in PDF and i use @page css for my repeating header and my header content contain a table with border-right:1px solid.

this is my CSS:
 
html * {
  font-family: Arial Unicode MS;
  font-size:12px;
}

@page {
  size: A4;
  margin: 25pt .5in .5in .5in;
  margin-top:220px;
  margin-bottom:130px;

  @top-left{
    content: element(header-left);
  }
  @top-right{
    content: element(header-right);
  }
  @bottom-left {
    content: element(footer-left);
  }
  @bottom-right {
    content: element(footer-right);
  }
  @top-center{
    content: element(header-content);
  }
  @bottom-center{
    content: element(footer-content);
  }
}

@page :first{
  size: A4;
  margin: 25pt .5in .5in .5in;
  margin-top:190px;
  margin-bottom:130px;

  @top-center{
    content: element(header-cover);
  }
  @bottom-center{
    content: element(footer-cover);
  }

}

div.header-right {
  position: running(header-right);
  display: block;
  padding: 10px;
}
div.header-left {
  position: running(header-left);
  display: block;
  padding: 10px;
  font-size:40px;
}
div.header-cover {
  position: running(header-cover);
  display: block;
  padding: 10px;
}

div.header-content {
  position: running(header-content);
  display: block;
  padding: 10px;
}


div.footer-content {
  position: running(footer-content);
  padding: 10px;
  display: block;
}
div.footer-cover {
  position: running(footer-cover);
  padding: 10px;
  display: block;
}

div.footer-right {
  position: running(footer-right);
  padding: 10px;
  display: block;
}

td.pageHeaderCompany{ /*****NEW*****/
  text-align:left;
  font-weight: bold;
  font-size:20px;
  font-family:sans-serif;
  color:#83bc34;
  letter-spacing:normal;
  vertical-align: top;
}


td.footerLabel{
  font-size: 10px;
  text-align:right;
}
td.footerContent{
  font-size: 10px;
  text-align:left;
  padding-left:15px;
}

tr.pageHeader{ /*****NEW*****/
  font-size:12px;
  color:#001fa4;
  letter-spacing:normal;
  vertical-align: top;
}

tr.stdstyle{
  text-align:left;
  letter-spacing:normal;
  vertical-align: top;
}

this my visualforce page:
 
<html>
<head>
  <style type="text/CSS" media="print">
    <apex:outputPanel layout="none" rendered="{!!(Quote.status == 'Approved')}">
      .watermark {
        background-repeat: repeat;
        background-image: url("{!URLFOR($Resource.Quote_Watermark)}");
      }
    </apex:outputPanel>
  </style>
</head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />

<body class="watermark">
    <div class="header-content">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td style="width:60%;">&nbsp;</td>
    <td style="width:40%; align:right">
      <table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td style="border-right: 1pt solid #001fa4;">text</td>
            <td >text</td>
          </tr>
          <tr>
            <td style="border-right: 1pt solid #001fa4;">text2</td>
            <td >text2</td>
          </tr>
      </table>
    </td>
  </tr>
</table>
</div>

<page body content here../>  
</body>
</html>

The header is ok on the first page, but when on the second page and beyond, the table border is gone. Just pure table & content without border.
How can i remain the table border for every page?
 
Hi,

I have a request to develop a VFP with table that allows user to do inline search like below on "Product" column:

inline

when i start typing a few keyword on "Product" column then it will search against my database and list down a few possible result. Is this possible in VFP?

Thanks.
Hi,

I have an after update trigger  like this
 
List<id> acc_ids = new List<id>();
 List<Account> acc_toUpdate = new List<Account>();



    if(trigger.isUpdate){
        
        for(Contact ctc:Trigger.new){
            Contact oldctc = trigger.oldMap.get(ctc.id);
  
             if(ctc.value__c != oldctc.value__c){
                    acc_ids.add(ctc.AccountId);  
              }
          }
      }

    if(acc_ids.size() > 0){
       // List<Account> acc = new List<Account>();
        for(Account acc: [Select id, CalculateALC__c from Account where id in: acc_ids]){
            acc.CalculateALC__c = true;
            acc_toUpdate.add(acc);
        }
    }
    
    if(acc_toUpdate.size() > 0){
        update acc_toUpdate;
    }

but i got error email from salesforce saying that Too many SOQL queries: 101 on this trigger when my user updating contact. Any thought?
 
Hi, i have a VFP that rendered in PDF format for my Quote. And due to the limitation whereby long text doesnt word-wrap in my table <td>, i decided to loop through my long text content and put a line break <br> after x characters.

I am doing this in my VFP exntesion class like this:
 
public class quote_ViewQuotePDFExtension {

Pattern p = Pattern.compile('[\\p{IsHan}\\p{IsHiragana}\\p{IsKatakana}\\p{IsHangul}]');
public List<QuoteLineItem> ungrp_quols {get;set;}

    public quote_ViewQuotePDFExtension(ApexPages.StandardController stdcont){
        Id quote_id = slquote.id;


        for(QuoteLineItem itm: [Select Id, UnitPrice, long_text_content__c from QuoteLineItem where QuoteId =: quote_id]){
              
             if(itm.long_text_content__c != null){
                for(Integer i=0; i< itm.long_text_content__c.length(); i++){
                  
                //loop each characters and put <br> after certain count
               // i even have regex to check if the characters is chineses, japanese or korean and increase my count + 2 else + 1

                }
               UngroupQuolItems.Rich_Line_Item_Description__c = format_str;
             }

           ungrp_quols.add(UngroupQuolItems);
         }

    }

}

of course my extesion have other logic running as well. So i would like to know if this is kind of bad design to loop each characters in my long text content to append a <br>. Will this slow down the performance like take longer to render the PDF or hit governor limits.

or it would be better to do it as trigger to append the the long text content when insert & update?

Thanks.
Hi,

I have a trigger on Contact that will trigger an update on Account as below:
 
trigger calAccountLifeCycleStatus on Contact (after insert, after update) {
    List<id> acc_ids = new List<id>();
    List<Account> acc_toUpdate = new List<Account>();
    
    if(trigger.isInsert){
        for(Contact ctc : Trigger.new){
            acc_ids.add(ctc.AccountId);
        }
        
    }

    if(acc_ids.size() > 0){
        
        for(Account acc: [Select id, CalculateALC__c from Account where id in: acc_ids]){
            acc.CalculateALC__c = true;
            acc_toUpdate.add(acc);
        }
    }
    
    if(acc_toUpdate.size() > 0){
        update acc_toUpdate;
    }

}
then in my account i have this triggger -> class

my account trigger
trigger AccountLifeCycleUpdate on Account (before update) {
    AccountLifeCycleCal.calculate(trigger.New ,Trigger.NewMap, Trigger.OldMap);
}
my apex class
public without sharing class AccountLifeCycleCal{
     
    public static void calculate( List<Account> newAcc, Map<ID, Account> newAccMap, Map<ID, Account> oldAccMap){
		Map<Id, String> AccountStatusMap = new Map<Id, String>();
	
		for(Account acc_trigger: newAcc){
		
			if(acc_trigger.CalculateALC__c == true){
					acc_ids.add(acc_trigger.id);
			}
		}
				
		for(Account acc: [select id, name, Status__c,(select id, contact_type__c from Contacts) from Account where Id IN :acc_ids])
        {
			String AccountStatus = '';
			
			for(Contact c : acc.contacts){
				if(c.contact_type__c = 'A'){
					AccountStatus = 'customer';
					break;
				}			
			}			
			AccountStatusMap.put(acc.id, AccountStatus);
		}
		
		for(Account upd_acc: newAcc){
            if(acc_ids.size() > 0){
				upd_acc.Status__c = AccountStatusMap.get(upd_acc.id);
			}
		}
	}
}

when i do a batch import of 50k contacts, i kept getting this error 'unable to obtain exclusive access to this record' but when i import this error file again and it go through but still not all imported, still left a portion of contacts with that error, then i keep repeat import the error file.

is it due to the the trigger above?

Thanks.



 
Hi i have a custom exten for my Quote object as below:
 
public with sharing class quote_NewQuoteExtension{
    ApexPages.StandardController controller;
    public Opportunity opp2 {get; set;}
    public Account acc {get; set;}
    public Contact ctc {get; set;}
    private Quote qo;

public quote_NewQuoteExtension(ApexPages.StandardController stdController){

controller = stdController;
        qo = (Quote)stdController.getRecord();
        
        oid = System.currentpageReference().getParameters().get('oppid');

if(opp2 == null){
            opp2 = [Select id, Pricebook2Id,name, accountid, Type_of_Quote__c, Contact_Name__c from opportunity where id =: oid];
        }

.
..
}
and my test method always show list has no row on opp2 list. my test unit
 
public static testMethod void MainTestClass(){

account acc = new account(name='xx' ..);

insert acc;

contact ctc = new contact(name =  'xx'..);
insert ctc;

opportunity opp = new opportunity(name = 'xx'..);
insert opp;

quote qo = new quote(name='xx');
insert qo;

 ApexPages.StandardController sc = new ApexPages.StandardController(quo);
 quote_NewQuoteExtension testNewQuoteExt = new quote_NewQuoteExtension(sc);
        
        PageReference pageRef = Page.quote_NewQuoteMaster;
        Test.setCurrentPage(pageRef);
        testNewQuoteExt.opp2 = opp;
        testNewQuoteExt.acc = acc;
        testNewQuoteExt.ctc = ctc;
        testNewQuoteExt.save();

}
i have already set opp2 why still null?

Thanks.
Hi i have a custom object Location and i have a text field (Customer_No__c) and i want to create another lookup field (Account_Id__c) and apply field filter This Record.Customer_No__c equal Account.Customer_No__c

but i couldnt find Customer_No__c field on This Record, is that by default or i miss out some setting?

Thanks
Hi,

I need help on my custom Quote Line Item Visualfoce render as PDF. I already header & footer for my page and i would like to remove the header & footer after my table ends. The idea is i want my last few page meant for Terms & Conditions and should not show header & footer.

this is my header & footer
 
@page {
                    margin: 25pt .5in .5in .5in;
                    margin-top:160px;
                    margin-bottom:180px;
                    
                
                        @top-center{
                            content: element(header);
                        }
                        @bottom-center{
                            content: element(footer);
                        }
                }


<div class="header">
                
                <table border="0" cellspacing="0" cellpadding="0" width="100%" id="tableHeader">
                    <tr>
                        <td class = "stdstyle" style="width:35%;font-size:20px;" >
                            QUOTATION
                        </td>
                        
                        <td class = "stdstyle" style="width:35%;font-size:20px;" colspan = "3" >
                        xxx company
                        </td>   
                    </tr>
                    <tr class = "stdstyle">
                        <td>&nbsp;</td>
                        <td >Address</td>
                        <td width = "1%">: </td>
                        <td >111</td>
                    </tr>  
                </table>
                <div class="pagging">Page <span class="pagenumber"/> of <span class="pagecount"/></div> 
            </div> 
        
        <div class="footer">
                <table border="0" cellspacing="0" cellpadding="0" width="100%" id="tableFooter">
                    <tr class = "stdstyle">
                        <td style="width:5%">Bank No</td>
                        <td >
                            information
                        </td>
                    </tr>
                    <tr><td>&nbsp;</td></tr>
                    <tr class = "stdstyle">
                        <td colspan = "2"><apex:image id="Logo" value="/servlet/servlet.FileDownload?file=015N0000000FFFF" width="70" height="70"/></td>
                        
                        <td style="text-align:right"><apex:image id="CO_Logo" value="/servlet/servlet.FileDownload?file=015N0000000FFFF" width="130" height="80"/></td>
                    </tr>
                </table>
            </div>
then i will have my quote line item displayed in table format so it can be few page more or 1 page depend how many items are there. After displaying all the items, i would like to remove header & footer for all the page after that as i will have another 3 last page 'Terms & Condition.

Please advise.

Thanks.
 
Hi, i have this watermark added to my visualforce PDF but it actually override all my text.
<img src="{!URLFOR($Resource.tran_watermark)}" width="100%" height="100%" style="position:fixed; background-repeat:repeat; left:0cm; top:0cm; z-index:0; display:{!IF(quote.status == 'approved', 'none', '')}"/>


How can i push the watermark (png file) to the back?

i have a custom picklist field for quote line items to group them from 1~10 but how do i display them in VFP according to their group? I wanted to show something like:-

Group 1 [Group Description taken from Quote level]
Item_1 $100
Item_5 $100

Group 2 - [Group Description taken from Quote level]
Item_2 $100
Item_4 $100

[ungrouped item goes here]

seems like wrapper will be the way for this but i am very new to VFP developement, could anyone give me some guideline?

Thanks.

now i have this VFP
 
<apex:repeat value="{!Quote.QuoteLineItems}" var="qli">
<tr class = "stdstyle" >
<td>{!FLOOR(count)} </td> 
<td>{!qli.Product2.Name}</td>
<td >                                
<apex:outputPanel rendered="{!IF(qli.Quote_PDS_Description__c == 'Summary Only',true,false)}">
{!qli.Product_Description__c} 
</apex:outputPanel>

<apex:outputPanel rendered="{!IF(qli.Quote_PDS_Description__c == 'Summary & Long Details',true,false)}">
<apex:OutputText value="{!qli.Product_Description__c}" rendered="{!IF(qli.Product_Description__c ==''  ,false,true)}"></apex:OutputText> 
<apex:OutputText value="{!qli.Quote_attribute_1__c}" rendered="{!IF(qli.Quote_attribute_1__c ==''  ,false,true)}"><br/><br/></apex:OutputText> 
<apex:OutputText value="{!qli.Quote_attribute_2__c}" rendered="{!IF(qli.Quote_attribute_2__c ==''  ,false,true)}"><br/> </apex:OutputText> 
<apex:OutputText value="{!qli.Quote_attribute_3__c}" rendered="{!IF(qli.Quote_attribute_3__c ==''  ,false,true)}"><br/> </apex:OutputText> 
<apex:OutputText value="{!qli.Quote_attribute_4__c}" rendered="{!IF(qli.Quote_attribute_4__c ==''  ,false,true)}"><br/> </apex:OutputText> 
<apex:OutputText value="{!qli.Quote_attribute_5__c}" rendered="{!IF(qli.Quote_attribute_5__c ==''  ,false,true)}"><br/> </apex:OutputText> 
<apex:OutputText value="{!qli.Quote_attribute_6__c}" rendered="{!IF(qli.Quote_attribute_6__c ==''  ,false,true)}"><br/> </apex:OutputText> 
<apex:OutputText value="{!qli.PDS_Tag_Line__c}" rendered="{!IF(qli.PDS_Tag_Line__c ==''  ,false,true)}"> <br/><br/></apex:OutputText> 
<apex:OutputText value="{!qli.Benefit_Headline_1__c}" rendered="{!IF(qli.Benefit_Headline_1__c ==''  ,false,true)}"><br/> </apex:OutputText> 
<apex:OutputText value="{!qli.Benefit_Text_1__c}" rendered="{!IF(qli.Benefit_Text_1__c ==''  ,false,true)}"><br/> </apex:OutputText> 
<apex:OutputText value="{!qli.Benefit_Headline_2__c}" rendered="{!IF(qli.Benefit_Headline_2__c ==''  ,false,true)}"><br/> </apex:OutputText> 
<apex:OutputText value="{!qli.Benefit_Text_2__c}" rendered="{!IF(qli.Benefit_Text_2__c ==''  ,false,true)}"><br/> </apex:OutputText> 
<apex:OutputText value="{!qli.Benefit_Headline_3__c}" rendered="{!IF(qli.Benefit_Headline_3__c ==''  ,false,true)}"><br/> </apex:OutputText> 
<apex:OutputText value="{!qli.Benefit_Text_3__c}" rendered="{!IF(qli.Benefit_Text_3__c ==''  ,false,true)}"><br/> </apex:OutputText> 
<apex:OutputText value="{!qli.PDS_URL_Alias__c}" rendered="{!IF(qli.PDS_URL_Alias__c ==''  ,false,true)}"><br/> </apex:OutputText>                                    
</apex:outputPanel>
</td>
<td>{!qli.UnitPrice}</td>                                                 
<apex:variable var="count" value="{!count+ 1}"/>
</tr>
</apex:repeat>
and it render like this :-
User-added image

how do i make the description highlighted in red to strech from column 1 - column 3?

Thanks.
Hi, I have a custom repeat list and one of the column will display different result based on certain condition:-
 
<apex:repeat value="{!Quote.QuoteLineItems}" var="qli">
                        <tr class = "stdstyle">
                            <td>{!FLOOR(count)} </td> 
                            <td>{!qli.Product2.Name}</td>
                            <td >{!IF(qli.Quote_PDS_Description__c == "Summary Only",qli.Product_Description__c,IF(qli.Quote_PDS_Description__c == "Summary & Short Details",qli.Product_Description__c +  qli.Quote_attribute_1__c ,""))} </td>
                            <td>{!qli.UnitPrice}</td>
                                
                            <apex:variable var="count" value="{!count+ 1}"/>
                        </tr>
                    </apex:repeat>
as you see from the above, i would like to have a line break between Product_Description__c & Quote_attribute_1__c instead of joining them together in 1 line. Is that possible?

Thanks.
 
Hi,

is 'letter-spacing' not supported in visualforce rederas PDF? i have my css but the letter-spacing seems not working. works well in HTML..
 
tr.stdstyle{
                    text-align:left;
                    font-size:12px;
                    font-family: sans-serif;
                    letter-spacing:1px;

                }


<table border="0" cellspacing="0" cellpadding="0" width="100%" id="table1">

<tr class = "stdstyle" style="vertical-align:top">
                        <td>&nbsp;</td>
                        <td >Address</td>
                        <td width = "1%">: </td>
                        <td >some very very very long long long text</td>
                    </tr>

</table>
Thanks.
I have tons of images for my products imported into salesforce as Documents and we will have revise the images from time to time so is there a way i can upsert documents via data loader?

Thanks.
I have this custom button which execute a java script to prompt user for input
 
var quo = new sforce.SObject("Quote");
quo.Id = '{!Quote.Id}';
var appr_req = 	'{!Quote.List_Price_Change__c}';

if( appr_req == true ){
quo.User_Approval_Comments__c = prompt('Enter your comment','');
quo.User_Submit__c = true;
}
but this prompt just 1 line of input (i believe this is due to browser). Is there a way to prompt a multi line input for user? Or can I prompt iframe with text area inside for input? Once it saved in the iframe it will refresh the master quote record.

Thanks
the standard related list for Quote Line Item only limited to display 10 columns but i have more columns need to be displayed. Can i create a visualfoce related list page to display > 10 columns in for quote line items? Please guide me with sample code.


Thanks
Hi i have created a simple vf to display my custom field
 
<apex:pageBlockSection columns="2">
            
               <apex:pageBlockSection columns="1">
                    <apex:outputField  value="{!quote.BillingName}" />
                    <apex:outputField  value="{!quote.billingstreet}" label="ERP Billing Address 1"/>
                    <apex:outputField value="{!quote.billingcity}" label="ERP Billing Address 2"/>
               </apex:pageBlockSection>

                <apex:pageBlockSection columns="1">
                   <apex:outputField  value="{!quote.Shippingstreet}" label="Shipping Address 1"/>
                   <apex:outputField value="{!quote.billingcity}" label="Shipping Address 2"/>
                </apex:pageBlockSection>
</apex:pageBlockSection>
and it turn out like that
User-added image

how can i maximize the label width to display only 1 line?

Thanks
Hi, i have a VFP rendered as PDF and i would like to dynamically resize the image in my VFP if the image exceed 200px width. if the image width is below 200px, i do not want to stretch the image to 200px, keep it as it is. is that possible?

i tried to set Style = "width 50%" but it will stretch the smaller size image which doesnt look good.
Hi,

I have an after update trigger  like this
 
List<id> acc_ids = new List<id>();
 List<Account> acc_toUpdate = new List<Account>();



    if(trigger.isUpdate){
        
        for(Contact ctc:Trigger.new){
            Contact oldctc = trigger.oldMap.get(ctc.id);
  
             if(ctc.value__c != oldctc.value__c){
                    acc_ids.add(ctc.AccountId);  
              }
          }
      }

    if(acc_ids.size() > 0){
       // List<Account> acc = new List<Account>();
        for(Account acc: [Select id, CalculateALC__c from Account where id in: acc_ids]){
            acc.CalculateALC__c = true;
            acc_toUpdate.add(acc);
        }
    }
    
    if(acc_toUpdate.size() > 0){
        update acc_toUpdate;
    }

but i got error email from salesforce saying that Too many SOQL queries: 101 on this trigger when my user updating contact. Any thought?
 
Hi i have a custom exten for my Quote object as below:
 
public with sharing class quote_NewQuoteExtension{
    ApexPages.StandardController controller;
    public Opportunity opp2 {get; set;}
    public Account acc {get; set;}
    public Contact ctc {get; set;}
    private Quote qo;

public quote_NewQuoteExtension(ApexPages.StandardController stdController){

controller = stdController;
        qo = (Quote)stdController.getRecord();
        
        oid = System.currentpageReference().getParameters().get('oppid');

if(opp2 == null){
            opp2 = [Select id, Pricebook2Id,name, accountid, Type_of_Quote__c, Contact_Name__c from opportunity where id =: oid];
        }

.
..
}
and my test method always show list has no row on opp2 list. my test unit
 
public static testMethod void MainTestClass(){

account acc = new account(name='xx' ..);

insert acc;

contact ctc = new contact(name =  'xx'..);
insert ctc;

opportunity opp = new opportunity(name = 'xx'..);
insert opp;

quote qo = new quote(name='xx');
insert qo;

 ApexPages.StandardController sc = new ApexPages.StandardController(quo);
 quote_NewQuoteExtension testNewQuoteExt = new quote_NewQuoteExtension(sc);
        
        PageReference pageRef = Page.quote_NewQuoteMaster;
        Test.setCurrentPage(pageRef);
        testNewQuoteExt.opp2 = opp;
        testNewQuoteExt.acc = acc;
        testNewQuoteExt.ctc = ctc;
        testNewQuoteExt.save();

}
i have already set opp2 why still null?

Thanks.
Hi, i have this watermark added to my visualforce PDF but it actually override all my text.
<img src="{!URLFOR($Resource.tran_watermark)}" width="100%" height="100%" style="position:fixed; background-repeat:repeat; left:0cm; top:0cm; z-index:0; display:{!IF(quote.status == 'approved', 'none', '')}"/>


How can i push the watermark (png file) to the back?
Hi, I have a custom repeat list and one of the column will display different result based on certain condition:-
 
<apex:repeat value="{!Quote.QuoteLineItems}" var="qli">
                        <tr class = "stdstyle">
                            <td>{!FLOOR(count)} </td> 
                            <td>{!qli.Product2.Name}</td>
                            <td >{!IF(qli.Quote_PDS_Description__c == "Summary Only",qli.Product_Description__c,IF(qli.Quote_PDS_Description__c == "Summary & Short Details",qli.Product_Description__c +  qli.Quote_attribute_1__c ,""))} </td>
                            <td>{!qli.UnitPrice}</td>
                                
                            <apex:variable var="count" value="{!count+ 1}"/>
                        </tr>
                    </apex:repeat>
as you see from the above, i would like to have a line break between Product_Description__c & Quote_attribute_1__c instead of joining them together in 1 line. Is that possible?

Thanks.
 
Hi,

is 'letter-spacing' not supported in visualforce rederas PDF? i have my css but the letter-spacing seems not working. works well in HTML..
 
tr.stdstyle{
                    text-align:left;
                    font-size:12px;
                    font-family: sans-serif;
                    letter-spacing:1px;

                }


<table border="0" cellspacing="0" cellpadding="0" width="100%" id="table1">

<tr class = "stdstyle" style="vertical-align:top">
                        <td>&nbsp;</td>
                        <td >Address</td>
                        <td width = "1%">: </td>
                        <td >some very very very long long long text</td>
                    </tr>

</table>
Thanks.
the standard related list for Quote Line Item only limited to display 10 columns but i have more columns need to be displayed. Can i create a visualfoce related list page to display > 10 columns in for quote line items? Please guide me with sample code.


Thanks
Hi i have this wsdl from my webservice provided and i converted in to apex class and this is what i get.
 
//Generated by wsdl2apex

public class mttest {
    public class Rows_element {
        public String Valor;
        private String[] Valor_type_info = new String[]{'Valor','http://mtbr/test',null,'0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://mtbr/test','false','false'};
        private String[] field_order_type_info = new String[]{'Valor'};
    }
    public class DT_Test_Req {
        public String Operacao;
        public mttest.Rows_element[] Rows;
        private String[] Operacao_type_info = new String[]{'Operacao','http://mtbr/test',null,'0','1','false'};
        private String[] Rows_type_info = new String[]{'Rows','http://mtbr/test',null,'0','-1','false'};
        private String[] apex_schema_type_info = new String[]{'http://mtbr/test','false','false'};
        private String[] field_order_type_info = new String[]{'Operacao','Rows'};
    }
    public class DT_Test_Resp {
        public String Resultado;
        private String[] Resultado_type_info = new String[]{'Resultado','http://mtbr/test',null,'0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://mtbr/test','false','false'};
        private String[] field_order_type_info = new String[]{'Resultado'};
    }
    public class HTTPS_Port {
        public String endpoint_x = 'http://service/service';
        public Map<String,String> inputHttpHeaders_x;
        public Map<String,String> outputHttpHeaders_x;
        public String clientCertName_x;
        public String clientCert_x;
        public String clientCertPasswd_x;
        public Integer timeout_x;
        private String[] ns_map_type_info = new String[]{'http://mtbr/test', 'mttest'};
        public String SI_Test_Out_Sync(String Operacao,mttest.Rows_element[] Rows) {
            mttest.DT_Test_Req request_x = new mttest.DT_Test_Req();
            request_x.Operacao = Operacao;
            request_x.Rows = Rows;
            mttest.DT_Test_Resp response_x;
            Map<String, mttest.DT_Test_Resp> response_map_x = new Map<String, mttest.DT_Test_Resp>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://sap.com/xi/WebService/soap1.1',
              'http://mtbr/test',
              'MT_Test_Req',
              'http://mtbr/test',
              'MT_Test_Resp',
              'mttest.DT_Test_Resp'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.Resultado;
        }
        public String rettt(String vla){
            return vla;
        }
    }
}
Then i tried to calll the webservice using:-
mttest.HTTPS_Port si_test = new mttest.HTTPS_Port();
List<String> fillers = new String[]{'2','5'};
String opera = '+';
String output = si_test.SI_Test_Out_Sync(opera,fillers);
But it give me error:-
Method does not exist or incorrect signature: [mttest.HTTPS_Port].SI_Test_Out_Sync(String, List<String>)

What parameter should i input for the method
SI_Test_Out_Sync(String Operacao,mttest.Rows_element[] Rows)
?

Thanks


 
Ok i have this kind of scenario where my quote required 2 different approver manager to approve due to different reasons. And i created 2 approval process

Order:1 - approval process entry criteria: - reason 1 check box = true
Order:2 - approval process entry criteria: - reason 2 check box = true

and i tried to check the reson 1 & 2 check box then hit submit for approval. yes, it enter approval process 1 but after appoval manager approve on approval process 1 it did not went to 2nd approval process.

How can i simultaneosly send approval request to 2 different approval manager or how can i make it to go to send process after 1st one approved?
Hi i would like to create a 'Activity with Account' report and i cant seem to find the column 'Name' & 'Related To'.

User-added image

How can i report on these 2 fields?

Thanks.
i have created this 'Opportunity A' & 'Campaign A', so now i would like to relate Campaign A to Opportunity A by going to Opportunity A and click on the primary Campaign Source lookup but nothing come out, i unable to search for the 'Campaign A' but i am able to search for Campaign B,C,D which is created under other record type. What could be the problem?

Thanks.

Hi guys,

 

I'm trying to create a custom button in Opportunity Partner Related List. However, I cannot locate "opportunity partner" object under "Customize".

 

I need this custom button to copy a field (Pricebook) from Account and set it to Opportunity Pricebook field based on the "Primary" partner. Is this possible?

 

Please advice. Thanks.

is it possible to execute triggers from class? Let's say i want these triggers to execute at 12am everynight. is there a way to do this?