• krishiv
  • NEWBIE
  • 0 Points
  • Member since 2010

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

i need to  display the selected picklist value in a text field.

I tried for the above requirement in the following way ...and stuck up in the middle..... please suggest as how to move ahead...

 

<apex:page controller="accountcontroller">

<apex:form>

<apex:inputText  value="{!name}"/>

<apex:commanButton value="submit" action="{!submit}"/>

</apex:form>

</apex:page>

 

public class accountcontroller()

{

public String name{set;get;}

public void setname(String name)

{

this.name = name;

}

public pagereference submit()

{

list<Account> mylist = new list<Account>();

mylist = [select name from Account where name like :name+'%'];

}

public accountcontroller()

{

}

}

how to get the field values  of the product related to a particular opportunity

in  a visual force page ?the controller used for the visual force page is the standard controller(opportunity).

i find errors when  tried out this way.....

 

<apex:page standardcontroller = "opportunity">

<apex:outputfield value="{!opportunity.name}"/>

<apex:outputfield value="{!opportunity.product2.name}"/>

</apex:page>

how to create a visual force  page for a custom object using custom controller?

how to create a vf page for a custom object using custom controller?