Adobe Livecycle Designer Es4 Changing Another Field With Combo Box (drop Down Selection

0111

Hi Experts,I have created an offline interactive Adobe form and need help with java-script on events. I will describe my scenario below -I have written an SE38 report program which will generate the PDF. To pre-populate fields in the PDF, I have a structure DefaultValues which has a few internal tables. One of the internal tables Employees has 2 fields EmpCode and EmpName. I have written code to obtain a list of employees and populate this internal table Empoyees. I call the Adobe form and along with other parameters, pass this structure DefaultValues. Thus all the default values along with the internal table Employees pre-populated with the Employee Code and Employee Names have been passed to the Context.In the Adobe form I have a table with 10 lines with Employee details (6 columns, 2 of which are EmpCode and EmpName)In this table control, the column Employee Name is a drop down list.

Adobe acrobat javascript drop down list

For this column, under List Items, I have created a binding to the internal table Employees with default values. This binding Items looks like this - $record.DEFAULTVALUES.EMPLOYEES.DATA. with Item Text and Item Value having the value EMPNAME.When I test the form, I can see all the Employee Names in the drop down list in the column Employee Name of the table control.My requirement is that when a user selects an Employee Name from the drop-down list, the field EmpCode for that row in the table control should be automatically populated with the corresponding value of EmpCode depending on the EmpName which the user has selected.I am new to Java-scripts and Adobe forms. I have searched this and other forums, however I couldn't find the right code which I can place in either the Change or Exit event of the drop-down to accomplish this.Can someone please provide me with sample code to achieve this.Any help will be greatly appreciated.Thanks in advance.Regards,Neha. Hi Neha,I hope you have the stand alone non SAP flavour of Adobe LiveCycle Designer 9 installed locally.If yes, please follow the following post -It has a sample solution attached - you will probably do a similar thing.Because you probably shall have more data - it makes sense to have some sort of an hidden table with the Employee Name and Employee Code in it. While using Java scripting, convert the hidden table entries into 2 - D array and try to change the Employee ID drop down based on change of Employee Name Drop Down.Let me know of your progress.Regards,Rohit.

Adobe Livecycle Designer Drop Down List Values

Hi Rohit,Thanks for your reply.I have Adobe LiveCycle Designer version 8 on my machine. Do I need to upgrade to version 9?I went through the link you sent me, however when I import the sample form into SAP, I can't see the context or binding for these drop-downs. I had a look at the javascript behind the combo box, there are statements like - countryScript.getStatesOther(xfa, stateProv);I don't have such methods or scripts written in my scenario, any pointers on sample code or how can I get this to work.Regards,Neha. Hi Rohit,Thanks for this. I downloaded the standalone version of LiveCycle Designer and could view the code.

This is very useful.I have another issue though. The code in this example is using a 2d array. All the values have been hard-coded in this list. My data is however dynamic and comes from the calling program.If I can convert the array with fixed data into a dynamic one with data being read from the tables in the context, I can re-use the rest of the code with alterations to suit my requirement.Any idea of how I can integrate this code with the data from the Context.Regards,Neha.

Pdf drop down list populate other cells

Attention, Internet Explorer UserAnnouncement: Jive has discontinued support for Internet Explorer 7 and below.In order to provide the best platform for continued innovation, Jive no longer supports Internet Explorer 7.Jive will not function with this version of Internet Explorer. Please consider upgrading to a more recent version of Internet Explorer, or trying another browser such as Firefox, Safari, or Google Chrome.(Please remember to honor your company's IT policies before installing new software!).

This entry was posted on 11.01.2020.