• atul patil 7
  • NEWBIE
  • 65 Points
  • Member since 2016

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 13
    Replies
Hi
I need to check whether t case which is created before 30mins of now.
Hi guys,

Can anyone please provide me an example on how to call a apex controller method in a visualforce custom component using a command button?
when do we go for action function tell me 2 scenarios
Hi, When do we go for CommandButton and  when do we go for Action function ?please explain Difference also..
HI Dudes,
I want required on text box ased on picklist value. i having text field is :"Office_Phone__c" and picklist value "Department__c".When evar i can set as Department__c==Department__c"" for that time i want rerquird "Office_Phone__c" filed.
Pls help mr for below code.
<apex:page controller="employmenthistiry" sidebar="true">
    <apex:form >
        <apex:pageBlock id="pgBlckId">
            <apex:pageBlockSection title="Employe" collapsible="false">
                    
                    <apex:inputField value="{! emp.Report__c}"/>
                    <apex:inputField value="{! emp.Name }"/>
                    <apex:inputField value="{! emp.Date_of_joining__c}"/>
                    <apex:inputField value="{! emp.Department__c}"/>
                    
                    <apex:inputField value="{! emp.Desigination__c}"/>
                    <apex:inputField value="{! emp.Email__c}" required="true"/>
                    <apex:inputField value="{! emp.Employeeid__c}"/>
                    <apex:inputField value="{! emp.Mobile__c }"/>
                    <apex:inputField value="{! emp.Office_Phone__c}" required="!IF(emp.Department__c=='IT',true,false)}" id="Office_phonerequired"/>
                    <apex:inputField value="{! emp.payslip_lase_sent_date__c}"/>
                    <apex:inputField value="{! emp.Technology__c}"/>
                  </apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</apex:page>
Regards,
sai
 
Hi
I need to check whether t case which is created before 30mins of now.
Hi
I am getting the following error for jquery date picker in visualforce page and this error is only happening in Capetown, but the same page is working in Australia.

Uncaught TypeError: $(...).datepicker is not a function

Any suggestion or ideas on why this is happening?

 
When I preview and try to check the challeng, I get this:

line 1:47 no viable alternative at character '"' 
An unexpected error has occurred. Your development organization has been notified.

___

Here's my vf page:
 
<apex:page controller="NewCaseListController">
    
    <ul>
        <apex:pageBlock title="New Cases" id = "cases">
        	<apex:repeat value = "{!newCases}" var = "case">
            	<li>
                    <apex:outputText value = "{!case.id}"/>
                        <br/>
                    <apex:outputLink value = "/{!case.id}">Click here!</apex:outputLink>
                </li>
            </apex:repeat>
        
        </apex:pageBlock>
        
    </ul>
    	
    
</apex:page>

... and here's my controller:
 
public class NewCaseListController {
    // stuff goes here
    
    public List<Case> getNewCases() {
        
        List<Case> results = Database.query(
            'SELECT Id, CaseNumber FROM Case WHERE Status = "New" ');
        
        return results;
        
    }
}

Not sure where on line 1 I'm drawing the blank (invisible) space/character.

Anyone else run into this?
As title, I used system.assert & system.debug in test class, I only got case run successful in console. Where to check the debug & asssert output ?
I'm trying to update the data in an input text field using a button and javascript. I've tried using document.getElementByID but i get an error saying that isn't a function. Here is my code so far:

document.getElementByID("Case.Subject").value="Does this work?";

function CopySubject() {
var a = "{!Case.Subject}";
alert(a); 
}

function CopyCN() {
var b = "{!Case.CaseNumber}";
alert(b); 
}

CopySubject();
CopyCN();

Essentially, my code should put "Does this work?" into the subject of the case and then put out messages that contain the subject and case number. Any help is greatly appreciated!
After convert button is pressed on lead, a visual force page fires.
I want a validation on this conversion vf  page & it should only fire when the value is 'unknown' on the below field.
Field: "Cx interested?" - values 'yes' or 'no' or 'unknown' on lead
Pls help
 
Hi guys,

Can anyone please provide me an example on how to call a apex controller method in a visualforce custom component using a command button?
Hi,

I have three fields in my VF page and user has to input two of them manually. Once both the values are entered, I need to show the Sum of both the entered values dynamically on the screen and that value must be saved to the third variable.

<apex:inputField value="{!Employee_segment_ineligible_under_plan__c}" id="eng" style="width:80%"></apex:inputField>

<apex:inputField value="{!Individual_income_reported_via_IRS__c}" id="enf" style="width:80%"></apex:inputField>

The sum should be displayed dynamically something like this and displayed without page being refreshed:

Based on your answers, the calculated subtotal is  __<calculated field>__ employees.

Please Help.

Thanks!!
  • June 12, 2017
  • Like
  • 0
hi can any one explain when to use ACTION FUNCTION and REMOTE ACTION in detail i much confusion on these both