Display panel header based on radio selection

hi i have a stiuation where i what to display panel header based on radio button selection for example if the value of radio is DSO it must dispaly all under <af:panelHeader,am in jdeveloper 11.1.1.6.0
i have this radio
<af:selectOneRadio value="#{bindings.Paymenttype.inputValue}"
                                   label="#{bindings.Paymenttype.label}"
                                   required="#{bindings.Paymenttype.hints.mandatory}"
                                   shortDesc="#{bindings.Paymenttype.hints.tooltip}"
                                   id="sor1" autoSubmit="true"
                                   binding="#{pageFlowScope.addMember.dpayment}">
                  <f:selectItems value="#{bindings.Paymenttype.items}"
                                 id="si10"/>
                </af:selectOneRadio>
and my panel header is
              <af:panelHeader text="Bank Details" id="ph6"
                               visible="#{bindings.Paymenttype.inputValue eq &quot;DRO&quot;}"
                             partialTriggers="sor1"
                              inlineStyle="width:556px; border-color:Blue; border-style:ridge;">Edited by: adf009 on 2013/02/21 2:44 PM
Edited by: adf009 on 2013/02/21 2:48 PM
Edited by: adf009 on 2013/02/21 2:56 PM

i have try that but it does not display panel header based on radio selection
<af:selectOneRadio value="#{bindings.Paymenttype.inputValue}"
                                   label="#{bindings.Paymenttype.label}"                                  
                                   shortDesc="#{bindings.Paymenttype.hints.tooltip}"
                                   id="sor1" autoSubmit="true"
                                   binding="#{pageFlowScope.addMember.dpayment}"
                                   immediate="true">
                  <f:selectItems value="#{bindings.Paymenttype.items}"
                                 id="si10"/>
                </af:selectOneRadio>
                <af:panelFormLayout id="pfl7" labelAlignment="start">
                  <af:inputText value="#{bindings.Accounthldr.inputValue}"
                                label="#{bindings.Accounthldr.hints.label}"
                                required="#{bindings.Accounthldr.hints.mandatory}"
                                columns="20"
                                maximumLength="#{bindings.Accounthldr.hints.precision}"
                                shortDesc="#{bindings.Accounthldr.hints.tooltip}"
                                id="it22"
                                visible='#{bindings.Paymenttype.inputValue eq "DRO"}'>
                    <f:validator binding="#{bindings.Accounthldr.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.Bankaccountnumber.inputValue}"
                                label="#{bindings.Bankaccountnumber.hints.label}"
                                required="#{bindings.Bankaccountnumber.hints.mandatory}"
                                columns="20"
                                maximumLength="#{bindings.Bankaccountnumber.hints.precision}"
                                shortDesc="#{bindings.Bankaccountnumber.hints.tooltip}"
                                id="it20"
                                visible='#{bindings.Paymenttype.inputValue eq "DRO"}'>
                    <f:validator binding="#{bindings.Bankaccountnumber.validator}"/>
                    <af:convertNumber groupingUsed="false"
                                      pattern="#{bindings.Bankaccountnumber.format}"/>
                  </af:inputText>
                  <af:selectOneChoice value="#{bindings.Bankaccounttype.inputValue}"
                                      label="#{bindings.Bankaccounttype.label}"
                                      required="#{bindings.Bankaccounttype.hints.mandatory}"
                                      shortDesc="#{bindings.Bankaccounttype.hints.tooltip}"
                                      id="soc12"
                                     visible='#{bindings.Paymenttype.inputValue eq &quot;DRO&quot;}'>
                    <f:selectItems value="#{bindings.Bankaccounttype.items}"
                                   id="si13"/>
                  </af:selectOneChoice>
                  <af:selectOneChoice value="#{bindings.Bankname.inputValue}"
                                      label="#{bindings.Bankname.label}"
                                      required="#{bindings.Bankname.hints.mandatory}"
                                      shortDesc="#{bindings.Bankname.hints.tooltip}"
                                      id="soc13"
                                       visible="#{bindings.Paymenttype.inputValue eq &quot;DRO&quot;}">
                    <f:selectItems value="#{bindings.Bankname.items}"
                                   id="si14"/>
                  </af:selectOneChoice>
                  <af:inputText value="#{bindings.Branchcode.inputValue}"
                                label="#{bindings.Branchcode.hints.label}"
                                required="#{bindings.Branchcode.hints.mandatory}"
                                columns="20"
                                maximumLength="#{bindings.Branchcode.hints.precision}"
                                visible="#{bindings.Paymenttype.inputValue==&quot;DRO&quot;}"
                                shortDesc="#{bindings.Branchcode.hints.tooltip}"
                                partialTriggers="branchnameId" id="it19">
                    <f:validator binding="#{bindings.Branchcode.validator}"/>
                  </af:inputText>
                  <af:inputComboboxListOfValues id="inputComboboxListOfValues1"
                                                popupTitle="Search and Select: #{bindings.Branchname.hints.label}"
                                                value="#{bindings.Branchname.inputValue}"
                                                label="#{bindings.Branchname.hints.label}"
                                                model="#{bindings.Branchname.listOfValuesModel}"
                                                required="#{bindings.Branchname.hints.mandatory}"
                                                visible="#{bindings.Paymenttype.inputValue==&quot;DRO&quot;}"
                                                columns="#{bindings.Branchname.hints.displayWidth}"
                                                shortDesc="#{bindings.Branchname.hints.tooltip}">
                    <f:validator binding="#{bindings.Branchname.validator}"/>
                  </af:inputComboboxListOfValues>
                  <af:inputText value="#{bindings.Paymenttype1.inputValue}"
                                label="#{bindings.Paymenttype1.hints.label}"
                                required="#{bindings.Paymenttype1.hints.mandatory}"
                                columns="#{bindings.Paymenttype1.hints.displayWidth}"
                               visible="#{bindings.Paymenttype.inputValue==&quot;DRO&quot;}"
                                maximumLength="#{bindings.Paymenttype1.hints.precision}"
                                shortDesc="#{bindings.Paymenttype1.hints.tooltip}"
                                id="it21">
                    <f:validator binding="#{bindings.Paymenttype1.validator}"/>
                  </af:inputText>
                </af:panelFormLayout>
              </af:panelFormLayout>
              <af:panelHeader text="Bank Details" id="ph6"
                              visible="#{bindings.Paymenttype.inputValue eq &quot;DRO&quot;}"                           
                              partialTriggers="sor1"
                              inlineStyle="width:556px; border-color:Blue; border-style:ridge;">
                <f:facet name="context"/>
                <f:facet name="menuBar"/>
                <f:facet name="toolbar"/>
                <f:facet name="legend"/>
                <f:facet name="info"/>
                <af:panelFormLayout id="pfl6"
                                    visible="#{bindings.Paymenttype.inputValue eq &quot;DRO&quot;}"                                  
                                    partialTriggers="sor1"
                                    inlineStyle="width:550px; border-color:Blue; border-style:ridge;">
                  <af:inputText value="#{bindings.Accounthldr.inputValue}"
                                label="Account Holder Name"
                                required="#{bindings.Accounthldr.hints.mandatory}"
                                columns="#{bindings.Accounthldr.hints.displayWidth}"
                                maximumLength="#{bindings.Accounthldr.hints.precision}"
                                shortDesc="#{bindings.Accounthldr.hints.tooltip}"
                                id="it14" partialTriggers="sor1">
                    <f:validator binding="#{bindings.Accounthldr.validator}"/>
                  </af:inputText>
                  <af:selectOneChoice value="#{bindings.Bankname.inputValue}"
                                      label="Bank"
                                      required="#{bindings.Bankname.hints.mandatory}"
                                      shortDesc="#{bindings.Bankname.hints.tooltip}"
                                      id="soc11" partialTriggers="sor1"
                                      immediate="true"
                                      contentStyle="width:190px;">
                    <f:selectItems value="#{bindings.Bankname.items}"
                                   id="si11"/>
                  </af:selectOneChoice>
                  <af:inputText value="#{bindings.Bankaccountnumber.inputValue}"
                                label="Account Number"
                                required="#{bindings.Bankaccountnumber.hints.mandatory}"
                                columns="#{bindings.Bankaccountnumber.hints.displayWidth}"
                                maximumLength="#{bindings.Bankaccountnumber.hints.precision}"
                                shortDesc="#{bindings.Bankaccountnumber.hints.tooltip}"
                                id="it16" partialTriggers="sor1">
                    <f:validator binding="#{bindings.Bankaccountnumber.validator}"/>
                    <af:convertNumber groupingUsed="false"
                                      pattern="#{bindings.Bankaccountnumber.format}"/>
                  </af:inputText>
                  <af:selectOneChoice value="#{bindings.Bankaccounttype.inputValue}"
                                      label="Account Type"
                                      required="#{bindings.Bankaccounttype.hints.mandatory}"
                                      shortDesc="#{bindings.Bankaccounttype.hints.tooltip}"
                                      id="soc10" partialTriggers="si10"
                                      contentStyle="width:190px;">
                    <f:selectItems value="#{bindings.Bankaccounttype.items}"
                                   id="si12"/>
                  </af:selectOneChoice>
                  <af:inputComboboxListOfValues id="branchnameId"
                                                popupTitle="Search and Select: #{bindings.Branchname.hints.label}"
                                                value="#{bindings.Branchname.inputValue}"
                                                label="Branch Name"
                                                model="#{bindings.Branchname.listOfValuesModel}"
                                                required="#{bindings.Branchname.hints.mandatory}"
                                                columns="20"
                                                shortDesc="#{bindings.Branchname.hints.tooltip}"
                                                partialTriggers="sor1"
                                                autoSubmit="true">
                    <f:validator binding="#{bindings.Branchname.validator}"/>
                  </af:inputComboboxListOfValues>
                  <af:inputText value="#{bindings.Branchcode.inputValue}"
                                label="Branch Code"
                                required="#{bindings.Branchcode.hints.mandatory}"
                                columns="#{bindings.Branchcode.hints.displayWidth}"
                                maximumLength="#{bindings.Branchcode.hints.precision}"
                                shortDesc="#{bindings.Branchcode.hints.tooltip}"
                                partialTriggers="branchnameId" id="it18">
                    <f:validator binding="#{bindings.Branchcode.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.Debitorderdate.inputValue}"
                                label="Date"
                                required="#{bindings.Debitorderdate.hints.mandatory}"
                                columns="#{bindings.Debitorderdate.hints.displayWidth}"
                                maximumLength="#{bindings.Debitorderdate.hints.precision}"
                                shortDesc="#{bindings.Debitorderdate.hints.tooltip}"
                                id="it17" partialTriggers="sor1">
                    <f:validator binding="#{bindings.Debitorderdate.validator}"/>
                  </af:inputText>
                </af:panelFormLayout>
              </af:panelHeader>this values are on the same VO
Edited by: adf009 on 2013/02/21 5:23 PM

Similar Messages

  • APEX4: Is it possible to show/hide a field on form based on Radio selection

    Hi,
    On a form, I've a radio group (with two values) and two select list. Based on the selection in radio group, I want to show/hide the select list.
    Like, when the user clicks Radio Group Value - RG_A, SL_A has to be visible, and when user clicks Radio Group Value - RG_G, SL_B has to be visible.
    Is this possible in APEX 4? How can I do it?
    Thanks for the help.
    --Hozy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    Yes, you can do it using Dynamic Actions.
    See this thread as well. APEX4: Populating fields from database based on the SelectList value
    In Radio Group you will need to identify the button clicked from its ID and / or value. Thats because the Radio Group Item creates as many IDs / Items as there are options P1_ITEM_0, P1_ITEM1_1, etc.
    Regards,

  • Display multiple records based on checkbox selection

    Hi - I have a cfm page that displays all the employees in the
    company (select * from employee). I have a checkbox next to each
    one of the employee name. I want the users to be able to select the
    checkbox and view phone number of selected employees (select
    phone_number from employee where emp_id = 12, 15, 18, 20, 31) I
    know I'll have to use some kind of loop to pick these employees and
    display ... but I don't know how to write that loop ... can
    somebody please help!
    - Amber

    The code below should help you out.

  • Display af:outputLabel based on lov selection

    hi i have a situation where i have lov which got two option GOVT,PRIV when the lov selection is GOVT,i what to display Responsible person(s)” in
    af:outputLabel and when lov selection is PRIV i what to display Ownership in af:outputLabel am in jdeveloper 11.1.1.6.0

    yes i figure it out
    <af:selectOneChoice value="#{bindings.Organisationtypecode.inputValue}"
                                            label="#{bindings.Organisationtypecode.label}"
                                            shortDesc="#{bindings.Organisationtypecode.hints.tooltip}"
                                            id="soc1" simple="true"
                                            autoSubmit="true" required="true"
                                            valueChangeListener="#{pageFlowScope.orgDetailsBean.valueChangedorgtype}"
                                            contentStyle="width:145px;">
                          <f:selectItems value="#{bindings.Organisationtypecode.items}"
                                         id="si1"/>
                        </af:selectOneChoice>
    <af:outputLabel value="Responsible person(s)" id="ol19"
                                        inlineStyle="color:Black; font-weight:bolder;"
                                        partialTriggers="soc1"
                                        visible="#{bindings.Organisationtypecode.inputValue eq '1'}"/>
    <af:outputLabel value="Ownership" id="ol20"
                                        inlineStyle="color:Black; font-weight:bold;"
                                        partialTriggers="soc1"
                                        visible="#{bindings.Organisationtypecode.inputValue eq '2'}"/>

  • Need to display a value before the header based on a user parameter.

    I have a select on the user parameter list of values.
    SELECT DISTINCT GROUP_ROWID, STR_GROUP_NAME
    FROM TBL_COMPANY_GROUP;
    I select the option hide the first column in order to show only a list of values and not the row_ids.
    I need to display the str_group_name within the header as a title. I insert a field in the header and in source select the name of the parameter p_groupid but the only thing that I get is the row_id value not the name. I use the row_id to pass it on my queries but I need the name value in the header. Any ideas? Please help.
    Thanks.

    create a parameter called p_header.
    in the after parameter form trigger
    select str_group_name into :p_header
    from tbl_company_group
    where group_id = :p_groupid;Have the header field source be p_header.

  • "Filter the LOV based on the selected conditions" RADIO BUTTON doesn' work

    Hi All, I'm trying to create a cascading parameters mechanism, but I found certain difficulties.
    I need to have 2 LOV connect: the master LOV retrieve a list of User's groups, and the detail LOV has to retrieve only the customer's categories that come from the user's groups selected.
    So, in order to retrieve the values I defined on the Administrator:
    1) one custom folder for the master LOV (list of the User's groups) and another custom folder for the details LOV (list of the customer's categories).
    2) The 2 LOV as item classes
    On Discoverer Plus, following the manual ("About filtering lists of parameter values based on selected conditions ("cascading parameters"), I tried to create thw first parameter based on the master LOV, but I DON'T have the radio button "Filter the list of values based on the selected conditions" enabled !!!...I CAN'T USE IT !
    If this radio button is not enabled, I can't link the master parameter with the detail parameter.....
    Anybody can help to discoverer what I missed during the creation of cascading parameters ?
    Thanks in advance for your help
    Alex

    Hi Manav, thanks for your reply !
    I resolved the problem, linked the two custom folders with a join !
    The radio button didn't work just only the parameter where condition has to be deselected and then re-selected !!
    Alex

  • Previous 4 months column need to be displayed based on prompt selection

    Hi,
    I have prompt named
    JAN
    FEB
    DEC
    and i have 12 columns from month1 to month 12(jan to dec)
    when i select august from prompt i need to display 4 month previous of august
    so my result should be
    apr,may,jun,jul and august
    if i select february then my result should be
    jan and feb
    basically i need to hide columns based on prompt selection
    can i know how to do this

    Hi
    I think you have to go for Data level Security in this case.
    You have to set that Session variable in the Group/User Permissions tab so that the Group members can see only those regions data only, even if they go for a
    search.
    Otherwise there is nothing to restrict the user in all the directions.
    You have to apply that filter on all the tables in that Subject area.
    Hope this will help you.
    Guys, Please correct me if I am wrong
    thanks
    Anand

  • How to display value based on LOV selection

    Hi,
    I have an editable table. On create operation one of the field is LOV, based on LOV selection the next field should be auto populated, please help me how to achive this.
    Thanks,

    Thanks for your reply........
    I did all these to get value based on LOV selection, but my problem is when i am trying to create a new record then everthing is working fine but normal search i am not getting the value of that attribute.
    below is my code
    Page:
    <af:column sortProperty="ProcessType" filterable="true"
    sortable="true"
    headerText="#{bindings.CmWeeklyProcesses.hints.ProcessType.label}"
    id="c36" width="340px;">
    <af:inputComboboxListOfValues id="processTypeId"
    popupTitle="Search and Select: #{bindings.CmWeeklyProcesses.hints.ProcessType.label}"
    value="#{row.bindings.ProcessType.inputValue}"
    model="#{row.bindings.ProcessType.listOfValuesModel}"
    required="#{bindings.CmWeeklyProcesses.hints.ProcessType.mandatory}"
    columns="#{bindings.CmWeeklyProcesses.hints.ProcessType.displayWidth}"
    shortDesc="#{bindings.CmWeeklyProcesses.hints.ProcessType.tooltip}" inlineStyle="width:800px;"
    valueChangeListener="#{backingBeanScope.backing_app_CalcSchedules.weeklyDescription}"
    autoSubmit="true" >
    <!-- <f:validator binding="#{row.bindings.ProcessType.validator}"/>-->
    </af:inputComboboxListOfValues>
    </af:column>
    <!--value="#{row.bindings.Description.inputValue}" backingBeanScope.backing_app_CalcSchedules.description-->//If i use this value in the below property line then i am not getting value while creating time but if i done blind search then i am not getting any value in this field.
    <af:column sortProperty="Description" filterable="true"
    sortable="true"
    headerText="#{bindings.CmWeeklyProcesses.hints.Description.label}"
    id="c35" width="390px;">
    <af:inputComboboxListOfValues id="descriptionId"
    popupTitle="Search and Select: #{bindings.CmWeeklyProcesses.hints.Description.label}"
    value="#{row.bindings.Description.inputValue}"
    model="#{row.bindings.Description.listOfValuesModel}"
    required="#{bindings.CmWeeklyProcesses.hints.Description.mandatory}"
    columns="#{bindings.CmWeeklyProcesses.hints.Description.displayWidth}"
    shortDesc="#{bindings.CmWeeklyProcesses.hints.Description.tooltip}" inlineStyle="width:1000px;"
    readOnly="true" partialTriggers="processTypeId">
    <f:validator binding="#{row.bindings.Description.validator}"/>
    </af:inputComboboxListOfValues>
    </af:column>

  • Dynamically display title based on value selected in column selector

    Hi All,
    Can it be possible to show the report title dynamically based on value selected in column selector . suppose i have two column status and region . When i will select status in the column selector the title of the report will show " Status Summary" when i will select region then the title will change to "Region Summary". Please help me...

    Hi,
    create dashboard prompt with column selector functionality like following way
    write the following query in your dashboard prompt sql results
    select region name from subject area name
    Union all
    select sub_region name from subject area name
    like this and put one presentation variable for this dashboard prompt like var1
    in your report write formula in your column like this *case when @{var1)='region column' then 'Region Summary' else ' ' end*
    and refer this column in narrative view like @1 then narrative act like a title view.
    Hope this helps you
    Regards
    Naresh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to display dynamic header title in the report?

    I have a req to display dynamic header title in the report.
    When a id is entered in the prompt text, it will display the user data based on that user_id.
    so similarly....the header title should vary each time when you select different user_id.
    How can we implement this?

    >
    Zack H wrote:
    > Lazaro,
    >
    > It depends on what you want displayed in the heading for each id.
    > Please elaborate.
    >
    > Thanks,
    > Zack H.
    Zack..I have several projects listed under several project id's...
    so when a user selects project id 00164 then it should display something like "Project document for Jon Doe"
    again when the user selects project id as 00192 then it should display something like "project document for Zimmerman"
    Did you get it??

  • Font Display Panel Problems

    I was reading an online article about using iWeb
    http://www.mymac.com/showarticle.php?id=3047
    and there is a screen shot of the font display panel
    This is the panel many applications use to allow the user to adjust the fonts. If you open TextEdit and go to Format/Font/Show Font the Font Panel will appear.
    As you can see in the iWeb article the screen shot shows recently used fonts. The fonts show how they actually appear or they are preview. When I bring up iWeb o TextEdit I don't see that preview. If I select the Gear icon in the lower left corner I can turn on Show Preview but this just brings up a header show what a selected font looks like. The fonts in the list don't change.
    There seems to be a problem with my Recently Used and Favorite lists. There are a few fonts in my list but they are not grouped together. There are blank rows listed between the shown fonts. However if I click in the blank area a font is selected and if you have any text selected in the document it will change that text.
    If I choose a new font for a TextEdit document that font never shows up in the Recently Used list.
    Is there a preference file for this panel? It appears my font display panel is not working correctly.
    Are others having these issues?
    Thanks
    Kelvin
    Message was edited by: KRitchie

    I have an iBook running 10.4.11 and the recently used collections gets updated correctly. However when adding a font to the the Favorites collection there are blank rows between the fonts I've added. Also if you select the font type and not the specific font such as the bold, or regular it doesn't copy all of them.
    Also, unlike in Leopard when you select the Recently Used collection you see what the font looks like show in the list irrespective if the preview panel is activated. Looks like for Leopard the font display panel was changed or not tested thoroughly.
    Kelvin
    Message was edited by: KRitchie

  • Getting index of a string array based on user selection in a comboBox

    I'm not really sure how to phrase my questions, but here goes.
    I have created a string array that holds the values of a ComboBox. Based on which selection the user makes in the comboBox, I need the program to then perform particular calcualtions (based on their selection). I have tried using an ItemListener, but that doesn't seem to work. I've also tried using the ActionListener connected to the ComboBox, again...without results. I'm not sure what I'm looking for exactly, but I know what I want it to do, I'm just not finding the right way to do it. Can anyone help me figure this out?

    Here is my entire code. I'm completely confused at where to put the ActionListener or how to make it do what I want. Right now I just have it set up to display a simple message in the displayArea, just so that I could see if it was working. I think once I figure out how to get the right index from the ComboBox array, then I'll be able to add the code I need to perform the calcualtions...it's just getting to that step that's not going so well! Any help is appreciated.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.text.DecimalFormat;
    import java.lang.String;
    public class MortCalcSR5 extends JFrame implements ActionListener
         int term = 0;
         double principal = 0;
         double rate = 0;
         double monthlyPyment = 0;
         double interest = 0;
         String[] loanChoices = {" ", "7 years @ 5.35%", "15 years @ 5.5%", "30 years @ 5.75%"};
         //create panel for input
         JPanel inputPanel = new JPanel();
              JLabel mortAmtLabel = new JLabel("Mortgage Amount $");
              JTextField mortAmtField = new JTextField(15);
              JLabel loanSelectionLabel = new JLabel("Loan Selection");
              JComboBox loanSelection = new JComboBox(loanChoices);
              JTextField loanSelected = new JTextField(15);
         //create button panel
         JPanel buttonPanel = new JPanel();
              JButton calcButton = new JButton("Calculate");
              JButton clearButton = new JButton("Clear");
              JButton exitButton = new JButton("Exit");
         //create panel for payment information
         JPanel paymentPanel = new JPanel();
              JLabel paymentLabel = new JLabel("Monthly Payment $");
              JTextField paymentField = new JTextField(15);
         //create panel for text box information
         JPanel textPanel = new JPanel();
              JLabel numPaymentLabel = new JLabel("Payment #");
              JLabel balLabel = new JLabel("Balance");
              JLabel ytdPrincLabel = new JLabel("Principal");
              JLabel ytdIntLabel = new JLabel("Interest");
         //create payment for display area
         JPanel displayPanel = new JPanel(new FlowLayout());
              JTextArea displayArea = new JTextArea(10,30);
              JScrollPane scroll = new JScrollPane(displayArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
         public MortCalcSR5()
              //set size of GUI display
              setSize(400,450);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              Container pane = getContentPane();
              JScrollPane scroll = new JScrollPane (displayArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
              FlowLayout layout = new FlowLayout(FlowLayout.LEFT);
              pane.setLayout(layout);
              //add components to the inputPanel
              GridLayout layout2 = new GridLayout(4,1);
              inputPanel.setLayout(layout2);
              inputPanel.add(mortAmtLabel);
              inputPanel.add(mortAmtField);
              mortAmtField.setText(" ");
              inputPanel.add(loanSelectionLabel);
              inputPanel.add(loanSelection);
              loanSelection.addActionListener(this);
              pane.add(inputPanel);
              //add components to buttonPanel
              FlowLayout layout3 = new FlowLayout(FlowLayout.CENTER, 10, 10);
              buttonPanel.setLayout(layout3);
              buttonPanel.add(calcButton);
              buttonPanel.add(clearButton);
              buttonPanel.add(exitButton);
              pane.add(buttonPanel);
              //add listeners to buttons
              calcButton.addActionListener(this);
              clearButton.addActionListener(this);
              exitButton.addActionListener(this);
              //add components to outputPanel
              FlowLayout layout4 = new FlowLayout(FlowLayout.LEFT, 10,10);
              paymentPanel.setLayout(layout4);
              paymentPanel.add(paymentLabel);
              paymentPanel.add(paymentField);
              pane.add(paymentPanel);
              //add components to textPanel
              FlowLayout layout5 = new FlowLayout(FlowLayout.LEFT, 10,10);
              textPanel.setLayout(layout5);
              textPanel.add(balLabel);
              textPanel.add(ytdPrincLabel);
              textPanel.add(ytdIntLabel);
              pane.add(textPanel);
              //add components to displayPanel
              FlowLayout layout6 = new FlowLayout(FlowLayout.CENTER,10,10);
              displayPanel.setLayout(layout6);
              displayPanel.add(scroll);
              pane.add(displayPanel);
              setContentPane(pane);
              setVisible(true);
         public void actionPerformed(ActionEvent event)
              String fs = (String)loanSelection.getSelectedItem();
              if (fs.equals("7 years @ 5.35%"))          {
                   displayArea.setText("yay");
              else
                   displayArea.setText("blah");
              JButton command = (JButton)event.getSource();
              if(command==calcButton)  //calculate button clicked - run payment event
                   Payment();
              if(command==clearButton) //clear button clicked - clear all fields
                   mortAmtField.setText(null);
                   paymentField.setText(null);
                   displayArea.setText(null);
                   loanSelected.setText(null);  //hidden text field still needs to be cleared
                   //loanChoices = null;
              if(command==exitButton)  //exit button clicked - exit program
                   System.exit(0);
         public void Payment()
              //perform the calculations
    //          int mortAmt = Integer.parseInt(mortAmtField.getText());
         //     double loanSelect = Double.parseDouble((String)loanSelected.getText());
              displayArea.append("Calcualations performed!");
         public static void main(String[] args)
              new MortCalcSR5();
    /*/calculations
         int mortAmt = Integer.parseInt(mortAmtField.getText());  //get text user entered in mortAmt field - parse it from a string to integer
         int loanTerm = Integer.parseInt(loanTermField.getText());  //get text user entered in loanTerm field - parse it from a string to integer
         double interestRate = Double.parseDouble(interestRateField.getText());  //get text user entered in interestRate field - parse it from a string to double
         int moTerm = (loanTerm*12);  //calculate monthly loan term
         double moInterest = ((interestRate/100)/12);  //calculate monthly interest rate
         double payment = mortAmt*(moInterest/(1-Math.pow(1/(1+moInterest), moTerm)));  //calculate monthly payment amount
         valid = true;  //number format is accepted
         paymentField.setText(Double.toString(payment));  //display output
    */

  • Is there a way to hide some reports based on the selected values in prompt.

    Hi Experts,
    Is there a way to hide some reports based on the selected values in prompt.
    For ex. if a year is selected in the prompt then the report should display year wise report.
    If a year and half year both are selected in the drop down from prompt section then 2 reports should come.. One for year wise and another for half year wise.Kindly look into this.
    Regards
    Ashish

    Hi,
    Use presentation values in prompts for year,half,qtr and month.Example- For year-y is presentation variable in the same way for halfyear-h,qtr-q and month-m.
    create four intermediate reports.Example-Report r1 with only year column,r2 with only halfyear column,r3 with qtr column and r4 with month column.
    Make column in each report(r1,r2,r3,r4) is equal to their presentation variables(y,h,q,m).
    Use four sections.
    Section1-Place report that should come when only year.
    section2-Place report that should come for year and halfyear.
    Section3-Place report that should come for year,halfyear and qtr.
    Section4-Place report that should come for year,halfyear,qtr and month.
    Apply guided navigation for each section selecting guided navigation-
    For section1-
    properties->Guided navigation->check this Reference Source Request(Yes)->select report r1(year)->check this Show Section(if request returns row)
    In the same way do for remaining section2(select r2),section3(select r3) and section4(select r4)
    Thanks,
    Srikanth
    http://bintelligencegroup.wordpress.com/

  • Firing a view based on a selection from a popup window

    Hi,
    I have a main window in which there is "Display Details" button and a view container to hold a view. On clicking this display button I'm showing a pop-up window which will show the user the options to select a particular view. After the selection and clicking on OK in the pop up window the corresponding view should be shown the view container.
    I tried this by firing an outboung plug to the corresponding view based on the selection in the popup window. The problem is I cannot create a navigation link in the window as the popup view is not part of the main window.
    Could you please provide me your insights on how to handle this scenario?
    Regards,
    Vivek

    Hi Vivek,
    Please refer this article: [Creating Navigations and Embedding Views at Runtime - Web Dynpro ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50f3660d-ad29-2b10-2482-8120e56942dd?QuickLink=index&overridelayout=true]. Also refer [Thomas' reply in this thread|Embed a view dynamically in a ViewContainerUIElement;.
    Regards

  • SSRS 2008 - hide chart lines based on parameter selected

    How to control visibility of chart lines based on Params selected by user?
    By default, my report display last 3 years worth of data (including current) with Month on the x axis and Counts on the y axis. I have two Boolean parameters:
    TwoYrs? T/F
    ThreeYrs? T/F
    if False is selected for TwoYr and ThreeYr parameters then I want to hide chart lines corresponding to last year and the year before.
    What I've tried: Created 3 Series groups with filters. eg. YearSeries1 to return only current year data and applying an expression to display it if params TwoYrs and ThreeYrs = False. and so on for YearSeries2 to return current + last
    years data if param TwoYrs is True and ThreeYrs = False.  But I don't see where to add expression to control the display of the individual series groups.  I am open to any way of doing this, but this seemed most logical.

    Hi Ok-Hee,
    In your Source Query just need to filter the series data based on the Parameters.
    I have written sample query below:-
    select * from
    select 1 monthnumber , 'Jan' MonthName, 2013 year,100 amount
    union
    select 1 monthnumber , 'Jan' MonthName, 2014 year ,200 amount
    union
    select 1 monthnumber , 'Jan' MonthName, 2015 year , 300 amount
    union
    select 2 monthnumber , 'Feb' MonthName, 2013 year, 300 amount
    union
    select 2 monthnumber , 'Feb' MonthName, 2014 year, 350 amount
    union
    select 2 monthnumber , 'Feb' MonthName, 2015 year,200 amount
    union
    select 3 monthnumber , 'Mar' MonthName, 2013 year, 380 amount
    union
    select 3 monthnumber , 'Mar' MonthName, 2014 year, 100 amount
    union
    select 3 monthnumber , 'Mar' MonthName, 2015 year, 500 amount
    )t
    where year in (
    select distinct FilterYear from
    select case when @TwoYrs=1 then year(getdate())-1 else year(getdate()) end FilterYear
    union
    select case when @TwoYrs=1 and @ThreeYrs =1 then year(getdate())-2 else year(getdate()) end FilterYear
    union
    select year(getdate()) FilterYear
    ) t
    I have created one post in my blog , you can check the result.
    https://msbitips.wordpress.com/2015/03/12/ssrs-2008-hide-chart-lines-based-on-parameter-selected/
    Thanks
    Prasad

Maybe you are looking for