• ckum
  • NEWBIE
  • 25 Points
  • Member since 2009

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

Hi,

 

I have created a Word Doc using contentType="application/msWord" . I want to add Footer in my Word Doc. How can I do that.  I have used many ways but unable to get the footer. I found Header by using thead Tag in my page, but unable to get Footer after using tfoot tag.

 

Please help......

 

Regards,

ckum

 

  • March 26, 2010
  • Like
  • 0

Hi,

 

I have a created a VF Page using contentType='application/msWord'. When I open this page this gives me a Word Doc. In this page I have included one image using static resource. now when i open this page I cant see the Images on the Doc, it just shows the X tag. All data is coming correctly. Static Resource cache control is Public.

 Pasting the code below:

<apex:page standardController="opportunity" extensions="TEST_Quote_DOC" contentType="application/rtf" cache="true" standardStylesheets="false"> <script src="/soap/ajax/13.0/connection.js"></script> <script src="/soap/ajax/13.0/plsoql.js"></script> <script src="/soap/ajax/13.0/functions.js"></script> <head><style type="text/css"> @page { @bottom-center { font-size:10px; content: "Test Plainview, Inc. • 35 South Service Road • Plainview, New York 11803 Phone: 516-694-6700 • Fax: 516-694-6715 • www.Test.com "; } @bottom-right { font-size:10px; content: counter(page); } } </style></head> <apex:form > <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" > <apex:image value="{!$Resource.TestLogo}" /> </td> </tr> </table> <br></br> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <apex:outputLabel value="Date: {!TODAY()} " style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td> &nbsp; </td> </tr> <tr> <td> <apex:outputLabel value="{!oppCustomer}" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td> <apex:outputLabel value="{!oppBillingStreet}" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td> <apex:outputLabel value="{!oppBillingCity}" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td width='90px'> <apex:outputLabel value="{!oppBillingState} , {!oppBillingZip}" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td> &nbsp; </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="5%"> <b><apex:outputLabel value="Attention:&nbsp;&nbsp;" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/></b> </td> <td> <apex:outputLabel value="{!oppPriContName}" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td width="5%"> <b><apex:outputLabel value="" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/></b> </td> <td style="font-size:80%; font:Arial, Helvetica, sans-serif;"> <b>T:</b><apex:outputLabel value=" {!oppPriContPhone}" /> </td> </tr> <tr> <td width="5%"> <b><apex:outputLabel value="" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/></b> </td> <td style="font-size:80%; font:Arial, Helvetica, sans-serif;"> <b>F:</b><apex:outputLabel value=" {!oppPriContFax}" /> </td> </tr> <tr> <td width="5%"> <b><apex:outputLabel value="" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/></b> </td> <td style="font-size:80%; font:Arial, Helvetica, sans-serif;"> <b>e-mail:</b><apex:outputLabel value=" {!oppPriContEmail}" /> </td> </tr> </table> <br/> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="5%"> <b><apex:outputLabel value="Reference:&nbsp;&nbsp;" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/></b> </td> <td> <apex:outputLabel value="{!oppNumber}" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td> &nbsp; </td> </tr> <tr> <td colspan='2'> <apex:outputLabel value="Test Plainview is pleased to submit the following quotation:" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> </table> <apex:pageBlock > <br/> <table border='1' width="100%" class="list" cellpadding="0" cellspacing="0"> <tbody border='1' style="background-color: #FFFFAA;"> <tr class="headerRow"> <th width="5%" scope="col" class="" style="font-size:80%; font:Arial, Helvetica, sans-serif;"> Item </th> <th width="20%" scope="col" class="" style="font-size:80%; font:Arial, Helvetica, sans-serif;"> Part Number </th> <th width="30%" scope="col" class="" style="font-size:80%; font:Arial, Helvetica, sans-serif;"> Description </th> <th width="15%" scope="col" class="" style="font-size:80%; font:Arial, Helvetica, sans-serif;" align='center'> Quantity </th> <th width="15%" scope="col" class="" style="font-size:80%; font:Arial, Helvetica, sans-serif;" align='center'> Unit Price </th> <th width="15%" scope="col" class="" style="font-size:80%; font:Arial, Helvetica, sans-serif;" align='center'> Delivery (Weeks ARO) </th> </tr> </tbody> </table> <table width="100%" border='1' cellpadding="0" cellspacing="0"> <apex:repeat value="{!OppProducts}" var="op"> <tr> <td width="5%" valign="top" align='center'> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" id="temp1" value="{!op.Counter}" /> </td> <td width="20%" valign="top" align='center'> <span style="padding: 2px 0px 2px 7px;text-align:left"> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" id="temp2" value="{!op.productName}" /> </span> </td> <td width="30%" valign="top"> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" id="temp3" value="{!op.description}" /> </td> <td width="45%" valign="top" > <apex:outputPanel id="opQR"> <table border='1' width="100%" cellpadding="0" cellspacing="0"> <apex:repeat value="{!op.LSTQR}" var="QR"> <tr > <td width="33%" align='right' > <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" value="{!QR.quantity} " id="txtQuantity" />&nbsp;&nbsp; </td> <td width="33.5%" align='right' > <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" value="{!QR.unitprice} " id="lblUnitPrice" />&nbsp;&nbsp; </td> <td width="33.5%" align='right'> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" value="{!QR.ARO} " id="lblARO" />&nbsp;&nbsp; </td> </tr> </apex:repeat> </table> </apex:outputPanel> </td> </tr> </apex:repeat> </table> </apex:pageBlock> <br></br> <table border='1' width="100%" cellpadding="0" cellspacing="0"> <tr> <td style="font-size:80%; font:Arial, Helvetica, sans-serif;"> <b> Note: </b><apex:outputLabel value=" {!oppNote} " id="lblARO" />&nbsp;&nbsp; </td> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td width="5%"> <b><apex:outputLabel value="Terms:" style="font-size:80%; font:Arial, Helvetica, sans-serif;" /></b> </td> <td> <apex:outputLink value="www.Test.com/PLNTerms&Conditions" id="theLink" style="font-size:80%; font:Arial, Helvetica, sans-serif;">www.Test.com/PLNTerms&Conditions</apex:outputLink> </td> </tr> <tr><td>&nbsp;</td></tr> <tr> <td colspan='2'> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" value="This condition is valid until {!QValidDate}." style="font-size:80%; font:Arial, Helvetica, sans-serif;" /> </td> </tr> <tr><td>&nbsp;</td></tr> <tr> <td colspan='2' style="font-size:80%; font:Arial, Helvetica, sans-serif;" > <p> <b> Test Plainview reserves the right to provide an updated quotation after reviewing any items that are currently undefined or to be determined.</b> </p> </td> </tr> <tr><td>&nbsp;</td></tr><tr><td>&nbsp;</td></tr> <tr> <td colspan='2' style="font-size:80%; font:Arial, Helvetica, sans-serif;"> <p> Once again thank you for the opportunity to fulfill your requirements on this important program. If you have any questions, please do not hesitate to contact the undersigned at {!oppOwnerPhone} or via e-mail at {!oppOwnerEmail}. </p> </td> </tr> </table> <br/> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td> <apex:outputLabel value="Regards," style="font-size:80%; font:Arial, Helvetica, sans-serif;" /> </td> </tr> <tr> <td> <apex:outputLabel value="{!oppOwnerName}" style="font-size:80%; font:Arial, Helvetica, sans-serif;" /> </td> </tr> <tr> <td> <apex:outputLabel value="Regional Sales Manager" style="font-size:80%; font:Arial, Helvetica, sans-serif;" /> </td> </tr> <tr><td>&nbsp;</td></tr> <tr> <td width='500px'> <apex:outputLabel value="cc: {!oppRep}" style="font-size:80%; font:Arial, Helvetica, sans-serif;" /> </td> </tr> <tr><td>&nbsp;</td></tr><tr><td>&nbsp;</td></tr> <tr> <td> <b><apex:outputLabel value="Notes & Stipulation:" style="font-size:80%; font:Arial, Helvetica, sans-serif;" /></b> </td> </tr> </table> <br/> <table width="100%" class="list" cellpadding="0" cellspacing="0"> <tbody> <tr class="headerRow"> <th width="5%" scope="col" class="" style="font-size:83%; font:Arial, Helvetica, sans-serif;" align='center'> S.N. </th> <th width="95%" scope="col" class="" style="font-size:83%; font:Arial, Helvetica, sans-serif;" align='left'> Description </th> </tr> </tbody> </table> <table width="100%" class="list" cellpadding="0" cellspacing="0"> <apex:repeat value="{!QuoteNotes}" var="QN"> <tr> <td width="5%" align='center' valign="top"> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" value="{!QN.NoteOrder}" /> </td> <td width="95%"> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" value="{!QN.Description}" /> </td> </tr> </apex:repeat> </table> </apex:form> </apex:page>

 There is one more issue. How can I add Header and Footer in the above Word Doc? Kindly Help ASAP.

Thanks

 

 

  • March 08, 2010
  • Like
  • 0

Hi,

 

I am stuck with a major issue with Radio Button. It is very urgent. Kindly reply ASAP.

 

<input type="radio" name="{!QR.rowNumber}" value="{!QR.chkStatus}" />   -------> This is my Radio Button in VF page.

 

In my functionality there is a '+' sign. If I click on this, it adds a new Row which includes Radio Button Option , Quantity and Sales Price. Assume there are 5 rows added, and I checked radio buttion option in Row 2. Now I want the List which is returning the values should return the 2nd Row Radio Button Value as 'true' and other should be 'false'. But it is always returning false for every row.

 

class quantityRow

{

public Boolean selectedCharge;

 

 

public Boolean getselectedRecordId1()

{

System.debug('***************selectedCharge '+this.selectedCharge);

return this.selectedCharge;

}

public void setselectedRecordId1(Boolean s)

{

 

public decimal salesprice

{ get;set; }

 

public Boolean chkStatus

{ get;set; }

public decimal quantity

{ get;set; }

 

public string rowNumber

{ get;set; }

 

 

public quantityRow(Integer count)

{

rowNumber = string.valueOf(count);

}

 

}

 

chkStatus is the Radio Button value.

 

List  details: List lstOP is returning all the results in quantityRow and oppProduct........

public list<oppProduct> getOppProducts()

{

return lstOP;

}

 

class oppProduct

{

public string productId

{ get;set; }

 

public String hidProductId

{ get; set; }

 

 

public list<quantityRow> lstQR = new list<quantityRow>();

 

 

 

public list<quantityRow> getLSTQR()

{

return lstQR;

}

 

public Integer QRSubCounter

{ get;set; }

 

public oppProduct(Integer qrCount)

{

QRSubCounter = qrCount;

quantityRow qr = new quantityRow(QRSubCounter);

lstQR.add(qr);

}

 

public void addQR()

{

quantityRow qr = new quantityRow(QRSubCounter);

lstQR.add(qr);

}

 

public void removeQR()

{

lstQR.remove(lstQR.size() - 1);

}

 

}

 

 

Other issue is: when I select 1 value from radio button option and then press  '+' sign for adding new row then the selected value of the radio button disappears. I want that the selected value should remain as it is.

 

<td align="right" width="25%">

<apex:commandButton value="+" action="{!op.addQR}" rerender="opQR"/>

</td>

 

 

public void addQR()

{

quantityRow qr = new quantityRow(QRSubCounter);

lstQR.add(qr);

}

 

Kindly help!!!!!!!!!!!!

 

Thanks and Regards,

 

ckum

  • January 20, 2010
  • Like
  • 0

Hi,

 

In my page. I have a standard date field given below:

<td>

<apex:inputField id="txtWarrantyDate" value="{!Quo.Renewal_Date__c}" onchange="javascript: SavingItems()" />

<script>

 

objRenewalDate.push(document.getElementById('{!$Component.txtWarrantyDate}'));

</script>

</td>

 

Once I load the page it donot open the calendar, and when I refresh it, the Calendar opens normally.

 

For the first time when I click on the text box of Date it is showing javascript error:

Error: this.div is null
Source File: https://c.cs3.visual.force.com/jslibrary/1257456714000/main.js

 

Unable to solve this issue. Kindly revert back ASAP.

 

Thanks,

ckum

  • December 29, 2010
  • Like
  • 0

Hi,

 

I am facing an issue with the action function. In my Page I have an actionFunction mentioned below:

 

<apex:actionFunction name="SAVEALL" action="{!saveAll}" rerender="OPquoteEdit" status="statusProductAll"/>

 Now in one of the javascript function I have called SAVEALL(); . Once it is called it uses the status message but donot go to the function in controller 'saveAll'. I have a system debug in the first line of the function but it is not reaching that line. Kindly help how can I call my actionFunction's action i.e.; 'saveAll' function in controller.

 

public PageReference saveAll()

{

System.debug('starttttttttttttttttttttttttttt');

if(INFW_SaveQuoLineItems)

{

System.debug('*****INFW_SaveQuoLineItems TRUE *****');

INFW_quoteId = System.currentPageReference().getParameters().get('quoteId');

PageReference pr = new PageReference('/'+INFW_quoteId);

pr.setRedirect(true);

return pr;

}

else

{

QuoteLineItems();

return null;

}

System.debug('finishhhhhhhhhhhhhhhhhhhhhhhh');

return null;

}

 

Thanks

ckum

  • December 29, 2010
  • Like
  • 0

Hello All,

 

I have a query on a lookup field of InputField type. Where I am setting a default value from the URL. In the Url I also have the ID of the default value. ON the VF page, I can change the value in the lookup, but I am only able to retreive the Names and not the Id of the particualr value. Kindly suggest some way to retreive the id of the values changing in lookup.

 

Thanks

ckum

  • December 10, 2009
  • Like
  • 0

Hi,

 

I have created a Word Doc using contentType="application/msWord" . I want to add Footer in my Word Doc. How can I do that.  I have used many ways but unable to get the footer. I found Header by using thead Tag in my page, but unable to get Footer after using tfoot tag.

 

Please help......

 

Regards,

ckum

 

  • March 26, 2010
  • Like
  • 0

Can you tell me why, when I click the Edit or Save Link, it refreshes the entire side (including SFDC header and sidebar, if sidebar is not visible, it shows it and then disappears))

 

<apex:page Controller="NexTestController" standardStylesheets="true"> <apex:pageBlock title="Test {!selectedId}" id="listblock"> <apex:form > <apex:panelGroup id="mypanel"> <table with="100%"> <apex:repeat value="{!Relationships}" var="relation"> <apex:panelGroup rendered="{!or(selectedId != relation.Id,selectedId==null)}" style="border-bottom: 1px solid grey"> <tr> <td><apex:outputText value="{!relation.Id}" style="padding:4px" /></td> <td><apex:outputText value="{!relation.Analysis_Period__c}" style="padding:4px" /></td> <td><apex:outputText value="{!relation.Relationship_Code__c}" style="padding:4px" /></td> <td><apex:outputText value="{!SelectedId}" style="padding:4px" /></td> <td><apex:commandLink value="Edit" action="{!edit}" onmousedown="setEditorToLine('{!relation.Id}')" id="editbutton" rerender="mypanel"/></td> </tr> </apex:panelGroup> <apex:panelGroup rendered="{!selectedId == relation.Id}" style="border-bottom:1px solid #DADADA"> <tr> <td><apex:inputField value="{!relation.Id}" style="padding:4px" /></td> <td><apex:inputField value="{!relation.Analysis_Perios__c}" style="padding:4px" /></td> <td><apex:inputField value="{!relation.Relationship_Code__c}" style="padding:4px" /></td> <td><apex:inputField value="{!relation.Contact__c}" style="padding:4px" /></td> <td><apex:commandLink value="Save" action="{!save}" onmousedown="setEditorToLine('{!relation.Id}')" id="savebutton" rerender="mypanel" /></td> </tr> </apex:panelGroup> </apex:repeat> </table> </apex:panelGroup> <apex:actionFunction action="{!edit}" name="setEditorToLine"> <apex:param name="firstParam" assignTo="{!selectedId}" value="" /> </apex:actionFunction> </apex:form> </apex:pageBlock></apex:page>

 In my mind it should only refresh "mypanel"

 

 

 

 

  • March 19, 2010
  • Like
  • 0

Hi,

 

I have a created a VF Page using contentType='application/msWord'. When I open this page this gives me a Word Doc. In this page I have included one image using static resource. now when i open this page I cant see the Images on the Doc, it just shows the X tag. All data is coming correctly. Static Resource cache control is Public.

 Pasting the code below:

<apex:page standardController="opportunity" extensions="TEST_Quote_DOC" contentType="application/rtf" cache="true" standardStylesheets="false"> <script src="/soap/ajax/13.0/connection.js"></script> <script src="/soap/ajax/13.0/plsoql.js"></script> <script src="/soap/ajax/13.0/functions.js"></script> <head><style type="text/css"> @page { @bottom-center { font-size:10px; content: "Test Plainview, Inc. • 35 South Service Road • Plainview, New York 11803 Phone: 516-694-6700 • Fax: 516-694-6715 • www.Test.com "; } @bottom-right { font-size:10px; content: counter(page); } } </style></head> <apex:form > <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" > <apex:image value="{!$Resource.TestLogo}" /> </td> </tr> </table> <br></br> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <apex:outputLabel value="Date: {!TODAY()} " style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td> &nbsp; </td> </tr> <tr> <td> <apex:outputLabel value="{!oppCustomer}" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td> <apex:outputLabel value="{!oppBillingStreet}" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td> <apex:outputLabel value="{!oppBillingCity}" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td width='90px'> <apex:outputLabel value="{!oppBillingState} , {!oppBillingZip}" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td> &nbsp; </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="5%"> <b><apex:outputLabel value="Attention:&nbsp;&nbsp;" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/></b> </td> <td> <apex:outputLabel value="{!oppPriContName}" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td width="5%"> <b><apex:outputLabel value="" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/></b> </td> <td style="font-size:80%; font:Arial, Helvetica, sans-serif;"> <b>T:</b><apex:outputLabel value=" {!oppPriContPhone}" /> </td> </tr> <tr> <td width="5%"> <b><apex:outputLabel value="" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/></b> </td> <td style="font-size:80%; font:Arial, Helvetica, sans-serif;"> <b>F:</b><apex:outputLabel value=" {!oppPriContFax}" /> </td> </tr> <tr> <td width="5%"> <b><apex:outputLabel value="" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/></b> </td> <td style="font-size:80%; font:Arial, Helvetica, sans-serif;"> <b>e-mail:</b><apex:outputLabel value=" {!oppPriContEmail}" /> </td> </tr> </table> <br/> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="5%"> <b><apex:outputLabel value="Reference:&nbsp;&nbsp;" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/></b> </td> <td> <apex:outputLabel value="{!oppNumber}" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> <tr> <td> &nbsp; </td> </tr> <tr> <td colspan='2'> <apex:outputLabel value="Test Plainview is pleased to submit the following quotation:" style="font-size:80%; font:Arial, Helvetica, sans-serif;"/> </td> </tr> </table> <apex:pageBlock > <br/> <table border='1' width="100%" class="list" cellpadding="0" cellspacing="0"> <tbody border='1' style="background-color: #FFFFAA;"> <tr class="headerRow"> <th width="5%" scope="col" class="" style="font-size:80%; font:Arial, Helvetica, sans-serif;"> Item </th> <th width="20%" scope="col" class="" style="font-size:80%; font:Arial, Helvetica, sans-serif;"> Part Number </th> <th width="30%" scope="col" class="" style="font-size:80%; font:Arial, Helvetica, sans-serif;"> Description </th> <th width="15%" scope="col" class="" style="font-size:80%; font:Arial, Helvetica, sans-serif;" align='center'> Quantity </th> <th width="15%" scope="col" class="" style="font-size:80%; font:Arial, Helvetica, sans-serif;" align='center'> Unit Price </th> <th width="15%" scope="col" class="" style="font-size:80%; font:Arial, Helvetica, sans-serif;" align='center'> Delivery (Weeks ARO) </th> </tr> </tbody> </table> <table width="100%" border='1' cellpadding="0" cellspacing="0"> <apex:repeat value="{!OppProducts}" var="op"> <tr> <td width="5%" valign="top" align='center'> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" id="temp1" value="{!op.Counter}" /> </td> <td width="20%" valign="top" align='center'> <span style="padding: 2px 0px 2px 7px;text-align:left"> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" id="temp2" value="{!op.productName}" /> </span> </td> <td width="30%" valign="top"> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" id="temp3" value="{!op.description}" /> </td> <td width="45%" valign="top" > <apex:outputPanel id="opQR"> <table border='1' width="100%" cellpadding="0" cellspacing="0"> <apex:repeat value="{!op.LSTQR}" var="QR"> <tr > <td width="33%" align='right' > <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" value="{!QR.quantity} " id="txtQuantity" />&nbsp;&nbsp; </td> <td width="33.5%" align='right' > <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" value="{!QR.unitprice} " id="lblUnitPrice" />&nbsp;&nbsp; </td> <td width="33.5%" align='right'> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" value="{!QR.ARO} " id="lblARO" />&nbsp;&nbsp; </td> </tr> </apex:repeat> </table> </apex:outputPanel> </td> </tr> </apex:repeat> </table> </apex:pageBlock> <br></br> <table border='1' width="100%" cellpadding="0" cellspacing="0"> <tr> <td style="font-size:80%; font:Arial, Helvetica, sans-serif;"> <b> Note: </b><apex:outputLabel value=" {!oppNote} " id="lblARO" />&nbsp;&nbsp; </td> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td width="5%"> <b><apex:outputLabel value="Terms:" style="font-size:80%; font:Arial, Helvetica, sans-serif;" /></b> </td> <td> <apex:outputLink value="www.Test.com/PLNTerms&Conditions" id="theLink" style="font-size:80%; font:Arial, Helvetica, sans-serif;">www.Test.com/PLNTerms&Conditions</apex:outputLink> </td> </tr> <tr><td>&nbsp;</td></tr> <tr> <td colspan='2'> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" value="This condition is valid until {!QValidDate}." style="font-size:80%; font:Arial, Helvetica, sans-serif;" /> </td> </tr> <tr><td>&nbsp;</td></tr> <tr> <td colspan='2' style="font-size:80%; font:Arial, Helvetica, sans-serif;" > <p> <b> Test Plainview reserves the right to provide an updated quotation after reviewing any items that are currently undefined or to be determined.</b> </p> </td> </tr> <tr><td>&nbsp;</td></tr><tr><td>&nbsp;</td></tr> <tr> <td colspan='2' style="font-size:80%; font:Arial, Helvetica, sans-serif;"> <p> Once again thank you for the opportunity to fulfill your requirements on this important program. If you have any questions, please do not hesitate to contact the undersigned at {!oppOwnerPhone} or via e-mail at {!oppOwnerEmail}. </p> </td> </tr> </table> <br/> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td> <apex:outputLabel value="Regards," style="font-size:80%; font:Arial, Helvetica, sans-serif;" /> </td> </tr> <tr> <td> <apex:outputLabel value="{!oppOwnerName}" style="font-size:80%; font:Arial, Helvetica, sans-serif;" /> </td> </tr> <tr> <td> <apex:outputLabel value="Regional Sales Manager" style="font-size:80%; font:Arial, Helvetica, sans-serif;" /> </td> </tr> <tr><td>&nbsp;</td></tr> <tr> <td width='500px'> <apex:outputLabel value="cc: {!oppRep}" style="font-size:80%; font:Arial, Helvetica, sans-serif;" /> </td> </tr> <tr><td>&nbsp;</td></tr><tr><td>&nbsp;</td></tr> <tr> <td> <b><apex:outputLabel value="Notes & Stipulation:" style="font-size:80%; font:Arial, Helvetica, sans-serif;" /></b> </td> </tr> </table> <br/> <table width="100%" class="list" cellpadding="0" cellspacing="0"> <tbody> <tr class="headerRow"> <th width="5%" scope="col" class="" style="font-size:83%; font:Arial, Helvetica, sans-serif;" align='center'> S.N. </th> <th width="95%" scope="col" class="" style="font-size:83%; font:Arial, Helvetica, sans-serif;" align='left'> Description </th> </tr> </tbody> </table> <table width="100%" class="list" cellpadding="0" cellspacing="0"> <apex:repeat value="{!QuoteNotes}" var="QN"> <tr> <td width="5%" align='center' valign="top"> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" value="{!QN.NoteOrder}" /> </td> <td width="95%"> <apex:outputLabel style="font-size:80%; font:Arial, Helvetica, sans-serif;" value="{!QN.Description}" /> </td> </tr> </apex:repeat> </table> </apex:form> </apex:page>

 There is one more issue. How can I add Header and Footer in the above Word Doc? Kindly Help ASAP.

Thanks

 

 

  • March 08, 2010
  • Like
  • 0

I have overridden the New Task buttonto go to a visualforce page which acts as a url creator depending on where the new button was called from.  It builds a the standard new task url but adds a whoId, whatId and retUrl parameter.

 

My problem is that, i want the user to be redirected to the New Task they just created upon clicking on 'save', however instead the user is taken to the homepage upon saving.  And this is no matter what I put in the retUrl.  If I take out the override and manually add some retUrl values to the default new Task page everything works fine.

 

What am I doing wrong?

 

 

Let me know if you need to see any pieces of code and I will gladly provide. 

Message Edited by astro on 03-08-2010 03:35 AM
  • March 08, 2010
  • Like
  • 0

We have several Visualforce pages and we are using custom labels to display any heading. These are mostly displayed using <apex:outputtext> tag. We are not using any spceal css to set the fonts.

 

<apex:page controller="InvController" showheader="false" renderAs="pdf" > ... <apex:outputtext value="{!$Label.gii__Invoice_title}"> ... <apex:outputtext value="{!$Label.gii__Footer_Heading_2}"/> ... </apex:page>

 

 

We need to use japanese transalation. When this page is executed all the custom labels are displayed as Blank.

 

Does any one know how to display resolve this issue, so we can use one visualforce page which can be transalated in any lanuage.

We are not using any static text in our VF page, either we are displaying the text from customer labels or

we are using the field labels.

 

Hi,

 

In my page. I have a standard date field given below:

<td>

<apex:inputField id="txtWarrantyDate" value="{!Quo.Renewal_Date__c}" onchange="javascript: SavingItems()" />

<script>

 

objRenewalDate.push(document.getElementById('{!$Component.txtWarrantyDate}'));

</script>

</td>

 

Once I load the page it donot open the calendar, and when I refresh it, the Calendar opens normally.

 

For the first time when I click on the text box of Date it is showing javascript error:

Error: this.div is null
Source File: https://c.cs3.visual.force.com/jslibrary/1257456714000/main.js

 

Unable to solve this issue. Kindly revert back ASAP.

 

Thanks,

ckum

  • December 29, 2010
  • Like
  • 0

Hi,

 

I am facing an issue with the action function. In my Page I have an actionFunction mentioned below:

 

<apex:actionFunction name="SAVEALL" action="{!saveAll}" rerender="OPquoteEdit" status="statusProductAll"/>

 Now in one of the javascript function I have called SAVEALL(); . Once it is called it uses the status message but donot go to the function in controller 'saveAll'. I have a system debug in the first line of the function but it is not reaching that line. Kindly help how can I call my actionFunction's action i.e.; 'saveAll' function in controller.

 

public PageReference saveAll()

{

System.debug('starttttttttttttttttttttttttttt');

if(INFW_SaveQuoLineItems)

{

System.debug('*****INFW_SaveQuoLineItems TRUE *****');

INFW_quoteId = System.currentPageReference().getParameters().get('quoteId');

PageReference pr = new PageReference('/'+INFW_quoteId);

pr.setRedirect(true);

return pr;

}

else

{

QuoteLineItems();

return null;

}

System.debug('finishhhhhhhhhhhhhhhhhhhhhhhh');

return null;

}

 

Thanks

ckum

  • December 29, 2010
  • Like
  • 0

Hi.,

 

Have created MS word doc using Visual force (similar to standard Mail merge functionality).

 

Main Key is here,


<apex:page standardController="Order__c" recordSetVar="Order" showHeader="false" contentType="application/msword" extensions="Date_Update_ACL" action="{!update_date}">

 

The reason to move to custom functionality instead of using mail merge in Activity History, we need to generate mail merge doc for more than one record, upon generating the doc we need to update some fields in that record.

 

Here the problem is, our visual force page generate the MS Word doc in Fire Fox browser but not working in internet explorer.

 

I dont understand the reason, have you faced this kind of issue, any workaround for this? 

Any help appreciated.

 

Note: PDF can be generated easily but we need to generate in MS word

 

 

 

 

Hello All,

 

I have a query on a lookup field of InputField type. Where I am setting a default value from the URL. In the Url I also have the ID of the default value. ON the VF page, I can change the value in the lookup, but I am only able to retreive the Names and not the Id of the particualr value. Kindly suggest some way to retreive the id of the values changing in lookup.

 

Thanks

ckum

  • December 10, 2009
  • Like
  • 0