Radio Button grouping Issue

I have specified an Itemrenderer radiobutton inside a Datagrid and have also set selected="false" for the radio button. Have also set the groupName="rbGroup". But when the data gets displayed on teh screen few of the radioButtons gets selected randomly and keeps changing each time.
Please let me know in case if you have a solution.
Code::
<mx:VBox
visible="true" width="80%" horizontalAlign="center" height="70%" paddingTop="30">
<mx:DataGrid id="searchResult" dataProvider="{srv.findICDCodes.lastResult}" width="100%" height="90%" visible="true" styleName="DataGrid">
<mx:columns>
<mx:DataGridColumn width="15">
<mx:itemRenderer>
<mx:Component>
<mx:RadioButton x="291" y="8" groupName="rbGroup" label="rbGroup" selected="false"/>
</mx:Component>
</mx:itemRenderer>  
</mx:DataGridColumn>
<mx:DataGridColumn headerText="Source Code" dataField="sourceCode"/>
<mx:DataGridColumn headerText="Description" dataField="sourceDescpr"/>
</mx:columns>  
</mx:DataGrid>
</mx:VBox>

I think you should remove the groupName="rbGroup" I don't think it's neccesary here and it could be the source of your problem.

Similar Messages

  • Creating a radio button group in a column of a table in Web Dynpro

    Hi,
    I want to put a radio button group in a column of a table in Webdynpro. I added a column to a web dynpro view and then inserted a tableCellEditor for that column.. But I cannot define it as Radio Button group. I want the user to be able to select 3 statuses using this group.
    Does anyone have a solution for this??
    Thanks in advance...
    Nakul

    Hi,
    You wont be able create three RB in one cell.
    Create as many column as the no of options is.Here it is 3.
    Create 4 attributes inside the node , option 1,option 2,option 3 and selectedoption.
    Map each RB s keytoSelect to option 1,2,3. Map all the RBs selectedKey atribute to selectedoption.
    Now selection for each row will be stored in the selected option.
    Regards
    Bharathwaj

  • How to disable a lead selected item in a radio button group ?

    Hi,
    I have a radio button group and there are entries to create radio buttons dynamically. means there is only one radio button group in the UI design and in runtime I will be having two radio buttons (For ex: Yes and No ) . Now If I want to disable either Yes or No radio button, I am unable to do so. because If I disable the radio button group it disables both.  So, I can have lead selected item for ex: Yes which I want to disable. I want to know specifically how this Yes button to be disabled by taking lead selected index item.
    Please help.
    Thanks
    Praveen

    Try setting the radio button value of the lead selected button to abap_false/space.

  • Radio Button Groups

    Hi I am trying to create two radio button groups, one which contains other text buttons and names buttons, in this group only other text button or names can be chosen. But then within the other group I have all the names buttons, but i only want one of these to be chosen at a time. Heres my code
    [AS]
    import fl.controls.RadioButtonGroup;
    //===========================All Name Buttons============================
    var NameTxtRadio:RadioButtonGroup=new RadioButtonGroup("NameTxtRadio");
    LBtextMenu.LBnames.group=NameTxtRadio;
    RBtextMenu.RBnames.group=NameTxtRadio;
    LStextMenu.LSnames.group=NameTxtRadio;
    RStextMenu.RSnames.group=NameTxtRadio;
    LBtextMenu.LBnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    RBtextMenu.RBnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    LStextMenu.LSnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    RStextMenu.RSnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    function NamesshowResult(event:MouseEvent):void {
       switch (NameTxtRadio.selection) {
              case RBtextMenu.RBnames :
               trace ("RB names chosen");
                             RStextMenu.RSnames.selected = false;
                           RBtextMenu.RBnames.selected = true;
                           LBtextMenu.LBnames.selected = false;
                           LStextMenu.LSnames.selected = false;
                            break;
                           case LBtextMenu.LBnames :
               trace ("LB names chosen");
                            RStextMenu.RSnames.selected = false;
                           RBtextMenu.RBnames.selected = false;
                           LBtextMenu.LBnames.selected = true;
                           LStextMenu.LSnames.selected = false;
                            break;
                           case LStextMenu.LSnames :
               trace ("LS names chosen");
                             RStextMenu.RSnames.selected = false;
                           RBtextMenu.RBnames.selected = false;
                           LBtextMenu.LBnames.selected = false;
                           LStextMenu.LSnames.selected = true;
                            break;
                           case RStextMenu.RSnames :
               trace ("RS names chosen");
                           RStextMenu.RSnames.selected = true;
                           RBtextMenu.RBnames.selected = false;
                           LBtextMenu.LBnames.selected = false;
                           LStextMenu.LSnames.selected = false;
                            break;
    //==========================Right Breast text menu==========================
    var RBTxtRadio:RadioButtonGroup=new RadioButtonGroup("RBTxtRadio");
    RBtextMenu.RBotherTxt.group=RBTxtRadio;
    RBtextMenu.RBnames.group=RBTxtRadio;
    RBtextMenu.RBotherTxt.addEventListener(MouseEvent.CLICK, RBshowResult);
    RBtextMenu.RBnames.addEventListener(MouseEvent.CLICK, RBshowResult);
    function RBshowResult(event:MouseEvent):void {
       switch (RBTxtRadio.selection) {
              case RBtextMenu.RBotherTxt :
               trace ("RB other chosen");
                            break;
                           case RBtextMenu.RBnames :
               trace ("RB names chosen");
                            break;
    //==============================================================================
    //==========================Left Breast text menu==========================
    var LBTxtRadio:RadioButtonGroup=new RadioButtonGroup("LBTxtRadio");
    LBtextMenu.LBotherTxt.group=LBTxtRadio;
    LBtextMenu.LBnames.group=LBTxtRadio;
    LBtextMenu.LBotherTxt.addEventListener(MouseEvent.CLICK, LBshowResult);
    LBtextMenu.LBnames.addEventListener(MouseEvent.CLICK,LBshowResult);
    function LBshowResult(event:MouseEvent):void {
       switch (LBTxtRadio.selection) {
              case LBtextMenu.LBotherTxt :
               trace ("LB other chosen");
                            break;
                           case LBtextMenu.LBnames :
               trace ("LB names chosen");
                            break;
    //==============================================================================
    //==========================Left Shoulder text menu==========================
    var LSTxtRadio:RadioButtonGroup=new RadioButtonGroup("LSTxtRadio");
    LStextMenu.LSotherTxt.group=LSTxtRadio;
    LStextMenu.LSnames.group=LSTxtRadio;
    LStextMenu.LSotherTxt.addEventListener(MouseEvent.CLICK, LSshowResult);
    LStextMenu.LSnames.addEventListener(MouseEvent.CLICK,LSshowResult);
    function LSshowResult(event:MouseEvent):void {
       switch (LSTxtRadio.selection) {
              case LStextMenu.LSotherTxt :
               trace ("LS other chosen");
                            break;
                           case LStextMenu.LSnames :
               trace ("LS names chosen");
                            break;
    //==============================================================================
    //==========================Right Shoulder text menu==========================
    var RSTxtRadio:RadioButtonGroup=new RadioButtonGroup("RSTxtRadio");
    RStextMenu.RSotherTxt.group=RSTxtRadio;
    RStextMenu.RSnames.group=RSTxtRadio;
    RStextMenu.RSotherTxt.addEventListener(MouseEvent.CLICK, RSshowResult);
    RStextMenu.RSnames.addEventListener(MouseEvent.CLICK,RSshowResult);
    function RSshowResult(event:MouseEvent):void {
       switch (RSTxtRadio.selection) {
              case RStextMenu.RSotherTxt :
               trace ("RS other chosen");
                            break;
                           case RStextMenu.RSnames :
               trace ("RS names chosen");
                            break;
    //==============================================================================
    [/AS]
    I have no problem choosing between either, other text button or names, only one is selected at a time, but this isnt the case for the other group im able to select multiple name buttons without the other one becoming deselected.
    Thanks in advance for any help.

    Hi just if anyone else wants to do something like i have, I had to ditch the radio button component and make my own.
    Heres the code.
    [AS]
    RBnamesTextButton.CustomRadioButton.stop();
    LBnamesTextButton.CustomRadioButton.stop();
    RSnamesTextButton.CustomRadioButton.stop();
    LSnamesTextButton.CustomRadioButton.stop();
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    function rollOverState01(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("over");
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    function rollOffState01(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("off");
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    function rollupState01(event:MouseEvent):void
              RBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              LBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              RSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              LSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              event.target.gotoAndStop(3);
    //======================================OTHER TEXT========================================================
    RBotherTextButton.CustomRadioButton.stop();
    LBotherTextButton.CustomRadioButton.stop();
    LSotherTextButton.CustomRadioButton.stop();
    RSotherTextButton.CustomRadioButton.stop();
    RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    function rollOverState02(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("over");
    RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    function rollOffState02(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("off");
    //===============================RB BUTTONS================================================
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState03);
    RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState04);
    function rollupState03(event:MouseEvent):void
              RBnamesTextButton.CustomRadioButton.gotoAndStop(3);
              RBotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Breast names clicked")
    function rollupState04(event:MouseEvent):void
              RBotherTextButton.CustomRadioButton.gotoAndStop(3);
              RBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Breast text clicked")
    //======================================================================================== =======
    //===============================LB BUTTONS================================================
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState05);
    LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState06);
    function rollupState05(event:MouseEvent):void
              LBnamesTextButton.CustomRadioButton.gotoAndStop(3);
              LBotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Breast names clicked")
    function rollupState06(event:MouseEvent):void
              LBotherTextButton.CustomRadioButton.gotoAndStop(3);
              LBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Breast text clicked")
    //======================================================================================== =======
    //===============================RS BUTTONS================================================
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState07);
    RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState08);
    function rollupState07(event:MouseEvent):void
              RSnamesTextButton.CustomRadioButton.gotoAndStop(3);
              RSotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Shoulder names clicked")
    function rollupState08(event:MouseEvent):void
              RSotherTextButton.CustomRadioButton.gotoAndStop(3);
              RSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Shoulder text clicked")
    //======================================================================================== =======
    //===============================LS BUTTONS================================================
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState09);
    LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState10);
    function rollupState09(event:MouseEvent):void
              LSnamesTextButton.CustomRadioButton.gotoAndStop(3);
              LSotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Shoulder names clicked")
    function rollupState10(event:MouseEvent):void
              LSotherTextButton.CustomRadioButton.gotoAndStop(3);
              LSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Shoulder text clicked")
    //======================================================================================== =======
    [/AS]
    There is probably a more efficent way to code this but im an AS noob :]

  • Radio Button group with images stored as BLOB files in database

    Hey all!
    I have radio button group, my idea is that radio button's LOV must display images, I mean BLOB files stored in a table.
    How can I do this?

    Hello Ken,
    I asked similar question in the past, and I believe the answer is still the same.
    Select List as an option of a Radio Group
    In your case, I think you can use a select list with added functionality, like "Select List with Branch to Page" or "Select list with Submit", or you can just attach an onChange event (JavaScript) to each select list. The effect should be similar to a radio group – as soon as the user select one item from any of the select lists, you can fire some action, based on the select list value.
    Hope this can help,
    Arie.

  • Form UIBB: Radio Button Group: How to set default value?

    Hello,
    i've added a Radio Button Group in Forum UIBB (FPM_FORM_UIBB) with 3 possible values. How can I set the default value for this group? When starting the application, no radio button is selected..
    Thanks & Regards
    Christopher

    Hi Christopher,
    i've the same requiremnt for adding a Radio Button Group and 3 Radio buttons under it in Forum UIBB (FPM_FORM_UIBB) with 4 possible values..
    I have added 3 custom fields for 3 Radio buttons in the structure. In the desin time, I have added these 3 fields and taken as Radion button Group. But, Only label is coming on the output...
    I totally stuck here. Can you please guide me on this in details as to how to add the Radio buttons and how its action can be handled?
    It's bit urgent for me.
    Thanks in advance,
    Sumesh 

  • Radio button grouping across boxes

    I have 10 or so radio buttons on a shortcut screen that I need to put together in logical groupings.  I've grouped them in boxes; however, I need them to group as a single radio button grouping.  Is this possible?  When I try to put them in a grouping, I can only group those items within a given box...not all items in all boxes.
    Thanks in advance for your help.

    I dont think its possible to have in all diff box R-buttons in one group.

  • Calling radio button group by group name in SAP Appbuilder

    Hi, I'm new to SAP Appbuilder but I do have some really beginner Javascript knowledge.
    I'm trying to create a survey mobile app but I don't seem to be able to get the ID of a radio button based on the radio button group.
    This is my logic to try to change the text of a label with the ID of the selected radio button.
    This function has been set to the event of all 4 radio buttons that have the same radio button group name, "choices".
    Help needed.
    Regards RotiJohn

    First, why do you set the value in wdDoModifyView() and not in a non-static method of the controller?
    In your code example you read the value from a node named "AddEmployeeTime" but you set the value on a node named "EmployeeTime". Is that correct?
    Armin

  • Dynamic creation of Radio Button Group

    Hi,
    I need to create a Radio Button Group dynamically and add Radio buttons to it.
    I am able to create the Radio buttons dynamically. Could someone help me how to create Radio Button Groups.
    I tried creating the Radio Button Group using the following code
                  DATA : lr_radiobuttongrp type REF TO CL_WD_RADIOBUTTON_GROUP_BY_IDX.
                  call method CL_WD_RADIOBUTTON_GROUP_BY_IDX=>NEW_RADIOBUTTON_GROUP_BY_IDX
                  EXPORTING
                    bind_texts = 'test'
                  RECEIVING
                    control = lr_radiobuttongrp.
                  cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_radiobuttongrp ).
                  lr_container->add_child( lr_radiobuttongrp ).
    But when I run it I am geting a dump "subnode viewname.ME does not exist".
    Thanks,
    Suvarna.
    Edited by: Suvarna Chittor on Aug 12, 2008 12:10 PM

    what is 'test' in bind text parameter
    you should provide the name in Capitals along with the node name,
    if the node name is TEXTS and the context attribute under this node is TEXT then you have to pass
    TEXTS.TEXT
    also provide the VIEW parameter to the call
    Abhi
    Edited by: Abhimanyu Lagishetti on Aug 12, 2008 12:26 PM

  • Dynamic radio button group

    Hi ,
    Is there any way we can create 'Text' along with radio button groups beside the text 'YES' and 'NO' dynamically in a VIEW through 'ABAP WEBDYNPRO'. Can we create a context node with 'TEXT' attribute.
    Eg : TEXT RADIOBUTTON1 'yes' RADIOBUTTON2 'no'.
    Thanks,
    kumar

    hi,
    check this out.
    method wddomodifyview .
    data : LR_RADIOBUTTON1            type ref to CL_WD_RADIOBUTTON,
    CALL METHOD cl_wd_radiobutton=>new_radiobutton
      EXPORTING
       bind_selected_key   =  '01' 
       BIND_TEXT           =  'One'
      receiving
        control             = LR_RADIOBUTTON1.
    I think with the above code you will be able to create text along with Radio button.
    Thanx.

  • Two radio button groups merging into one, and I don't want that. How do I fix it?

    I have two sets of radio buttons that I want to be independent of each other. How do I do that?  Just to be clear... I have one set with two buttons.  The second set has six buttons.  They are independent of each other - they just happen to fall in line one right after the other.  LiveCycle keeps putting them together. 
    I have very limited knowledge and am learning as I go.  Thanks for any help that you can give me.

    Select the Radio button that you want to be independent of the other radio buttons, RIGHT click and choose Wrap in New Radio Button Group.
    This way it can be selected along with other radio buttons..
    One question here. If you want each radio button to be independent of each other, why not change them to Check Boxes instead of Radio Buttons.
    Thanks
    Srini

  • Radio Button Groups - always below each other?

    Hello,
    When you create a RadioButtonGroup either ByKey or ByIndex it always puts each element under the next one. I was wondering if there was a way to put each element NEXT to each other, so I read each option from left to right instead of from top to bottom.
    Thanks in advance,
    Jennifer

    Hi Jacobs,
    Assign the 'colCount' property of RadioGroupByXX object to the number of radio buttons you want to have. Then you would get all ur radio buttons side-by-side instead of below to each other.
    for example, if u have 2 radio buttongs in the radio button group then assign colCount=2.
    Thanks,
    Raags
    PS: If useful assign points

  • Issue in radio button group in module pool in infotype creation

    Hi,
    I have a custom infotype,where there are six radio buttons belonging to same group for different mode of payment.Issue is when user clicks a radiobutton,a subscreen opens .there are six different subscreens when user clicks on each of the six radio buttons.
    Requirement is when user clicks one button ,one subscreen opens but the other radio buttons(whcih are eligible to be open) gets disabled .I have tried to handle the issue manually through coding ,but i think the issue is with the radiobutton grouping.
    How to make the other radio buttons open for input even when the user has clicked on one button and the subscreen opens corresponding to the screen so that the imemediately ther user clicks on another radio button and get the corresponding subscreen opened for him.Pls advise.

    I have written a custom module in PBO section of my custom infotype.There i have written this code:-
    LOOP AT SCREEN.
        READ TABLE  fp_it_payment_opt_open INTO wa_payment_opt_open WITH KEY scrname = screen-name.
        IF sy-subrc = 0.
          screen-input = c_input_on.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    The internal table it_payment_opt contains all the radio buttons and checkboxes and is populated when the radio buttons and checkboxes are turned input on while modifying the screen depending upon course of my price and personnel subarea.
    While calling subscreen area in PBO,the radiobuttons get into a state of input-off automatically.so i have written a z-module after
    the module hidden_data .
    PROCESS BEFORE OUTPUT.
            general infotype-independent operations
      MODULE before_output.
      CALL SUBSCREEN subscreen_empl   INCLUDING empl_prog empl_dynnr.
      CALL SUBSCREEN subscreen_header INCLUDING header_prog header_dynnr.
            infotype specific operations
      MODULE p9300.
      CALL SUBSCREEN subscreen_area INCLUDING subscr_prog subscr_dynnr.
      MODULE hidden_data.
      module z_open_paymnt_optns.
    My problem has been solved ,hence am closing the thread.Thanks to all of you.

  • Print multiple page ranges based on radio button group choices

    Hi ... I have a PDF that is a combined application form made up of 6 separate forms. On the front page, I have 6 groups of "Yes / No" radio buttons.
    If the radio button for one or more of these groups is selected as "Yes" then when the Print button (on the page) is clicked then the appropriate page ranges will print.
    It is desireable, though not essential, for these to be printed in one print job.
    The Code I have been adjusting to try and achieve the result is below but I have tied myself in knots now and any help would be greatly appreciated:
    Many thanks
    //<AcroForm>
    //<ACRO_source>PrntForms:Annot1:MouseUp:Action1</ACRO_source>
    //<ACRO_script>
    /*********** belongs to: AcroForm:PrntForms:Annot1:MouseUp:Action1 ***********/
    var nButton = app.alert({
    cMsg: "Your selected forms will be sent to your default printer.\n\nIf you require to print to an alternative printer, press cancel and select 'Print' from the 'File' menu.",
    cTitle: "Submit Forms for Printing?",
    nIcon: 1, nType: 1
    // array for button responses
    //var aResponse = new Array("OK", "Cancel");
    if(nButton == 1)
    {    this.print({ bUI: false, bSilent: true, bShrinkToFit: true, nStart: 1, nEnd: 1 });
    } else
    if(nButton == 0)
    {    this.Exit
    var a_app;
    if(this.getField("AppForm1”).value=="Yes"){
        a_app = "1, 1";
    } else a_app = "0, 0"
    var b_app;
    if(this.getField(“AppForm2”).value=="Yes"){
        b_app = "2, 2";
    } else b_app = "0, 0"
        var pp = this.getPrintParams();
              pp.interactive = pp.constants.interactionLevel.full;
              pp.printRange=[[a_app], [b_app]];
              this.print(pp);
    //</ACRO_script>
    //</AcroForm>

    Hi Gilad D
    The 'printRanges.push' function works well on my Mac using Adobe Acrobat Pro XI however when it is used on the systems that the form users will be working on (which runs Adobe Reader 9.4.0.195) the ranges are not pushed to the printer dialogue box and the 'printRange'
    in the dialogue is still selecting the 'All Pages' radio button.
    Is the printRanges.push function a new and non-backwards-compatible function or is my code the problem
    //<AcroForm>
    //<ACRO_source>PrntForms:Annot1:MouseUp:Action1</ACRO_source>
    //<ACRO_script>
    /*********** belongs to: AcroForm:PrntForms:Annot1:MouseUp:Action1 ***********/
    var printRanges = [];
    if (this.getField("RBG10").value=="Yes") printRanges.push([0,2]);
    if (this.getField("RBG1").value=="Yes") printRanges.push([3,18]);
    if (this.getField("RBG2").value=="Yes") printRanges.push([19,27]);
    if (this.getField("RBG3").value=="Yes") printRanges.push([28,38]);
    if (this.getField("RBG4").value=="Yes") printRanges.push([39,42]);
    if (this.getField("RBG5").value=="Yes") printRanges.push([43,54]);
    if (this.getField("RBG6").value=="Yes") printRanges.push([14,16]);
    if (this.getField("RBG7").value=="Yes") printRanges.push([55,56]);
    if (this.getField("RBG8").value=="Yes") printRanges.push([57,65]);
    if (this.getField("RBG9").value=="Yes") printRanges.push([66,71]);
    if(printRanges.length>0){
       var pp = this.getPrintParams();
                pp.interactive = pp.constants.interactionLevel.full;
                pp.printRange=printRanges;
                this.print(pp);
    }else app.alert("No page ranges are selected");
    //</ACRO_script>
    //</AcroForm>
    Any assistance is greatly appreciated.
    Many thanks

  • Creation of selection screen with 2 radio button groups

    Hi All,
    I have following selecton screen to be created:
    1. Radio Button for File
       A. Radio Button for PC File
           - Parameter for PC File Input
       B. Radio Button for UNIX File
           - Parameter for Unix File Input
    2. Radio Button for Material
        - Material Select-Option
    As per above Either of Radio Buttons 1/2 File/Material will be selected.
    If 1(File) Selected Radio Button for PC File/Unix File will be selected, No other radio buttons will be active.
    If 2(Material) Selected Material Select-option input will be given, No other radio buttons will be active.
    How can we write the selection screen code for above design.
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    go through the following example-----
    **************************************INTERNAL TABLE DECLERATION**************************************
    DATA: BEGIN OF ITAB2 OCCURS 0,
             VALUE(250) TYPE C,
             END   OF ITAB2.
    **************************************DATA DECLERATION************************************************
    DATA: PATH LIKE DYNPREAD-FIELDNAME.
    DATA : P TYPE STRING,
           D TYPE STRING.
    DATA : V_DATASET    LIKE FILENAMECI-FILEEXTERN.
    **************************************SELECTION SCREEN***********************************************
    PARAMETERS: V_PATH TYPE RLGRAP-FILENAME DEFAULT 'C:\Documents and Settings\vchaturvedi\Desktop\vijay.txt'.
    PARAMETERS: D_PATH TYPE RLGRAP-FILENAME.
    SKIP 5.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    PARAMETERS: PC_ONE    RADIOBUTTON GROUP RAD1 DEFAULT 'X',
                PC_OTHER    RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR V_PATH.
    HELP FOR SEARCHING FILES PATH************************************************
      IF PC_ONE = 'X'.
        CALL FUNCTION 'F4_FILENAME'
         EXPORTING
      PROGRAM_NAME        =  'Z8VIJAY_SHADOWER_COVERSIONDATA'
      DYNPRO_NUMBER       = SYST-DYNNR
           FIELD_NAME          = PATH
         IMPORTING
           FILE_NAME           = V_PATH.
    *******CONVERT IN TO STRING************
        P = V_PATH.
      ENDIF.
    **************************************SELECTION SCREEN VALIDATION***********************************
    AT SELECTION-SCREEN.
      IF V_PATH = ''.
        MESSAGE E014.                    "FILE PATH NOT FOUND!!!!!!!
      ENDIF.
      IF D_PATH = ''.
        MESSAGE E016.                "TARGET FILE NOT FOUND!!!!!!!
      ENDIF.
    *******************FOR DOWNLOAD**********
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR D_PATH.
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
      PROGRAM_NAME        = 'Z8VIJAY_SHADOWER_COVERSIONDATA'
      DYNPRO_NUMBER       = SYST-DYNNR
         FIELD_NAME           = PATH
       IMPORTING
         FILE_NAME           = D_PATH.
    ***************CONVERT INTO STRING***********
      D = D_PATH.
    *******************************************MAIN LOGIC************************************************
    START-OF-SELECTION.
      IF P = ''.
        P = 'C:\Documents and Settings\vchaturvedi\Desktop\vijay.txt'.
      ENDIF.
    ******************UPLOAD DATA FROM OTHERS TO INTERNAL TABLE****************
      CALL FUNCTION 'GUI_UPLOAD'
              EXPORTING
                FILENAME                      = P
             FILETYPE                      = 'ASC'
             HAS_FIELD_SEPARATOR           = ' '
             HEADER_LENGTH                 = 0
             READ_BY_LINE                  = 'X'
             DAT_MODE                      = ' '
             CODEPAGE                      = ' '
             IGNORE_CERR                   = ABAP_TRUE
             REPLACEMENT                   = '#'
             CHECK_BOM                     = ' '
           IMPORTING
             FILELENGTH                    =
             HEADER                        =
              TABLES
                DATA_TAB                      = ITAB2
             EXCEPTIONS
               FILE_OPEN_ERROR               = 1
               FILE_READ_ERROR               = 2
               NO_BATCH                      = 3
               GUI_REFUSE_FILETRANSFER       = 4
               INVALID_TYPE                  = 5
               NO_AUTHORITY                  = 6
               UNKNOWN_ERROR                 = 7
               BAD_DATA_FORMAT               = 8
               HEADER_NOT_ALLOWED            = 9
               SEPARATOR_NOT_ALLOWED         = 10
               HEADER_TOO_LONG               = 11
               UNKNOWN_DP_ERROR              = 12
               ACCESS_DENIED                 = 13
               DP_OUT_OF_MEMORY              = 14
               DISK_FULL                     = 15
               DP_TIMEOUT                    = 16
               OTHERS                        = 17
          IF sy-subrc = 1.
           MESSAGE E014.                    "FILE PATH NOT FOUND!!!!!!!
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    ******************************DOWNLOAD DATA FROM INTERNAL TABLE TO OTHERS******************************
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
      BIN_FILESIZE                    =
          FILENAME                        = D
      FILETYPE                        = 'ASC'
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
    IMPORTING
      FILELENGTH                      =
        TABLES
          DATA_TAB                        = ITAB2
      FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF PC_OTHER = 'X'.
    ****************************8FOR ONE SERVER TO ANOTHER************************************************
      OPEN DATASET V_DATASET FOR INPUT IN TEXT MODE ENCODING DEFAULT.
        IF SY-SUBRC = 0.
          DO.
            READ DATASET V_DATASET INTO ITAB2.
            IF SY-SUBRC <> 0.
              EXIT.
            ENDIF.
            APPEND ITAB2.
          ENDDO.
        ENDIF.
      ENDIF.
    *********************************PRINTING DATA *********************************************************
      LOOP AT ITAB2.
        WRITE :/5 ITAB2-VALUE.
      ENDLOOP.
    ****do reward if usefull
    Regards,
    vijay

Maybe you are looking for

  • Getting compilation error: java.util.Set is an interface. This interface is not supported.

    Hi Folks, Is there a limitation in BEA's web services implementation? I have a simple web service that returns an array of java objects. However I am calling another middle tier API that returns a Set. I convert this Set into array of object and retu

  • Check in VA01 Material is Discountable or Non Discountable

    Hi All,      I Have a requirement in sales order where the Discount is set in condition record for a customer regardless of materials entered in Sales order. However, if a material which is set as non-discountable in MM, No discounts will be applied

  • Strange behavior of GregorianCalendar

    Hi all, There�s a strange behavior of GregorianCalendar class which spend my time and my patience. After I discovered the problem, I run this code... System.out.println("Data1: " + gcTemp.get(gcTemp.DAY_OF_MONTH)); gcTemp.add(gcTemp.DAY_OF_MONTH, 1);

  • Error: Server not found or server may be down (FWM 01003) while login CMC

    Hi, Enviornment details: BOXI3.1 ORacle 10G Wnidows 2003 We are not able to login to CMC after installation of BOXI3.1. In task manager we see sia.exe but cannot see cms.exe running Verified the database connection, it is working fine Checked the TNS

  • Condition Z**** is missing in pricing procedure  ZSACLM

    Hi, The below is our pricing structure ZSN1 ZSL1 ZDL1 ZDN1 ZSLL ZSLA Sub total 1 ZLAA ZLAD Sub Total 2 ZOTA ZTRD Sub total 3 Net before tax  (123) Now, There 2 manual condition types such as ZSKK and ZLKK In some cases we enters both manual condition