get the value of two fields in a field

Hellou,

I need some new help with javascript

Currently I use the below code to get the value of one field to another:

getField("Text35").value = getField("Text1").valueAsString;

Now, I wonder how to change this code, so I could get the values of two fields in one. I for example field 'Name' and 'name' field, now I want to show in the field 'name '.

Example, if the firstname field have John value and the value of the lastname field is Doe, I want to show in the field name as "John Doe".

I hope that u understand what I want

Thank you for helping me!

getField("Text35").value = getField("Text1").valueAsString + "" +.

getField("Text2").valueAsString;

Tags: Acrobat

Similar Questions

  • ([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

  • [JDev12c, ADF] How to get the value of a field from the selected line in af:table and...

    Hallo,

    I want to double click on a line of an af:table to call a page that displays a form (based on a View object) with the details of the selected line.

    I need to go to the second page the value of a field on the line that is selected on the first page.

    How can I do this? In particular, how can I get the value of a field from the selected line? How can I call the second page on double-click on the af line: table?

    Thank you

    F.

    Why would user, you need to pass a value of the line to the shape?

    The framework selects the line you want to display in the form. All you have to do is to show the form with the selected line. It is the framework automatically as long as you use e vo even the same data control.

    Timo

    Post edited by: Timo Hahn
    And the handling double-clicks is described here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf

  • Starting from two data tables, how do you get the values in two columns using values in a column (values get col. If col. A is not null values and get the pass. B if col. A is null)?

    Two tables provided, how you retrieve the values in two columns using values in a column (the pass get values. If col. A is not null values and get the pass. B if col. A is null)?

    Guessing

    Select nvl (x.col_a, y.col_b) the_column

    from table_1 x,.

    table_2 y

    where x.pk = y.pk

    Concerning

    Etbin

  • How to get the value of a field of flex?

    Hello

    I have a page of the OFA, where flexfield is on the 2nd tab of the page.
    When the page loads, 1 tab loaded. At this point, I want to enter the value in the flex of the 2nd tab type?

    I added this element Flex type using customization on the 2nd tab...

    How to get the value in the field?

    Values Flexfield
    How to get the value Flexfield OAF page Runtime
    Re: Get flexfield value during execution
    Requirement DescritiveFlexField

    Thank you
    -Anil

  • How to get the values of two points separated in Javascript checkbox

    Hello

    I want to get the values of an element of the checkbox as a form of separted from the colon as what we get in the database. For example '10:11:12 '.

    When I tried to write a code like this it does not work. Please tell me where I'm wrong.


    function getValues (pcheckbox) {}
    cb_name = html_GetElement(pcheckbox+'_0').name;
    cb_array = document.getElementByName (cb_name);
    var val_str =': ';
    for (i = 0; i < cb_array.length; i ++)
    {
    If (cb_arraychecked)
    {
    val_str += cb_array [i] .value + ':';
    }
    }
    html_GetElement (P206_TEXT) .value = val_str;
    }



    I try to call the function getValues ('P206_CHECK');

    Thank you and best regards,
    Vikas Krishna

    Hi Vikas,

    Try this-

    (1) create a checkbox element called PI_CHK
    (2) in the Option of the attributes of the form element, type onclick = "getValues () '"
    (3) create a named text field point PI_TEXT

    Enter the HTML of the Page Header Section

    
    

    Concerning

    Paul

  • Is there an easy way to filter a 2D table based on the values in two fields?

    Y at - it an easy way to filter a 2D table based on the values of one of the fields. In my attached VI the output array has the following format:

    Ident Frame Type bytes TimeStamp data

    10:57:07.621 3AD00016 POUVEZ 8 0000000000000000 data frame

    10:57:07.622 3AD00017 CAN data frame 8 000005E000000000

    10:57:07.624 3AD00018 POUVEZ 8 0000000003300000 data frame

    10:57:07.625 2DC00000 POUVEZ 8 0000000000000000 data frame

    10:57:07.626 3AD00019 POUVEZ 4 0000030000000000 data frame

    I would like to delete all lines that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the data above the fourth row would be removed. The only way I can see to do this is to form a 1 d table. Is there a better approach?

    Thank you.

    Hi chuck72352,

    After you've sorted your data, you can use the function InRange. Combined with a "search in 1 table D", you get the range you really want.

    Mike

  • [ADF, JDev12.1.3] How to get programmatically the value of a field of VO of detail while accessing the master istance VO?

    Hallo,

    I have a master VO based on entities and a retail entity based VO to which JDev automatically created a link display (1 to 1 relationship).

    In the request Module I programmatically access MasterVO and I would like to get the value of a field of DetailVO...

    ViewObject vo = getMaster1();
    RowSetIterator iterator = vo.createRowSetIterator(null);
    iterator.reset();
    if (iterator.hasNext()) {
      MasterVORowImpl row = (MasterVORowImpl) iterator.next();
      System.out.println(row.getField1);
      System.out.println(row.getField2);
      // ...
      System.out.println( <DetailVO.Field1> ); // How to...?
      // ...
      }
    iterator.closeRowSetIterator();
    

    How can I achieve this?

    Thank you

    Federico

    In MasterVORowImpl should be getter for the detail rows (if you selected "Include the accessors" option when you generated class MasterVORowImpl).

    Dario

  • Get the value based on the column names for the custom of the Webcenter content metadata field

    University Complutense of MADRID, I created a custom text metadata field.  I then activated optlist this area.  I fill the optList values, I use a view.  The view has three columns.  Let us call their ID, Key, Value.  OptList shows keys in its list.  I then create content (Content ID: MyContent) Webcenter content and choose the OptList values for my new field of metadata (MyField).

    WebCenter portal, I'm filling a selectOneChoice with MyField values in the content ID: MyContent.  Remember the previous step, the values entered in selectOneChoice lists them selected values from the field MyField optList.  The optList is filled from view.  After the user selects a value in selectOneChoice, in Javascript, I need to alert a message in this format "selected value - matching value from the view of the optList that fills MyField.

    In my opinion, only an example will be useful:

    This is a view that I created in Configuration Manager applet in Webcenter content Admin cmdlets :

    ID | State | Capital

    1. North Carolina | Raleigh

    2. California | Sacramento

    3. Illinois | Chicago

    Then I create a custom field (name: MyField).  MyField is an optList values are filled with view created above.  Internal value and the display value are the two State.  Then I have a new content with Content Id Check-In: MyContent.  To MyContent, I select these values in OptList MyField: {North Carolina, Illinois}.

    In my portal Webcenter application, I create a Taskflow presenter content.  I have set up as single content item presenter.  I attribute as content ID MyContent.  Then, in templateView, I get all the values of MyField in MyContent and display as selectOneChoice.  I created a javascript function that would get the value that the user selected in selectOneChoice.  In the view created in the Webcenter content Configuration Manager (see above), there is a value corresponding to each displayed value.  So, for the selected value, I need to get the corresponding Capital and display in my alert message.

    Starting from Javascript, how can I get the value of the Capital, since I have the status value.

    Hello.

    The idea to reach your requirement is planned:

    • Create an Assistant manage bean that will appeal as access map: #{stateUtil ['Calofironia']} (it will return Raleigh). This value will get calling GET_SCHEMA_VIEW_VALUES IDC service using RIDC in your managed bean.
    • Pass the result of #{stateUtil ["statename"]} to your JavaScript function to help

    I hope this information help you.

    Kind regards

  • Get the value of the field notes.

    Hi all

    I just started with powercli.

    I want to set and get the value of the field notes.

    Put in it, is done by, virtual Set-machine - VM "Name VM" - Description "text1 text2 etc." - confirm: $false

    But how to get the value of the field notes? I it could be done like: Get-VM-name 'VM ' | Get-Annotation CustomAttribute - Description

    However, I get an error:

    Get-Annotation: 08/07/2012 11:11:28 Get Annotation found Cu

    stomAttribute with the name "Description".
    On line: 1 char: 44
    + Get - Vm "klj - bastionhost | Get-Annotation < < < <-CustomAttribute description
    n
    + CategoryInfo: ObjectNotFound: (Description: String) [Get-annotated
    tion], VimException
    + FullyQualifiedErrorId: Core_ObnSelector_SelectObjectByNameCore_ObjectNo
    tFound, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetAnnotation

    kim look

    You can get the field notes VM with:

    Get - VM | Select-Object - Property Name, Description

  • Get the value of the field that is formatted

    I have a few fields in the format number with 1 or 2 decimal places. I use these values in a string that is concatenated in another field, and I want to use the number formatted in this calculation. Using valeur.champ or field.valueAsString just gets the value as written is "412" instead of "412.0'.»

    Y at - it an easy way to get the value directly as it is formatted, or do I need to replicate the setting in shape when I am concatenating the string?

    There is no way easy in general. The routine of formatting for numbers uses the util.printf method, so for example you gave, it is easy to reproduce.

  • How to get the values of the shape of the object in the form of process field?

    Hello

    I created the resource object and it has the shape of the object that are associated with him. When the user self praying for this user RO add information in the form object field ho can I get these values as a process?

    How to get the values of the shape of the object in the form of process field?

    Hello

    If you want to map the form field Number in the form of process field go process definition - Data Flow Mapping tab you can add the field map.

    Thank you
    Patricia

  • Get the value of the title field

    My question is simple. Here's my scenario.

    I have a check for profile, with an editable title field and a list of options. The user selects a value in the option list and entered a title. When he submits the form, the title of the content check-in must be derived from the value of the option list + the value of the field title. The derivative title must be the concatenation of the value of the option list, and the value of the field title.

    My question is how to get the value of the field title using the script of the OIDC? I have a rule with the field of dDocTitle and its derivative field, I have an idoc script that displays the value of the option list in the spin-off title field. I only need to concatenate the value of the editable field title entered by the user.

    Thank you. I use UCM 10 g.

    This can be done with rules and profiles of the school boards and derived values.

    If the user enters a title in the field of dDocTitle (this is mandatory) and if you have another field of metadata with a menu drop-down (as conceptual dDocType) you can use the Configuration Manager (rules and profiles) take the value of dDocTitle and dDocType and when checked (it not shown to the user after logging) she'll concatenate.

    in the custom box (you may need to do this because of the wrong inserts quotes with our variables) make sure that it looks like this
    <$dprDerivedValue=dDocTitle &="" ddoctype$="">

    Notes that may be of interest
    How can define you a value derived in a rule using Idoc Script to call a service? (Doc ID 833953.1)
    Who wins: rule or a set of default metadata about a file? (Doc ID 798653.1)

  • Getting the value of field of a cake clicked on slice in a pie chart?

    I tried and have searched for hours and can't get this simple trick to work.

    I have a pie with the following event handler:

    itemClick = "chart_click (event)" "

    The pie series comes from a simple httpservice which has a country and a count:

    < mx:PieSeries
    field = 'count '.
    field name = 'value '.
    labelPosition = "legend."
    calloutGap = '5 '.
    labelFunction = "show".
    showDataEffect = "{interpolate}" >

    All I want to do is capture the value of the name field (EG: Canada)

    I have no problem to get the index of the selected series, but I can't get the value of this group name field. That's what I have:

    public void chart_click(e:ChartItemEvent):void
    {
    Alert.Show (searchByPieChart.Series, [e.hitData.chartItem.index], .nameField);
    }

    All I get is the 'value' string that is the name of the xml tag bound to the name field. What should I do?

    UGGG.

    I got it:

    Alert.Show (e.hitData.Item.value);

  • How to get the value of viewattribute and how to assign the text field. URG

    Hi all,
    I created messagestyled text programmatically and I want the value of viewAttribute.
    I don't know how to define the instance of the view and display attribute.

    I tried this way, it is what is called the vo class but after that i dnt know how to set

    Here the code that I used...

    (1) I create the messagestyled text
    OAFormattedTextBean cctextbean = (OAFormattedTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, FORMATTED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCText");

    OAMessageStyledTextBean ccidbean = (OAMessageStyledTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCId");

    (2) and I called the view object
    OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");

    (3) I want to set the view instance and viewattribute using code. This stage i dnt know how to define.

    (4) I want to know, how to get the value of the attribute to display and how to set the value to the messagestyled text field.

    I'm new to OFA. It's Urgent.

    Thanks in advance
    Fabrice

    Hello

    use
    Import oracle.jbo.Row;

    OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");
    Line line (Row) = ccview.first ();
    Test String = (String) row.getAttribute ("");

    then to set the value of the text of messagestyled

    OAMessageStyledTextBean bean = (OAMessageStyledTextBean) webBean.findindexedchildrecursive ("CCId");
    bean.setText (test);

    Thank you
    Gerard

    Published by: Gauravv on August 4, 2009 09:38

Maybe you are looking for