Option button setting the value of digital field display

I have a Radio button with two elements, if the first button is selected, and then the numeric field should display as a monetary value ($x, xxx.xx) but if the second button is selected the numeric field should show as General numbers (x, xxx) with no decimal point.

Any help would be greatly appreciated.

Hello

You can change the display model at run time, but it requires a bit of scripting.

There is an example here: http://assure.ly/hVcqlj, if you have a look at the radio buttons on page 2. There is script in the click event that should help you.

Hope that helps,

Niall

Ensure the dynamics

Tags: Adobe LiveCycle

Similar Questions

  • How to set the value of a field from the LOV of another field.

    I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).

    The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.

    When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.

    I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.

    Can you please help? Thank you, Laura

    Laura,

    It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.

    Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.

    1 do the P_STATE ' select list submits the Page.
    2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
    3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".

    This is what will happen
    a. when the State is selected Page will be submitted
    (b) it will take the unconditional branch to himself and save the value of P_STATE
    c. the calculation process / fills the value of the P_PROGRAM element when the page reloads

    Kind regards

  • Show/hide subform based on the value of digital field

    Hi all


    I created my first form in LiveCycle Designer, but jammed with coding. Any help would be greatly appreciated.

    In the attached form, based on the value of field digital "number Total points" (calculated from the user of entry), I want two things to happen.

    The 'field' text should display different text depending on the points,

    • Less than 10 points is "beginner."
    • 10-14 is "intermediate."

    and just like that...

    If the total number of points is less than 10, 'Course for beginners' and 'Language' DropDownList must appear.

    Is there a way to do this? I tried posting 'If' 'else' statement, but it does not work. I looked in the previous discussions, but cannot find that anything will be based on the numeric value.

    You are looking for assistance.
    R

    The joint responds to your needs. The JavaScript on the TextField1 calculate event anime.

    Form1. #subform [0]. TextField1::calculate - (JavaScript, client)

    If (NumericField1.rawValue! = 0) {}
    If (NumericField1.rawValue< 10)="">
    DropDownList1.presence = "visible";
    DropDownList2.presence = "visible";
    this.rawValue = "beginner."
    }
    else {}
    DropDownList1.presence = 'hidden ';
    DropDownList2.presence = 'hidden ';
    If (NumericField1.rawValue< 15)="">
    this.rawValue = "middle";
    }
    else {}
    this.rawValue = "";
    }
    }
    }

    Steve

  • Is any way to allow the user, set the value of a null datetime-local field

    Dear all,

    During development, I found that it is not possible for the user to set the value of a field to enter a non-empty value to null datetime-local.

    Take for example, the monitoring scenario

    -User set a track the date and time for a task

    -L' user wants to erase track the date and time of the task.

    But the controller of out-of-the-box made by webworks offers no way for the user to clear the values in the input of datetime-local.

    I would like to know, is there additional information about this limitation, or actually, there is a way to do this?

    Any useful information would be appreciated on this topic.

    Kind regards.

    Lawrence.

    It is advisable to add a "Clear" next to your input control button?

    The input control only allows you to select values for the value.  'Nothing' is not a valid date.

  • Set the value to the field on another Page

    Hello

    I'm still a little new to this, through forums, that I managed to learn a lot of things. But I met another difficulty. I have

    I created a form in LiveCycle with two pages. On page 1, the fees are calculated by multiplying Field1 * Field2 and by adding the value of another. I managed to accomplish this with the following code:

    This.rawValue = Field3.rawValue + (Field1.rawValue * Field2.rawValue)

    As I said, that seems to work.

    To Page 2, I have a drop down list with five options. In the object > value tab I checked specify point values but has not changed a thing. If the value of the option range from 1 to 5.

    When option 5 is selected I want to set a value for a field that is Page 1. I tried with the following script:

    If (this.rawValue = 5) {}

    Page1.positionedSubform.field3.rawValue = 149;

    } else {}

    Page1.positionedSubform. Field3.rawValue = 0;

    }

    I'm now writer at all, but it seems to work somehow. Not that I want to :-).

    When I saw the PDF that it auto sets the value of Field3 and the drop to 149 field.

    I want to first Field3 on page 1 to 0 by default (entered in the object > field value tab 3) and set it to 149 if you have selected the option with the value of 5 in the drop down list on page 2.

    Any ideas?

    (Sorry for the bad explanation, don't know how to explain it better is if)

    Hello

    Did you use the calculate event in the drop-down list? If so, move the script to the output of the dropdown event.

    Niall

  • How I set the value of a dynamic text field row

    I have a repeated line form that contains a button and several text fields.  There is a text field (input field) above with some information I want to place in the table and several buttons that I want to read the value of and defined on the table.  Excuse me there are several questions I have and I use pseudocode to describe.

    Top shape resembles

    InputField

    | ButtonX1 | ButtonY1 | DescriptionX1 (read the text only field)

    ...

    | ButtonXn | ButtonY1 | DescriptionXn

    OutputRow looks like

    | ButtonOutput | OutputField1 | OutputField2 | OutputField3 |

    So, I want to do

    ButtonX1.click

    {

    OutputTable.OutputRow.addInstance (true) //this works - everything I have questions on

    OutputTable.OutputRow.OutputField1.rawValue = DescriptionX1.rawValue

    /*

    Question 1

    How should I address the location of each table to set a value

    Question 2

    How can I get the value of the description field in the same row as button and table

    I would like to say something to the effect of the OutputTable.OutputRow [?]. OutputField1.rawValue = this.parent.DescriptionX

    */

    OutputTable.OutputRow.OutputField2 = InputField.rawValue

    /*

    Same question as above - how can I specify a dynamic line - it's the syntax appropriate for obtaining the value of the input field?

    */

    OutputTable.OutputRow.OutputField3 is this. ButtonLabel

    /*

    Question 3

    How can I get the value of the label of the button to set the field

    There should be a lot of these buttons and buttons will be added - I'd rather set the value based on the label of the button to facilitate value - not requiring only not to change the code

    */

    Issue 4--unrelated to those at the top.

    Is it possible to build the first table

    | ButtonX | ButtonY | Description |

    from a XML file.  I've seen examples showing how to build if it's just data, but XML can be pushed into a form with the code to perform the above actions?

    Glad you figured it out... nothing wrong with doing it this way.

    Normally XML contains data and no default legends these xml files are bouond to the rawValue property. You can enable the dynamic linking and other properties of the object will be bindable (they appear as links) in the user interface. If you click on the link to legend an Assistant appears allowing you to bind the node in the XML file.

    Paul

  • How to enable and disable a button depending on the value of a field

    Hello experts,

    I enable and disable a button depending on the value of a field.

    I did the following:

    in a trigger of on_new_form_instrance I put the following
    begin
         
    go_block('OE_HEADER');
    execute_query;
    IF :oe_header.status = 'BOOKED' THEN        
          SET_ITEM_PROPERTY('CONTROL.ACTION',ENABLED,PROPERTY_FALSE);
    else
         SET_ITEM_PROPERTY('CONTROL.ACTION',ENABLED,PROPERTY_TRUE);
    end if;
    
    
    end;
    the problem is that it works but does not change when my header_status value is changed.

    You have to put the same code in when-validate-item trigger of: oe_header.status...

    and I think that this code should be trigger after query

    IF: oe_header.status = 'RESERVED' THEN
    SET_ITEM_PROPERTY('CONTROL.) ACTION', ENABLED, PROPERTY_FALSE);
    on the other
    SET_ITEM_PROPERTY('CONTROL.) ACTION', ENABLED, PROPERTY_TRUE);
    end if;

  • How to set the values of dependent choice list fields

    Jin

    I create a drop-down list in my page.
    This list of choices has values. (coming from the vo)
    What value I chose from the drop-down list that display certain fields value.
    for this I take the value of the drop-down list and set this values to these fields.
    its working fine.

    but my doubt is, at the time of the loading page, these fields (list selection dependent fiedls) defaulitly contains a value
    (this is one of the value of the vo)

    But I don't want to see any value at the time of the loading of the page
    Here, contains values null or empty fields at the time of the loading of the page.

    Hello

    Instead of linking these text fields display attributes... create transient attributes in VO and link these transitional
    the attributes of these text fields.

    Now you load the page set the transient attribute ' ' using row.setAttribute("Attribute","");

    In addition, as the Pickist value is changed, and then also, you can set the value as you wish...

    This will allow to permanently solve the issue.

    Thank you
    Gerard

  • How to use an option button in the report of the IR to redirect itself to view another report

    IHH team, I have a requirement where I have an IR report option button. By clicking this radio button, another report appears under the main report with few other details of the selected item. The idea was to have a zoom of report as seen in the Group of MS Excel.  However, I am stuck because I don't want the user to press the "submit" button each time after selection of a radio button. I want the result to Report2 to change on the selection radio button in report 1.

    Please notify.

    Kind regards

    Samar

    for example

    Report1 details

    RB col_id text1 text2 Text3

    1 . abc erd 45

    2 ghj dfgrt 67

    Suppose the user selects the first option button, the page displays another report with details below the main report

    Report1 details

    col1_id text1 text2 Text3

    RB1 1 abc erd 45

    2 RB2 ghj dfgrt 67

    Report2 details

    col1_id col2_id text1 text2 Text3

    1 11 ihj pkpk 78

    1 23 ljl kpk 45

    user6255521 wrote:

    Please update your forum profile with a real handle instead of 'user6255521': Video tutorial how to change username available

    When asking a question, always include the information referred to in these guidelines: How to get the answers from the forum

    I was able to achieve using the linl. I created a link on the col_id and it redirected to itself after you set the value of col2_id. I also changed the style of the button link and so col1_id looks like a button.

    However, I was interested to know if we can achieve this with a radio button and use the update form the Report2.

    You mean like this? It is very simple to implement using dynamic measurements.

    1. Add a column of radio group to the main report:

    select
        apex_item.radiogroup(1, d.department_id) rbg
      , d.*
    from
        oehr_departments d
    

    APEX 5.0, apply a static ID "rbg" to the column of radio group.

    2. create a hidden page unprotected element to maintain the value of the selected radio button to use as a filter in the detailed report. In the example, it is P31_DEPARTMENT_ID.

    3 refer to the element of filter in the WHERE clause of the report detail:

    select
        *
    from
        oehr_employees
    where
        department_id = :p31_department_id
    

    Set the Items property of the Page to send in the definition of report P31_DEPARTMENT_IDretail area.

    4. create a dynamic action of change on the Group of radio buttons:

    Event: Change

    Selection type: jQuery Selector

    jQuery Selector:td[headers="rbg"] input[type="radio"]

    Real Actions

    Seq: 10

    Action: Set value

    Type of value: Expression of JavaScript

    JavaScript expression:$(this.triggeringElement).val()

    Selection type: Article (s)

    Point: P31_DEPARTMENT_ID

    Seq: 20

    Action: Discount

    Selection type: Region

    Region:

    The best way to get help with something like that is for you to reproduce the problem with an example on apex.oracle.com. Set up as much as you can before posting here and when you post the question, share identification information of developer comments for the workspace so that we can see the example and work the solution directly.

  • ([JDev12c, ADF] 1) how to get the value of a field of the line currently selected in question 2) af:table: flowScope

    Hallo,

    How can I get the value of a field in the row that is currently selected in an af:table?

    I need to pass this value to a setCurrentRowWithKeyValue who took the record to display in another (by a button) called page:

    Limited workflow

    Page1 - goToPage2-> setCurrentRowWithKeyValue-> PAGE2

    I defined a managed bean flowScope for the workflow in which I created the variable 'CodeToSetPage2Row '.

    I will store the value of the field for the selected line in this variable so that I can move on to the setCurrentRowWithKeyValue.

    Could be this method OK? Ore is there any good practice to achieve this goal?

    The managed bean flowScope used to go to the stubborn task may take some values from the outside?

    The workflow defined will be executed in a dynamic region.

    Thank you

    Federico

    Federico, you cannot use a flow variable scope for this page. The region has no access to the bean. You must use a workflow for this parameter.

    To get an attribute of the currently selected line you make slide data vo of control on the page attribute. This will create a link attribute for this attribute. Once this link exists, switch to source mode and remove the component that you do not want.

    The framework passes the value of the current row in this affair of the attribute (table should be in single selection mode).

    Click on the button, you switch the binding of the attribute for the setting of task flow using a setPropertyListener.

    In the workflow, you call the setCurrentRowWithKeyValue with the parameter of workflow as the default activity.

    Timo

  • How can deselect an option button in the group 'Size', using Applescript to print several pages at 100%

    I hit a serious problem to update my application to use Adobe Acrobat DC 2015.

    I try to use the graphical interface to print multi-page documents but do not uncheck an option "Shrink oversized pages"button, checking a different 'Real size'button, in the same group. The two buttons are checked, and printing is by default the Junk button, print several pages on a sheet, instead of 100%.

    Anyone know of a different way to uncheck that darn button, or better yet, how to direct print the document. I can't find any online documentation of printing direct formatting.

    I need to print all pages, to 100%, with a particular printer, the "theLargePagePrinter". In addition, we use Pitstop Pro 13.

    TIA,

    Concerning

    Santa

    say application "Adobe Acrobat" to Activate

    the shell script ("sleep 0.2")

    say application 'System events' to say process "AdobeAcrobat.

    the shell script ("sleep 0.2")

    try

    with keys 'p' command down

    end try

    the shell script ("sleep 0.2")

    try

    click 1 of the Group pop up button 1 of the 'Print' window

    end try

    the value x to 0

    Repeat until there are menu 1 of popup button 1 of the Group 1 of window 'print '.

    the shell script ('sleep 0.1')

    the value x to x + 1

    if x ≥ 20 then exit repeat # wait 2 seconds

    end Repeat

    the shell script ("sleep 0.2")

    try

    click menu item (my theLargePagePrinter) of 1 of 1 of Group pop up button menu 1 of the 'Print' window

    end try

    the shell script ("sleep 0.2")

    try

    click on radio button "All" of the Group 2 of window 'print '.

    end try

    try

    click on CheckBox 'Size' of the Group 3 of window 'print '.

    end try

    the shell script ("sleep 0.2")

    try

    try

    say 1

    say (there are (box option "Shrink oversized pages" of the Group 3 of window ' print')) as text -< 'true'

    end try

    try

    2 say

    say application 'System events' to display the dialog box ()get each attribute of option button of the Group 3 of 3 window 'Print') as text -< fails

    say 3

    end try

    Repeat while value of radio button "Shrink oversized pages" of the Group 3 of window 'Print' is 1

    the shell script ("sleep 0.2")

    click on radio button 'Real size' of the Group 3 of the window 'Print '.

    # the value value of radio button "Shrink oversized pages" of the Group 3 of window 'Print' to 0 -< cannot set the value

    the shell script ("sleep 0.2")

    end repeat -< maintains a loop

    end try

    the shell script ("sleep 0.2")

    try

    click on radio button 'Real size' of the Group 3 of the window 'Print '.

    end try

    -more than < code >

    tell the end

    tell the end

    In the Acrobat SDK kit, locate in the JavaScript section and at the IAC-> section AppleScript to learn how to run a JavaScript via AppleScript. You have the Acrobat SDK kit?

  • How to set the value of MessageTextInput incontroller

    Hi all

    I want to put the value of the MessageTextInput field. The requirement is like two form field when the user n values in total there
    two fields have to get filled in third filed after the submit button pressed these fields aren't of the VO. I'm able to collect the values of two fields but unable to name the third files which is MessageTextInput.

    concerning
    Nilesh

    Nilesh,

    The best approach is to use the objects in view.

    Anyway since you don't use it, you can get the handle to the MessageTextInput bean and set values

    OAMessageTextInputBean textBean = (OAMessageTextInputBean) webBean.findIndexedChildRecursive ("text entry Id");
    if(textBean!=null)
    {
    textBean.setValue (pageContext, value);
    }

    I guess you know the value of 'value' to be specified in the field above.

    Concerning
    Sumit

  • Set the value of the parameter in the call sequence by programming

    Is there a way to set the value of the parameters of a call sequence with a vi with the context of the sequence in the order which is called? Cases not the same subseqence with a vi in the mainsequence maybe?

    In your VI, I think you should be able to set the value of Step.TS.SData.ActualArgs.paranumber.Expr to the value of the setting that you want. (This property is visible in the Variables pane, only if you have configured the Options of Station to display hidden properties). Note that the purpose of the step should refer to the sequence of your call step.  Also, remember that the property represents an expression, so if you want to pass the value 33, you must enclose the value in quotes ("33").

    Jeff

  • Setting the value of a table of ActiveX control

    When controling a VI through ActiveX, how is possible to set the value of a table control?

    With digital controls, I have a problem: I just use SetControlValue and it works well:

    til SetControlValue ('y', 4) for example.

    However, in trying to do the same thing with a table, the control's value becomes an empty array:

    til SetControlValue ("arr', [3-4-5]") for example.

    What is the right way to do it?

    Hi Calvin,

    Have you tried passing a string and convert it to an array entry?  You can also try to use a 'matrix' control, rather than a table, as they are handled a little differently.

  • Set the then visible invisible field

    This may seem a stupid question, but I can't get this to work! I want to add a field... lets say a BasicEditField and it is invisible at the moment when it is added. Click a button set the visible editField! How to do this please?

    you add the field when you want it to be visible.

Maybe you are looking for

  • What happened to my menu item View Source?

    I'm sure I used to be able to view the encoded content of the web pages in the past. I just tried to do this with a webpage and my selection point 'View Source' in the menu 'View' is over. I believe that Firefox used to access this feature? I have us

  • define the string as "empty" or "nothing".

    Hello I know that one can define a number such as "NaN" - that's great, because it's a great way to check the weather, the variable is still filled. But is possible to do something similar with string? Something as string = "empty" or "nothing"... Th

  • c ++ equivalent code starts a QML?

    I've been watching this blog here: http://bbcascadescode.Tumblr.com/post/38998702671/invoke-share-for-BB10 But I don't really know QML so I'm having a time difficult conversion to C++ code cascades.  Can someone with this? This is the part that is st

  • LifeFrame upside down

    My lifeframe camera is upside down and the go zone is to remedy does not allow me. I downloaded on the site of asus lifeframe. says something about the compatibility issue that he has tried to run on Windows XP but its not completely install the webc

  • Need to do clean install or find driver

    I've upgraded to WIndows 7 and now the PC can not find the driver for my camera Kodak Easyshare M381 and Kodak stopped all downloads for this device as of the 05/09/2012. I have the CD and box original and tried to reinstall, remove and install, repa