• APathak
  • NEWBIE
  • 440 Points
  • Member since 2011

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

I am just trying to show the Show Feed for the specific record viewing at the top of the VF page. I thought I could use a universal reference like the one I am using to show a user's feed such as this : 

 

<chatter:feedWithFollowers entityId="{!$user.Id}"/>

 

 

I thought this would work : 

<chatter:feedWithFollowers entityId="{!record.Id}"/>

 

But that's not working. Do I need to identify the record somehow first ? 

Thank you.

 

 

  • April 29, 2013
  • Like
  • 0

Hi All,

i have a requirement like, i have a field which stores monthyear in the format as eg:122009. but i want to display it in my vf page as "Dec2009". I cant change anything in the field now since it is fixed. I want to change it in vf page while diaplaying.can any one please provide me the solution for this.

How can i write an soql to fetch records from an object with created date as the most recent present in system?

 

 

  • April 22, 2013
  • Like
  • 0

Hi,

 

I am trying to pass a value from Visualforce page to Controller, by clicking on image with <apex:commandlink /> from PageBlockTable Column. Though I found some solutions where if I don't use PageBlockTable then it works so great. But I have to use PageBlockTable as per my requirement. 

 

Here is a code for my Visualforce page:

 

 

<apex:outputPanel id="resultPanel" >
<apex:outputText ><b> {!SelectedValue} </b></apex:outputText>
</apex:outputPanel>

<apex:pageBlock id="Skulls"> <apex:pageblocksection id="pbsSkulls" rendered="true"> <apex:pageBlockTable id="pbtSkulls" value="{!lstSBones}" var="SB"> <apex:column > <apex:commandlink onclick="callActionMethod('{!SB.Skulls__c}');" > <apex:image url="{!$Resource.Plus}" height="20" width="20"/> </apex:commandLink> </apex:column> </apex:pageBlockTable> </apex:pageblocksection> </apex:pageBlock> <apex:actionFunction name="readCell" action="{!readCellMethod}" reRender="resultPanel" > <apex:param name="SkillNExpertise" assignTo="{!clickedCellValue}" value="" /> </apex:actionFunction> <script type="text/javascript"> function callActionMethod(txtSkull) { readCell(txtSkull); } </script>

 

And here is my controller where I am trying to receive value.

 

    public String clickedCellValue { get; set; }
    public String SelectedValue { get; set; }
        
    public void readCellMethod() {
        SelectedValue = 'Selected Value: ' + ClickedCellValue;
    }    

 

Any input would be really appreciated.

 

Thanks,

Sawan 

 

I want to use the contract object to track our interal software purchases and distrubution. So for each software contract we could potentially have 20 or more internal contacts using the contract seats.  

 

I'm assuming the only way to do this is with a custom button/VF page - I'm visualizing a button on the contract object "add contacts" which brings up a page that displays the contacts for our org which could be selected by checkbox. Has anyone attempted anything similar that would be willing to share code? My VF skills are severely lacking.

Hi,

 

I'm a bit new to Visualforce development, but I'm hoping someone can provide the syntax necessary to do what I want here. 

 

I have this Visualforce page and I want to conditionally display certain apex tags in the page based a value in the query string.


Here is my code.  If the value "city" is in the query string I want to show the block of code in "Code B" below otherwise show the block of code in 'Code A".  Basically one block of code is wrapped with a site template and the other is not.

 

What would the code need to look like to achive this based on a URL/Query String parameter

 

<!-- Code A -->
<apex:page controller="MyCustomController" sidebar="false" showheader="false">

  <apex:define name="body">
      
      <apex:form>
      
      </apex:form>
      
  </apex:define>

</apex:page>



<!-- Code B -->
<apex:page controller="MyCustomController" sidebar="false" showheader="false">

  <apex:composition template="{!$Site.Template}">
 
    <apex:define name="body">
        
        <apex:form>
        
        </apex:form>
        
    </apex:define>
    
  </apex:composition>

</apex:page>

 

Thanks and any help appreciated.

For an Analytic Snapshot source report, I tried to use a summary report that shows a count of Contacts by Rating (Cold, Warm, Hot). The report is summarized on Rating, showing Contact record count totals in each grouping.

 

I'm not understanding how I can get the count of Contacts from each report grouping to map to a unique number field in the target object. Logically thinking, there's no way to know how many fields are needed in the target object because the number (or names) of groupings in the report could change-- from the addition and deletion of data, or from addition or deletion of picklist values.

 

To get my desired results (in bold above), do I need to run three separate reports (Cold, Warm, Hot) with three separate analytic snapshots, mapping each report's grand summary total to a single field in the target object?

 

If that's the case, I'm not understanding the use-case for choosing a summary report with grouping level 1 as the source report for an analytic snapshot. If I can't dump the recordcount/sum/avg/max/min for each group into separate fields in the target object, then why would I use grouping level 1? Help me get out of this fog please!

Good day all,

 

I've got a visualforce page where I need to display lists of a variety of custom objects based on the date. Hence I've set up most of my custom objects as maps similar to the following:

 

Map<Date, List<dailyScheduleWrapper>> dailyScheduleWrappers

 

As long as the Maps are local variables within the controller, I'm not having any issues displaying them. However, if I try to display the maps from a wrapper class inside the controller I start getting the following error: 

 

Visualforce Error

 

Help for this Page


Map key Sun Oct 14 00:00:00 GMT 2012 not found in map

Error is in expression '{!wsw.dailyScheduleWrappers[td]}' in component <apex:repeat> in page weekly_schedule

 

I understand that it's looking for '2012-10-14 00:00:00' as the key, not 'Sun Oct 14 00:00:00 GMT 2012'. I've run through tests to establish the format for the key during creation is 'YYYY-mm-dd hh:mm:ss'. However, the key is the same for the maps local to the controller and they display without any issues - so I'm at a bit of a loss. 

 

 

 

<apex:outputPanel id="wsDisplay">
<apex:repeat value="{!weeklyScheduleWrappers}" var="wsw"> 
<table border="1">
<tr>
<td>
<table border="1">
<tr>
<apex:repeat value="{!testDates}" var="td">
<td>

<!-- This throws the above error -->
{!wsw.dailyScheduleWrappers[td]}
</td> 
</apex:repeat>
</tr>
<tr>
<apex:repeat value="{!testDates}" var="td">
<td>

<!-- This works fine -->
{!allResourceWrappers[td]}
</td>
</apex:repeat>
</tr>
</table>
</apex:repeat>
</apex:outputPanel>

 

and the controller / classes...

 

public with sharing class WeeklyScheduleController {

...

public Map<Date, List<resourceWrapper>> allResourceWrappers { get; set; }

public List<WeeklyScheduleWrapper> weeklyScheduleWrappers { get; set; }

...

 

public with sharing class WeeklyScheduleWrapper {

 

public Map<Date, List<dailyScheduleWrapper>> dailyScheduleWrappers { get; set; }

 

And if someone could let me know how to tag code so it embeds correctly, that would be fantastic. Thanks!

Hello , 

 

We are trying to make an update for 6000 events with Data loader But I got this error : 

Apex Event trigger cannot handle batch operations on recurring events.

 

 

I updated my trigger to consider only non reccurent events by making this : 

 

Hi,

 

 I wanted to display the time according to the users time zone,

 

  paDet.crdate=String.valueof(callReppaMap.get(ac.personContactId).Date__c.format('hh:mm'));

 

 

I am displaying the time but thats not in gmt format, Tell me how to do it.

 

 

Thanks in Advance

I am building a time records app that records time spent in projects by our users.

 

No we have to develop a feature to check if a certain person is getting close to the maximum time for a specific project so that Salesforce can inform the project manager.

 

At first I was thinknig of pooling that info from an external information but... If there is a way to execute a certain task every hour in salesforce then that would probably be the best solution.

 

Any way to do this?

Hi

 

Generally   we upload  file  for one record in salesforce .But our requirement is we have to upload  files

to  multiple fields for one record  in a Visualpage

 

for example 

 

Field1   Browse button1 

 

Field2   Browse button2

 

Field3   Browse button3

 

Please suggent ....

 

Thanks

Lakshmi

 

  • October 08, 2012
  • Like
  • 0

I am using extension for a Custom Object .

Sample code:

 

<apex:page standardcontroller="Applied_SMP__c" extensions="ApplyAccountSMPAgain">
<apex:PageBlock >
<apex:pageMessages />
<apex:form >
<apex:pageblocksection title="Apply SMP" >
<apex:panelGrid columns="2">
<apex:panelGroup >
<b><label>SMP</label></b>&nbsp;&nbsp;&nbsp;&nbsp;
<apex:outputText value="{!name}"/>
</apex:panelGroup></apex:panelGrid>
<br/>
<apex:inputField value="{!Applied_SMP__c.Assign_To__c}"/>
<apex:inputField value="{!Applied_SMP__c.Start_Date__c}"/>
</apex:pageblocksection>

 

 

I want to use the user entered values in above two fields in controller.

How to capture these values in controller??

Please help

I need to pass a selected picklist value to my controller class and based on that value, a query needs to be created. Then the resulting values have to be displayed in a table.

 

Please find my VF and Controller code and suggest.

 

Thankyou.

 

VF CODE:

 

<apex:page StandardController="User" id="thePage" Extensions="UserData">
  <apex:form >
  <apex:pageBlock title="SelectUsers" id="USERSLIST" mode="edit">
    <h1>Update Sales Co-ordinator for the users in Particular Region</h1>
  <br></br>
  <br></br>
   Select Region of the user:
   <apex:selectList id="u" value="{!usr}" size="1" title="Users">
   <apex:selectOptions value="{!usrs}"></apex:selectOptions>
   </apex:selectList>
   <apex:pageBlockButtons >  
<apex:commandButton value="GO" action="{!doSearch}">            
    </apex:commandButton>
    </apex:pageBlockButtons>
    <apex:pageBlockTable value="{!Results}" var="names">
    </apex:pageBlockTable>
   <br></br>             
  
  </apex:pageblock>
  </apex:form>   
  </apex:page>

 

 

 

CONTROLLER:

 

public class UserData {
PUBLIC String usr{get;set;}
PUBLIC List<selectOption> usrs;
List<User> results;
List<Id> userlist=new List<Id>();

   public UserData(ApexPages.StandardController controller)
   { 
    }
  
   public List<selectOption> getusrs()
  {
    List<selectOption> options = new List<selectOption>(); 
    options.add(new selectOption('', '- None -'));   
    FOR (User users : [SELECT Id,Region__c FROM User Order By Region__c Asc]) 
    {   
      options.add(new selectOption(users.Id, users.Region__c));
     }    
       return options; 
  } 
  
 
   public Pagereference doSearch()
     {

      //selected picklist value must be passed to this query.
       results = (List<User>)[select Name from User Where Id=:???????????];
       system.debug('USERSLISTFOR REGION$$$$'+results);
       return null;
     }
      
   public List<User> getResults()
    {
        return results;
    }
 
 }

Hi folk,

 

Hopefully you smart guys can help me out here. I have similar problem like you. I am trying to send an email from custom object with the related list. My custom object is 'Sample Tracking'

I created an email button on custom object with the following.

 

location.replace('/email/author/emailauthor.jsp?re​tURL=/{!Sample_Tracking__c.Id}&rtype=003&p2_lkid={​!  Sample_Tracking__c.Recipient_ContactId__c }&template_id=00XJ0000000QD59&p5=')

 

I created an email template with following:

<messaging:emailTemplate subject="Sample Tracking Products and Product Descriptions" recipientType="Contact" relatedToType="Sample_Tracking__c"> <messaging:HtmlEmailBody > <html>     <body>      <STYLE type="text/css">            TH {font-size: 11px; font-face: arial;background: #CCCCCC; border-width: 1;  text-align: center }            TD  {font-size: 11px; font-face: verdana }            TABLE {border: solid #CCCCCC; border-width: 1}            TR {border: solid #CCCCCC; border-width: 1}      </STYLE>          <font face="arial" size="2">

  <p>Dear {!recipient.name},</p>       <p>Below is a list of Products and Product Descriptions cases related to the Sample Request: {!relatedTo.Id}.</p>       <p> {!relatedTo.Recipient_Contact__c}.</p>           <table border="0" >         <tr >             <th>Product</th><th>Product description</th><th>Send Quantity</th><th>Cost</th>          </tr> <apex:repeat var="cx" value="{!relatedTo.Product_Samples__r}">    <tr>        <td><a href="https://na1.salesforce.com/{!cx.id}">View</a> |         <a href="https://na1.salesforce.com/{!cx.id}/e">Edit</a></t​d>        <td>{!cx.name}</td>                 </tr> </apex:repeat>       </table>       <P/> </font>        </body>    </html>

</messaging:htmlEmailBody> </messaging:emailTemplate>

 

The problem I am getting is, when i click the email button the sample tracking is is not passed to the email template. And the email template don't return anything. It loads properly with contact in 'to box' of email and subjects text comes properly but the particular sample tracking page from which I click the email button is not passed to the template. So none of the related lists shows up.

 

Please suggest. I have spend about a week with no solution. Appreciate your time.

 

Thanks

Swayam


We have a developer sandbox which is refreshed quite frequently. There are some some seed objects that need to have data so that the sandbox becomes usable.
I am trying to develop a script which will automate this thing  i.e. will copy data from production to sandbox for these objects. I used the command line data loader by salesforce.

->  Got stuck where i need to copy "Sales Coach" object & the child object - "Sales Coach Line Items". While loading the Sales Coach Line Items the Sales Coach lookup ids point to production but i need the ids of the sandbox. Is there way to solve this problem?

-> Also i need to migrate some attachment object records. Is this possible with CLI?

Is there any other tool or other approach  that can be used to achieve the above?

Thanks in advance.

Thanks




Hi,
In our salesforce org there is eloqua integration. It basically inserts Campaign records into salesforce.

For 1 campaign i am getting this error "Insufficient Access on Cross Reference Id". I already checked the 2 id fields in the record to be inserted (ownerid and recordtypeid) and they are valid.

The eloqua user which inserts the record has Read,Create,Edit permission on Campaign and user has Marketing User permission also but NOT modify all.

The observation is the role of the owner is below the eloqua user. If i change owner to another one whose role is above the eloqua user and try to insert then it works perfectly and record gets loaded. This behavior is similar to Transfer Owenership permission.

So while loading records with (owner id) through API do the user need to have transfer record permission? Thanks for your help.

Thanks


Hi,

I want to show the same image stored as a static resource in 2 different sizes on the render as pdf page.

 But cant show it in diffrent sizes. They render in one size only. Here is the code.

 

<apex:page renderAs="pdf">
    <div>
        <img src="{!$Resource.image1}" width="350px" height="130px" style= "border:1px solid black"/><br/>
    </div>
    <br/><br/><br/><br/><br/>
    <div>
        <img src="{!$Resource.image1}" width="130px" height="350px" style= "border:1px solid black"/><br/>
    </div>
</apex:page>

 

Any ideas? 

Hi,
I want to pull this report - Activities with or without contacts where i can show activities and the related contact details(if contact is mapped in the activity).

I tried using the standard "Tasks and Events" report type provided by sfdc but in it custom contact fields are not available for reporting.

The second i tried was using custom report type but was not able to relate to contact.

Hope you understand the problem.

Any help is greatly appreciated.

Thanks
Angad

Hi,

I want to generate a JSON string that wil be used in the page. So i wrote a javascript remote action method which returns the JSON string. 

The problem is this :-

In apex debug the json string comes perfect :

 

'[{ "label": "CTS Test Self", "value": "CTS Test Self"},{ "label": "test", "value": "test"}]'

 

But in chrome debug i am seeing the distored JSON string :-

 

'[{ &quot;label&quot;: &quot;CTS Test Self&quot;, &quot;value&quot;: &quot;CTS Test Self&quot;},{ &quot;label&quot;: &quot;test&quot;, &quot;value&quot;: &quot;test&quot;}]'

 

Due to this the json string is not getting converted into json object.

Please help.

We have standard object heirarchy :-

 

Parent Account

Account

Opportunity

Quote

 

i am trying to access a field on parent account from Quote using formula field.

 

While creating this formula field i clicked on the insert field button then navigated upto account but in the account field list the parent account field is not present.

 

Any idea why its not allowing to navigate to parent account fields? Thanks in advance

Hi

 when am Executing the visualforcepage . here am using the Search Filter to display the Time sheet Record based on the Project we have selected  and am getting the view state Error

Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 135.875KB
  • May 17, 2013
  • Like
  • 0

hi all,

 

 

 

how to set the background color as white in pageblock

I am just trying to show the Show Feed for the specific record viewing at the top of the VF page. I thought I could use a universal reference like the one I am using to show a user's feed such as this : 

 

<chatter:feedWithFollowers entityId="{!$user.Id}"/>

 

 

I thought this would work : 

<chatter:feedWithFollowers entityId="{!record.Id}"/>

 

But that's not working. Do I need to identify the record somehow first ? 

Thank you.

 

 

  • April 29, 2013
  • Like
  • 0

I have 100 accounts of Account Object.Every account have more than one contact.I need to getting the highest contact by the contact (percent field) in every account.

Is it possible in Map?

 

Its urgent.Please help me

Hi

 

display total number of Account created on month wise. Should have two column with header Monthwise and Number of accounts are created on that particular month.

 

Like this

 

Account created In              No of accounts created

Jan                            25

feb                            20

 

can any one provide me a sample code how to achive this it would be great thankfull.

 

Thanks In Advance

Hello,

 

I am trying to pass a value from the visualforce page to my apex code. I am using the <apex:param assignto to pass values, but nothing gets updated when I run the action.

 

<apex:dataList value="{!sameCategoryContents}" var="content" styleClass="slides" id="slider2">
<apex:commandLink rerender="page:player-container" action="{!updateCurrentContent}">
<apex:param value="TEST" assignTo="{!currentContentId}" />
<apex:image value="{!content.Sm_Image_URL__c}"
style="width:175px;height:95px; border-radius: 7px; cursor:pointer;" title="{!content.name}" >
</apex:image>
</apex:commandLink>
</apex:dataList>
</apex:outputPanel>

 

And I set the variable in my apex:code

 

    public String currentContentId {get; set;}

 

But I keep clicking on the link in the visualforce but the variable never ever gets updated. Thank you.

Hi All,

i have a requirement like, i have a field which stores monthyear in the format as eg:122009. but i want to display it in my vf page as "Dec2009". I cant change anything in the field now since it is fixed. I want to change it in vf page while diaplaying.can any one please provide me the solution for this.

Hello,

 

I am looking for a solution to show all contacts in child accounts to the associated parent account.  I was thinking of having a related to list or something similar to show the relationship.  Please let me know if you could help me out or need more clarification.

 

Thanks,

How can i write an soql to fetch records from an object with created date as the most recent present in system?

 

 

  • April 22, 2013
  • Like
  • 0

Hi I am using Dynamic query in Apex and I am facing this issue I have my debug logs:

What am I doing wrong?? This is my query string  --

 

10:17:09.075 (75325000)|USER_DEBUG|[86]|DEBUG|******Select Id,Name,Lookup__c from Record__c where Lookup__c IN  '[a02i00000012UOvAAM, a02i00000012UOfAAM]'

 

  • April 22, 2013
  • Like
  • 0

Hi everyone;

 

How can I access (retrieve)  the name of the account owner using the name of the account. 

 

I found that account is in look up relationship with User , So running this query results in an error

 

 a) String acctname= [select Owner from account where name=: objAccount.Name];

 

 

Error: MyController2 Compile Error: No such column 'Owner' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. at line 16 column 22

 

 

 

b) String acctname= [select a.$User.FirstName from account a where a.name=: objAccount.Name];

 

Error: MyController2 Compile Error: Didn't understand relationship '$User' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names. at line 16 column 22

 

Thanx in advance !!

Can some one help me understand why using the name of the param in the outputText value field does not work:

 

<apex:pageBlockSection columns="1" id="pbsList">
   <apex:pageBlockTable value="{!casesInQ}" id="pbt" var="c" columns="11" columnsWidth="50" width="1200" rowClasses="grey_background, white_background"> 
	<apex:column value="{!c.CaseNumber}"/>
	<apex:column value="{!c.Priority}"/>
	<apex:column value="{!c.Subject}" width="400"/>
	<apex:column value="{!c.Type}" width="200"/>
	<apex:column value="{!c.Status}"/>
	<apex:column value="{!c.ContactId}"/>
	<apex:column value="{!c.OwnerId}"/>
	<apex:column value="{!c.CreatedDate}"/>
	<apex:column headerValue="Case Age (hrs)">
	   <apex:outputText value="{cDt}" >
		<apex:param name="cDt" value="{!ROUND((NOW() - c.CreatedDate) * 24, 2)}"/>
	   </apex:outputText>		
        </apex:column>	
    </apex:pageBlockTable>      
</apex:pageBlockSection>

 I get a error when saving the page saying the value of the Output is not in a valid format.

 

If I {0} in the value field of outputText it works fine but, ultimately I want to change the background color of the column based on the age of the case, but using 0 to reference the param in a conditional that says if the age of the case is > 2, make the background red, is never going to eval correctly.

 

Thanks for your help

Hi

I am trying to read the content of an attachment from an apex class. 

 Attachment att=   [Select Id,a.ParentId, a.Name,a.body,a.ContentType From Attachment a where ParentId=:contactId limit 1];
           System.debug('Attachment body : '+ att.body);
        System.debug('Attachment body : '+ att.ContentType);

 the attachment body  content is displayed as :Blob[176680].
the body of the attachment is base64. I want to see the content of the body in plain english.

 

Thanks

Quote line items entire Table shifting to next page in PDF when items exceeds the page. This generally happens when we put abit larger data in any of the product description field. This looks very much unprofessional sending first page of the officia quote empty and other filled with that much content.

 

No solution I could find from Internet, so SF please advise at earliest OR anybody having solution for this ugly issue?

 

Regards,

Muazzam

Hi,

 

I am trying to pass a value from Visualforce page to Controller, by clicking on image with <apex:commandlink /> from PageBlockTable Column. Though I found some solutions where if I don't use PageBlockTable then it works so great. But I have to use PageBlockTable as per my requirement. 

 

Here is a code for my Visualforce page:

 

 

<apex:outputPanel id="resultPanel" >
<apex:outputText ><b> {!SelectedValue} </b></apex:outputText>
</apex:outputPanel>

<apex:pageBlock id="Skulls"> <apex:pageblocksection id="pbsSkulls" rendered="true"> <apex:pageBlockTable id="pbtSkulls" value="{!lstSBones}" var="SB"> <apex:column > <apex:commandlink onclick="callActionMethod('{!SB.Skulls__c}');" > <apex:image url="{!$Resource.Plus}" height="20" width="20"/> </apex:commandLink> </apex:column> </apex:pageBlockTable> </apex:pageblocksection> </apex:pageBlock> <apex:actionFunction name="readCell" action="{!readCellMethod}" reRender="resultPanel" > <apex:param name="SkillNExpertise" assignTo="{!clickedCellValue}" value="" /> </apex:actionFunction> <script type="text/javascript"> function callActionMethod(txtSkull) { readCell(txtSkull); } </script>

 

And here is my controller where I am trying to receive value.

 

    public String clickedCellValue { get; set; }
    public String SelectedValue { get; set; }
        
    public void readCellMethod() {
        SelectedValue = 'Selected Value: ' + ClickedCellValue;
    }    

 

Any input would be really appreciated.

 

Thanks,

Sawan 

 

I want to use the contract object to track our interal software purchases and distrubution. So for each software contract we could potentially have 20 or more internal contacts using the contract seats.  

 

I'm assuming the only way to do this is with a custom button/VF page - I'm visualizing a button on the contract object "add contacts" which brings up a page that displays the contacts for our org which could be selected by checkbox. Has anyone attempted anything similar that would be willing to share code? My VF skills are severely lacking.

Hello,

 

I am currently trying implement a visualforce page with a standard controller and an extenssion. If the user puts in the url ".../apex/mySite?id=0000001", then that is great. But if the user enters ".../apex/mySite" with no record id in the URL, then the page crashes... as expected. How do I redirect the user to say record number 000001 if they don't enter a record if in the URL?

 

I've seen <apex:page action="..."> and it said this action should be used to redirect the user to another page, but I don't know how to do that.

 

Thanks in advanced!

Take a number field on Account. Whnever a Contact is inserted for a particular account, number value in accoutn ahould be increamented by 1.

When rendering a page as a PDF the filename of the PDF is the name of the page which is not a good thing. The problem with this is that the name is not unique and can cause confusion with the user.

 

I'm working on a quoting app that renders a quote as a PDF. Some broswers open the PDF embed, others automatically launch your PDF reader, and some prompt you to save or open. The problem is that if opened or saved theses files are all saved as qoute.pdf, qoute[1].pdf, quote[2].pdf, quote[3].pdf. The problem should be obvious.

 

Ideally you should be able to define the name of the generated PDF but I haven't figured out how to do this.

 

Thanks,

Jason

  • February 25, 2009
  • Like
  • 1