You need to sign in to do that
Don't have an account?
sk kumar
here below my scenario is given..and my doubt is if i select node N1 then it will show only cpu in next slected product node tab. and again if i select cpu or put mouse on it show me cpu configuration deails near the cpu tab...plz help me in this regard!!
<apex:page standardController="Account" extensions="productconfig1">
<apex:form >
<apex:pageblock >
<apex:panelGrid columns="5">
Select Node <apex:selectList value="{!SelectedNode}" multiselect="false" size="1">
<apex:selectOption itemValue="N1" itemLabel="N1"/>
<apex:selectOption itemValue="N2" itemLabel="N2"/>
<apex:selectOption itemValue="N3" itemLabel="N4"/>
</apex:selectList>
Select Product <apex:selectList value="{!SelectedProduct}" multiselect="false" size="1">
<apex:selectOptions value="{!Product}"/>
</apex:selectList>
</apex:panelGrid>
</apex:pageblock>
</apex:form>
</apex:page>
classs---
public with sharing class productconfig1
{
Public String SelectedNode{get;set;}
Public String SelectedProduct{get;set;}
public productconfig1(ApexPages.StandardController controller)
{
}
public List<SelectOption> getProduct() {
List<SelectOption> ProductOptions = new List<SelectOption>();
ProductOptions.add(new SelectOption('CPU','CPU'));
ProductOptions.add(new SelectOption('N/W','N/W'));
ProductOptions.add(new SelectOption('MONITOR','MONITOR'));
return ProductOptions ;
}
}
<apex:form >
<apex:pageblock >
<apex:panelGrid columns="5">
Select Node <apex:selectList value="{!SelectedNode}" multiselect="false" size="1">
<apex:selectOption itemValue="N1" itemLabel="N1"/>
<apex:selectOption itemValue="N2" itemLabel="N2"/>
<apex:selectOption itemValue="N3" itemLabel="N4"/>
</apex:selectList>
Select Product <apex:selectList value="{!SelectedProduct}" multiselect="false" size="1">
<apex:selectOptions value="{!Product}"/>
</apex:selectList>
</apex:panelGrid>
</apex:pageblock>
</apex:form>
</apex:page>
classs---
public with sharing class productconfig1
{
Public String SelectedNode{get;set;}
Public String SelectedProduct{get;set;}
public productconfig1(ApexPages.StandardController controller)
{
}
public List<SelectOption> getProduct() {
List<SelectOption> ProductOptions = new List<SelectOption>();
ProductOptions.add(new SelectOption('CPU','CPU'));
ProductOptions.add(new SelectOption('N/W','N/W'));
ProductOptions.add(new SelectOption('MONITOR','MONITOR'));
return ProductOptions ;
}
}
Use this code--
VF page
Controller--
And in this Outputpanel write your product information
regards
Virendra
All Answers
Use this code--
VF page
Controller--
And in this Outputpanel write your product information
regards
Virendra
but my requrement is like if i selected cpu it will show cpu configuration & all deatils of cpu
if i select n/w then it will show n/w details besides the n/w tab
if i select monitor it will show monitor detail
thnx in advance if u solve his problem...kudos