Defaulting a field to another field?

When a user keys in the Customer field, I would like the
Description to default to the same value (and display
when the user leaves the Customer field.
Using the on blur or on change, code similar to the following does not work:
portal30.inventory.description := portal30.inventory.customer

Wrong Forum I think - this is the Oracle Forms Forum not the Portal Forms forum.

Similar Messages

  • Summing a field if another field = scrap

    I'm working on a SSRS report where I need to sum a field if another field=scrap. I have multiple fields with 2 parameters and a sum on 1 field already in this report. I have tried to make it work a couple of other ways(expressions and query) but have
    had no luck. Any suggestions would be appreciated, since I'm new to sql and visual studio.
    Shi Rumptz

    I'm working on a report where I need to sum a field if another field=scrap.
    Hello,
    Did you want to get the sum value in the total row in the report? Which report did you designed?
    If you are use SSRS report, you can try to use the following expression to get the specify value:
    =SUM(IIF(Fields! product_code.value='scrap', Fields!desired_qty.value, 0.0),"Scope")
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • While editing one field disabling another field

    Hi there,
    I'm on JDEV 10.1.3.2.0 and JHS 10.1.3.1.26.
    I have a question about filling in a field on a screen.
    Is it possible when a user inserts text in one field that you disable another field dynamically so that the user cannot access this other field anymore ?
    regards,
    Marcel.

    Marcel,
    You may want to ask on the JHS forum, but it's certainly possible without JHS. Just set autosubmit=true on the first field (and set its ID property too), set the partialTriggers property on the second field to the ID of the first field, and set the disabled property of the second field to something apropriate.
    You could also do this with autosubmit=true on the first field and use a valuechangelistener to write some code in a backing bean to disable the second field.
    Both approaches work.
    John

  • Populate Combo Box field into another field

    I've got a form (form1) based off a table (table1).  In the form I have a field from table1 called
    bagtype that is a combobox type field with a row source from another table with two fields that show up in the drop down box when selected.  When I select a field from the dropdown box only the first field populates the actual form field
    (and underlying table) which is what I want.  What I'd also like to happen is the second field of the combo box that doesn't populate the bagtype field is for it to populate another field (from table1) on the same form and store that
    value in the underlying table as well.  The other field in the form is called
    AStd.   
    TAK

    Hi,
    you need 1 line of VBA code in the AfterUpdate event of the combo box:
    Me!NameOfTheTargetFieldOrControl = Me!BagType.Column(1)
    The column index is zero based i.e. 0 = first column of the combo box, 1 = second column etc.
    cu
    Karl
    Access FAQ (de/it): donkarl.com
    Access Lobby: AccessDevelopers.org

  • Hied field, if another field value = "" or 0

    Hello I am trying to show and hide a field based upon another fields value.
    However I want this field to be hidden if the other field value is either blank " " or "22"
    Here is what I am working with,
    if (this.getField("Planting_Days").valueAsString=="") event.target.display = display.hidden;
    else event.target.display = display.visible;
    I want to do something like this.
    if (this.getField("Planting_Days").valueAsString=="" or "22") event.target.display = display.hidden;
    else event.target.display = display.visible;

    Thanks,
    Now what if I wanted to hide a field if two or more separate fields meet my designated numbers?
    Something Like this.
    if (this.getField("Planting_Days").valueAsString=="1" and this.getField("Crop_Selected").valueAsString=="corn" and this.getField("Season_Selected").valueAsString=="Summer") event.target.display = display.hidden;
    else event.target.display = display.visible;
    I only want this field to show if all of the three fields are as designated.

  • Adding value of one field into another field and should  display it

    Hai Experts,
    i have problem try help me plz,
    my problem is:
    i have some fields like A,B,C,D,E.in my ddic table and i designed a screen with same fields
    so here i want have values on gallons
    ex : think
    E = order value
    C = gallons
    and when i enter each value in order value it should go sum with gallons and should display on screen ,it should not save in table,when i open screen next time it should not show any values

    Hi  ,
    U Can try the   UserEXIT  PBAS0001 component  EXIT_SAPFP50M_001 . The code in the Include Program  ZXPADU01  looks  something  like  this .
    DATA: I0002 TYPE P0002.
      CLASS CL_HR_PNNNN_TYPE_CAST DEFINITION LOAD.
      CASE INNNN-INFTY.
        WHEN '0002'.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING
              PRELP = INNNN
            IMPORTING
              PNNNN = I0002.
          MOVE I0002-VORNA  TO I0002-RUFNM.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP
            EXPORTING
              PNNNN = I0002
            IMPORTING
              PRELP = INNNN.
      ENDCASE.
    U can also  implement  the  same in the BADI  HRPAD00INFTY   method  BEFORE_OUTPUT . The  same   code  should  work

  • Need help - script to continue text in another field if necessary

    Wish I could attach my form but it's not available. I am using Adobe Acrobat 9.0. I have a form with two text fields for "Other" information that needs to be shared. If the user types in more characters than the box holds the overflow text doesn't print. These are court documents and all the text has to print somehow. I am trying to figure out a work around for this and wondered if a script can be written to put the extra text from each "Other" field into another field that would open on a new page at the end of the document if necessary. I want to avoid having extra empty pages however so if they can be added ONLY if the text needs to overflow. I hope I explained this okay, like I said I wanted to upload the form but can't. If someone can help me with this I would really appreciate it.

    LiveCycle is a part of Acrobat Pro Extended - Windows users only, not Mac.
    OctRita wrote:
    … would it be possible to have a page at the end with a text field for each of the ones that need overflow to print and can a javascript be written to put the extra text into those fields?
    Yes, it is possible - I've already indirectly provided you with the code for that via the link in my post. Just remember to save it to your desktop:
    http://www.adirect.dk/adobeforum/commentfields.pdf
    As an alternative you could remove the limited characters, set the field to multiline and make a script that set the textsize to auto if the user fills the field with text. When textsize is set to auto, the text will keep on shrinking as user types more text.
    Torben.

  • Passing values to another field in APEX form

    Hi,
    How do I pass a value in 1 field to another field in APEX form ?
    I have a hidden field and I need to populate this field by another field.
    thanks

    I found the solution to my problem.
    [1] Create a "After Submit" under Computations.
    [2] Select 'Item Value' under Type in Item Name
    [3] Select "After Submit" under Computation Point
    [3] Enterer Item Name, which value needs to be passed in 'Source'
    thanks

  • Fill a field dynamically when selecting or entering another field

    Dear Experts,
    We have a customer developed screen program, we have a requirement to populate a value of a screen field when another
    field is selected using f4 or keyed in directly. how can this be achieved.
    Thanks.

    Pierre,
    try with badi:
    BADI_MIRO_SPLT_ADD                      Append additional fields of ACCVS to ACCIT 
    method:
    BADI_MIRO_SPLT_ADD
    your code somthing like this if <yourfield> ne ' ' and <field2> ne ' ' .
    field3 = <update value>.
    endif.

  • Javascript to copy input fields to another input field..

    Hi,
    I have Permanent address fields(input text fields) (address line 1,2,city, state , country,zip code)  and present address fields with same input fields as premanent address
    and i have a check box is present address different with value Y when checked and N when unchecked
    so based on the check box checked and unchecked the permanent address should copy to present address.
    i dont know how to use java script in adf
    so some one  please help me to do this.
    thanks in advance
    cheers

    Hi Suchith,
    I will tell you how to achieve your case using the framework itself;
    1.- Add to your checkbox a setPropertyListener for each field you want to copy. So for the first one addressLine1 I assume the component value resides in your binding layer, you do
    from=#{bindings.yourCheckBox.inputValue eq 'Y' ? bindings.addressLine1.inputValue : null}
    to=#{bindings.otherAddressLine1.inputValue}
    type='valueChange'
    And the same for each field. All in the checkbox component.
    Since this is a business rule, you should always aim to write this kind of logic in the model layer so you can create a method in your ViewObjectRowImpl named copyAddress() and in there you copy the values from one field to another field. Then you expose this method in the client interface and execute it when clicking the checkbox. Add autosubmit=true and partialTrigger to the panel containing your other fields to be refreshed.
    Once again I am making a lot of assumptions about your model, but that is why you always need to first state the version of your JDeveloper, then give a clue about your model and where are the fields being stored and so on. So people can help you better.
    Regards

  • Moving Numberic Information To Another Field

    I'm trying to move information entered in one field to another field. I can get non-numberic information moved using the following code. This works when both field formats are set to 'none'.
    var MN = this.getField("Text2-Years").value;
    this.getField("Text2-SpouseYears").value = MN.substr(0,2);
    I wish to set both field formats to 'number' and move the two digit number from "Text2-Years" to "Text2-SpouseYears".
    I'm using adobe pro 6.
    Can anyone help? Thanks in advance.

    The "substr()" method works on character strings only not numeric fields, you have to convert the numeric string to a character string.
    var MN = this.getField("Text2-Years").valueAsString;
    this.getField("Text2-SpouseYears").value = MN.substr(0,2);

  • Field with a default value from another field

    I need to populate a field as the default value from another field that the user inputs. I've tried the scripting that I found from the below Topic in the Archived Forums, but I'm not able to make it work. I've tried numerous variations and still to no avail. I tried to make the scripting work in Acrobat 6 and then decided that maybe I needed to upgrade, so I'm now trying it in Acrobat 8 with no results. Can anyone help?
    Topic
    Acrobat 5 - field with default value of another field
    Ben PF - 03:31am Mar 23, 2007 Pacific
    How can I have a field date2 which has the default value of field date1, but which can be edited by the user if necessary without changing the value of date1.
    I've tried, but I just can't figure it out!
    Any help much appreciated.
    Ben
    | Back to Topic List | Bookmark | Subscribe
    To start a NEW discussion click on the Back to Topic List link and select Add Topic.
    If you are in an archive forum please go up to the main topic list (archives are read only).
    Messages
    2 messages. Displaying 1 through 2.
    First Previous Next Last Show All Messages
    Gene Dianoski - 5:22am Mar 23, 07 PST (#1 of 2)
    This, or some variation of this, should work:
    if(this.getField("date2").value == ""{
    this.getField("date2").value = this.getField("date1).value;
    | Bookmark back to top
    Ben PF - 6:49am Mar 23, 07 PST (#2 of 2)
    Thanks very much.
    I put it in at document level to start, but it didn't run the script automatically when date1 was first filled in, so I have put it in as a mouse exit action in date1 and it works a treat.
    Thanks for your help.
    Ben

    Okay forget what I posted above and lets start over. Go to your first field and under Properties -> Actions Tab -> Select Trigger -> On Blur Run A JavaScript.
    Put this:
    this.getField("myField2").value = event.target.value;
    Make sure that you replace ("myField2") with the actual name of your second field. I just tested this and it works for Acrobat version 6.
    I haven't been doing as much javascripting as I used to, so sometimes I too make some basic mistakes.

  • Select MULTIPLE default values for a multiple selection list box based on another field in Infopath 2010

    Hello there - Before I explain my issue, I would like to point out that I have reviewed some other discussions on selecting default values for multiple selection listbox. But my issue is specific and different, and not answered by any of the discussions
    I visited.
    I have a multiple selection list box (say for example all countries in the world as values), and I would like to pre-select or setup multiple default values (say five countries) based on some criteria that I query from MS SQL database table.
    I know we can go to Data | Default Values option to setup one or many default values for multiple selection list box. When I enter the default values manually this works. I also right click the field under the Multiple-Selection List Box group, then select
    Add another Value Below and set the Default Value for this field to setup multiple default values.
    However, if I reference a field (either an infopath field or a field from SQL database) I am not able to setup multiple default values. Infopath automatically selects the last field I selected for all instances and in the end I am able to see only one
    default value selected instead of many. How to fix this problem? Why would infopath allow multiple default values when we enter it manually but not when we reference some fields?
    Please let me know if you need more info. Appreciate your help.
    Thanks!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Making a form field required when another field is selected

    I have a contact form with the usual fields required (name, address, city, etc.). I'm adding a Country pull-down list to the form, which will default to the US being selected. Since a "State" field is not relevant for anyone filling out the form from another country, I'd like to make the State field required only if the country selected is United States, and not required for any other country. Is there a way to do this?
    Thanks,
    R-Co

    What you need is to be able to create a required textfield when the first textfield shows USA and destroy the required field when another country is selected.
    The following may help to understand create and destroy
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Deleting and rebuilding validations</title>
    <link href="http://labs.adobe.com/technologies/spry/widgets/textfieldvalidation/SpryValidationTextFiel d.css" rel="stylesheet">
    </head>
    <body>
    <form id="form1" method="post" action="#">
      <p>
        <input type="radio" name="radio" id="Married" value="Married" onclick="val(this);">
        <label for="Married">Married</label>
      </p>
      <p>
        <input type="radio" name="radio" id="Defacto" value="Defacto" onclick="val(this);">
        <label for="Defacto">Defacto</label>
      </p>
      <p>
        <input type="radio" name="radio" id="Single" value="Single" onclick="val(this);">
        <label for="radio">Single</label>
      </p>
      <hr>
      <span id="sprytextfield1">
        <label for="f_married">Married</label>
        <input name="married" id="f_married" type="text" value="">
        <span class="textfieldRequiredMsg">A value is required.</span>
      </span>
      <span id="sprytextfield2">
        <label for="f_defacto">Defacto</label>
        <input name="defacto" id="f_defacto" type="text" value="">
        <span class="textfieldRequiredMsg">A value is required.</span>
      </span>
      <span id="sprytextfield3">
        <label for="f_single">Single</label>
        <input name="single" id="f_single" type="text" value="">
        <span class="textfieldRequiredMsg">A value is required.</span>
      </span>
      <hr>
      <input type="submit" value="Submit" />
    </form>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationTextField.js"></script>
    <script>
    var sprytextfield1,
            sprytextfield2,
            sprytextfield3;
    // build validations and delete / destroy them
    function val(e){
        // get the value
        value = e.value;
        // see what radion button we have
        if(value == "Married"){
            // if there inst a validaton build one
            if(!sprytextfield1){
                sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
            // if there is a validaiton in sprytextfield destory it, and clear the variable
            if(sprytextfield2 && sprytextfield2.destroy){
                sprytextfield2.resetClasses();
                sprytextfield2.destroy();
                sprytextfield2 = null;
            // same as the rest
            if(sprytextfield3 && sprytextfield3.destroy){
                sprytextfield3.resetClasses();
                sprytextfield3.destroy();
                sprytextfield3 = null;
        } else if(value == 'Defacto'){
            if(!sprytextfield2){
                sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
            if(sprytextfield1 && sprytextfield1.destroy){
                sprytextfield1.resetClasses();
                sprytextfield1.destroy();
                sprytextfield1 = null;
            if(sprytextfield3 && sprytextfield3.destroy){
                sprytextfield3.resetClasses();
                sprytextfield3.destroy();
                sprytextfield3 = null;
        } else if(value == 'Single'){
            if(!sprytextfield3){
                sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
            if(sprytextfield1 && sprytextfield1.destroy){
                sprytextfield1.resetClasses();
                sprytextfield1.destroy();
                sprytextfield1 = null;
            if(sprytextfield2 && sprytextfield2.destroy){
                sprytextfield2.resetClasses();
                sprytextfield2.destroy();
                sprytextfield2 = null;
        // proceed with the rest as normal
        return true;
    </script>
    </body>
    </html>

  • OIM 11gR2 Change default query on users manager field

    Hi, we are trying to change the default behaviour of users manager field.
    When a user is creating another user on OIM, he should only be able to select a particular type of users. So we would want to filter manager field based on a particular user role. For example: just show employees.
    At this point, we have checked User.xml searching for the associated query, we have tried to edit inputListOfValues for Manager on Create User form,... but still no idea on how this could be done.
    Could anyone point us on the rigth direction on how to achieve this?
    Thanks in advance!

    Karthik Perath
    Thanks for the answer....... but I guess you misread the question.  I am able to add new fields as columns to the search results table.  My problem is I want to add the searchable field to the query form.  Also, I do not want to use the Add Fields button (because that is a part of Saved Search which is Personalization and limited only to the creator) , I want the newly added searchable field. for example Employee Number ( which is not there by default)  to be made available to all the end users of Identity Self Service system..... Hope you got the problem... 

Maybe you are looking for