radio button based on restricted to update or insert values

Teams of expensive forms

from my requirement of business I have 3 Radiobutton below

(1)

(2) N

(3) B

(a) do not allow any new records are created with the value of B (only Y and N are)

valid choices).

(b) do not allow any update of Y or N to B.

Based on the condition how to stop or limit the time inserted documents (it is possible with when-validate-trigger point)

can you please help for this

Thank you

VSM

I don't know why don't you try it. I guess you meant when-validate-item trigger?

Something like that? This is sorta pseudocode.

PS, you could also put the code in the before insert triggers and before update.

This requires that this field will never be null in the database.

declare

VARCHAR2 (1) existing_value: = null;

Start

/ * record exist with this key and Y or N in this field?

Select max (that_field) in currval from sometable where primarykey = this_one;

If: MYBLOCK. MY_RADIO_GROUP' = 'B' and (existing_value = 'Y' or existing_value = 'n') then

print message that you can't update of Y or N to B

raise form_trigger_failure

end if;

/ * assuming if existing_value is null means that the folder does not exist * /.

If: MYBLOCK. MY_RADIO_GROUP' = 'B' and existing_value is null then

print the message, you are unable to insert record with B in this area.

raise form_trigger_failure

end if;

end;

Tags: Oracle Development

Similar Questions

  • help on the use of dynamic action to update the items in a table (more precisely, the radio button) based on the collection

    Hi everyone, I posted this question in the past and made huge strides with the help of Denes Kubicek: https://apex.oracle.com/pls/apex/f?p=31517:294:115851992029365: based on my previous question posted: https://forums.oracle.com/forums/thread.jspa?threadID=2537494

    I'm fighting with a single element in my tabular presentation.  There is a radio button.  The choices all seem correctly, but the value is not saved in the collection (and therefore not recorded in the table).  All the other elements in the form of tables to record properly.

    Here's what I have for the query.   This is element c024 (which maps to;) ("F03'), which is defined as a radio based on an existing LOV LOV.

    Currently I have:

    2 items on the page:

    P110_ID

    P110_VALUE

    Dynamic action called COLUMN of CHANGE:

    event: CHANGE

    selection type: jQUERY Selector

    jQuery:

    Select jQuery = input [name = "f03"], select [name "f08"], select [name = "f09"], input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], select [name = "f40"], input [name = "f21"], input [name = 'f22'], input [name = "f23"], input [name = 'f50']

    scope of the event: Dynamics

    real action #1: set the P110_ID javascript expression this.triggeringElement.id

    real action #2: set the P110_VALUE javascript expression this.triggeringElement.value

    action 3: run pl/sql code

    declare
      v_member number;
      v_seq number;
    begin 
      v_member := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
      safis_collections.update_column(v_seq,
                                    v_member,
                                    :p110_value);
    
    
    

    refreshment area true creation #4: LANDINGS_COLLECTION

    the tabular presentation is based on the query:

    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
    decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 hms_flag,
    decode(c050,'Y',apex_item.checkbox(21,'Y','id="f21_'||seq_id||'" style="background-color:#FBEC5D; " onClick="alterYes('||seq_id||');" onKeyPress="alterYes('||seq_id||');"',c021),'N','N/A') FinsAttached,
    decode(c050,'Y',apex_item.checkbox(22,'N','id="f22_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterNo('||seq_id||');" onKeyPress="alterNo('||seq_id||');"',c022),'N','N/A') FinsNotAttached,
    decode(c050,'Y',apex_item.checkbox(23,'U','id="f23_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterUnk('||seq_id||');" onKeyPress="alterUnk('||seq_id||');"',c023),'N','N/A') FinsUnknown,
    decode(c050,'Y',apex_item.textarea(28,c028,3,null,null,'f28_'||seq_id,''),'N','N/A') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    decode(c020,'Y',
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;"',null,null,null,'f40_'||seq_id,''),
    'N','N/A') HMS_AREA_CODE,
    c020,c050,
    decode(c020,'Y',
    apex_item.text(41,TO_NUMBER(c041),5,null,null,'f41_'||seq_id,''),
    'N','N/A') Sale_Price
    from apex_collections
     where collection_name = 'SPECIES_COLLECTION' order by seq_id
    
    
    
    
    
    

    I noticed the following:

    When I change the column C011 (price) the following values are defined in dynamic action:

    P110_ID = f11_1

    P110_VALUE is everything that I change the price.

    When I change the column C024 (hms_flag), the following values are defined:

    P110_ID = f03_0001

    P110_VALUE = change everything what I hms_flag to.

    the region is updated in my dynamic action, and change of hms_flag does not take.  I tested the SQL query that generates the value of v_SEQ in the dynamic action.   Both a change of price and HMS_FLAG, it seems valid

    Select ltrim (substr(:p110_ID,5,4),'0 ') in the double v_seq;

    If f11_1, v_seq: = 1

    If f03_0001, v_seq: = 1

    Thank you!

    solved.  sort of.

    domain c024 references f03.

    dynamic ACtion, step 4 calculated v_member as a substring of P110_ID... and in all other areas, the column and the field (fxx) displayed the same value... otherwise c024.

    I'm not exactly sure how solve it, but see the problem.

  • Hide the individual fields of a group (radio button) based on another field

    Looked through the archives, but couldn't find the answer, who worked... THANKS in advance.

    A form that contains a radio 2 field (named funding) group - 'Cash' or 'other '.

    The group following (FinancingType), which is independent now, is a group of radio buttons of the 5 field - "Cash", "FHA", "GO", 'Classic' and 'other '.

    "Cash" is selected in the first group, I want to [FinancingType]. Button of Cash to choose (what I work via a trigger MouseUp)

    If (event.target.value == "Cash).

    this.getField("FinanceType").value = 'Cash ';...

    However, I want the other 4 fields greyed out or hidden.

    In addition, if the radio button "Other" is selected, I want to [FinancingType]. Button of cash to be gray or hidden.

    (ps. I know just enough coding to get in trouble!)

    Yes, you can. The code would be:

    this.getField("FinanceType").readonly = true; or false, change it back

  • JavaScript to set radio button choices using the drop-down list box value.

    I use Adobe Acrobat Pro DC version 2015.016.20039 on a MacBook Pro OS X El Capitan version 10.11.6.

    I have a set of named CitBox radio box choices. I'm defining what choice is selected from out of a drop-down list named AppCitizenship box.  Both of them have six choices with values of 1, 2, etc. (I thought having the same values would make easier the translation from one to the other). Thanks in advance.

    If you used the same values, then it is pretty easy. Just use this code as the validation script custom field drop-down list:

    this.getField("CitBox").value = event.value;

  • Calculation of the numeric fields radio button and checkbox-based response

    I am to change a form that was created by someone else.  I added checkboxes and radio buttons based on the need to form. I would like for the amount of check calculate automatically based on the selection of a radio button.  I've implemented some numeric fields to play with adding the amounts and placed them in the field 'Amount to check', but I can't seem to calculate.  Once I have to calculate correctly, I need to know how to automatically enter a number in the appropriate digital field based on the option button or check box selected.  Here is a picture of what I've put up.  Help, please!  I read all the forums, watched the videos and tried everything.  I'm so frustrated.

    MemberStatusHelp.jpg

    Don't know if I have the layout if correct me if Im wrong. I assume you have a radio button group on the top line for the first 3 check boxes and boxes (when the user selects one) for the following 2 lines (where the user can select independently of the other 3 above) with a final calculation at the end to check the amount field.

    You can either place the code on each change of each checkbox/radio button event to recalculate or just do it on the final checksum field. I tried putting a calculate on the last field to check the quantity, and it seems to do what it takes.

    Try this in the case of calculating the amount of check field

    var membershipAmount = 0;
    if ( (RadioButtonList.rawValue == "2") || (RadioButtonList.rawValue == "3") )
    {
        membershipAmount = 35;
    }
    
    if (CheckBox1.rawValue == "1" )
    {
        membershipAmount += 15;
    }
    
    if (CheckBox2.rawValue == "1" )
    {
        var txtAmount = TextField3.rawValue;
        var amt = 0;
        if ( (txtAmount != null ) && (! isNaN(txtAmount) ) )
        {
            amt = parseFloat(txtAmount);
        }
    
        membershipAmount += amt;
    }
    
    this.rawValue = membershipAmount;
    
  • How to show or hide the region of the shuttle during the click on the radio buttons?

    Hello

    I'm new to JDeveloper. Here is my requirement.

    1. create 2 radio buttons: Yes and no and default displays "" selected radio button.

    2. create a region of shuttle with select query in VO.

    Query is:

    Select 'No group' for_user, for_pkg double null

    Union

    Select "Company" for_user, for_pkg "SEGMENT1" double

    Union

    Select 'Rental' for_user, for_pkg 'SEGMENT2"double

    Union

    Select 'Cost center' for_user, 'SEGMENT4' double for_pkg

    Union

    Select 'Project' for_user, 'SEGMENT5' double for_pkg

    Union

    Select "Intercompany" for_user, "SEGMENT8" for_pkg of the double

    order by nulls first for_pkg

    3. initially hide the region of the shuttle during the loading of the page.

    4. click on the radio button 'yes', display area of the shuttle with values at the head of list of query VO and empty list leak.

    5. new click on the 'no' radio button, he must hide region and so screen shuttle shuttle dynamically according to the selected option button.

    But my problem is I am able to hide area shuttle when the page loads at the beginning and after that, when I'm clicking 'Yes' radio button, is just to display area shuttle empty without value in the main list and once when I'm clicking 'No' radio button, it should hide area shuttle but he's not hiding. I used the RPP to show or hide the area Shuttle under certain conditions. I use JDev 10.1.3.3.0 version as we Oracle EBS version 12.1.2 in our society.

    Please find the attached draft and suggest me proper with examples of sample approach.

    Monika,

    I tried to get this working in the lower version of Jdeveloper and looks like it works.

    Can you make the change below and see what happens.

    1. modify your query to VO as below: (I replaced null with SEGMENT0)

    select 'No Grouping' for_user, 'SEGMENT0' for_pkg from dual
    union
    select 'Company' for_user, 'SEGMENT1' for_pkg from dual
    union
    select 'Location' for_user, 'SEGMENT2' for_pkg from dual
    union
    select 'Cost Center' for_user, 'SEGMENT4' for_pkg from dual
    union
    select 'Project' for_user, 'SEGMENT5' for_pkg from dual
    union
    select 'Intercompany' for_user,'SEGMENT8' for_pkg from dual
    order by for_pkg
    

    2. place VO execution to the processFormRequest:

        public void processFormRequest(OAPageContext pageContext,
                                       OAWebBean webBean) {
            System.out.println("In process Form Request");
            super.processFormRequest(pageContext, webBean);
            OAApplicationModuleImpl appModule =
                (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
            String eventParam = pageContext.getParameter(EVENT_PARAM);
            System.out.println("eventParam: " + eventParam);
            if ("showHideShuttle".equals(eventParam)) {
                //  appModule.invokeMethod("deletetrailing");
                System.out.println("Inside If");
                OAMessageCheckBoxBean messageCheckBoxBean = (OAMessageCheckBoxBean)webBean.findChildRecursive("checkBoxBean");
                System.out.println("messageCheckBoxBean : " + messageCheckBoxBean);
                String messageCheckBoxBeanVal = (String)messageCheckBoxBean.getValue(pageContext);
                System.out.println("messageCheckBoxBeanVal: " + messageCheckBoxBeanVal);
    
                if ("Y".equals(messageCheckBoxBeanVal)) {
                    OAViewObjectImpl shuttleVO1 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO1");
                    if (shuttleVO1 != null) {
                        shuttleVO1.setWhereClause(null);
                        shuttleVO1.setWhereClauseParams(null);
                        shuttleVO1.executeQuery();
                        System.out.println("Executed Query : " + shuttleVO1.getQuery());
                    }
                    OAViewObjectImpl shuttleVO2 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO2");
                    if (shuttleVO2 != null) {
                        shuttleVO2.setWhereClause("1=2");
                        shuttleVO2.setWhereClauseParams(null);
                        shuttleVO2.executeQuery();
                        System.out.println("Executed Query1 : " + shuttleVO2.getQuery());
                    }
                }
                String[] name = { "RenderAttr1" };
                String[] val = { messageCheckBoxBeanVal };
    
                Serializable[] params = { name, val };
                Class[] paramTypes = { String[].class, String[].class };
                appModule.invokeMethod("setXXCustomPVOValues", params, paramTypes);
    
            }
    
        }
    

    3. move Spel link shuttle Bean for the region of header above.

    Some useful links for the shuttle Bean:

    Technology blog based in Java of Sushant: 13. Area of application OFA shuttle

    Framework OA Blog: control of the shuttle as part of OSTEOARTHRITIS

    See you soon

    AJ

  • programming of the radio buttons

    Right now I am able to choose between 'Keep' and 'Correct' and between 'Right' and 'Left', but I want to make is that if I choose the 'Proper' option, I will have to choose between "left and"Right"(although the 'right' and 'Left' should not be invisble).» I have no experience in programming JS, then I would be really happy if you could help me by using a simple method.Clipboard01.jpg

    Another unrelated question: as you can see I have a highlighted text box where I enter the mm. The underscore is very low, because only in this way the text typed would be aligned in the 'left' and 'mm '. Is there a way to sensitize the underline without room for the typed text?

    Thanks in advance

    Hello

    Look at this example that shows how to use the presence property to show and hide objects: http://assure.ly/h7whb8.

    There are also a few examples here:

    https://Acrobat.com/#d=ALebgueDXjewHjGyYRdrmw

    https://Acrobat.com/#d=FXLq025O2C0aDMh9YqpH1g

    Basically, you put the following script in the click event of the group radio button exclusion:

    if (this.rawValue == "Correct") {
         direction.presence = "visible";
    }
    else {
         direction.presence = "invisible";
    }
    

    It is on the basis of option buttons left and right being inside an exclusion of called "direction" radio button group Also if you have specified a value in the object > range of liaison for the option button, the script would need to test this value.

    You can adjust the margins textfield in the page layout palette, so that the underlining is lifted up. Trial and error.

    Niall

  • 2 sets of radio buttons in a form-complications

    Hi all

    I've been looking around for code to assist me in building a form. I have developed the form and just a few problems that I can't understand.

    In a question on the form, the user can select from a set of radio buttons and select one of the five options. Then I have a second set of option buttons that the user can choose only one option. My problem is that I don't want the user to be able to select from the second set of option buttons if they chose a certain option in the first set. An example to clarify my problem:

    You have completed the training:

    Yes

    Half

    None

    So if the user selected Yes in the first set of option buttons, I want the second set of option buttons to now be selectable:

    The training was:

    Up-beat and nice

    Snoozer

    I use are very different than the latter, but it's just a simple sketch. So, how can I do the second set of radio buttons not selectable until the user selects a specific option button in the first set of option buttons.

    Thanks, I really appreciate the help!

    If you have an exclusion group called "completion" with three elements 'Yes' radio button 'Half' and 'None' and a second radio button exclusion group called "completion", go to the value of 'feedback' tab and set the type to "readOnly".

    Add the following script to the "end"... change event

    Form1.Page1.Subform1.completion::change - (JavaScript, client)

    If (this.rawValue == 'Yes') {}

    Form1.Page1.Subform1.feedback.access = "";

    }

    else {}

    Form1.Page1.Subform1.feedback.access = "readOnly";

    Form1.Page1.Subform1.feedback.RawValue = "";

    }

    If the user selects "Yes", the "feedback" group is available for selection. If the user does not select 'Yes', 'feedback' is reset and readOnly.

    Steve

  • Select a radio button via ActionScript

    I am return a dynamic value from database and select one of the three radio buttons in a radio button group. I'm back three integer values from the database, they are 0,1 and 2. If 0 is returned I was to select the radio button of larry, 1 is returned I want to choose the radio button moe etc. Here is my group of radio buttons:

    < mx:RadioButtonGroup id = "radStooges" / >
    < mx:RadioButton groupName = "radStooges" id = "larry" value = "Larry" label = "Larry" / >
    < mx:RadioButton groupName = "radStooges" id = "moe" value = "Moe" label = "Moe" / >
    < mx:RadioButton groupName = "radStooges" id = "curley" value = "Curley" label = "Curley" / >

    Does anyone know how to do this? Thank you

    Use the selectedValue property of the RadioButtonGroup, for example:

    radStooges.selectedValue = 'Moe '.

    This will select the radio button of Moe.

    You can also use the selection like this property:

    radStooges.selection = Department of education;

  • need help on radio buttons

    Hello!

    I have some problems to understand the option buttons. I created a static list STATIC2:yes; y, n; n under default valur I filled n.
    Run the application, I expected the button not to be selected for non-performance, but no button is selected.
    Can someone explain this behavior to me?

    Thank you
    Concerning
    Pietja

    Hello

    Generally this should not happen. Make sure that there is no beginning or end space in the default value.

    To check if the default value is entered by you is not the same as that defined in the static value...
    Change the Radio button-> tab select LOV-> select YES display additional value. If the option other than Yes, no additional radio or % then... you enter the right box default value

    Kind regards
    Shijesh

  • Change the background fill color based on Radio button selections

    Hello

    I am very new script in LC, so I hit a wall on my last form. I am creating a form with a scale of 'leikert-like', however one of the stipulations (from my boss) is in this context of buttons are to be filled based radio which button is selected.

    For example, Question 1 has 4 radio buttons to choose: poor, fair, good, great. If the person completing the form selects poor, I wish the poor to fill background color. If someone chooses right, I would like to than this background color to be filled, as well as the background of the poor. Good selection would fill the colors of good, fair and poor; and selecting the big would fill the four colors.

    Someone has ideas of how / if possible? In my first tests, I got the button itself to change the colors, but not the background fill (which can be changed manually on the border palette).

    Any ideas would be much appreciated. Thank you!

    Aaron

    Here is the code that you can use in the event of modification of the ExclusionGroup (title default RadioButtonList) object. It is the parent of each individual option button object.

    for (var i=0;i
    

    This also assumes that the value of each option button is sequentially numbered from 1 to however many boxes option you have.

    Now, here's the thing. I'm assuming that each radio button has a different color. You might code for the colors yourself in JavaScript, but I manually chose the colors through UI Designers. Once all the colors of radio buttons have been defined, select a radio button and go see > XML Source. Where we see the element, add the presence of the attribute = "hidden". Do this for each option button. Here's what I mean:

                      
                      
                         
                          
                            
                         
                      
                      
    

    Kyle

  • calculation script based on the value of a radio button

    I wonder if anyone can give me help. I'm doing a calculation script that I can insert in a number field that will calculate only when a radio button is checked. I'm doing an estimate sheet when some check boxes or radio buttons are selected (such as the moving of furniture, pulling up old flooring), it will calculate a supplement based on this selection. Any help would be appreciated.

    Hello

    Paul is right, it's probably something small that is causing the script to fall. Make sure that the things you talk about in your script are correct (to the right name and the full reference in the event of different subforms).

    There is also a syntax button to tick at the top of the script editor. If you click this button, he can identify the problem.

    In which case it might be useful, here is a sample: https://acrobat.com/#d=bUfCkHbTaU0 * GD6Y7pv41w

    Good luck

    Niall

  • Event based control radio button

    Is there an easier way to write this code and keep the same functionality?

    Just use number of table of Boolean

    The method works if you don't allow zero points NOTE: do not replace the Add 1 increments.  We use the constasnt U32 to compel the radio button enum or vice versa just incrment the enum; enum (0.1) ++ = (1, 0) enum and enum (0.1) + 1 = U32 (1,2)

    If you do not allow that zero elements remove the addition because "no selection" becomes 0

  • Adobe Java Script to change the field of reading to write based on radio button selection

    I created a form the question asked is "Do we have a credit limit?" the user can select a Yes or not by using a radio button.  If the user selects Yes we do not have a credit limit that I want the text field "CreditLimitAmount" to change the read only entry.

    Here is my code, but it does not work, someone would be able to see what I'm doing wrong?

    GetField ("CLYes"). Value
    If {(event.target.value==="Off)"}
    f.ReadOnly = false;
    f.fillColor = color.white;

    } else {}

    f.ReadOnly = true;
    f.FillColor = Color.Gray;
    }

    You have it backwards. Use this code as your radio buttons script two MouseUp and remove the code that you have applied to the text field:

    var f = this.getField("CreditLimitAmount");
    if (event.target.value=="CLYes") {
        f.readonly = false;
        f.fillColor = color.white;
    } else {
        f.readonly = true;
        f.fillColor = color.gray;
    }
    
  • Print multiple lines of page based on radio button choice group

    Hello... I have a PDF file that is a form of group request, consisting of 6 distinct forms. On the first page, I have 6 groups of option buttons "Yes / No".

    If the radio button for one or more of these groups is selected as 'Yes', then when button click Print (on the page) then the appropriate page range prints.

    It is desirable but not essential for them to be printed in a print job.

    The Code I've been adjust to try to get the result is less but I have myself linked in knots now and any help would be greatly appreciated:

    Thank you very much

    
    
    //<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>
    
    

    In fact, the last part should be something like this (I tried to change the code, but it is buggy):

    If {(printRanges.length>0)}

    pp var = this.getPrintParams ();

    pp.interactive = pp.constants.interactionLevel.full;

    pp.printRange = printRanges;

    This.Print (pp);

    } else app.alert ("no page ranges are selected.");

Maybe you are looking for

  • A stop error message Skype work.

    Hi guys, I had a problem with my Skype application. Wen I open Skype just freeze and said "Skype has stop working. And the error in the event viewer: Name of the failing application: Skype.exe, version: 6.18.59.105, time stamp: 0x53b40009The failed m

  • Photos library download to iCloud: it is stuck or just really slow?

    I am trying to load a very large photo library on iCloud and am trying to determine how far along is progressing or if it is stuck. in Photos, I can go to preferences-online iCloud where he says: "now uploading xx, xxx files...". ».  However, this nu

  • How to upgrade a driver automatically in Windows NT by using the batch file

    I use the devcon tool to update a Windows XP driver, but unfortunately it does not support Windows NT. So I'm looking for a similar tool for Windows NT. Does anyone know any tool / or script that would update a driver via file/command line in Windows

  • Access denied to send an email

    I get the following error and I am unable to write and send or forward e-mails. Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152 .NET CLR 3

  • Cannot access BIOS when OS disk encrypted w / Bitlocker, starting on the USB key is not unlock disc

    Hello I enabled Bitlocker on my Acer Aspire 5315. The system partition is encrypted and the data partition. My motherboard doesn't have a TPM chip, so I opted for the unlock with a USB key. When I start the PC or wake them from their hibernation, the