• manuel.garcia
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies

Hi,

I just start working with salesforce.

After creating new custom object called regCall, that contains two fields: date and phone, i would want to know how can I set and get this information and after show in a table.

 

On the one hand, I want to set data to this object from one controller that handles the action of clicking one push button (that 'calls a phone number'). And in the other hand, in other page, I want to show a report with the list of regCalls inserted.

 

It would be very helpfully for me that anyone could help me, because this problem I cant solve is for one project development,

 

Regards,

 

 

Hi,

I'm a developer from a project. This project is being integrated with salesforce, and I need synchronize some things about contacts in salesforce and my application.

 

My application have a webservice, listening SOAP messages. One of these SOAP message is 'call to number'. So the thing is I want to send a SOAP message from salesforce to my webservice, this SOAP message contain a phone number from a specific contact, when my webservice receive this message with the number, call the number.

 

 

Actually, I already have:

 

The apex page listing the contacts. Near phone number of each contact I have a button to call an action method;

<apex:commandButton value="LLamar" action="{!clickToCall}" rerender="all">
      <apex:param name="numToCall" value="{!a.phone}" assignTo="{!numToCall}"/>
 </apex:commandButton>

 

In my extensionClass (extensions="myContactExtension") I have;

 

public class myContactExtension

{

static public final String MY_SERVER_IP = ''xxxxxxxxxxx";

public String numToCall {get; set;}

public PageReference clickToCall()
    {

         //HERE I WANT TO SEND A SOAP MESSAGE TO MY_SERVER_IP

        //or open a socket to my SERVER_IP


    }

}

 

 

 

 Any solutions for this? Or any different method to connect to my webservice from salesforce?

Hi,

I would like to know if it is possible to pass an argument in an action method.

 

I want to pass a concrete string when button is pushed.

 

My code is:

 

**APEX**


[...]

<apex:column value="{!a.phone}"/>
      <!-- BOTON EN UNA COLUMNA NUEVA -->
      <apex:column headerValue="ClickToCall">
      <apex:form >
      <apex:commandButton value="LLamar" action="{!clickToCall}"/>
      </apex:form>
      </apex:column>

[...]

 

--> I WANT TO DO SOMETHING LIKE THIS: clickToCall({!a.phone})

 

**CONTROLLER CLASS**

 

public PageReference clickToCall(String number)
    {

       *DO SOMETHING*...
    }

Hi,

I just start working with salesforce.

After creating new custom object called regCall, that contains two fields: date and phone, i would want to know how can I set and get this information and after show in a table.

 

On the one hand, I want to set data to this object from one controller that handles the action of clicking one push button (that 'calls a phone number'). And in the other hand, in other page, I want to show a report with the list of regCalls inserted.

 

It would be very helpfully for me that anyone could help me, because this problem I cant solve is for one project development,

 

Regards,

 

 

Hi,

I would like to know if it is possible to pass an argument in an action method.

 

I want to pass a concrete string when button is pushed.

 

My code is:

 

**APEX**


[...]

<apex:column value="{!a.phone}"/>
      <!-- BOTON EN UNA COLUMNA NUEVA -->
      <apex:column headerValue="ClickToCall">
      <apex:form >
      <apex:commandButton value="LLamar" action="{!clickToCall}"/>
      </apex:form>
      </apex:column>

[...]

 

--> I WANT TO DO SOMETHING LIKE THIS: clickToCall({!a.phone})

 

**CONTROLLER CLASS**

 

public PageReference clickToCall(String number)
    {

       *DO SOMETHING*...
    }