on 06-19-2008 1:27 PM
Hi Pros,
Where exactly is the code for Adobe Forms written?
I have a requirement of adding a new column to one of the existing tables of a form. I'll illustrate this with an example.
> Imagine we have a 2 Column table. Let's call the columns as A, B.
> A new column C has to be added who's value is A/B.
Where do I have to write this code?
Thanks,
Ravi
Hi,
Insert a breakpoint in the driver program or You can do it interface level under code initialization by writing the statement break-point.
Regards,
Nisrin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have 2 questions here:
1) Does the code under "Initialization" get called after all the data in the form has been populated or before it happens?
2) I still don't know where to get the Driver Program from. I'm modifying the standard Adobe Form - PTRV_EXPENSE_FORM. So where will the driver program for the standard one be located?
Kindly help.
Thanks,
Ravi
Hi Ravi,
Answering first question,
Code intialization triggers after the data is passed into the respective tables and fields which u are sending via form interface.
Answering second question,
You must be using an transaction to call your output.. If you are doing so then find out which application it belongs to ,
For ex: Va03 transaction belongs to V1 application.
Once u get the application name, Nace-> Select application name-> click output types-> find your output type -> click processing routines-> You will find the program name.
Regards,
Nisrin.
I'm modifying the standard Travel Expense template (HR-FI Module).
The problem I am facing right now is - I am not finding which Output Type the form belongs to in NACE. I looked into all the available output types but none of them seem to match what I am looking for.
Kindly advise if I am missing out onsomething.
The form is PTRV_EXPENSE_FORM.
TCode is PR05.
Hi All,
The problem has been solved... I know it's been real long time since this thread has even started, but its my courtesy to share what I have learnt.
The code should be written in the CODE INITIALIZATION part only, but I found that it was too rigid an editor - so I called a sub-routine of a different program and wrote all my code there!
Thank you all for your help - especially Nisrin!
Ravi
Hi Ravi,
I have the same issue.Regarding code, i have done the changes as discussed in this forum earlier but i am facing the problem in changes in layout i.e. i need to add a new colomn in Meal per diem table
For this, i have changed the structure for meals per diem table in the interface of the form but when executing the form, the whole table for meals per diem is being disappeared.
Could you please update me on this as it is very urgent.
Thanks & Regrads,
Prabhjot
Hi,
You can only code the initialisation code in the transaction.
In SFP , open the interface ,click on Initialisation - > Code Initialisation and in the right hand side window you may write the code.
Other than initialisation coding all the other code may be written in the driver program only.
Please revert back incase of any doubts.
Warm Regards,
R Adarsh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
you can add two values by using javascript or Formcalc.
for example go through Help->Adobe LiveCycle Designer Help.
Regards
Adil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The code is written in driver program, where the form is called before the two tables are passed an interface.
So whatever changes you need to make you will have to do in the driver programs itself.
Regards,
Nisrin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nisrin,
I presume you are speaking about SAP Scripts. I am working on Adobe Forms - TCode is SFP.
Adobe forms does not work that way. They have an "interface" tied with the form and everything happens in that interface. My question is where in this interface is the code written? I might have missed something, but seems like Adobe Forms does not work the way you said it would.
Thanks,
Ravi
check where this adb form is called.
if this table is passed as an import to the form u need to change it in the program where it is called and in the layout of the adobe form.
if this is decled in form interface then u need to change the table in form interface globel data and then change in the layout.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is a standard form. The value has to be compiled within the interface.
My question is: where do I actually find the code for the interface. If the adobe form has, say, a table, which contains three rows, where does the data for the three rows come from?
Now if I want to add a new column, where should I write the code for fetching the data for that new column?
Adobe forms(Print Forms) and Smartforms/scripts what ever may be you need the Driver program.
Data comes from Driver program to the interface.
If you want to populate the third column we have various options..
1. Using Driver program..
2. In the interface Code initialization you can do that..
3. Run time using Form CALC or Java Script.
If you are not sure please let me know...
Regards
Vijay
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.