Populate Field from Concatenated Values Issues

I am trying to set a value on a read only/calculated text field based on the exit event of another field, below is what I'm using,
but nothing happens when I enter data and exit the field.
Year0 is a hidden calculated field set to current year in a 4 digit format.
Using JavaScript - any ideas where I'm going wrong?  Thank you!
var  
myVA = form1.#subform[0].#subform[1].#subform[2].Table1.Row1.tVANo.rawValue;
var 
myYR = form1.#pageSet[0].Page1.Year0.rawValue;
var 
myPrj = this.rawValue;myVA
= Concat(myPrj, "-", myYR)

Hi Cathy,
Before we get to joing the two variables, I think that it is important to declare hte variables first.
The JavaScript Console is very powerful tool for debugging. You can access when previewing your form in LC Designer or when you open your form in Acrobat.
The console is not available in Reader.
It will show up errors as you interact with your form. This will give you some direction to resolving the issue back in LC Designer.
If you can't get Control+J to work, then you could use this line after the variable is declared:
xfa.host.messageBox(myVA);
If you have a look at page 3 of the SOM Expression form, you will see a shortcut to referencing objects (also in video, sorry about the audio).
Using the Control+Click to reference objects will help, as LC Designer will resolve the node of the object if necessary. This would happen if there are unnamed objects/subforms, there are multiple objects with the same name; or if you have named an object using a reserved word.
So, I would be inclined to get this sorted first and then concentrate on merging the two variables. For example, is Row1 set to repeat?
Niall

Similar Messages

  • Populating Multirecord text fields from Tlists value's combinations

    I have a UI wherein there are two T lists, one on the Left and other on the Right. The left one contains
    From values and the Right one contains To values. There's one Button which when Pressed should populate
    a Data Block which has multi record text fields just below the button with all the possible combinations of
    the T lists elements. The Text fields have the values From, To, Time, Unit. When populated From and Two will
    get the values from the combinations and the user will enter the values in other fields i.e. Time and Unit,
    Then the user can save the Records.
    e.g. If the Left T list contains Red, Blue and the Right T List contains Green, Black. Then on pressing
    the button below the T lists, the text fields From and Two of a data block displayed in the same window
    should get populated with all the possible combinations as:
    From || To || Unit || Time
    Red Green
    Red Black
    Blue Green
    Blue Black
    Now the user can enter the values for Unit as well as Time and when he does save the Records should be inserted
    for the Data Blocks DML Source that's some table.
    What I'm trying is:
    On pressing the Button i'm writing code that will have Two PL/SQL Tables(Index by binary_integer). One will have
    all the values of the left T List and the other with all the values of right T List.
    I do it as in the WHEN BUTTON PRESSED as:
    DECLARE
    TYPE varchar_table IS TABLE OF VARCHAR2(30) INDEX BY BINARY_INTEGER;
    from varchar_table;
    to varchar_table;
    v_count1 NUMBER;
    v_count2 NUMBER;
    v_count3 NUMBER;
    v_count4 NUMBER;
    BEGIN
    v_count1 := Get_List_Element_Count('CONTROL.FROM_TYPE');
         FOR i IN 1..v_count1 LOOP
              from(i) := Get_List_Element_Value('CONTROL.FROM_TYPE', i);
         END LOOP;
    v_count2 := Get_List_Element_Count('CONTROL.TO_TYPE');
         FOR i IN 1..v_count2 LOOP
              to(i) := Get_List_Element_Value('CONTROL.TO_TYPE', i);
         END LOOP;
    END;
    Now how will I populate the text fields with the values in the tables that i got with the piece of code above.
    Any help would be appreciated. Any other method other than the one i'm trying is also welcome. Please note that
    i'm not using any table to store the elements in the T Lists. The lists get values at runtime by
    user's selection.
    Thanks,
    Abhishek.

    Try and stay civil in your postings. The solotion should be to simply issue a GO_BLOCK, followed by a CREATE_RECORD followed by setting the approriate values :block.value = <value from list>

  • Populating fields from database values

    I have a page being populated from database values. I used the Application Builder Wizard to create the application. One of the fields is displaying on the report, but when I click edit, the value is not there. The field is defined as a float and being displayed as a text item. I have created this Application twice with the same results.
    Any ideas?
    thanks!
    Christie

    Thank you for the quick reply!
    I turned on the debug, to ensure the automatic fetch
    process it on and it is. The edit page has 7
    fields, all are being populated except for this one.
    I have confirmed it is using the correct database
    column and it is replacing the existing value the
    same as the other fields.
    Any other ideas to what could be going on?You can see each page item assignment in the debug output. Look there to see where the page item is being set, and potentially unset I suppose. The thing to look for here might be page processes that might be interacting with that item.
    You could also simply drop the problematic page item and recreate it to see if you can make the value stick.
    Earl

  • Populate fields from a php script

    Hi,
    I am trying to populate text fields from a PHP script right into Acrobat Reader.
    Lets not talk about database just yet, I just want to know how to take a variable in PHP right to the livecycle designer form.
    I have seen many things like submitform(), using http posts, etc but I cant get it to work.
    Thank you in advance.

    If you want to fill the LiveCycle Designer form, then you need to render it with the datafile.
    The datafile can be an XML file or a webservice or Database.
    You cannot directly fill the PDF from a PHP script. What you can do is, have a LiveCycle Process created in Workbench and then invoke the Process from PHP application by passing the information. The Livecycle process will merge the data with the template and return the PDF to the client application.
    There is an other feature in Acrobat PRO that you can import an XML file directly into a PDF but that is a manual effort. You can not link that to a PHP Script.
    Thanks
    Srini

  • I need HELP! I want to populate fields from a data connection...

    I am new to livecycle and am having problems making this work...
    I have an xml data table that is 5 columns wide and 1000 rows deep. (So too much data for list boxes)
    The data connection comes in looking like this:    - DataConnection
                                                                                   - (Ordered Group)
                                                                                        -Row
                                                                                              -(Ordered Group)
                                                                                                    Job
                                                                                                    Customer
                                                                                                    Part Number
                                                                                                    Rev
                                                                                                    Description
    When I pull Row into the form it makes a subform with the 5 fields as above.
    When I preview this it automatically pulls in the first record from the data source...I want to be able to fill in Job manually and have the other
    fields automatically pull in the appropriate information from the correct row in the data source. I have not been able to do this! Can anyone
    help me?
    Thank You,
    CLC

    Hello,
            I am sorry to say that, i felt hard in understanding the requirement. Can you please pass over the working copy to my email address [email protected], i try to get what you are looking for.
         Please find a sample that you can download from the link below, which demonstrates populating fields from a data connection. please take a look at it and i hope this will help you.
    https://acrobat.com/#d=5TstZ2VeptoSs6IAZ*81Yw
    thanks,
    Rajesh

  • How to Automatically Populate fields from Style no.--All data in XML- 2nd Request

    To start with i am a noob in Livecycle, and zero knowledge in coding...<br />I basically want to create 1 dropdown list (syle #) which shall automatically refer to xml and populate different fields (qtyperinner, buyer etc.)<br /><br />Here's my XML-<br /><br /><?xml version="1.0" encoding="utf-8" standalone="yes"?><br /><br /><document><br /><row><br />150833<br /><QtyPerMaster>24</QtyPerMaster><br /><QtyPerInner>6</QtyPerInner><br /><VolofMaster>0.039</VolofMaster><br /><Buyer>Fred Meyer</Buyer><br /></row><br /><row><br />87102<br /><QtyPerMaster>24</QtyPerMaster><br /><QtyPerInner>4</QtyPerInner><br /><VolofMaster>0.034</VolofMaster><br /><Buyer>Fred Meyer</Buyer><br /></row><br /><row><br />821011<br /><QtyPerMaster>50</QtyPerMaster><br /><QtyPerInner>50</QtyPerInner><br /><VolofMaster>0.053</VolofMaster><br /><Buyer>Insource</Buyer><br /></row><br /><row><br />110609<br /><QtyPerMaster>12</QtyPerMaster><br /><QtyPerInner>2</QtyPerInner><br /><VolofMaster>0.022</VolofMaster><br /><Buyer>Indigo</Buyer><br /></row><br /><row><br />110608<br /><QtyPerMaster>24</QtyPerMaster><br /><QtyPerInner>6</QtyPerInner><br /><VolofMaster>0.024</VolofMaster><br /><Buyer>Indigo</Buyer><br /></row><br /><br /><row><br />150785<br /><QtyPerMaster>12</QtyPerMaster><br /><QtyPerInner>2</QtyPerInner><br /><VolofMaster>0.055</VolofMaster><br /><Buyer>Pier 1</Buyer><br /></row><br /></document><br />_______________________________________________________<br /><br />Have already managed to create dropdown with style number...and it works!!<br />(and have connected the XML with form properties as well as data binding)<br />please advice how to link/bind style # field with the rest of the text boxes to generate data underneath that particular style number from the XML.<br />it could very well be possible that my XML is written wrong (without heirachy or something)...if so also advice how that needs to be with an example...kindly make sure to advice in great detail as i would'nt understand otherwise.<br /><br />Question 2:- Based on the "style #" selection i want an image to be populated from C: (it should search the whole drive to find filename/style number) Please advice.<br /><br />Lastly i have already looked at the Purchase Order sample PDF which came with LiveCycle..and it doesnt seem to be of much help.<br />Thanks in Advance-<br />AK Dolven

    Hi Judy,
    I think you need to programatically set the layout and copies options for your XML publisher concurrent program using FND_REQUEST.ADD_LAYOUT before calling FND_REQUEST.SUBMIT_REQUEST.
    Thanks
    Shailendra

  • Acrobat 9 - Populate fields from a XLS

    I am using Acrobat 9 and I want to createa fillable PDF that upon the user’s choice for the first field, autofills the 2nd and 3rd field basing on the content of an XLS file.
    I have an list.xls file that gets updated regularly, and it looks like as follows:
    Machine description
    Serial no.
    Last checked on
    Sewer
    1111111
    2010/05/12
    Groover
    2222222
    2008/04/25
    I would like to create a fillable PDF where the user choose the machine from a drop down menu that shows the machines listed on the first column of list.xls, and upon the user's choice it populate automaticaly the fields "serial no." and "last check" with the data from the other two columns of list.xls.
    I have never used JavaScript before,so please keep it simple.
    Your help is very much appreciated,
    Paola

    If you want to fill the LiveCycle Designer form, then you need to render it with the datafile.
    The datafile can be an XML file or a webservice or Database.
    You cannot directly fill the PDF from a PHP script. What you can do is, have a LiveCycle Process created in Workbench and then invoke the Process from PHP application by passing the information. The Livecycle process will merge the data with the template and return the PDF to the client application.
    There is an other feature in Acrobat PRO that you can import an XML file directly into a PDF but that is a manual effort. You can not link that to a PHP Script.
    Thanks
    Srini

  • Populate fields from ODBC

    Im trying to populate through odbc certain fields on the form, [ex. patient_id, firstname, last name, address, etc] which must change when primary/unique field [hence patient_id] is updated. Relationship is dictated by default from db and is picked up by msquery as well. However i cannot find a way to create relationship of all fields to each other and aspecially primary key. Please advise me of how such can be assembled. I need for the form only to grab database fields, and based on primary key fill out portion of the form. [no need to overwrite/write to db] Thanks, your help would be greatly appreciated!!!

    Hi,
    Try this link:
    http://forms.stefcameron.com/2006/10/12/displaying-all-records-from-an-odbc-data-connectio n/
    Hope this will help!!
    Regards--
    Chalukya.

  • How to populate fields with no values in a report..?

    Hi Gurus,
    We have a query, which is filtered with some 60 GL Accounts. Some of these GL account has no values or activity since long back. But we need to display it in the report for some reasons. Since it doesnu2019t have any value, its not coming up in the report. Only the accounts with values are coming up.
    Is there any way I can bring these accounts in the report with 0 as values...? Any help is highly appreciated.
    Thanks
    Uan

    Hi,
    please try to do wth the help of Query property .
    in query property set property -  display zero as
    First try display zero as A .. if its working fine then put the value which you want to show or else put 0 .
    Alsoclick on structure and checkif 0 is supress .. if yes uncheck that .
    regards,
    Aparna

  • Is there a way to automate an indesign catalogue so that it populates fields from excel?

    A client has seen a competitor present a catalogue and shows how from an excel or database file this indesign template can be populated with text and with images from a filename listed in the the excel.  Does anyone know how to do this or can you suggest a program that can do it - have a meeting in the morning and supposed to be all over this so any assistance much appreciated.

    Use Data Merge.
    See: http://help.adobe.com/en_US/indesign/cs/using/WSa285fff53dea4f8617383751001ea8cb3f-6c3ca.h tml
    Also see:
    http://indesignsecrets.com/automating-data-handling.php
    http://indesignsecrets.com/data-merging-part-2.php
    http://indesignsecrets.com/data-merging-part-3.php

  • How to populate Initial value of a field from another item value

    Hi
    In my expense report entry screen I have justification and description fields. My description field is getting value from the database. I want justification field also get the value same as what description has. Could you guide me on how to achieve this via personalization?
    Thank you.

    Hi,
    user622444 wrote:
    In my expense report entry screen I have justification and description fields. My description field is getting value from the database. I want justification field also get the value same as what description has. Could you guide me on how to achieve this via personalization?---Copy the viewAttribute name of the description
    ---Paste it in Justification view Attribite property.
    Regards
    Mehar Irk

  • Update Routine to populate 0VENDOR from either of the 2 data source fields

    Hi,
    I have a requirement to write an update routine for 0VENDOR based on the below logic :
    Create routines to populated BW Info Object u201CVendoru201D (0VENDOR) based on the following logic:
    IF field u201CVendoru201D (ITM_VENDOR_ID) is populated from data source 0BBP_SC_TD_1, THEN populate 0VENDOR with that value
    ELSE IF u201CPreferred Vendoru201D (ITM_PROPVEN_ID) is populated from data source 0BBP_SC_TD_1, THEN populate 0VENDOR with that value
    ELSE IF neither u201CVendoru201D (ITM_VENDOR_ID) or u201CPreferred Vendoru201D (ITM_PROPVEN_ID) are populated from data source 0BBP_SC_TD_1, then 0VENDOR = NULL
    Can anyone help me in converting this logic into ABAP routine.
    Thanks,
    Suchitra

    Hi Suchitra,
    In the Transfer Rules ... You will be mapping each field then the mapping field click on the button with Triangle then you can see the which type you want.
    Then select the routine and select the datasource fields (don't forget to select the both fields VENDOR and PROPITM)...
    Then give a name to routine ...
    and in the code just change the COMM_STRUCTURE to TRANSFER_STRUCTURE.
    Then you can get this .... done..
    Regards,
    Ravi Kanth

  • Need to get the values from "Signed" field from PDF form.

    Hi,
    This is Dinesh. I am PHP Developer. My issue is "I am not able to get the value of "signed" field from the PDF form when the form has been submitted.". I want to get the Digital Signature value of that field and i need to store it in the DB.
    Please help me here Or Please forward this issue to any of the PHP developer who solved this issue and let me know.
    Thanks & Regards
    Dinesh

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • Extracting Values of a Field from a Database Table in SAP ECC System

    Hi,
    I downloaded Extracting Values of a Field from a Database Table in SAP ECC System Using MII 12.0
    senario from sdn. I'm trying to do that senario in MII 12.05. But I have problem with section 6 in page 7 (you can supply senario from sdn)
    "6- Under the loop of Repeater, use action u2018Rowu2019 to append just the string part of the WA which will display only values for field u2018Batchu2019"
    I did not find WA elemen in Output element of Repeater_0
    How can I create WA element?
    Thanks.

    Cemil,
    Set up a SAP JCo Interface action block.  Use the RFC name RFC_READ_TABLE.
    In the link editor map the table to "MARA", set RowCount to something small (20 is good sample size) and create an xml transaction property named FIELDS and copy the following into it:
    <?xml version="1.0" encoding="UTF-8"?><FIELDS>
          <item>
            <FIELDNAME>MATNR</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>MTART</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>BSTME</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>XCHPF</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>DATAB</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
        </FIELDS>
    Then link the Transaction.FIELDS to SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/TABLES/FIELDS}.  You may run into problems with two other fields and optionally they can be removed (set link type to remove xml).  I usually remove them initially for testing.  The two fields are:
    SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/NO_DATA}
    SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/DELIMITER} (or you can set this to something like a semicolon,";" or tilda,"~".  I find it easier to caclulate position by length, but that is my own idiosyncrasy.)
    Once you get this one working, we can explore how to do filtering on the dataset.  Your output should be something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <RFC_READ_TABLE>
      <INPUT>
        <DELIMITER />
        <NO_DATA />
        <QUERY_TABLE>MARA</QUERY_TABLE>
        <ROWCOUNT>20</ROWCOUNT>
        <ROWSKIPS>0</ROWSKIPS>
      </INPUT>
      <TABLES>
        <DATA>
          <item>
            <WA>000000000000000023ROH 00000000</WA>
          </item>
          <item>
            <WA>000000000000000038HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000043HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000058HIBE 00000000</WA>
          </item>
          <item>
            <WA>000000000000000059HIBE 00000000</WA>
          </item>
          <item>
            <WA>000000000000000068FHMI 00000000</WA>
          </item>
          <item>
            <WA>000000000000000078DIEN 00000000</WA>
          </item>
          <item>
            <WA>000000000000000088FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000089FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000098HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000170NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000178NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000188NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000288HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000358HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000359HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000521HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000578FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000597HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000598VERP 00000000</WA>
          </item>
        </DATA>
        <FIELDS>
          <item>
            <FIELDNAME>MATNR</FIELDNAME>
            <OFFSET>000000</OFFSET>
            <LENGTH>000018</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Material Number</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>MTART</FIELDNAME>
            <OFFSET>000018</OFFSET>
            <LENGTH>000004</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Material Type</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>BSTME</FIELDNAME>
            <OFFSET>000022</OFFSET>
            <LENGTH>000003</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Purchase Order Unit of Measure</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>XCHPF</FIELDNAME>
            <OFFSET>000025</OFFSET>
            <LENGTH>000001</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Batch management requirement indicator</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>DATAB</FIELDNAME>
            <OFFSET>000026</OFFSET>
            <LENGTH>000008</LENGTH>
            <TYPE>D</TYPE>
            <FIELDTEXT>Valid-From Date</FIELDTEXT>
          </item>
        </FIELDS>
        <OPTIONS />
      </TABLES>
    </RFC_READ_TABLE>
    Add a repeater sourced on:
    SAP_JCo_Interface_0.Response{/RFC_READ_TABLE/TABLES/DATA/item}
    Link your repeater output to a tracer with this:
    Repeater_0.Output{/item/WA}
    What you will see in each tracer message is a single line of data with all the fields contents concatenated together.  You can look up what each field in the string represents by the length of the field as returned in the Response segment of the RFC_READ_TABLE rfc.  Then you can parse out the data you are interested in.
    Give this a try and let me know how you succeeded.
    By the way, I could not find the scenario you referred to.  Can you post a link?
    Regards,
    Mike
    Edited by: Michael Appleby on Jan 12, 2009 5:16 PM

  • Assign direct material cost to value field in copa while issue to Prod orde

    Dear All,
    My requirement is like this:
    There are some 16 material groups from A to P each containing some materials(finished goods).
    I want to allocate overhead to different material groups(Charecteristic in copa) in COPA using the periodic assesment cycles. I am able to allocate overhead(admin & sales cost) to different value fields in copa from different cost centers.
    I want to analyse the product cost and also the profitability of each material group in COPA using Report painter. Iam able to pull all the costs which i assign to value fields using assessment. But, i am NOT able to get the direct material cost which is issued to production orders using BOM.
    My question is whether we can assign the direct material cost to any user defined value field(material cost value field) while the material is being issued to production orders. Is there any automated way where we can directly assign the direct material cost to value field in copa while issuing the material to Production orders.
    Pls explain me whether we can do it. if yes how?
    Thank you very much in advance.
    Regards,
    Vishnu
    VST-IT.

    PA is a Profitability analysis tool. That means it gets updated when a sale is made, not before. (Except for settlements and assessment of overheads.)
    Goods issues for production gets updated in CO-PC, and needs to be analysed there. If you don't, you loose all the inbuilt tools for variance analysis, cost estimate comparisons, Wip Calculation etc. To the best of my knowledge, a Profitability Segment cannot be used as a cost object in Production Planning, because amongst others, you need to be able to capitalise the produced materials to stock at the end of the production run, or to WIP at the end of the Financial period,which is not possible with PS.
    Similarly, overheads are recorded in CCA and needs to be analysed there.
    If one goes against these big groupings in SAP, you always run into problems.

Maybe you are looking for