• indyinfy
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 5
    Replies

Hi All

I have created a VF page to add a contact without using the standard Contacts tab.

See the code below. I am able to save the contact info with no issues. But what I want is

when I select an Account in this page which is a look up I have to get the Revenue value

for the selected Account before I save the page. Is this possible in Visual Force Page?

If possible how this can be achieved?

 

<apex:page standardController="Contact">

<script language="JavaScript">

function showAccRevenue()

{  alert ("How to get a/c revenue");}

</script>

<apex:pageBlock>Create New Contact Quickly</apex:pageBlock>

<apex:Form>

<table>

<tr><td>First name:</td>

<td><apex:inputField value="{!Contact.FirstName}"/></td></tr>

<tr><td>Last name: </td>

<td><apex:inputField value="{!Contact.LastName}"/> </td></tr>

<tr><td>Phone: </td>

<td> <apex:inputField value="{!Contact.Phone}"/> </td></tr>

<tr><td>Account</td>

<td><apex:inputField id="txtAcc" onblur="showAccRevenue();" value="{!Contact.AccountId}"/></td></tr>

</table>

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

</apex:Form></apex:page>

 

Hi All

I am trying to explore PaaS from SF. I have exported a custom app called quotingapp

from Sales Force Web to Force.com IDE. Then I wanted to incorporate version control using Google Code.

So I have created a project on the Google Code with the URL (
https://quotingapp.googlecode.com/svn/trunk) .

When I try to move my eclipse project into the SVN repositity linked
to the URL above I am getting weird error messages like

RA layer request failed
svn: PROPFIND request failed on '/svn/trunk/quotingapp'
svn: PROPFIND of '/svn/trunk/quotingapp': Could not resolve hostname
`quotingapp.googlecode.com': The requested name is valid and was found
in the database, but it does not have the correct associated data
being resolved for.   (http://quotingapp.googlecode.com)

Please help me resolve this issue.

Eclipse Version : 3.2

Subclipse version 1.2

Hi All
I have created a custom <POLineItems> object. It has got a lookup field to products object. So in the POLineItems screen I can see the Product selected. But what if I want to show the product code also in the POLineItems screen along with the product name Bcoz product code is also in products. How can this be achieved? Pls help
 
I have a VF page whose standard controller is Contact . I have 3 fields First name, last name and Account Name. On click of Save I should be able to add a Contact with these 3 values. But how to add Account in the page which has to be a lookup field. Please help
 
Code:
<apex:page standardController="Contact">
<apex:Form>
<apex:pageBlock>Create New Contact</apex:pageBlock>
<p>First name: <apex:inputField value="{!contact.FirstName}"/></p>
<p>Last  name: <apex:inputField value="{!contact.LastName}"/></p>
<p>Account Name: <apex:inputField value="{!contact.accountid}"/></p>
<apex:commandButton action="{!save}" value="Save"/>
</apex:Form>
</apex:page>

 

 


Message Edited by Tran Man on 02-21-2008 10:48 AM

Hi All

I have created a VF page to add a contact without using the standard Contacts tab.

See the code below. I am able to save the contact info with no issues. But what I want is

when I select an Account in this page which is a look up I have to get the Revenue value

for the selected Account before I save the page. Is this possible in Visual Force Page?

If possible how this can be achieved?

 

<apex:page standardController="Contact">

<script language="JavaScript">

function showAccRevenue()

{  alert ("How to get a/c revenue");}

</script>

<apex:pageBlock>Create New Contact Quickly</apex:pageBlock>

<apex:Form>

<table>

<tr><td>First name:</td>

<td><apex:inputField value="{!Contact.FirstName}"/></td></tr>

<tr><td>Last name: </td>

<td><apex:inputField value="{!Contact.LastName}"/> </td></tr>

<tr><td>Phone: </td>

<td> <apex:inputField value="{!Contact.Phone}"/> </td></tr>

<tr><td>Account</td>

<td><apex:inputField id="txtAcc" onblur="showAccRevenue();" value="{!Contact.AccountId}"/></td></tr>

</table>

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

</apex:Form></apex:page>

 

Hi All
I have created a custom <POLineItems> object. It has got a lookup field to products object. So in the POLineItems screen I can see the Product selected. But what if I want to show the product code also in the POLineItems screen along with the product name Bcoz product code is also in products. How can this be achieved? Pls help
 
I have a VF page whose standard controller is Contact . I have 3 fields First name, last name and Account Name. On click of Save I should be able to add a Contact with these 3 values. But how to add Account in the page which has to be a lookup field. Please help
 
Code:
<apex:page standardController="Contact">
<apex:Form>
<apex:pageBlock>Create New Contact</apex:pageBlock>
<p>First name: <apex:inputField value="{!contact.FirstName}"/></p>
<p>Last  name: <apex:inputField value="{!contact.LastName}"/></p>
<p>Account Name: <apex:inputField value="{!contact.accountid}"/></p>
<apex:commandButton action="{!save}" value="Save"/>
</apex:Form>
</apex:page>

 

 


Message Edited by Tran Man on 02-21-2008 10:48 AM