• Michael Sypro
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 6
    Replies
I created a custom object called Expense.  I'm trying to allow users to upload a photo from their mobile device to the Files object attached to it.  However, on the mobile app I can't get the button to display.  It shows correctly on the web.User-added image
User-added image
Here's the page layout:
User-added image
Shouldn't adding the File action add the button to the mobile app?  What am I missing?

Thanks!
I think this is a pretty basic question, but it's beating me right now.  I have a list of leads in a pageBlockTable with an inputField for the user to set a new value for the field Follow_up_Date__c.

Visualforce:
<apex:inputField id="txtFDate" value="{!cc.Follow_up_Date__c}" />
<apex:commandLink value="Update" action="{!saveFollowUp}" rerender="leadBlock" >
     <apex:param name="leadId" value="{!cc.Id}" />
</apex:commandLink>
Apex:
public PageReference saveFollowUp(){  
     string leadId=ApexPages.currentPage().getParameters().get('leadId');
     date fDateToUse=?????;

     if (leadId!=null) {
		Lead leadToUse = [select id from lead where id=:leadId limit 1];
	    	leadToUse.Follow_up_Date__c=fDateToUse;
	    	update leadToUse;
     }
     return null;
}

I need help at the question mark line.  How do I get the value from the inputField and save the lead? 

Thanks

I'm creating a visualforce page that lists every member of our sales team and all of their open tasks.  Each user's data should be separated by their own pageBlock.  

 

However, the system I have requires me to create a new method for every user.  Code below:

 

<apex:pageBlock title="Michael Holley">

<apex:dataTable value="{!MichaelHolley}" var="t" width="965" cellpadding="2">

<apex:column headerValue="Subject">{!t.Subject}</apex:column>

</apex:dataTable>

</apex:pageBlock>

 

<apex:pageBlock title="Elizabeth Drimm">

<apex:dataTable value="{!ElizabethDrimm}" var="t" width="965" cellpadding="2">

<apex:column headerValue="Subject">{!t.Subject}</apex:column>

</apex:dataTable>

</apex:pageBlock>

 

public List<Task> getMichaelHolley() {

return [select subject from task where owner.firstname='Michael' and owner.lastname='Holley' and status<>'Complete'];

}

public List<Task> getElizabethDrimm() {

return [select subject from task where owner.firstname='Elizabeth' and owner.lastname='Drimm' and status<>'Complete'];

}

 

 

Is there any way I can specify a generic getTasks() method and pass a different variable to it based on the dataTable's ID or something similiar?  That way I only need one method?  I don't think url parameters or inputText fields will work although I could be wrong...

 

Any help at all is appreciated

 

Thanks 

 

 

 

Message Edited by Michael Sypro on 06-16-2009 01:20 PM
Message Edited by Michael Sypro on 06-16-2009 01:21 PM