• Tiwari_Shweta
  • NEWBIE
  • 25 Points
  • Member since 2010

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 1
    Replies
My code works like this. I have n number of Lead objects. When I click a checkbox I am trying to pass the value to a javascript function. It is not working. Any help. Also How do i achieve this functionality?

<apex:page controller="registerDomainController" tabStyle="Lead">
<script>
function addUsers(userid)
{
var idsToAdd = new Array();
alert('Before adding' + userid);
idsToAdd.add(userid);
}
</script>
<apex:sectionHeader title="Add User">
<apex:form>

<apex:pageBlock>
<apex:facet name="footer">

<apex:pageBlockSection title="Add Users to the Extranet">
<apex:dataTable value="{!allLeads}" var="user" cellspacing="0" cellpadding="4" border="0" width="800px">
<apex:column>
<apex:facet name="header">First Name</apex:facet>
<apex:outputText>{!user.firstname}</apex:outputText>
</apex:column>
<apex:column>
<apex:facet name="header">Last Name</apex:facet>
<apex:outputText>{!user.lastname}</apex:outputText>
</apex:column>
<apex:column>
<apex:facet name="header">Email Address</apex:facet>
<apex:outputText>{!user.email}</apex:outputText>
</apex:column>
<apex:column>
<apex:facet name="header">Phone number</apex:facet>
<apex:outputText>{!user.phone}</apex:outputText>
</apex:column>
<apex:column>
<apex:facet name="header">Add User</apex:facet>
<apex:inputCheckbox value="{!user.id}" onclick='addUsers({!user.id})'/>
</apex:column>

</apex:dataTable>

</apex:pageBlockSection>

</apex:pageBlock>
</apex:form>
</apex:sectionHeader>
</apex:page>

Hi ,

 

I have one datatable consist of three columns :

 

MPGPrice 1Price 2
a15
b26
c37

 

here column 3 is input field.Now I have to  enter values in the Price 3 Column and on clicking save i need to save these values to the corresponding row and need to show a new table below containg the saved values.

 

I am able to save these values in database but I am confused how to retrieve the table containg the saved values and the other columns.

Can somebody help.

Hi I have a object MPG__c having fields Quote__c, MPG_Type__c, List_Price__c.Quote_price__c have values like Q1,Q2,Q3. MPG_Type__c type have values MPG A,MPG B,MPG C...and List_Price__c have values 100,233 respectively,455.So it looks like

 

Quote__cMPG_Type__cList_Price__c
Q1MPG A100
Q2MPG B233
Q3MPG C455

 

Now I have to show them in a table like :

 

Quote__cMPG AMPG BMPG C
Q1100  
Q2 233 
Q3  455

 

So that MPG A,MPG B..become table headers and if more values are added to MPG_Type__c,they become table headers dynamicly .Is it possible ?

can anybody help with sample code.

Hi I am creating the following datatable :

 

CheckAccount NameList Price 1List price 2
yAcc122367
nAcc24589
 Total22367

 

Here in check column, check boxes are there.I have acheived the functionality that when check box is clicked the sum of corresponding row is calculated but now I have to show the total below the table (highlited row) in this format.

Can anybody help that How can I acheive the functionality using ajax.

Hi,

 

I have created a data table in follwing format :

 

 
TypeQuote No.Amount
aq11
bq22
cq33
   

where the values are coming from the query. 

Now I want to change the Table as :

 

 

 abc
q114 
q2 2 
q3  3

 

Where a,b,c are headers.

Is this possible in visualforce ????

Hi,

 

I have created 2 Accounts with same record types from salesforce.Then I created one contact fron Outlook.

When I tried to associate contact to one of the account ,I associated successfully but when I tried to sync ,

I am getting the following error :

 

'Account failed to add successfully.Account ID:Multiple records with the same name found.Please try the association again."

I have multiple accounts with same name and with same  record types.

Can somebody help.

 

I am using outlook version 3.3.104.

 

My code works like this. I have n number of Lead objects. When I click a checkbox I am trying to pass the value to a javascript function. It is not working. Any help. Also How do i achieve this functionality?

<apex:page controller="registerDomainController" tabStyle="Lead">
<script>
function addUsers(userid)
{
var idsToAdd = new Array();
alert('Before adding' + userid);
idsToAdd.add(userid);
}
</script>
<apex:sectionHeader title="Add User">
<apex:form>

<apex:pageBlock>
<apex:facet name="footer">

<apex:pageBlockSection title="Add Users to the Extranet">
<apex:dataTable value="{!allLeads}" var="user" cellspacing="0" cellpadding="4" border="0" width="800px">
<apex:column>
<apex:facet name="header">First Name</apex:facet>
<apex:outputText>{!user.firstname}</apex:outputText>
</apex:column>
<apex:column>
<apex:facet name="header">Last Name</apex:facet>
<apex:outputText>{!user.lastname}</apex:outputText>
</apex:column>
<apex:column>
<apex:facet name="header">Email Address</apex:facet>
<apex:outputText>{!user.email}</apex:outputText>
</apex:column>
<apex:column>
<apex:facet name="header">Phone number</apex:facet>
<apex:outputText>{!user.phone}</apex:outputText>
</apex:column>
<apex:column>
<apex:facet name="header">Add User</apex:facet>
<apex:inputCheckbox value="{!user.id}" onclick='addUsers({!user.id})'/>
</apex:column>

</apex:dataTable>

</apex:pageBlockSection>

</apex:pageBlock>
</apex:form>
</apex:sectionHeader>
</apex:page>