Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3628126
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:58:35+00:00 2026-05-18T23:58:35+00:00

I am trying to get my hands on learning Visual force. I have an

  • 0

I am trying to get my hands on learning Visual force.

I have an object inv_c which holds invoice records and another object item_c

I have in my VF page a picklist with the object names.

If user selects inv_c then all records of inv_c are displayed if user selects item__c all records of item are displayed

Is there any way where the list would be displayed on the completion of the selection or do we have to have button to get it.

how can i achieve this in VF? any small code snippet would be wonderful

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:58:35+00:00Added an answer on May 18, 2026 at 11:58 pm

    You can do this using a JavaScript onchange event with the help of the ActionSupport Visualforce Component. Here’s an example.

    <!--  Page: -->  
    
    <apex:page controller="exampleCon">
        <apex:form>
            <apex:outputpanel id="counter">
                <apex:outputText value="Click Me!: {!count}"/>
                <apex:actionSupport event="onclick" 
                                    action="{!incrementCounter}" 
                                    rerender="counter" status="counterStatus"/>
            </apex:outputpanel>
            <apex:actionStatus id="counterStatus" 
                               startText=" (incrementing...)" 
                               stopText=" (done)"/>
        </apex:form>
    </apex:page>    
    
    /***  Controller: ***/  
    
    public class exampleCon {
        Integer count = 0;
    
        public PageReference incrementCounter() {
                count++;
                return null;
        }
    
        public Integer getCount() {
            return count;
        }
    }
    

    In your case the actionSupport component would be a child of your selectRadio component i.e.

    <apex:selectRadio value="{!selection}">
      <apex:selectOptions value="{!items}"/>
      <apex:actionSupport event="onchange" .... />
    </apex:selectRadio>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get my hands on Rspec2 with Rails3 (never used rspec
I'm trying to get a rather JDK-sensitive piece of Oracle software working with Websphere,
I'm trying to get the ADT working in Eclipse, but I'm getting random hangs
I've been trying to get started with Mono & GTK# (I come from a
I am trying to get access to the header that is at the intersection
I've been trying to get started with Mono & GTK# (I come from a
I'm at the very beginning of learning ASP.NET WebForms. Right now I'm starting to
I have a WPF 4 application where I have implemented Drag and Drop using
I have a chance to introduce NHibernate to my group by using it with
How can I debug Solr search queries when using the Sunspot gem on Rails?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.