Trouble Passing Values Using onClick Event

I have a page with a div, <div id= PF_Text_Panel></>,  containing text describing an image, the image is in a separate div.  Using CSS the text panel is on top of the image and covers about 1/3 of the image’s left side.  A slide effect, handled by the function Slide, targets the PF_Text_Panel div. The function Slide is triggered by an onClick event allowing the user to slide the description to the left and reveal the entire image.
The function Slide contains an if statement. The if statement is used to determine if PF_Text_Panel is open or closed using the variable SldPnlState  as a flag like this; if the variable SldPnlState ==1, then run Slide.  The other part of this function, which actually slides the div is an instance of the Slide Effect, inserted using Dreamweaver CS4.
The variable SldPnlState  is set using the function setSldPnlState
The function setSldPnlState, initiated by an onClick, passes a value to the variable SldPnlState, in this case it can be set to either 0 or 1 by separate onClick events
To test if the variable SldPnlState is being passed from the onClick event to the variable I included the function printVar which writes the value of the variable SldPnlState to the screen.
I believe that the Spry effect Slide portion of the function works because if I go into the code and manually set the variable SldPnlState to 1 the function Slide works and if I set it to 0 the function Slide does not work.
This the bug:
printVar indicates that the value is being passed the variable SldPnlState, it displays either a 1 or 0 as expected. 
The function Slide does not work however, when the variable SldPnlState should be set by the onClick event passing the value using the function setSldPnlState.  It does not seem like the value is being passed from the onClick event triggering the function or that somehow the script stops running.
You can demo the page at: http://dg-ad.com/Slide_Effect_Logic_Parameter.html
  Attached is the code, if anyone has some suggestions I would really appreciate hearing from you
<!--begin setup Spry Effects-->
<script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
<!--Begin pass variable from flagToggle parameter to SldPnlState variable includes printVar function to sent results to screen-->
<script language="javascript" type="text/javascript">
<!--begin set flag using onclick event-->
var SldPnlState = (1);
function setSldPnlState(flagToggle)
SldPnlState = flagToggle;
</script>
<!--end set flag using onclick event-->
<!--begin slider onclick event-->
<script type="text/javascript">
if(SldPnlState==1)
function MM_effectSlide(targetElement, duration, from, to, toggle, transition, fps, horizontal)
Spry.Effect.DoSlide(targetElement, {duration: 500, from: 0, to: 200, toggle: true, transition: 2, fps: 750, horizontal: true});
//-->
</script>
<!--end slider onclick event-->
<!--begin write variable onclick event-->
<script type="text/javascript">
function printVar()
document.getElementById('test_display').innerHTML = SldPnlState
</script>
<!--end write variable onclick event-->
</head>
<body id="wrapper">
        <div style="padding-top:50px;">
        <a href="#" onclick="setSldPnlState(1);">Set var SldPnlState to Flag Status Set Open (1)</a><br><br><br>
        <a href="#" onclick="setSldPnlState(0);">Set var SldPnlState to Flag Status Set Closed (0)</a><br><br><br>
        <a href="#" onclick="printVar();">Print Flag Status to Screen</a><br><br><br>
        <div id="test_display" style="border:#9CC thick groove; width:50px; height:50px; margin:15px; text-align:center; font-size:36px;"></div>
        <a href="#" onclick="MM_effectSlide('PF_Text_Panel');">Slide Panel</a><br><br>
        </div>
<div id="PF_Text_Panel" style="border:#9C9 thick solid; height:250px; margin-top:25px;">
  <div id="PF_Text" class="PF_Text">
  </div>
  <script type="text/javascript">
    var panelWidget_1=new Spry.Widget.HTMLPanel('PF_Text');
    </script>
</div>

Thanks so much for taking a look at this.  The whole reason I am doing this is that I couldn't find a state indicator flag in the Spry.Effect.DoSlide effect.
I see that the htmlPanel does not have a bearing on the problem as you mentioned but not having the javascript doesn't matter either.  I am using the Spry.Effect.DoSlide effect, it is in the head,  in the function with the if statement, and it is making the div"PF_Text_Panel slide which works fine including the if statement.  If I set the var SldPnlState = (1) it works set it to 0 and the slide effect is disabled.  I need to be able to change the variable using an onclick event.
The problem as you mention is with the function SldPnlState = flagToggle;  This is what I need to do.  I need to pass a value to  the variable SldPnlState from an onclick event.  As the function Slide is set up, with an if statement, the div will slide if SldPnlState=1 and the slide function will turn off if SldPnlState=0.  However when I do the onclick="setSldPnlState(1);"event there is no effect on the Slide function.  The value seems to pass to the variable tSldPnlState since I can get the value of this same variable to display using the function printVar() which will display 1 or 0 depending on which onclick event I run.  It seems like the I can pass the variable from the onclick event it's just that if statement in the function MM_effectSlide never sees it.  I don't know enough to trouble shoot this.  But I will take a closer look at the SldPnlState = flagToggle; part as you suggest.

Similar Messages

  • Cannot pass Value Using getURL() in Flex 2.0

    I have pasted a piece of code to pass value using query
    string,I am sure there wouldn't be any problem with code.But I get
    error calling getURL() method.
    The error I am getting on compilation is,
    Call to a possibly undefined method getURL.
    4: {
    5: getURL("QueryStringSample.mxml");
    6: }
    I also tried giving entire url as "
    http://localhost:8080/Test/QueryStringSample.mxml",
    since I am running the application using local Tomcat server.both
    the mxml apps,That is, calling.mxml(PassParam.mxml) and
    called.mxml(QueryStringSample.mxml) are in same package/Folder
    (Test).
    what is the cause for this probblem .
    my code..
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    <mx:Script>
    function passVal():void
    getURL("QueryStringSample.mxml");
    </mx:Script>
    <mx:VBox>
    <mx:HBox>
    <mx:Label text="Name: " />
    <mx:TextInput id="nameInput" />
    </mx:HBox>
    <mx:HBox>
    <mx:Label text="Hometown: " />
    <mx:TextInput id="homeTownInput" />
    </mx:HBox>
    <mx:Button label="pass param" click="passVal();" />
    </mx:VBox>
    </mx:Application>
    Thanks in Advance.

    Now that the Flex 2.0 forums are all set up, it is time to
    start using them for 2.0 questions. So in the future, don't post
    2.0 questions here.
    In the meantime, getURL has been changed to navigateToURL().
    See the docs for details.
    Also, I think you are mixing Flex 1.5 and 2.0. 2.0 does not
    use a server, and you do not call mxml file directly. Instead you
    compile the swf with FlexBuilder or the command line compiler, and
    call the html wrapper.
    Tracy

  • To coerce passed values, use the In Range and Coerce function.

    -" Device Number for Card 1 uses data range coercion, which now only applies to data entry; values will not be coerced when passed to subVIs. To coerce passed values, use the In Range and Coerce function."
    Hi,
    I had program runnning fine in labview version 5.0, Recently i updated to labview version 6.0, but when i opened file i will see many warnings like above.
    I saved the file as 6.0, all the warnings are gone and program compiles as well but i am not sure saving as 6.0 eliminate those problems like..."value will not be coereced when passed to subvis"

    It means that some of your controls use coercion to alter data if it is not within a range. In LV 5.0 this worked for either typing the data into the control or passing it through the connector as a sub-vi. In 6.0 the data won't be coerced if it has been passed through the connector as a sub-vi, only if it is entered on the front panel. If your sub-vis relied on this coercion to operate properly then you will need to add the "In Range and Coerce" function to your block diagram to manipulate these values. If the coercion wasn't important then disregard the warning.
    Hope this helps
    Brian

  • Can't set a hidden field value from onClick event with a runtime expression

    Hi,
    I need to set a hidden field in an onClick event of button but it's not working.
    <html:submit styleClass="btnLink" onclick="document.empForm.hidden.value='<%= empID%>'">
    <%= empID%>
    </html:submit>
    Althought the second expression is evaluated and written successfully "the button value"
    I heard that this is because you can't mix the value of an attribute of a custom tag with both string literal and run time expressions.
    Is there any work around to solve that?
    I can't use EL as I'm using old JSP version

    I guess, it should work; instead of html:submit, try with button.

  • Trouble passing var using CFC

    I'm having trouble passing a variable value called from a CFC
    into Flex via RemoteObject. Basically I'm trying to pass the
    current logged-in user to a Combobox as a string. The Web directory
    in IIS is set to dissallow anonymous access and is set to
    Integrated Windows Authentication. The CFC is in the secured
    directory as well as the Flex app. If I change the CGI variable to
    something like #cgi.remote_addr# among others it works fine so I
    know it's not the actionScript or CFC code. Any ideas as to why
    #cgi.auth_user# is passing as an empty string?? One more caveat. If
    I invoke the function in my CFC from a .cfm page the auth_user is
    displayed as expected.
    ------------------------------------------------------------------------------------------ ----------

    To use RemoteObject with PHP you need to download AMFPHP and
    make some settings.
    To download go here:
    null.
    To understand how to use it with Flex go here:
    null.
    This is a video tutorial of about 7-10 minutes which will show you
    all you need you need to know to set AMFPHP in 'conversation' with
    Flex.
    Good luck!

  • Trouble passing values to subpanels

    I seem to be having issue pass values to my sub VIs in a subpanel.  I'm using the invoke node and control value set command.
    I am able to pass a database reference that I'm using, but when I try Boolean values, I get no response.  I'm also trying to use one of the Boolean values to fire an event.  The front panel of my sub VI looks as though the FP button is being pressed, but my value doesn't change and my event doesn't fire.
    I've reviewed as may forum threads as I could and have looked through the bug reports without any luck.  Any ideas?

    attached is the code snippet.   You can use this as a subVI in place of where you are setting the control value or just hammer the code in directly.  Add error handling as you see fit, although you should note that if you use the error handling within the for loop, you will probably get an error, probably better to move the 'to specific' outside the loop.
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?
    Attachments:
    setCtrlValSignal.vi ‏11 KB

  • How can I use onClick event on singleSelection tag???

    Hi, all.
    I've used Jdev 9.0.4 and UIX xml.
    I've tried to fire onClick event on sigleSelection tag. But onClick event could not be used.
    Strangely onClick event on Button tag works well.
    My code looks like this.
    <script>
    <contents>
    function AlertMessage(){                   
    alert("You got it!");
    </contents>
    </script>
    <button text="Auto Generate" name="generate"
    onClick="return AlertMessage();"/>
    <singleSelection selectedIndex="0" text="Single" name="GGFF" id="GGG"
    shortDesc="AA"
    onClick="return AlertMessage();">
    Is there any problems in my code? Or this problem is oriented from jdev9.0.4?
    Please help!!!

    Sorry, this was a bug in the UIX version shipped in JDeveloper 9.0.4. It has been fixed in JDeveloper 9.0.5.
    -brian
    Team JDeveloper/UIX

  • GridView - How to use OnClick event in a hyperlink in?

    Hi there,
    In my SharePoint Application I have an aspx page with a GridView. One of the columns should show a hyperlink with OnClick event. If you can please provide code for aspx page and/or C# code behind that will be appreciated.
    Thank you.

    Hi,
    Here is the sample code to add the HyperLink field in the Gridview.
    using System;
    using System.ComponentModel;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using System.Data;
    namespace VisualWebPartProject5.VisualWebPart1
    [ToolboxItemAttribute(false)]
    public class VisualWebPart1 : WebPart
    protected override void CreateChildControls()
    GridView gview = new GridView();
    SPList list = SPContext.Current.Web.Lists["Projects"];
    SPQuery query = new SPQuery();
    query.Query = “<OrderBy><FieldRef Name=\”Project\” Ascending=\”True\”/></OrderBy>”;
    query.ViewFields = “<FieldRef Name=\”Project\” Nullable=\”TRUE\” /><FieldRef Name=\”Client\” Nullable=\”TRUE\” /><FieldRef Name=\”URL\”
    Nullable=\”TRUE\” />”;
    query.ViewFieldsOnly = true;
    SPListItemCollection lic = list.GetItems(query);
    DataTable dt = lic.GetDataTable();
    dt.Columns.Add(“Temp”, typeof(string));
    foreach (DataRow r in dt.Rows)
    r["Temp"] = r["URL"];
    gview.DataSource = dt;
    HyperLinkField linkField = new HyperLinkField();
    linkField.HeaderText = “Text”;
    linkField.DataTextField = “Project”;
    linkField.DataNavigateUrlFields =new string[] { “Temp”};
    linkField.Target = “_blank”;
    gview.Columns.Add(linkField);
    gview.DataBind();
    this.Controls.Add(gview);
    Please mark it answered, if your problem resolved or useful.

  • Using onclick events in the javascript dialog box

    hi,
    Iam creating dialog box to get some inputs and use it for batch processes. so, i need onclick events on that dialog box.
    for example:
    in my dialog box, i fix a browse button(check box) and connect the choose folder box. but, after i click okay button only i get the choose folder box. i need to see the choose folder dialog box after click the check box.. is it possible???
    regards,
    Subha oviya

    hi bob,
    The following code shows a dialog box.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    var myDialog = app.dialogs.add({name:" Dialog Onclick Test", canCancel:true});
    with(myDialog)
    with(dialogColumns.add())
    with(dialogRows.add())
    with(dialogColumns.add())
    var browse_check = checkboxControls.add({staticLabel:"Browse",checkedState:false});
    if(myDialog.show() == true)
    if(browse_check.checkedState == true)
    var filefolder = Folder.selectDialog("Choose Files Folder");
    This is my code. After run this script a dialog box appear on the screen. we check the browse check box and then click he ok button. after then a "choose folder dialog box" will appear.
    i need to see the "choose folder dialog box" before press the ok button and after check the check box. IS IT POSSIBLE?
    Regards,
    Subha

  • Having troubles passing values of Shuttle control to SQL Query of Report and Chart Region

    Hello,
    I am very new to APEX and need help for one of the Pa.I have a shuttle control on my page which populates Categories. Once user selects Categories from this control, I wish to pass the values to following SQL query :
    select * from emp_class where category IN ( LIST of VALUES FROM RIGHT SIDE SHUTTLE).
    I tried various ways of doing this including writing a java scripts which reads shuttle value, converts it into below string
    'Category1',Category2',Category3'. Then I set this value to a text box. And then I was expecting that below trcik would work
    select * from emp_class where category IN (:TXT_VALUES)
    I am sure this is not right way and hence its not working. Can you please guide me here with options?
    Many Thanks,
    Tush

    b96402b4-56f7-44ba-8952-fb82a61eeb2c wrote:
    Please update your forum profile with a real handle instead of "b96402b4-56f7-44ba-8952-fb82a61eeb2c".
    I am very new to APEX and need help for one of the Pa.
    Don't understand what this means. What is "Pa"?
    select * from emp_class where category IN (:TXT_VALUES)
    I am sure this is not right way and hence its not working. Can you please guide me here with options?
    This is a common fallacy. In
    select * from table where columnvalue in (7788, 7839, 7876)
    (7788, 7839, 7876) is an expression list and the predicate is evaluated as a membership condition.
    In
    select * from table where columnvalue in :P1_X
    :P1_X is a scalar string, incapable of containing multiple values.
    In an APEX standard report, a PL/SQL function body returning an SQL query report source with lexical substitution can be used to produce a "varying IN-list":
    return 'select * from table where columnvalue in (' || :P1_X || ')';
    where P1_X contains fewer than 1000 values, has been sanitized for SQL injection, and string values are properly quoted.
    Some people suggest the following approach, which will also work in APEX interactive reports:
    select * from table where instr(':' || :P1_X || ':', ':' || columnvalue || ':') > 0
    However this is non-performant as it eliminates the possibility of the optimizer using indexes or partition pruning in the execution plan.
    See varying elements in IN list on Ask Tom, and emulating string-to-table functionality using sql for efficient solutions.

  • Passing values using OpenDocument

    I am using the following URL to open a document.  The document opens and refreshes but the values in the URL are not passed.  The report opens and displays the prompt. 
    http://servername/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sType=wid&iDocID=459743&sRefresh=Y&lsSShipTo:=(16150)

    Well, there was an old issue with the sType blanking out parameters.
    So I'm out - perhaps open a SAP Support Message?
    Sincerely,
    Ted Ueda

  • Pass value using HTML DB

    I have found the HTML DB method used to call page processes (http://apex.oracle.com/pls/otn/f?p=11620:63:1784488080943939::NO::: ). How or in what parameter value would I pass a javascript variable value to that page process?
    Thanks in advance for any help.

    html db will use your database's default date format unless you specified it elsewhere (as discussed a few places on this forum). an easy way to use your own format mask for your auto dml form would be to set the item-level "Format Mask" field in the "Source" region of your date item.
    about your question on how html db passes the value: from where to where are we talking? html db stores its item values as varchars. if you're talking about passing those values to our auto dml processes, the varchar is converted to a date within the proc.
    hope this helps,
    raj

  • Trouble passing Value from MenuEvent

    In the code that follows I can't figurre out how to get a value for e.label for the lone Menu elements, i.e. "menuItems.push({label:"Model-A"});". Thanks in advance for any help.
    private function init():void{
         var menuItems:Array = new Array();
         var subMenuItems:ArrayCollection = new ArrayCollection([{label:"Interior", children:[{label:"Structure"}, {label:"Rods & Reels"},{label:"Literature"}, {label:"Accessories"}]}, {label:"Exterior"}]);
         menuItems.push({label:"Trailer", children:subMenuItems});               
         menuItems.push({label:"Model-A"});
         subMenuItems = new ArrayCollection([{label:"Trailer", children:[{label:"Interior"}, {label:"Exterior "}]}, {label:"Model-A"}]);
         menuItems.push({label:"Restoration", children:subMenuItems});
         menuItems.push({label:"Combo"});
         menuData = new ArrayCollection(menuItems);
    private function menuClick(e:MenuEvent):void{
         var picItems:Array = new Array();
         for (var i:int = picData.length - 1; i >=0; i--){
             if(e.label == picData[i].category){     
         picItems.push(picData[i])
         tileData = new ArrayCollection(picItems);          

    The following is the completed code that gets the job done.  My buddy said
    he looked into selectedIndex but it always came back as -1.  Let me know if
    you think of anything else, but at the least this is working with no forseen
    errors/problems for now.  Thanks a bunch for your help, I'm rather excited
    to have this done.  I'll make sure to get you some points when the forums
    are back on.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:comp="components.*"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import mx.events.MenuEvent;
    import mx.events.ItemClickEvent;
    import mx.collections.ArrayCollection;
    private var menuData:ArrayCollection;
    public var tileData:ArrayCollection;
    public var picData:ArrayCollection;
    public var selectedPic:Object;
    private function init():*void
    var menuItems:Array = new Array();
    var subMenuItems:ArrayCollection = new ArrayCollection([{label:*
    "Interior", children:[{label:"Structure"*}, ,
    menuItems.push();
    menuItems.push();
    subMenuItems = new ArrayCollection([, ]}, ]);
    menuItems.push();
    menuItems.push();
    menuData = new ArrayCollection(menuItems);
    private function menuClick(e:MenuEvent):void{
    var picItems:Array = new Array();
    var selectedItem:String = e.label;
    for each(var item:Object in picData){
    if(selectedItem == item.category){
    picItems.push(item)
    tileData = new ArrayCollection(picItems);
    private function displayPicDetails(event:Event):void{
    currentState='picDetails';
    selectedPic = new Object();
    selectedPic = event.currentTarget.selectedItem;
    picState.load('assets/pics/' + selectedPic.filename + '.jpg');
    private function topMenuClick(e:MouseEvent):void{
    var MenuItems:Array = new Array();
    var selectedItem:String = e.target.data.label;
    for each(var item:Object in picData){
    if(selectedItem == item.category){
    MenuItems.push(item)
    tileData = new ArrayCollection(MenuItems);
    ]]>
    </mx:Script>
    <mx:states>
    <mx:State name="picDetails">
    <mx:AddChild>
    <mx:Image id="picState"
    y="-5" x="2"/>
    </mx:AddChild>
    </mx:State>
    </mx:states>
    <mx:MenuBar id="menuList"
    labelField="label"
    y="370"
    click="{topMenuClick(event)}"
    itemClick="{menuClick(event)}"
    dataProvider=""
    fontSize="16"/>
    <mx:TileList id="picThumbnails"
    width="635"
    height="215"
    y="390"
    columnWidth="150"
    rowHeight="100"
    dataProvider=""
    change="displayPicDetails(event)"
    itemRenderer="components.PicsDisplay"/>
    </mx:Canvas

  • Having trouble passing values between methods

    So if this isnt the right spot for this.
    Anyhow any coments on where I went wrong or need to fix will be apriciated.
    So I got two methods that return a value (getHour() and getMinute(). The values that are returned I am tring to pass into showTime. However it doesn't seem to work as all I get is zero's.
    I've done a search around on the net and Im starting to thing my intellagnce is limited.
    import java.util.Scanner;
    public class First
    static int sH, sM;
        public static void main(String args[]){
            getHour();
            getMinute();
           showTime(sH,sM);
        static int getHour(){
            Scanner input = new Scanner(System.in);
            System.out.println("Please enter the hour: ");
            int setHour = input.nextInt();
            if(setHour <= 24){
                System.out.println("You entered " +setHour+ " for the hour.");
            }else{
                System.out.println("Please enter the hour number from 0 to 24");
                getHour();
         return sH;
         static int getMinute(){
            Scanner input = new Scanner(System.in);
            System.out.println("Please enter the minutes: ");
            int setMinute = input.nextInt();
            if(setMinute <= 60){
                System.out.println("You entered " +setMinute+ " for the minutes.");
            }else{
                System.out.println("Please enter the hour number from 0 to 60");
                getMinute();
            return sM;
        private static void showTime(int sH, int sM){
              System.out.println(+sH+":"+sM);
    }

    Hi,pls compare ur coding with the one i have posted below. In your code, the variables sH and sM are still in initialised state(value =0) and its not assigned with the values returned by getHour and getMinute methods. This is why the shoTime method returned zero. Hope i helped you.
    import java.util.Scanner;
    * @author Jaison KS-IT
    public class First {
    static int sH, sM;
    public static void main(String args[])
    getHour();
    getMinute();
    showTime(sH,sM);
    static int getHour(){
    Scanner input = new Scanner(System.in);
    System.out.println("Please enter the hour: ");
    int setHour = input.nextInt();
    if(setHour <= 24){
    System.out.println("You entered " setHour " for the hour.");
    sH = setHour;
    }else{
    System.out.println("Please enter the hour number from 0 to 24");
    getHour();
    return sH;
    static int getMinute(){
    Scanner input = new Scanner(System.in);
    System.out.println("Please enter the minutes: ");
    int setMinute = input.nextInt();
    if(setMinute <= 60){
    System.out.println("You entered " setMinute " for the minutes.");
    sM = setMinute;
    }else{
    System.out.println("Please enter the hour number from 0 to 60");
    getMinute();
    return sM;
    private static void showTime(int sH, int sM){
              System.out.println(+sH+":"+sM);
    }

  • Passing values using "Submit" and also transition to another tabstrip

    Hi, I am new to VC and have some basic issues in my model.
    I have used two layers, the first one for selection of data and the second one to disply the charts, using tabstrips. when I input the data in the first tab and click "Submit" pushbutton, I could not transition automatically to the second which shows the data. I found that onely one action can be set under custom action on the pushbutton. Is there a better way to do?
    I could get the relevant documents when I searched. Please let me know how to achieve this. Thanks
    KS

    Hi
    Follow the steps below - (I am assuming that you are using BI queries in your model & your tabs are as per quarter - one tab for each quarter)
    1. Create one radio button & in entry list create static list as 1 - Quarter 1, 2 - Quarter 2 & so on.
    2. Now you want plan Vs actual in one graph & Currency in another. So create these reports for each quarter separately, so in all you will have 8 reports (2 for each quarter)
    3. IN the layout you have to arrange it vary carefully, you take all the 'Plan Vs Actual' report for all the quarters & arrange them exactly one over the other. Same for Currency reports also.
    4. NOw Give visibility condition for each report example - if report is for first quarter then condition will be - bool(if(radio button string=="1",true,false)) & assign the default value in radio button as 1. so that at the time of execution you will get these reports by default.
    5. Like wise give condition for all.
    6. When you execute this report you will get radio buttons at the top & as you select different buttons differents report will get opened.
    7. As you have plased these exactly one over the other, user will not come to know these are different reports.
    Try this method, if you have any doubts for this, please do ask me.
    Regards
    Sandeep

Maybe you are looking for