• Veni
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 8
    Replies

How do i get an sandbox account for salesforce.

 

Thanks in advance

Veni M

  • January 18, 2010
  • Like
  • 0

for my project i written one

 

 

 

 <apex:form>
        <apex:outputpanel id="counter">
            <apex:outputText value="Click Me!: {!count}"/>
            <apex:actionSupport event="onclick"
                                action="{!incrementCounter}"
                                rerender="counter" status="counterStatus"/>
        </apex:outputpanel>
        <apex:actionStatus id="counterStatus"/>
  


</apex:form>

 

 

in my controller

 

 

 
Integer count = 0;

public PageReference incrementCounter() {
count++;
return null;
}

public Integer getCount() {
return count;
}
 but its onclick event not working in this page..

 

but i copy this same code,and put in new page its fine..i dont know why this code not run some apexpage

and controller..plzhelp me...

  • January 07, 2010
  • Like
  • 0

I have got a search List, List of all details like (First Name, Last Name, Address,Phone,Account Number, SSN)

 

From which i want to implement Ajax for Refine Search, I mean there are 5 text box in which first text box for First Name, second for Last Name and so on.

 

Now If i type a letter (a) in First Name Text Box my search list should shrink with first name first letter starts with 'a'.

 

Can some one help me, Please

 

Thanks

Veni M

 

 

 

  • December 30, 2010
  • Like
  • 0

I need to search two dependent objects and display the list of results in the view.

 

i.e., I have Customer as one object and the other as Account.

 

1. I need to pull all the customers with last name = xxyyzz with thier account number.

 

Please Help me, its urgent.

 

 

 

 

  • December 29, 2010
  • Like
  • 0

Can some one help me Validating SSN, Email and Address/

 

I am  installing Strikeiron, after that how should i use in visualforce and apex, help Me

 

Thanks in Advance

 

 

  • November 23, 2009
  • Like
  • 0
Can some one help me in Validating SSN Number
  • November 23, 2009
  • Like
  • 0

Hi,

 

1. I am very new to salesforce, can some one help me in validating an email address in viusalforce and Apex for Custom Object.

2. How to Verify Address using StrikeIron Service?

 

Thanks in Advance.

  • November 23, 2009
  • Like
  • 0

I am new to salesforce, i am creating an application with Apex and Visualforce.

 


when i am trying to insert data in custom object, i get Null Pointer Exception, can some one help me, its very urgent.

 

Thanks in Advance

 

My Code:

 

Visualforce:

 

<apex:form id="MyFirstform">

  <apex:pageBlock >

      <apex:pageBlockButtons >

          <apex:commandButton action="{!save}" value="Save"/>   

          <apex:commandButton action="{!cancel}" value="Cancel"/>

      </apex:pageBlockButtons>

      

      <apex:pageBlockSection title="Customer Information" id="informationid" columns="2">

         

         <apex:outputLabel value="Customer Id: " style="font-weight:bold"></apex:outputLabel>

         

         <apex:inputText id="custid" />

         

         <apex:outputLabel value="SSN/Tax ID/Customer Number: " style="font-weight:bold"></apex:outputLabel>

         <apex:inputText id="ssn"/>

         <apex:outputLabel value="Name: " style="font-weight:bold"></apex:outputLabel>

         <apex:inputText id="name"/>

         <apex:outputLabel value="Phone/Cell Number: " style="font-weight:bold"></apex:outputLabel>

         <apex:inputText id="cell"/>

         <apex:outputLabel value="Address: " style="font-weight:bold"></apex:outputLabel>

         <apex:inputText id="address"/>

         <apex:outputLabel value="Email Address: " style="font-weight:bold"></apex:outputLabel>

         <apex:inputText id="email"/>

     </apex:pageBlockSection>

     

     <apex:pageBlockSection title="Caller Information" id="callerinformid">

         <apex:outputLabel value="Is Caller: "></apex:outputLabel>

         <input type="checkbox" id="check" onclick="jsvalidate()"/>

         

         <apex:outputLabel value="Caller Name: "></apex:outputLabel>

         <input type="text" id="callername"/>

         <apex:outputLabel value="Relation Type: "></apex:outputLabel>

         <select id="relationtype">

         <option value="Select">--Select--</option>

         <option value="Service">Service</option>

        <option value="Move In">Move In</option>

        <option value="Move Out">Move Out</option>

        <option value="Transfer">Transfer</option>

         </select>

     </apex:pageBlockSection>

   

    <apex:pageBlockSection title="New Permises / Contract Number" id="contractnum">

         <apex:outputLabel value="Contract Number: "></apex:outputLabel>

         <apex:inputText id="contractnumber"/>

    </apex:pageBlockSection>

    

    <apex:pageBlockSection title="Services and Dates" id="servdate">

         <apex:outputLabel value="Electricity Permit Required "></apex:outputLabel>

          <input type="checkbox" id="permit" onclick="jsvalidate1()"/>

         <apex:outputLabel value="Turn On All "></apex:outputLabel>

         <input type="checkbox" id="all" onclick="jsvalidate2()"/>

         <apex:outputLabel value="Turn Electricity "></apex:outputLabel>

          <input type="checkbox" id="electric" onclick="jsvalidate2()"/>

         <apex:outputLabel value="Turn Lighting "></apex:outputLabel>

          <input type="checkbox" id="light" onclick="jsvalidate2()"/>

         

         <apex:outputLabel value="Service Start Date"></apex:outputLabel>

            <input type="text" id="servdate"/>

         <apex:outputLabel value="Meter Number"></apex:outputLabel>

         <input type="text" id="meternum"/>

         <apex:outputLabel value="Rate"></apex:outputLabel>

         <input type="text" id="rate"/>

         <apex:outputLabel value="Remarks"></apex:outputLabel>

         <apex:inputText id="remark"/>

         

    </apex:pageBlockSection>

    

    

</apex:pageBlock>

  </apex:form>  

 

 

 

Apex:

 

public class UCIP {

 

    public PageReference cancel() {

        return null;

    }

 

 

    

    private String id{ get; set; }

    private  Integer custid{ get; set; }

    private  Integer ssn{ get; set; }

    private String name{ get; set; }

    private String cell{ get; set; }

    private String address{ get; set; }

    private String email{ get; set; }

    private Integer contractnumber{ get; set; }

    private String callername{ get; set; }

    private String relationtype{ get; set; }

    private Date servstdate{ get; set; }

    private Integer meternum{ get; set; }

    private Integer rate{ get; set; }

    private String remks{ get; set; }

           

       public PageReference save() {

       Map<string,string> postParameters = ApexPages.currentPage().getParameters();

 

        try{

          

          

          UCIP__c obj= new UCIP__c();

 

 

 

          obj.CustomerId__c = Decimal.valueOf(postParameters.get('custid1'));

          obj.SSN_Tax_ID_Customer_Number__c = Integer.valueOf(postParameters.get('ssn'));

          obj.Name__c = postParameters.get('name');

          obj.Phone_Cell_Number__c = postParameters.get('cell');

          obj.Address__c = postParameters.get('address');

          obj.Email_Address__c = postParameters.get('email');

          obj.Rate__c = Integer.valueOf(postParameters.get('rate'));

          insert obj;

          System.debug('Success');

         

        }catch(System.DmlException e){

            System.debug(e);

 

        }

        

        String newPageUrl = '/apex/ordercontract';

        PageReference newPage = new PageReference(newPageUrl);

        newPage.setRedirect(true);

        return newPage;

   }

    

  • November 21, 2009
  • Like
  • 0

I am learning salesforce, please help me

 

I am trying to create an application,

 

I am saving some data, can i know how should i view all my data is saved or not.

 


 

  • October 30, 2009
  • Like
  • 0

I am very new to salesforce.com, can some help me in clarifying my doubts

 

How to create Radio Button?

Can i use layout(Frames) concept in salesforce, if how?

How to create Menu?

  • October 27, 2009
  • Like
  • 0

I have a collection of dependant selectLists on a Force.com page.  How can I populate an outputLabel with the price of the selection in the associated selectList?

 

Example:

SelectList1 - OutputLabel1

SelectList2 - OutputLabel2

SelectList3 - OutputLabel3

 

Note: I'm using the rerender action on each SelectList to update the next SelectList.  If your solution to my original question includes using the rerender action please also include instructions of how to use two rerenders on the same object.

 

Thank you for any assistance.

Can some one help me in Validating SSN Number
  • November 23, 2009
  • Like
  • 0

Hi,

 

1. I am very new to salesforce, can some one help me in validating an email address in viusalforce and Apex for Custom Object.

2. How to Verify Address using StrikeIron Service?

 

Thanks in Advance.

  • November 23, 2009
  • Like
  • 0

I am new to salesforce, i am creating an application with Apex and Visualforce.

 


when i am trying to insert data in custom object, i get Null Pointer Exception, can some one help me, its very urgent.

 

Thanks in Advance

 

My Code:

 

Visualforce:

 

<apex:form id="MyFirstform">

  <apex:pageBlock >

      <apex:pageBlockButtons >

          <apex:commandButton action="{!save}" value="Save"/>   

          <apex:commandButton action="{!cancel}" value="Cancel"/>

      </apex:pageBlockButtons>

      

      <apex:pageBlockSection title="Customer Information" id="informationid" columns="2">

         

         <apex:outputLabel value="Customer Id: " style="font-weight:bold"></apex:outputLabel>

         

         <apex:inputText id="custid" />

         

         <apex:outputLabel value="SSN/Tax ID/Customer Number: " style="font-weight:bold"></apex:outputLabel>

         <apex:inputText id="ssn"/>

         <apex:outputLabel value="Name: " style="font-weight:bold"></apex:outputLabel>

         <apex:inputText id="name"/>

         <apex:outputLabel value="Phone/Cell Number: " style="font-weight:bold"></apex:outputLabel>

         <apex:inputText id="cell"/>

         <apex:outputLabel value="Address: " style="font-weight:bold"></apex:outputLabel>

         <apex:inputText id="address"/>

         <apex:outputLabel value="Email Address: " style="font-weight:bold"></apex:outputLabel>

         <apex:inputText id="email"/>

     </apex:pageBlockSection>

     

     <apex:pageBlockSection title="Caller Information" id="callerinformid">

         <apex:outputLabel value="Is Caller: "></apex:outputLabel>

         <input type="checkbox" id="check" onclick="jsvalidate()"/>

         

         <apex:outputLabel value="Caller Name: "></apex:outputLabel>

         <input type="text" id="callername"/>

         <apex:outputLabel value="Relation Type: "></apex:outputLabel>

         <select id="relationtype">

         <option value="Select">--Select--</option>

         <option value="Service">Service</option>

        <option value="Move In">Move In</option>

        <option value="Move Out">Move Out</option>

        <option value="Transfer">Transfer</option>

         </select>

     </apex:pageBlockSection>

   

    <apex:pageBlockSection title="New Permises / Contract Number" id="contractnum">

         <apex:outputLabel value="Contract Number: "></apex:outputLabel>

         <apex:inputText id="contractnumber"/>

    </apex:pageBlockSection>

    

    <apex:pageBlockSection title="Services and Dates" id="servdate">

         <apex:outputLabel value="Electricity Permit Required "></apex:outputLabel>

          <input type="checkbox" id="permit" onclick="jsvalidate1()"/>

         <apex:outputLabel value="Turn On All "></apex:outputLabel>

         <input type="checkbox" id="all" onclick="jsvalidate2()"/>

         <apex:outputLabel value="Turn Electricity "></apex:outputLabel>

          <input type="checkbox" id="electric" onclick="jsvalidate2()"/>

         <apex:outputLabel value="Turn Lighting "></apex:outputLabel>

          <input type="checkbox" id="light" onclick="jsvalidate2()"/>

         

         <apex:outputLabel value="Service Start Date"></apex:outputLabel>

            <input type="text" id="servdate"/>

         <apex:outputLabel value="Meter Number"></apex:outputLabel>

         <input type="text" id="meternum"/>

         <apex:outputLabel value="Rate"></apex:outputLabel>

         <input type="text" id="rate"/>

         <apex:outputLabel value="Remarks"></apex:outputLabel>

         <apex:inputText id="remark"/>

         

    </apex:pageBlockSection>

    

    

</apex:pageBlock>

  </apex:form>  

 

 

 

Apex:

 

public class UCIP {

 

    public PageReference cancel() {

        return null;

    }

 

 

    

    private String id{ get; set; }

    private  Integer custid{ get; set; }

    private  Integer ssn{ get; set; }

    private String name{ get; set; }

    private String cell{ get; set; }

    private String address{ get; set; }

    private String email{ get; set; }

    private Integer contractnumber{ get; set; }

    private String callername{ get; set; }

    private String relationtype{ get; set; }

    private Date servstdate{ get; set; }

    private Integer meternum{ get; set; }

    private Integer rate{ get; set; }

    private String remks{ get; set; }

           

       public PageReference save() {

       Map<string,string> postParameters = ApexPages.currentPage().getParameters();

 

        try{

          

          

          UCIP__c obj= new UCIP__c();

 

 

 

          obj.CustomerId__c = Decimal.valueOf(postParameters.get('custid1'));

          obj.SSN_Tax_ID_Customer_Number__c = Integer.valueOf(postParameters.get('ssn'));

          obj.Name__c = postParameters.get('name');

          obj.Phone_Cell_Number__c = postParameters.get('cell');

          obj.Address__c = postParameters.get('address');

          obj.Email_Address__c = postParameters.get('email');

          obj.Rate__c = Integer.valueOf(postParameters.get('rate'));

          insert obj;

          System.debug('Success');

         

        }catch(System.DmlException e){

            System.debug(e);

 

        }

        

        String newPageUrl = '/apex/ordercontract';

        PageReference newPage = new PageReference(newPageUrl);

        newPage.setRedirect(true);

        return newPage;

   }

    

  • November 21, 2009
  • Like
  • 0

I am very new to salesforce.com, can some help me in clarifying my doubts

 

How to create Radio Button?

Can i use layout(Frames) concept in salesforce, if how?

How to create Menu?

  • October 27, 2009
  • Like
  • 0

I have the following concept page:

<apex:page controller="UTPageBlockTable"> <apex:pageBlock > <apex:pageBlockTable value="{!join}" var="h"> <apex:column value="{!h.Name}"/> <apex:column value="{!h.oId}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:page>

 

with the controller:

 

public class UTPageBlockTable { public List<UTJoin> getJoin() { List<UTJoin> result = new List<UTJoin>(); UTJoin record = new UTJoin(); User one = [ SELECT Name FROM User LIMIT 1 ]; Organization two = [ SELECT Id FROM Organization LIMIT 1 ]; record.Name = one.Name; record.oId = two.Id; result.add(record); record.Name = 'MyOtherUser'; record.oId = '01p700000004hau'; result.add(0,record); return result; } }

 

and the Apex Class:

 

public class UTJoin { public String Name; public Id oId; }

 

 

When the page is displayed, I get the "none-too-descriptive" error page:

 

getName()

To me, this appears to be a Salesforce.com error. Customer Support directed me to this Discussion Board for guidance. 

 

Thanks in advance for any help you may be able to provide. 

 

Hello,

I am having issue with DatePicker not popping up automatically. In fact, it does not pop up at all. My input field is definitely a date field. Firebug reports problem like this :-

Error:
this.div is null
https://na3.salesforce.com/dJS/en/1219782666000/library.js
Line 22568

this.div is null
iframeShim(null)library.js (line 22568)
DatePicker()library.js (line 7537)
pickDate()(true, "j_id0:j_id1:j_id134:j_id135:j_id215:j_id216:j_id220:0:j_id224", false, undefined)library.js (line 7795)
onfocus(focus )IPPage—i...FLg%3D%3D (line 2)
[Break on this error] if (this.div.currentStyle) {

 Could anyone help me?

Thanks

Hi All,

I want a input text in my visualforce page. On clicking this inputbox the standard salesforce calendar should popup. Is this possible.

Please note that i need only a input text and not a input field.

I got the below code from the forums.

What are the values that i have to pass in the highlighted part of the code. Is this possible in Visualforce.

Code:
<a href="javascript&colon;openPopupFocus

('/home/calendar.jsp—form=form1&field=sdate&mo=0&callonchange=true', '_blank', 186, 170, 'width=186,height=170,resizable=yes,toolbar=no,status=no,scrollbars=no,menubar=no,directories=no,location=no,dependant=yes', true, true);"

class="datePicker"

title="Pick A Date (New Window)"

onclick="setLastMousePosition(event)"

id="sdatePopCal">

<img src="/s.gif" alt="Pick A Date (New Window)" class="datePickerIcon">

</a>

 Thanks,
Edwin