-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
1Likes Given
-
12Questions
-
8Replies
How create a formula field for Auto Catch 1st 3 word from City + last 2 word from Country field
City Field Country Field
Pune India
Formula Filed : PUNIN like this
Pune India
Formula Filed : PUNIN like this
- Maddy6161
- May 19, 2016
- Like
- 0
- Continue reading or reply
How to insert data into a Related List object with VF page and apex controller
I have to Custom Object: ObjectA__c, and ObjecB__c, ObjectB__c related list of ObjectA__c,
I have data in ObjectA__c now want to add new entery inside the ObjectB__c related list by the use VF page. How can i do that
I have data in ObjectA__c now want to add new entery inside the ObjectB__c related list by the use VF page. How can i do that
- Maddy6161
- May 12, 2016
- Like
- 0
- Continue reading or reply
Getting error on this code: contrllrww Compile Error: Entity is not org-accessible at line 1 column 21
public with sharing class contrllrww {
Public id Current_le_Id;
public Boolean isEdit { set; get;}
public List<Question__c> lstQuestion {set;get;}
public contrllrww (ApexPages.StandardController controller) {
Current_le_Id = controller.getRecord().id;
isEdit = false;
lstQuestion = New List<Question__c>();
for(Lead le:[select id,name,(select id,Email__c from Questions__r) from lead where id=:Current_le_Id]){
for(Question__c con:le.Question__c)
lstQuestion.add(con);
}
}
public void editProcess(){
isEdit = true;
}
public void save(){
if(lstQuestion.size() > 0){
upsert lstQuestion;
lstQuestion.clear();
}
for(Lead le:[select id,name,(select id,Email__c from Questions__r) from lead where id=:Current_le_Id]){
for(Question__c con:le.Question__c)
lstQuestion.add(con);
}
isEdit = false;
}
public void addQuestion(){
lstQuestion.add(new Question(leadId = Current_le_Id));
isEdit = true;
}
}
Public id Current_le_Id;
public Boolean isEdit { set; get;}
public List<Question__c> lstQuestion {set;get;}
public contrllrww (ApexPages.StandardController controller) {
Current_le_Id = controller.getRecord().id;
isEdit = false;
lstQuestion = New List<Question__c>();
for(Lead le:[select id,name,(select id,Email__c from Questions__r) from lead where id=:Current_le_Id]){
for(Question__c con:le.Question__c)
lstQuestion.add(con);
}
}
public void editProcess(){
isEdit = true;
}
public void save(){
if(lstQuestion.size() > 0){
upsert lstQuestion;
lstQuestion.clear();
}
for(Lead le:[select id,name,(select id,Email__c from Questions__r) from lead where id=:Current_le_Id]){
for(Question__c con:le.Question__c)
lstQuestion.add(con);
}
isEdit = false;
}
public void addQuestion(){
lstQuestion.add(new Question(leadId = Current_le_Id));
isEdit = true;
}
}
- Maddy6161
- May 11, 2016
- Like
- 0
- Continue reading or reply
I am using standard controller on my vf page for updating the fields, Now on the same page i want to update the Related Lists.
i am using https://c.ap2.visual.force.com/apex/standardpage?id=a0X28000000y4J8 to retrive these field
Object_A i have related object is Object_B
Now want to update the related Object_B fields.
Object_A i have related object is Object_B
Now want to update the related Object_B fields.
- Maddy6161
- May 11, 2016
- Like
- 0
- Continue reading or reply
Is there any way to use standardcontroller vf page in Sites Force.com
feedformbyemail-developer-edition.ap2.force.com/pagefed?id=00Q2800000Hf2wV
i want to use id to get the details is there any way
i want to use id to get the details is there any way
- Maddy6161
- May 09, 2016
- Like
- 0
- Continue reading or reply
I have created Sites linked, attached a VF form, by the use of form i want to update the field of that user.
I have created a button on standard layout on Conatct Object,name as "SEND MAIL" button when I pressed it will be sending a mail to the given mail ID. Now i want when he open the link he will get a VF form, with the help of VF form he will update his contact fields.
like
Name: Maddy Email :Maddy@gmail.com these two field i have in Contact object, now i want update few field on Maddy Conatact such City,Countries
City :
Countries :
Mailing Address : these field i want update from vf page which i have send on mail to the user
like
Name: Maddy Email :Maddy@gmail.com these two field i have in Contact object, now i want update few field on Maddy Conatact such City,Countries
City :
Countries :
Mailing Address : these field i want update from vf page which i have send on mail to the user
- Maddy6161
- May 06, 2016
- Like
- 0
- Continue reading or reply
I'm send a link of Force.com Sites, I have linked a VF form, by the use of form i able to create a new contact.
I have created a button on standard layout on Conatct Object,name as "SEND MAIL" button when I pressed it will be sending a mail to the given mail ID. Now i want when he open the link he will get a VF form, with the help of VF form he will update his contact fields.
- Maddy6161
- May 06, 2016
- Like
- 0
- Continue reading or reply
Hi! I want to create a VF form where i retrieve all account name in drop down field, when i select any account name then the relate field will be shown?? is it possible ?? or any code for that
Account : Maddy - drop-down filed when i selected Maddy i want to retrive Fax, Phone, Website fields will be showned automatically
Fax: ______________ these field automatically come when i select account name from dropdown
Phone:_____________
Wesite:_____________
Fax: ______________ these field automatically come when i select account name from dropdown
Phone:_____________
Wesite:_____________
- Maddy6161
- May 06, 2016
- Like
- 0
- Continue reading or reply
i have created a survay__c object, where i have create some data field like name email address. i have few data aready on that object. Now i have create a button when i click on the it will be send a mail on given mail id.
i have created a survay__c object, where i have create some data field like name email address.
i have few data aready on that object. Now i have create a button when i click on the it will be send a mail on given mail id.
like
name email address
abc abc@gmail.com
xyz xyz@gmail.com
Now i have created one more section on survay__c object where i create check list
like: [] Are u happay? [] Are u Work with us?
i have created some questions on that section.
On the mail i am sending a link which content VF form page for updataing Question section. Onec the user selected the options then submited it will updated on survay__c object on Question section .
i have few data aready on that object. Now i have create a button when i click on the it will be send a mail on given mail id.
like
name email address
abc abc@gmail.com
xyz xyz@gmail.com
Now i have created one more section on survay__c object where i create check list
like: [] Are u happay? [] Are u Work with us?
i have created some questions on that section.
On the mail i am sending a link which content VF form page for updataing Question section. Onec the user selected the options then submited it will updated on survay__c object on Question section .
- Maddy6161
- May 05, 2016
- Like
- 0
- Continue reading or reply
How create a formula field for Auto Catch 1st 3 word from City + last 2 word from Country field
City Field Country Field
Pune India
Formula Filed : PUNIN like this
Pune India
Formula Filed : PUNIN like this
- Maddy6161
- May 19, 2016
- Like
- 0
- Continue reading or reply
Hi i am using my VF page to sites i am not getting Save Button, if i am using that VF page without sites force.com then save button will be shown?
Without using Sites Force.com
With Sites Force.com
<!--Page-->
<apex:page standardController="Lead" extensions="contollertest">
<apex:form >
<apex:pageblock id="pgb">
<apex:pageBlockButtons >
<apex:commandButton value="edit" action="{!editProcess}" rendered="{!Not(isEdit)}" reRender="pgb"/>
<apex:commandButton value="save" action="{!save}" rendered="{!isEdit}" reRender="pgb"/>
</apex:pageBlockButtons>
<!-- Display Account related Contacts -->
<apex:pageBlockTable value="{!lstQuestion}" var="val" rendered="{!Not(isEdit)}">
<apex:commandButton value="save" action="{!save}"/>
<apex:column value="{!val.Que1__c}"/>
<apex:column value="{!val.Que2__c}"/>
<apex:column value="{!val.Que3__c}"/>
</apex:pageBlockTable>
<apex:outputPanel rendered="{!Not(isEdit)}">
<apex:commandButton action="{!addQuestion}" value="Question" reRender="pgb"/>
</apex:outputPanel>
<apex:pageBlockTable value="{!lstQuestion}" var="val" rendered="{!(isEdit)}">
<apex:column headerValue="Q.What is budget?">
<apex:inputField value="{!val.Que1__c}"/>
</apex:column>
<apex:column headerValue="Q.When do you want?">
<apex:inputField value="{!val.Que2__c}"/>
</apex:column>
<apex:column headerValue="Q.Would like Video?">
<apex:inputField value="{!val.Que3__c}"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageblock>
</apex:form>
</apex:page>
With Sites Force.com
<!--Page-->
<apex:page standardController="Lead" extensions="contollertest">
<apex:form >
<apex:pageblock id="pgb">
<apex:pageBlockButtons >
<apex:commandButton value="edit" action="{!editProcess}" rendered="{!Not(isEdit)}" reRender="pgb"/>
<apex:commandButton value="save" action="{!save}" rendered="{!isEdit}" reRender="pgb"/>
</apex:pageBlockButtons>
<!-- Display Account related Contacts -->
<apex:pageBlockTable value="{!lstQuestion}" var="val" rendered="{!Not(isEdit)}">
<apex:commandButton value="save" action="{!save}"/>
<apex:column value="{!val.Que1__c}"/>
<apex:column value="{!val.Que2__c}"/>
<apex:column value="{!val.Que3__c}"/>
</apex:pageBlockTable>
<apex:outputPanel rendered="{!Not(isEdit)}">
<apex:commandButton action="{!addQuestion}" value="Question" reRender="pgb"/>
</apex:outputPanel>
<apex:pageBlockTable value="{!lstQuestion}" var="val" rendered="{!(isEdit)}">
<apex:column headerValue="Q.What is budget?">
<apex:inputField value="{!val.Que1__c}"/>
</apex:column>
<apex:column headerValue="Q.When do you want?">
<apex:inputField value="{!val.Que2__c}"/>
</apex:column>
<apex:column headerValue="Q.Would like Video?">
<apex:inputField value="{!val.Que3__c}"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageblock>
</apex:form>
</apex:page>
- MaggieSumit
- May 13, 2016
- Like
- 0
- Continue reading or reply
Hi! I want to create a VF form where i retrieve all account name in drop down field, when i select any account name then the relate field will be shown?? is it possible ?? or any code for that
Account : Maddy - drop-down filed when i selected Maddy i want to retrive Fax, Phone, Website fields will be showned automatically
Fax: ______________ these field automatically come when i select account name from dropdown
Phone:_____________
Wesite:_____________
Fax: ______________ these field automatically come when i select account name from dropdown
Phone:_____________
Wesite:_____________
- Maddy6161
- May 06, 2016
- Like
- 0
- Continue reading or reply