• APathak
  • NEWBIE
  • 440 Points
  • Member since 2011

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

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

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.

 

 

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?

 

 

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]'

 

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