Adobe forms nested table layout
Hi,
I have an xml input described by a schema including 3 level nested table like this:
Table1
__col1 col2 col3
__Table2
____col1 col2 col3
____Table3
______col1 col2 col3
In Adobe LC I have no problem to link the tables using Subforms but the PDF layout I get is very width because the subforms are lined up horizontal one after the other and some columns contains long strings.
I would like to place Subforms vertical with some indent, and get a layout more like this:
Table1 columns (first occurrence)
__Table2 columns (rows related to table1 first occurrence)
____Table3 columns (rows related to table2 first occurrence)
Table1 columns (second occurrence)
__Table2 columns (rows related to table1 second occurrence)
____Table3 columns (rows related to table2 second occurrence)
And so on.
When I try to move a Subform one under the other I get warnings about lost reference.
Please give me a hint how to do this.
/K-E
Hi Prakash,
Thanks for your reply.
I tried it..... but nothing came out...
Is there any alternative for this...
My Hirearchy is like this...
Main Table (SubformA - MainSubform) set as flowed, repeat for each data item
Maintable-field1 Maintable-field2 (Subform) set as positioned
Inner table (table subform) set as flowed
Innertable-field1 Innertable-field2 (subform) set as positioned
I linked the Maintable and the Innertable in the context in the 'Where Conditions' tab
Kindly review the above hirearchy and reply...
Guys please help me.... I am in an urgent state and need to complete this ASAP.
I will give full points for all of u guys...
Please.... please... please....
Thanks in advance.
Jaffer Ali.S
Similar Messages
-
Adobe form nested tables layout
Hi,
I have an xml input described by a schema including 3 level nested table like this:
Table1
__col1 col2 col3
__Table2
____col1 col2 col3
____Table3
______col1 col2 col3
In Adobe LC I have no problem to link the tables using Subforms but the PDF layout I get is very width because the subforms are lined up horizontal one after the other and some columns contains long strings.
I would like to place Subforms vertical with some indent, and get a layout more like this:
Table1 columns (first occurrence)
__Table2 columns (rows related to table1 first occurrence)
____Table3 columns (rows related to table2 first occurrence)
Table1 columns (second occurrence)
__Table2 columns (rows related to table1 second occurrence)
____Table3 columns (rows related to table2 second occurrence)
And so on.
When I try to move a Subform one under the other I get warnings about lost reference.
Please give me a hint how to do this.
/K-EThomas:
My context is as follows.
<CHANGING>
<REQUISITION_ITEMS>
<ELEMENT..1>
<ELEMENT..2>
<ELEMENT..3>
The cardinality of <CHANGING> node is 1..1 and the cardinality of <Requisition_items> is 1..n.
Thanks
Vijai -
ADOBE Form Using Table with dynamic number of rows
Hi All
First some information about our infrastructure:
- AdobeDesigner 7.1 in the Developerstudio
- SAP-Portal 7.0 SP15
I have a View with tabstrips and behind the tabs i have defined an event. On one Tab I included a ADOBE-Form with Table. The Data for the PDF sould only filled in the context for the Form when i jump to this Tab. I created the Form by using this documentation [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669].
To fill the tablecontext I use the following Code:
IPrivateAnlegenBANFView.IPositionenElement position = null;
IPrivateAnlegenBANFView.IPositionenNode posNode = wdContext.nodePositionen();
int NUM_5_TIMES = 5;
for (int i = 0; i < NUM_5_TIMES; i) {
IPrivateAnlegenBANFView.IPositionenElement posElement = wdContext.createPositionenElement();
+posElement.setMaterial("" + i);+
+posElement.setKurztext("Test" + i);+
+posElement.setWarengruppe("Warengr" + i);+
posNode.addElement(posElement);
If i put this code in the wdDoInit method it works fine and shows me 5 Rows. But if I put the code in the Action of the tabstrip it shows me only one row. I checked the entries of the context and there are 5 entries (showed them in a WD-Table).
Can someone tell me what im doing wrong?
Thanks for a answer and kind regards
PascalHi All
finally i found the solution for the problem.
When you define the interactive Form in the view do not define the property "dataSource" of UI-Element Interactive Form it seems, that the binding is static and not dynamic.
Add the following source to the viewCotroller
Global Part of the Source:
private static IWDInteractiveForm form = null;
Method wdDoModify:
if (firstTime) {
form = (IWDInteractiveForm) view.getElement("InteractiveForm");
When you have an Event where you fill your Contextnode which you want to display in the table of an Adobe Form Use this code:
Action:
public void onActionFillTab(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent ){
//@@begin onActionFillTab(ServerEvent)
* Code to fill the Node for AdobeForm Table
form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
//@@end
If you want to clear your table and show it directly use in the action the following code:
wdContext.nodeTabelle().invalidate();
form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
Kind regards
pascal -
Adobe Forms : Adjacent Table printing
Hi All,
I have copied standard adobe form PYXXFO_SAP_PAYSLIP_US2 payslip into custom one.
in standard form output in page is as below
EARNINGS
wtno wttext rate number amount
TAX
wtno wttext rate number amount
DEDUCTIONS
wtno wttext rate number amount
What I want to do is print Earnings and Deduction adjacently on same line, can anyone help me in this, please?Hi Santosh,
Change the layout as per your requirement. Wrap the earnings and deductions table in subforms as below:
Subform1
->Subform2(Earnings_table, Earnings_total)
->Subform3(Deductions_table, Deductions_total)
The content type of subform1 should be flowed(Choose it from object->subform->content in subform property).
Flow direction should be Western text.
The content type of subform2 and subform3 should be flowed and flow direction should be top to bottom.
Adjust the size of individual columns of both tables so that they can fit in layout side by side.
Hope it will give you an idea to proceed further.
Regards,
Vaibhav -
Update fields from Adobe Form to Table
Hello,
I want to integrate Adobe Form into Webdynpro ABAP Application in which I want to have 2 fields which need to be updated to a DB Table.
For this first I created an Interface in Transaction SFP , added 2 import parameters of type <Table Type>-<FieldName>. Then I created a Webdynpro Component created a new I Interactive Form UI Element and binded the Context of the Form to the Interface.
Then I added 2 fields to the form from Data View . Everything is fine but when I run the Webdynpro Application the fields are not available for Input.i.e. They are in the ReadOnly Mode.
The 'enabled' property of the Interactive Form is checked.
Please help.
Any help would be highly appreciated.
Thanks.
Edited by: SAPEPDeveloper on Feb 7, 2011 11:45 PMHi,
The process explained is ok, but I can explain you a better way.
1) Create the webDynpro Component first.
2) Create the context nodes as per the requirement.
3) From the 'integration' panel drag and drop the Interactive form UI element into the view.
4) Bind dataSource to root context node.
5) Check enabled property true.
6) Give a template source name (ZName).
7) On double clicking the template source, system will prompt you to enter the interface name. Map context node to the interface.
8) Interface gets created automatically and the lifecycle designer gets opened.
9) Goto the properties tab and give layout type as 'ZCI Layout'
10) Drag and drop required fields from the data view to the layout designer.
11) Insert webdynpro script from the Utilities
12) Edit -> Form Properties -> Defaults -> XDP Preview Format should be dynamic
13) Drag and drop 'Submit Button' from Library palette -> Webdynpro native controls
On clicking the submit button at runtime you will get the control in the webdynpro submit event.
Above all these you have to check with your basis team, that the 'usage credentials' have been applied while configuring the ADS. Go to SE38 and run the program 'FP_TEST_IA_01' and check whether it is giving an error message or not.
Hope this Helps.
Thanks & Regards,
Sanoosh -
All Records are not getting displayed in adobe form from table
Hi All,
I Want to display records from table to Adobe Form Table .
But While Displaying only some of the records are getting displayed How can i display all the records in next pages of adobe form.
Its Urgent PLZ Reploy soon.
Thanks & Regards
Kirandear friend,
please check the adobe format, must be match to
the data base format.
pls go to the setting and adjust the data base table.
if nothing is going click the radio button
html format.
that will work.
rewards are expecting.
vivek -
How to handle Adobe Form - Dynamic Tables.
Experts:
I am new to Web DynPro for ABAP and Adobe Interactive forms.
I have created a Adobe form with dynamic table. When I submit the form, WD4A is able to read only the first row of the table. Other rows are getting lost.
I thought just binding with the context will trasfer data from Adobe to WD4A. But it is not happending.
Do I need to write any code in WD4A and any script in Adobe Designer?
Can any one send me a sample code (ABAP and JavaScript). Even link to that will be very useful.
Thanks,
VijaiThomas:
My context is as follows.
<CHANGING>
<REQUISITION_ITEMS>
<ELEMENT..1>
<ELEMENT..2>
<ELEMENT..3>
The cardinality of <CHANGING> node is 1..1 and the cardinality of <Requisition_items> is 1..n.
Thanks
Vijai -
Custom Adobe Form as Offline layout in PMS
Hi Experts,
We are implementing PMS in EHP5.I have created customozed interactive adobe form.How can i use this adobe form as layout in R/3 for appraisal purpose?
I could find option Offline layout.But how i should proceed?
Please help me.
Regards,
Arun.Hi Arun
Step 1: Go Tcode: OOHAP_BASIC
Enchancement Area - AP Print Layout
Define your Enhancement
Example:
ZPRINT XXX print form
PMP PMP PDF
SMARTFORM Print Appraisal Documents: Old (with Smart Forms)
STANDARD Standard
Step 2: Go Tcode: PHAP_CATALOG
On your Template under Layout Tab
Further - Print Layout -> Plug in your Custom Print Form
You should be all set.
Thanks
RAjdeep -
HI ,
I NEW IN ADOBE FORMS I WAS CREATE ONE CUSTOM TABLE HAVEING 4 COLUMS IN THAT 4TH COLUMN IS AMONT FIELD. I WANT TO ADD TOTAL AMOUNT DISPLAY IN SEPRATE NUMERIC FILED. WHILE I ENTER DATA INTO IN THAT COLUMN AUTOMATICALLY ADD AMOUNT AND DISPLAY IN ANOTHER FIELD. PLZ HELP MEHI,
You search a FP* more number of Standard Adobe Forms there...
Regards,
Ansari -
Adobe PDF forms - Nested table where conditions
Hi all,
Kindly help me out...
In the context I have a outertable and an innertable
I had defined the where conditions so that my output should look like below
item 1 (outer table values)
(no entries to match item1) so it is blank
item 2 (outertable values)
item2name qty weight (inner table valeus)
but the actual output is printed like below:
item 1 (outer table values)
item2name qty weight (inner table valeus)
item 2 (outertable values)
The problem is, I have only one entry in inner table for item2. There is no entries for item1.
The where condition is not satisfied in runtime and it is giving wrong output...
Please guide me where I had made the mistake...
Thanks in advance,
Jaffer Ali.SHi Prakash,
Thanks for your reply.
I tried it..... but nothing came out...
Is there any alternative for this...
My Hirearchy is like this...
Main Table (SubformA - MainSubform) set as flowed, repeat for each data item
Maintable-field1 Maintable-field2 (Subform) set as positioned
Inner table (table subform) set as flowed
Innertable-field1 Innertable-field2 (subform) set as positioned
I linked the Maintable and the Innertable in the context in the 'Where Conditions' tab
Kindly review the above hirearchy and reply...
Guys please help me.... I am in an urgent state and need to complete this ASAP.
I will give full points for all of u guys...
Please.... please... please....
Thanks in advance.
Jaffer Ali.S -
Challenges with Adobe Forms and VC Layout
I'm having two small problems that are driving me nuts.
In the Visual Composer layout view, all of the UI elements are snapping to an invisible grid and making it very hard to create a "pretty" UI. I can't establish the vertical spacing that I want to have between my input fields, and I can't change the width of the input box. Suggestions?
In NWDS, I can't figure out how to invoke the Adobe Interactive Forms editor. I have Adobe Professional and Livecycle Designer installed. I can create Interactive Forms outside of NWDS, but I'd really like for the editor to show up inside NWDS.Hi,
Out of your two small problems, I do have a solution for a Visual Composer one. Its a limitation in this version that you cannot have a free style UI spacing that means we cannot just drag and put the UI elements anywhere. I hope it will be resolved into future versions. Hope this leaves you with only one problem in hand.
Cheers
Nidhi -
Issue in adobe forms(Printing table)
Hi experts...
I have one requirement.I have two tables in the form.In first table after each row second table should appear.This is done.But one issue is if no records are there in second table it should not appear in the form.i have written scripting for this.but of no use..Can you pls help me to resolve this issue..thanksHi,
Read the respective table that has entries.If it has zero entries(doesnt contain any data) then set a FLAG.
In the conditions tab set a condition if FLAG NE 'X'.
Hope this Helps.
Pls donot forget to give points if useful
Regards
Akmal -
Adobe Form internal table processing
Hi Experts,
I have written the code such as
var Items = xfa.resolveNode("xfa.record.ITAB.DATA")
var leng = Items.nodes.length
but getting error Error: accessor'Items.nodes.length' is unknown
I am using FormCalc script. How we process the internal table & get length.I am struggling last three days...Please help me out...
Thankshi,
I guess you are not passing the index correctly.
$.resolveNode("$record.GT_MAT.DATA<i>.MATGR
is not correct. Instead you should give it like this.
var nodelength = "get the length of the node here..
for (i=0;i<nodelength;i++)
$.resolveNode("$record.GT_MAT.DATA["+ i +"].MATGR"
Just be sure about the i outside the "" quotes.
Cheers,
Sam -
Adobe Forms Response Table View
Can you format table so the data default view is at top of cell?
Thanks for the clarification.
If you apply the style change after selecting the entire column, as shown below, the style is applied to the column and is inherited by new rows.
Regards,
Brian -
How to use nested tables in adobe form
Hi All,
I have to use nested tables in adobe form for table display. I have used Subforms for displaying table data. I have changed accessibility of the subforms. Currently i am able to print print the table correctly if there is single material record in table 1 and single corresponding record in table 2. But the requirement is that i will have multiple lines in table 1 for single material and only one record in table 2.
EX: form is for Sales order. in line items if the order is for 100 units then we if we have delivered material as 80, 10, 10, then table 1 will have 3 lines for this. Table 2 will always have only 1 corresponding record.
item--materialdescription-ordered qty--delivered qty--delivery date-price
xxx--xxxxxxx-xxxxxxxxx-10080xxxxxxxxxx-xxxx
10----
xxxxxxxxxx
10----
xxxxxxxxxx
yyyyyyyyyyyyyyyyyyy------yyyyyyyyyyyyyyyyyyyyy
xxxxxx is table 1 and will have multiple lines
yyyyyy is table 2 and will have only 1 entry for item xxx
and this group will be repeate as per no of items. table 1 can have any no of lines per item.
I am currently able to display 1 line for table 1 and 1 line for table 2.
But how to show multiple lines for table 1 and 1 line for table 2.HI,
Set the body page as flowed and set the tables also flowed.
go to bodypage>object->subform-->select flowed option.
I thihnk this will work..if u are getting all the records properly into the tables 1 and 2.
Thanks,
Mahdukar
Maybe you are looking for
-
How do I put my Itunes library on a different computer?
I want to put itunes on a different computer, but I'm not sure how to transfer all the apps, music, books, and playlists that I have in my library to an itunes on a different computer. Can someone tell me how this can be done in a detailed step-by-st
-
BADI 'ME_PROCESS_PO_CUST to populate TEXT at the time of PO creation
Hello All, I am using the above BADI to attempt to populate calculated text from class characteristics into a purchase order. Does anyone know if this can be done.I have checked the parameters that are available for this BADI (MEPOHEADER and MEPOITE
-
I recovered a back up from my time machine via a wired connection after getting the 'white screen of death'. Now Time Machine does not recognise any back ups on the time machine when connected wirelessly and wants to do a first back up of the whole m
-
Hi all, I want to credit note for receivable technially and functionaly and want to cover its topice like Transaction type setting, Auto account hitting etc. Please send me any line , if such document with screenshots then it may be more userful for
-
Edirol FA-66 / Logic Pro 8 Problem
I am getting no digital signal from the Edirol FA-66. However I can hear everything at the headphone output. Anyone ever work with the FA-66? Thanks