Specific value in one field determines value in fields

I am building a form using Adobe Pro and I am fairly new to Java Script.
One of the fields I am creating can only be a specific value (nra).  If nra is selected it needs to blank out a second field and put a number 1 in a third field. Can java script be used on drop down boxes? If not it is ok if the nra field is a free form text field.
Thanks,
Christy

The type doesn't really matter, as long as the value can be validated. But
if you use a drop-down, make sure to tick the option to commit the selected
value immediately, or the script will only kick in once you leave the field.
There are excellent tutorials about using JavaScript in Acrobat on
AcrobatAnswers.com, and of course there's the Acrobat JavaScript API
Reference, here: http://www.adobe.com/devnet/acrobat/javascript.html

Similar Messages

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Row value as one column/row value

    Hi,
    I want below values like 1;2;3;4;5;(same like we get by using UserResponse function for user prompt but this is simple object not user prompt)
    1
    2
    3
    4
    5
    thanks in advance
    Prabhat
    Edited by: prabhat2009 on May 19, 2009 6:42 AM

    Hi Prabath,
    Alas, this is not simple, I have to challenge the solution road you choose.
    Can't you work with a rotated table? So say the object normal table would be:
    <object name>
    1
    2
    3
    4
    5
    the rotated table would read:
    <object name> 1 2 3 4 5
    So if you were to hide the header of this table and may be put a ";" after each object value,
    you get almost the same.
    Plus; it scales automatically based on the number values for the object.
    Minus; it requires a fixed width, row by row autofith option doesn't exist for column by column...
    Only other (complex) option:
    Create a table with the object (first one).
    Give the table a footer line.
    Now in the footer use the following formula:
    max(<object name>&previous(<object name>)&previous(previous(<object name>))&...)
    Then you fold the table and show only the footer.
    Now the downside here is that obviously you will have to know just how many occurrence of object name there are. So I really wouldn't recommend it unless there are really few values max.
    Good luck,
    Marianne

  • Field Account Determination value in Posting Parameter tabpage

    Hi RE-Gurus,
    I have a specific requirement.
    In a given RE-FX Lease Out Contract, we enter Account Determination Value on the Posting parameters tab page which is responsible for determination of the G/L account which shall be posted at the time of carrying out Periodic Posting.
    The requirement is that i want to control the change authorization for the same for specific set of users.
    This means if i have 10 users who have Contract change authorization, only one of them shall have authorization to change the Account Determination Value on the Posting parameters tab page and rest 9 users shall not be allowed to change the Account Determination Value.
    I hope i m clear in stating my requirement.
    Plz revert back ASAP.
    Thanks,
    Pankaj

    Hi,
    please have a look at SAP note 1005831 which provides BAdI BADI_RECA_AUTH_CHECK for implementing customer specific authorization checks for real estate objects. The BADI provides also an example implementation for your reference.
    Regards,
    Franz

  • Selecting Records based on multiple values in one field

    Excuse the basic request.
    I want to select all records from one table depending on the value in 2 specific fields. Each of these fields has a single value in it.
    What I have written is as below
    1.select nm_idno "EZAID", nm_fname, nm_lname, nm_et_tt "Position", nm_mt_mt "Status", nm_type, nm_wemal, nm_mailshot from MNME
    2.where nm_type = 'M' and where nm_mailshot = 'Y' and nm_wemal > ' '
    3.and where nm_mt_mt = (1 or 6 or 3 or 10) *** these are the bits that I don't understand why they will not work.
    4. and where nm_et_tt = (408 or 329 or 283)
    Basically every record should have one of the values I have highlighted in it.
    Any help greatly appreciated.

    select nm_idno "EZAID"
          ,nm_fname
          ,nm_lname
          ,nm_et_tt "Position"
          ,nm_mt_mt "Status"
          ,nm_type
          ,nm_wemal
          ,nm_mailshot
    from   MNME
    where  nm_type = 'M'
    and    nm_mailshot = 'Y'
    and    nm_wemal > ' ' --< not sure what you mean here
    and    nm_mt_mt IN (1, 6, 3, 10)
    and    nm_et_tt IN (408, 329, 283)
    ;

  • Update/Insert into two fields based on value of one.

    How would I do the following in ADDT.
    Example:
    I have a database about dogs. When user completes form they make a selection from a recordset feed drop down box of breeds. Lets say they select "PUG" based on the selection two fields are populated from the same recordset size="small" and color="brown".
    I hope I've explained this well enough
    Thanks!
    Rich

    >>
    I think I understand. I'm using two forms One to select the item from a list. I'm passing that items value to the next page where I'm placing that value into a query which will give me the options available based on the query results?
    >>
    what I meant, is first have the user insert the new record and let him specify the desired "breed" already there -- the following page(s) will need to make sure that he´s going to update the newly inserted record with additional values, that´s why you should use the "SELECT dog_id FROM dog_table ORDER BY id DESC LIMIT 1" - query on page 2. However, once this new record had been clearly identified "by id", you can add whatever options available in the secondary table which are related to the "dog_id" (breed) that has been stored when inserting the new record. Maybe *I* don´t get it, lol ;-)
    >>
    I currently do this the dropdown value to a case statement that takes the value of the dropdown and determines the correct values for the database update
    >>
    OK, but when each dog just has one option
    (thought it were two ones: "color" and "size"), isn´t your existing dependant dropdown enough for specifying that "based on breed" option without having to use a hidden field at all ? Ah well, have you ever used ADDT´s / Kollections "dependant drop-down" wizard -- that should do it for one option
    >>
    hidden field that I need to update value based on what the value is above
    >>
    humm -- updating the value of a hidden field in the very same page then ? Never heard of this being possible apart from using some hand-made javascript.
    Guess I gotta ask my dog what it thinks about all that :-)
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How to copy value from one field to another in a Apex Form

    Hello guys,
    There are 2 addresses one is shipping and other is billing. I do not want the customer to re-enter all the details if it is the same address. So based upon an action, it should take the live values from one address field and populate the other address field. I know in JS you can do it, but how to implement that in Apex?
    I guess using Dynamic Actions to achieve this in Version 4 but do not know how. Read quite some info but no luck.
    Thanks in advance!

    Hi,
    I have assumed that you have your shipping address at the top of the page, and then further down the page you have your billing address that you want to enable the users to copy (if this is in reverese, you will need to switch the js variables in the code following).
    I would create a Select List item above the 'Billing Address' details, called PX_SAME_ADDRESSThis select list would be static, with the options Null.
    I also assume you would have pairs of address page items such as:
    PX_SHIPPING_ADDRESS_L1
    PX_BILLING_ADDRESS_L1
    PX_SHIPPING_ADDRESS_L2
    PX_BILLING_ADDRESS_L2
    PX_SHIPPING_POST_CODE
    PX_BILLING_POST_CODEThen copy the following code into the HTML Header of the page definition:
    <script language="JavaScript" type="text/javascript">
    function copyAddress()
       if( $x('PX_SAME_ADDRESS').value == 'YES')
         $x('PX_BILLING_ADDRESS_L1').value = $x('PX_SHIPPING_ADDRESS_L1').value;
         $x('PX_BILLING_ADDRESS_L2').value = $x('PX_SHIPPING_ADDRESS_L2').value;
         $x('PX_BILLING_POST_CODE').value = $x('PX_SHIPPING_POST_CODE').value;
       else //Clear Address Fields
         $x('PX_BILLING_ADDRESS_L1').value = " ";
         $x('PX_BILLING_ADDRESS_L2').value = " ";
         $x('PX_BILLING_POST_CODE').value = " ";
    </script>Then, in your PX_SAME_ADDRESS item, copy the code below into the Element > HTML Form Element Attributes field.
    onChange="copyAddress();"Hopefully this works for you too, and should give you some basis to play around with.
    Amanda.

  • Copy value from one field in subform, to another field in a different subform

    Hi all.  I have been back and forth with enterprise support, and they are telling me what I want to do is impossible.  I find that hard to agree with, so hoping I can get some help here.  I have a document that I am creating, based off an XML.  The page consists of a header subform, a flowing table of variable name, and then a footer.  My problem comes in, that when the table flows to mutliple pages, my header subform will not repeat, even though I have it set as the overflow header.  According to Enterprise Support, this is by design.  The header will repeat on the footer page, if that is on a separate page, just not when the table flows to another page.  So, I came up with a solution to create an additional Header in my table, merge all the cells into one column, and copy my subform into that new header.  I would set that header to appear only on subsequent pages.  So, when I preview my document, it shows the static text fine, as I would expect, however the text fields are blank.  I need a way of copying the values from the original header subform, into the newly created table header subform.  The values will be different based on teh XML input, meaning that the first 3 pages will have one set of values, and the next 3 another, etc..  See sample below...
    <NameValueList>
         <NameValue>
              <NameValueName>Name1<NameValueName>
              <NameValueDesc>Desc1<NameValueDesc>
               <TableValueList>
                   <TableValue>
                        Blah
                   </TableValue>
                   <TableValue>
                        Blah 2
                   </TableValue>
              </TableValueList>
         </NameValue>
         <NameValue>
              <NameValueName>Name2</NameValueName>
              <NameValueDesc>Desc2<NameValueDesc>
              <TableValueList>
                   <TableValue>
                        Blah 5
                   </TableValue>
                   <TableValue>
                        Blah 6
                   </TableValue>
              </TableValueList>
         </NameValue>
    </NameValueList>
    So, if I bind my original header to NameValueName, it will show on the first page which has my header, and the third page that has my footer.  But my 2nd page, that has the table flowed to it, has a blank value.  I tried to put code in the Initialize event of both text boxes, to copy from MainHeader.NameValueName to TableHeader.NameValueName, but that didn't work properly. 
    Any ideas on how to do this?

    Thank you very much for the reply.  I tried putting the copy statement in both the MainHeader and TableHeader initialize events.  There was different behavior, depending on the place I put the copy statement, however neither was correct.  If I put it in the initialize of the TableHeader, the NameValueName that appears on other page is Name1.  Even though the header shows Name2 when it hits the next nodes.  If I put it in the initialize of MainHeader, nothing is copied on the proper table header pages.
    I initially had Master pages, however that really didn't work.  The master pages traversed the NameValueName nodes on it's own loop.  So, Each page displayed the next value in it's own loop, when the main subform loop is still showing data from the previous value.  I know this might be hard to understand, but I'm doing my best to explain.  THanks again for your reply, and I hope that there is another idea out there to fix this...

  • How to Insert more than one record at a time- with fixed set of values in one field

    Can someone guide as to how to insert multiple records at a time using ASP VBScript in Dreamweaver CS4 or ADDT.
    If someone can guide then the exact problem is given below.
    I have a MS access database with one table. The table has three fields. The first field is an autonumber field for ID number.
    The second field contains string values- One out of 7 predefined values. One set of records consists of 7 records containing all the seven types of predefined values in fields no 1.
    The third field is a numeric field and can contain integers.
    I want that the user can enter data for the table using an ASP form in such a way that he enters one set of records at a time in one single screen. This way he will not have to remember that he has /has not entered all the seven set of values for the field no 1.
    I am not creating fields with the 7 types of field1value as their names as it will increase the number of fields drastically.
    Please help for dreamweaver ASP VBScript.

    I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
    However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
    Please help.
    Also advise if there are any free dreamweaver server side validation extensions available.

  • How to find out the max/min value of one field corresponding to a second field in HANA through graphical way.

    Hi,
    I am trying to find out the latest delivery date(EINDT)  for each purchasing document (EBELN) through graphical way.
    The view contains other fields apart from the above mentioned two fields.
    When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
    If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
    Hence , please help me in getting the solution while the view contains other fields also.
    Thanks in advance.
    Thanks,
    Jyothirmayi

    Hi Sreehari/Vinoth,
    Thank you for your replies.
    if only two fields are then I can get the max/min values of one field corresponding to other field.
    But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
    I hope you understood my issue.Please revert in case of questions.
    Thanks & Regards,
    Jyothirmayi

  • To replace values of one of the field in the database table

    How to replace values of one of the field in the database table with a new values? Pls help to solve

    Hi
    You can use the UPDATE command to update one of the field value in a table
    see the UPDATE syntax and use it
    but in real time you should not do like this
    Regards
    Anji

  • Transfer field value from one screen to another screen

    hi gurus,
    I am using field exit in mm02, i want to transfer field value from one screen to another screen. I am using Export, Import, Some FM like DYNP.......
    but not getting the value.
    can any one give idea about this.
    Thanks in Advance,
    Sudheer.

    I THINK IN FIELD EXITS SOME RESTRICTION IS THERE YOU CAN NOT USE CALL TRANSACTION OR CALL SCREEN. I DONT KNOW WHAT IS YOUR ACTUAL REQUIREMENT. BUT YOU ARE TRYING TO CALL TRANSACTION USING MEMORY ID OR SOMETHING THEN I THINK IN FIELD EXIT YOU CAN NOT DO THAT. PLS CORRECT ME IF I AM WRONG
    REGARDS
    SHIBA DUTTA

  • How to set default value in one field depending on other field.

    Hi,
    I have one requirement.That is..One seede page having 2 field, one is Lov Input field and one more message choice filed.
    Requirement is after selecting value in Lov input field need to set one default value in to Message choice field. how to do this one.pls send any sample code for this requirement.
    Thanks in Advance,
    Hanimi...

    Hi,
    I used following code
    OAMessageLovInputBean lovbean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("AssetNumber");
    OAMessageChoiceBean Choicevalue=(OAMessageChoiceBean)webBean.findIndexedChildRecursive("EamWrPriority");
    if (pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getLovInputSourceId();
    if(lovInputSourceId.equalsIgnoreCase("AssetNumber"))
    if(lovbean!=null)
    String slovVal=(String)lovbean.getValue(pageContext);
    String prValue = getPRValue(pageContext.getApplicationModule(webBean).getOADBTransaction(),slovVal);
    //String prValue = "1";
    Choicevalue.setValue(pageContext,prValue);
    }// end of processFormRequest
    private String getPRValue(OADBTransaction con,String slovVal)
    // System.out.println("In WorkRequestDffCO.getContextValue.organizationID" + organizationID);
    String prValue = null;
    String sql = "select decode(ml.meaning,'AC1',1,'AC2',1,'AC3',3,'AC4',3,null) from FND_LOOKUP_VALUES_VL ml ,mtl_serial_numbers msi where ml.lookup_type = 'MTL_EAM_ASSET_CRITICALITY' and msi.ASSET_CRITICALITY_code = ml.lookup_code and msi.serial_number = 'slovVal' ; //'30AC-TR002B'"
    Statement st = null;
    ResultSet rs = null;
    try
    st = con.createStatement(1);
    rs = st.executeQuery(sql);
    if(rs.next())
    prValue = rs.getString(1);
    catch(Exception e)
    e.printStackTrace();
    finally
    try
    if(st != null)
    st.close();
    if(rs != null)
    rs.close();
    catch(Exception e)
    e.printStackTrace();
    return prValue;
    Query is executing but no value is retuning, if i use hard coded value in where condition like '30AC-TR002B' it is tt's returning value .

  • BDC: To Include more than one value in one field.

    Hi All,
    I want to include more than one value in a particular filed, while its running in back ground.
    The requirement is like this
      perform bdc_field       using 'PNPABKRS-LOW'
                                     '01'.
    01 is a filed on employee payroll type : management staff.
    02 - Filed staff
    03 - work men
    How can i include 02 and 03 also for the perform.
    it has to check whether the employee  can belongs to any of the above three.
    Thanks in Advance,
    Points Rewarded for Help full answer.

    Hi, Ramesh,
    You can not use all the 3 fields at the same time, instead you can pass on one variable in that perform.
    eg.
    take all your staff value in one internal table and use the following code
    loop at i_tab into wa_tab.
    data : l_variable type string.
    perform bdc_field using 'PNPABKRS-LOW'  wa_tab-staff.
    endloop.
    in first run of loop it will take value '01', in second '02' and so on.
    regards,
    vikas
    plz reward if helpful.

  • How to drill down another one report on one field value of one row

    Hi,
    I have two reports that can link together on one field of respective database query command. The effect i want to reach is that when user clicks this field value on some row of one report, which i call source object, another report, target object, would use this value as input parameter and the page would jump to this linked report. I can see Format Editor provides Hyperlink feature when one field is edited, but i don't know how to associate another report as what i described here.
    What if one the following conditions is met:
    1.one of two objects, source object, is one chart object
    2.target object is  one chart object
    3.two objects are both chart objects
    Note: two objects is separately from different reports.
    Additionally, is it possible to code for hyperlink functionality under both .NET WinForm and WebForm? what if under RDC?
    Thank you
    Zhi
    Edited by: zhi li on Sep 24, 2008 11:53 AM
    Edited by: zhi li on Sep 24, 2008 11:57 AM
    Edited by: zhi li on Sep 24, 2008 11:58 AM

    I don't know if you can use the hyperlink to call a subreport but the following has worked for me in Crystal 10:
    1. In your main report create a group on the field you want to pass to the subreport.
    2. In the Group Footer, use the "Insert Section below" menu command so that you have a Group Footer 1a and a Group Footer 1b.
    3. Put your table fields in the Group Footer 1b section (this would be similar to your Details data).
    4. Put the sub report in the Group Footer 1a section. Set up the links to the subreport from a table field in your main report.
    5. Right-click on the sub-report, select "Format Sub-report". Click on the "x-2" button to the right of the Suppress option and enter "DrillDownGroupLevel = 0" in the "Formula Workshop-Formula Format Editor-Suppress" window and save it.
    When you double-click on your data field (i.e. the field in Group footer 1b) it should drill-down and run your subreport.

Maybe you are looking for

  • XML parsing in Applescript

    Hi i am trying to parse a xml file and my getting the following error please can anyone help me Can't make «class xmld» {"<?xml version=\"1.0\"?><xml_api_reply version=\"1\"><weather module_id=\"0\" tab_id=\"0\" mobile_row=\"0\" mobile_zipped=\"1\" r

  • Automatic app updates?

    i have automatic downloads for apps enabled on both itunes on my computer and in the store settings on my phone.  i see that when i download a new app on my phone, it automatically downloads to itunes and vice versa.  is it possible to get this to wo

  • Camera doesn't work suddenly half way on FaceTime

    While on Facetime, the camera suddenly stop functioning. No green light. The camera doesn't work on photobooth as well. Already installed the latest OS which is 10.9 Any suggestion? or it is a hardware problem need repaired?

  • Running Windows 7 on Dell laptop, Yahoo is set as homepage, but Firefox start page always appears first. Help!

    Recently, I downloaded the latest Adobe Reader update. I am not sure if it is related to the problem. For years, I've run Mozilla Firefox and I prefer it to IE. Suddenly, I find that after booting-up, my homepage has been "hijacked" to show the Mosil

  • Adobe Illustrator CS6 MENA (Middle East North African) version with support for Hebrew text

    Hello, I have a questions. I work for Kao USA. Currently a number of of our employees have Adobe Illustrator CS6 (all Licensed). How would we go about getting the Adobe Illustrator CS6 MENA (Middle East North African) version for Mac machines? Also,