• Krishna_
  • NEWBIE
  • 75 Points
  • Member since 2009

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

hi everyone,

 

I want to disable the textfield in salesforce.I have to confirm is it possible to disable textfield in salesforce.

In my application one text filed is like this STATUS 20-40.In this field default value always is status(20-40).

No one can change this value.If possible this functionality in sales force plz help me.

 

Thanks,

anu

Hi,

 

Are force.com sites are built on Visualforce?

 

 

Advance thanks.

 

 

Neeru.

 

Hi to all,

 

I am creating two Visual force pages.

My question is how to call one visual force page to another visual force page???

send some basic examples also......

 

Thanks,

Krishna.

Hi to all,

I am using Lead object & the lead source field adds some Extra values like web,email,phone.
Now I added one custom field Lead No.

 

If I choose Lead source to Web,phone,email then lead no is increased by 1.


If I choose Lead source to Other than above three The Lead No Custom Field should be hodden.

How to hidden a Fields through APEX code???

 

 

Thanks,
Krishna.

Hi to all,

I am creating sample Visual force page.like this..

 

<apex:page standardController="Contact">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockButtons >
                <apex:commandButton action="{!Save}" value="Save"/>
            </apex:pageBlockButtons>
            <apex:pageBlockSection >
                <apex:pageBlockSectionItem >
                    <apex:outputLabel id="lastname" value="Last Name" for="Visual">
                    </apex:outputLabel>
                    <apex:inputText value="{!contact.lastname}" />
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
    <apex:listViews type="Contact"/>
    <apex:relatedList id="contact1" list="contact" />
</apex:page>

 

This visual page is working fine..

But i am using SITES page, It show the following error Message.

"'contact' is not a valid child relationship name for entity Visualforce Page"

how to rectify and how to use that page in SITES ????

 

thanks,

krishna.

 

Hi I am creating new Visual Force page that displays views of Contact.That view contains Contact Lastname & Contacts AccountName if Contact account name is there.

 

Its all ok.But i am used command link to that view. So If i click to contact Lastname that contact will be open & same for Account Name...

How to handle this one????

I am Hardcoded that value its working fine.But not hard coded itd not working...

 

My sample code is:

 

APEX CLASS::

 

public class dataTableCont
{
    List<Contact> Con;
    public List<Contact> getContacts()
    {
        Con = [select id,LastName, AccountId,contact.Account.Name from contact where contact.AccountId != NULL];
        return Con;
    }
   
    public PageReference LinkContactName()
    {
      PageReference pdfPage =new PageReference('my org URL' + '/' + 'Contact.Id');

//If i am hardcoded the contact Id its working.. 

    pdfpage.setRedirect(true);
      return pdfPage;
    }

 

public PageReference LinkAccountName()
    {
        PageReference pdfPage =new PageReference('my org URL' + '/' + Contact.AccountId);
        pdfpage.setRedirect(true);
        return pdfPage;
        //return null;
    }

 

 

My VisualForce Page::

 

<apex:smileytongue:age controller="dataTableCont" id="thePage">
<apex:form > 
   <apex:smileytongue:ageBlock title="Contacts">
   <apex:smileytongue:ageBlockTable value="{!Contacts}" var="ge">
                        <apex:column headervalue="Last Name" width="500">
                        <apex:commandLink action="{!LinkContactName}" value="{!ge.LastName}"  >
                             <apex:smileytongue:aram name="ConLastName" value="{!ge.Id}"/>
                        </apex:commandLink>
                    </apex:column>
                   
                    <apex:column headervalue="Account Name" width="500">
                        <apex:commandLink action="{!LinkAccountName}" value="{!ge.Account.Name }" >
                             <apex:smileytongue:aram name="ConAccName" value="{!ge.AccountId}"/>
                        </apex:commandLink>
                    </apex:column>
    </apex:smileytongue:ageBlockTable>
   </apex:smileytongue:ageBlock>
   </apex:form>
   </apex:smileytongue:age>

 

If i click to contact Lastname that contact will be open & same for Account Name.

How to handle this one????

Hi I am creating new Visual Force page that displays views of Contact.That view contains Contact Lastname & Contacts AccountName if Contact account name is there.

 

Its all ok.But i am used command link to that view. So If i click to contact Lastname that contact will be open & same for Account Name...

How to handle this one????

I am Hardcoded that value its working fine.But not hard coded itd not working...

 

My sample code is:

 

Apex Class::

 

public class dataTableCont 
{
    List<Contact> Con;
    public List<Contact> getContacts()
    {
        Con = [select id,LastName, AccountId,contact.Account.Name from contact where contact.AccountId != NULL];
        return Con;
    }
   
    public PageReference LinkContactName()
    {
      PageReference pdfPage =new PageReference('my org URL' + '/' + 'Contact.Id');
//If i am hardcoded the contact Id its working..
      pdfpage.setRedirect(true);
      return pdfPage;
    }
    public PageReference LinkAccountName()
    {
        PageReference pdfPage =new PageReference('my org URL' + '/' + Contact.AccountId);
        pdfpage.setRedirect(true);
        return pdfPage;
        //return null;
    }
}

My VisualForce Page::

 

<apex:page controller="dataTableCont" id="thePage">
<apex:form > 
   <apex:pageBlock title="Contacts">
   <apex:pageBlockTable value="{!Contacts}" var="ge">
                        <apex:column headervalue="Last Name" width="500">
                        <apex:commandLink action="{!LinkContactName}" value="{!ge.LastName}"  >
                             <apex:param name="ConLastName" value="{!ge.Id}"/>
                        </apex:commandLink>
                    </apex:column>
                   
                    <apex:column headervalue="Account Name" width="500">
                        <apex:commandLink action="{!LinkAccountName}" value="{!ge.Account.Name }" >
                             <apex:param name="ConAccName" value="{!ge.AccountId}"/>
                        </apex:commandLink>
                    </apex:column>
    </apex:pageBlockTable>
   </apex:pageBlock>
   </apex:form>
   </apex:page>

 

If i click to contact Lastname that contact will be open & same for Account Name.

How to handle this one????

Message Edited by Krishna_ on 05-12-2009 05:49 PM
 Hi to all,
 In buttons and link in Accounts, I have to add one List button. So i give all the details of that page.In display type I choosed to LIST BUTTON.It give one checkbox called "Display Checkboxes (for Multi-Record Selection)" I uncheck the checkbox & write some code... & save it...But in accounts list view the checkboxes are visible... then What is the use of the Check box???? Is there any settings to hide the checkboxes in list view?????