Using conditional breaks
Hello all,
I am currently working on a form that has a fixed layout, meaning everything is placed in a Positioned subform. I have to do this because at the bottom of the page there is a table that lists approvers of the form. The aprovers need to provide a digital signature (meaning the table cannot be a part of the master page) and I do not want the approvals table to repeat on subsequent pages.
Now for the problem.
Above my approvals table I have a table with a repeatable row so that users can add and remove rows as necessary. This table is in a flowed subform and works perfectly, and I have set a max # of row instances to prevent the two tables from overlapping. However, I need to be able to set the text fields in this table to expand to fit, so that when users have a lot of text to enter they can do so. This causes the tables to overlap if the user enters too much text in too many rows.
I am looking to either create a conditional break or a script of some sort that can evaluate the height of my expanding table and create a page break when it reaches a certain height in order to prevent overlap with the approvals table below it.
I apologize for the difficulty of the question and I appreciate any help that I can get.
-Alex
Check the following thread for looping over a table --> Read Table Java script
Then as specified in the thread in the "for" loop of Table write an "if" condition for the 1st column to check whether it is "A" or "B".
if ( xfa.resolveNode("data.tablesubform.table1.row["+i+"].column1").rawValue == "A" )
HeaderField.rawValue = "ANGRY";
else if ( xfa.resolveNode("data.tablesubform.table1.row["+i+"].column1").rawValue == "B" )
HeaderField.rawValue = "BETTER";
I have not checked this but see if it helps.
Chintan
Similar Messages
-
Smartforms, how to use control break events
Please help with this requirement.
Purchase Docu No.111
Pur Item No Mat no Quantity
1 2356 2000
2 1256 2000
3 8556 2000
Purchase Docu No.112
Pur Item No Mat no Quantity
1 9656 2000
2 7356 2000
3 1356 2000
Purchase Docu No.113
Pur Item No Mat no Quantity
1 5356 2000
2 8356 2000
This i have to design for the smartform.
1 header data then its item data.
like is Script i can call the WIndow elements using control break events in the driver prog but how to get this kind of output in Smartforms.???????
ThanksI dont want trigger new page.
In the same page i want like this
I have purchase docu data in only 1 internal table.
So, for every new VBELN, under this i want its corresponding item details.
I have created the command node for the main window with 2 rows, in the 1st row i am giving VBELN and in the 2nd row i am giving in item details like item no, matnr etc etc and in the condition its askng Field name and Comparison Value.
How shold i give condition.??????
Thanks
Edited by: Jalaaluddin Syed on May 1, 2008 5:03 PM -
Conditional Breaks on subnodes/item level
Hello experts,
We have a requirement for a new Adobe Form, which has a header table and an item table. We have to print multiple documents in 1 printout.
Our Adobe Form context layout is as follows:
- Context node for the Header (1 record for each document)
- Subnode with the item information ( WHERE conditions are set to the specific document key, so we only have the relevant items of the document in the loop )
We have added a Pagination -> Conditional Break based on the header table key, to trigger a new page break for each document.
But we have a 2nd requirement where we need to trigger a 2nd conditional break based on an item partner difference.
This means we would have to add a conditional break, on the subnode which contains all the item information.
In Adobe Forms, according to our finds, it does not seem possible to trigger a condition break in a subnode/item table, is this correct?
Is it nescecary to bring all the conditional break fields to the header table?
The requirement wants this layout:
- Document 1
- ITEM PARTNER A
- Item 1 partner A
- Item 2 partner A
( TRIGGER ANOTHER BREAK for new Item Partner display ) <- The issue
- ITEM PARTNER B
- Item 3 partner B
( PAGE BREAK TRIGGERED ) <- OK
- Document 2
We were wondering what the most proper/clean/best practice way is, to achieve this requirement.
( without having to duplicate records on the header table, by means of moving the required field from the item table to the header table )
Thx
Kind regards,
WouterHi Wouter,
Thanks for your response yes its not possible to achive this in nested table. I achieved my output using below logic by duplicating records and using Java script..
http://scn.sap.com/thread/3702677
Regards,
Manu -
Conditional breaks in nested table
Hi Experts,
I have static table and inside it there a row with flowed subform and other binded table , in the inner table I want to set
conditional break on one field , I have it to put it in the row that contain a table ?? how can I access the field of
inner table from the row of the outer table???
thanks in advanceHi,
You can access the field of the inner table from row of the outer table using following script:
data.page1.TableOuter.Row1.TableInner.Row1.cell1.rawValue;
Thanks,
Radhika -
Hi, why do we use the break and continue structure?
Hi, I was wondering why do we use the break and continue structure in some program such as:
for ( int i = 1; i <= 10; i++ ) {
if ( i == 5 )
break;
So, now why do we use those codes, instead of achiving the same results by not using the if structure.
I am new in java so I can be totaly wrong that is why my question come to you guys.
I will appriciate if you let me understand more.I may not completely understand your question, but - imagine the following scenario:
// Looking for some value in a long, unsorted list
Object target = null;
int index = -1;
for (int i = 0; i < list.size(); i++) {
Object curObject = list.get(i);
if (curObject.equals(source)) {
target = source;
index = i;
if (target != null){
System.out.println("Found it at " + index);
}You will always run through the entire long list, even if the thing you are looking for is the first thing in the list. By inserting a break statement as:
// Looking for some value in a long, unsorted list
Object target = null;
int index = -1;
for (int i = 0; i < list.size(); i++) {
Object curObject = list.get(i);
if (curObject.equals(source)) {
target = source;
index = i;
break;
if (target != null){
System.out.println("Found it at " + index);
}You can skip whatever's left in the list.
As for continue, yes, I suppose you could use a big if, but that can get burdensome - you end up with code like:
for (int i = 0; i < list.size(); i++) {
Object curObject = list.get(i);
// you want to do the rest only if some condition holds
if (someCondition) {
// do some stuff -
// And you end up with lots of code
// all in this if statement thing
// which is ok, I suppose
// but harder to read, in my opinion, than the
// alternative
}instead of
for (int i = 0; i < list.size(); i++) {
Object curObject = list.get(i);
// you want to do the rest only if some condition holds
if (!someCondition) {
continue;
// do some stuff -
// And you end up with lots of code
// all outside of any if statement thing
// which is easier to read, in my opinion, than the
// alternative
}Hope that helped
Lee -
Subtotal in trailer on conditional break (PDF Form)
A row put by conditional breaks as trailer ( with condition "Items[-1].VPROC ne Items.VPROC" for example).
How to calculate subtotal on some field in this row?
Any example?Hello,
the recommended solution is to do this in backend (add a row into the table of rows, add a column which will be hidden in the form, where there will be something like 'X' if the form is a subtotal, based on the 'X' mark you can change the row color for example). Or you can do that in the form using scripting but that is not very friendly.
Regards Otto
p.s.: note there is Adobe forms forum under NetWeaver -
Hi,
We use Adobe LiveCycle Designer ES2 9.0.1.0....
We have a form which can create one letter per PDF. Now we want several letters per PDF, all with the same address but with different items.
Problem
What we already tried is to have a conditional brake. With this items are written on master page 3. But master page 3 should only show up with no items on it, then an address again and only afterwards the next items should appear.
Our PDF should look like this:
letter 1----
Address
Item1
Item2
Additional Page (master page 3)
letter 2----
Address (same Address as above)
Item3
Item4
Additional Page
letter 3----
..and so on
Our data file xml contains the information for only one address and has the structure
Address
Items
-Item 1
-Item 2
-Item n
Our Form has the structure
Master page 1: Start of a letter.
Body section shall contain Address and Items
Master page 2: Overflow
Body section shall contain Items
Master page 3: Additional Page at the end of (nearly) every letter.
Body section shall contain Nothing.
Thanks and Regards
TobiasThe Problem is solved now:
1. The address has to be moved from the content area of the master page 1 to the master page 1 itself.
2. Two conditional breaks were added to the table which displays the items.
a. The first one has
-"To" = "Top of Master page 3" and
-"leader" = "(None) and
-"when" = the grouping condition for the items.
b. The second has
-"To" = "Top of Master page 1"
To avoid that items are printed onto the Master page 3, the height of the content was set to 1 mm. So this page only shows up but the next items immediately flow over to master page 1.
Regards
Tobias -
How can I create a conditional break in webi ?
Hello Mister and Misses
Can somebody explain me how i can create a conditional break , because i want to limit the number of lines to 9 l ines in a bloc
each 9 lines I want to create a break
Thank you
example :
1 toto
2 titi
3 taa
4 tutu
5 papa
6 popo
7 tata
8 momo
9 mimi
(break)
10 mumu
17 maxe
18 fax
(break)
19..
My first column is not a dimension so, i can't manage to make a break
How is it possible to tranform a measure to a dimension in order to make a break on each 9 lines
thank youTien,
Try myFile.WriteText('\x0c'); instead of myFile.WriteText('\f');
Regards
Richard Stobart
-----Original Message-----
From: Wang, Tien [SMTP:[email protected]]
Sent: Friday, September 12, 1997 6:09 PM
To: Glen A. Whitbeck
Cc: forte-users; owner-forte-users
Subject: RE: How can I create a page break in a file?
Thank you, Glen. I tried WriteText. But it didn't work.
Tien Wang
Indus Consultancy Services
[email protected]
From: Glen A. Whitbeck
Sent: Thursday, September 11, 1997 11:59 AM
To: Wang, Tien
Cc: forte-users; owner-forte-users
Subject: Re: How can I create a page break in a file?
Instead of using "WriteLine," try using "WriteText" ("WriteLine" writes
TextData into an open file, while "WriteText" writes data to a stream)
like this:
<method 1>
myFile : file = new();
myFile.WriteText('\f');
Glen
Wang, Tien wrote:
Hi,
I am creating a text file for a report which contains multiple pages.
How can I create a page break in my file? I tried to use the
following
two methods, but neither of them works. Specifically, it seems a
special
character printed in the file. But when I print the file through a
WordPad, it didn't separate pages.
I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
printer. Any help will be greatly appreciated.
Tien Wang
Indus Consultancy Services
[email protected]
>
<method 1>
myFile : file = new();
file.writeLine('\f'); --- \f is the form feed in the C language
<method 2>
myFile : file = new();
j : IntegerData = new( value = 14 );
c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
p : pointer to char = &c; -- Set a pointer to the character
pageBreakTxt : TextData = new();
pageBreakTxt.Concat(p);
myfile.writeLine(pageBreakTxt); -
In alv report can i use control break events? if no .whay?
Hi all,
in alv report can i use control break events? if no .whay?hi,
you can use control break statements in ALV report.
for example: if one PO is having more than one line item, that time you need to display PO only once. -
What happen if i use controll break statement in between select & endselect
Hi all,
what happen if i use controll break statement in between select & endselect ?
Thanks in Advance
KRHi for reference u can go through this code example
data:
fs_tab like sflight.
data:
t_tab like standard table of fs_tab.
select * from sflight into table t_tab.
loop at t_tab into fs_tab.
write: / fs_tab-carrid.
endloop.
refresh t_tab.
clear fs_tab.
select * from sflight into fs_tab.
at new fs_tab-carrid.
append fs_tab to t_tab.
endat.
endselect. -
How do i use conditional formatting to edit the color of other selected other cells?
I have been playing around with the conditional formatting feature of Numbers, I have figured out how to change font and background color of the cell i am working with.
However what i am looking to do is apply a background color formatting to another cell (i.e. F2) if conditions are met in (B2).
the end game is this,
I want to make a column of check boxes, and using contional formating i want adject cells to change color (I.e. the example above: if (B2) is a check box, then when unchecked the reffered Cell (F2) does nothing, but when check the color of (F2) changes)
I can make this happen with Logic equations, the give (i.e. F2) some letter or number value, then using conditional formats i can have the color change. but this leaves that particular cell useless to me (i.e. F2) I am not free to enter or edit text in that cell. (i.e. =IF(B2=TRUE,"Paid","Due") ----> then add a conditional statement that chages color when the value is either "Paid" or "Due")
How do i have F2 change color, when B2 is checked and still retain the ability to enter information (or potential have another formula) in F2? (The Cell is not used up by "Paid" or "Due" it is editable just like any other cell)
is there anyway to change cell characteristics like font, color, and background color inside a formula, because in that way i would be able build it manually
i tried using the formula editor inside the conditional format pane, but the only infor it will allow me to retain is one partictular cell. i cannot add modifiers like "+" or "=" or anything else. what is that space used for then?
thanks for anyones helpMC,
You can do what you want in Numbers. It requires an auxiliary column and it's a bit tedious to set up because conditional formatting by comparison to another cell isn't relative, so each cell has to be programmed individually with no option to Paste or Fill to other cells in a range.
For explanation purposes, let's say your checkbox is A2, your cell to be conditionally formatted is B2, and your auxiliary cell is C2. To have the format of B2 determined by the checkbox status in A2, you will:
1. In C2 write: =IF(A, B, " ") The " " is any string or value that you don't expect to encounter in B normally, and using the space character means you don't have to worry about having it visible if C is in View.
2. In B2 use Conditional Format: "Equal To" cell C2 and set your text and fill attributes to be used when the box in A is checked.
That's it. Do that for every cell in the range.
Jerry -
Can you transfer data from one numbers spreadsheet to another using conditional formatting?
I have a tracker document set up for client payments and when I indicate payment received, it flags green using conditional formatting. However I would like these to automatically transfer to another sheet - without having to cut and paste the associated data to the other sheet. Can I set up conditional formatting to do this? If not how could I get and automatic transfer?
thanks forum.Hi Kangers,
There are a number of ways to transfer data from one table to the next. It should not be hard to set up.
Conditional formatting would not be involved it moving the data but you could set it up to flag the data in the new table.
Without knowing what your tables and data look like it is hard to propose a solution.
quinn -
Hi Experts,
I am working on conditoinal breaks in adobe.
My requirement is: For a delivery item if i have 3 batched i have to print 3 forms with item data. Here the data of one batch can flow into multiple pages I had applied a conditional break on batch field at the item level of the table(designed with dragging the table into the layout.). this form contains Batch at header and footer. When the data fits in one page conditional breaks are working fine and i am getting 3 forms in the same spool as desired. But when there is more item data conditional breaks are not working properly.
Issue like item data over flow on the footer and batches are not showing up properly according to the page breaks.
Please help on this issue.
Thanks,
AnilGuys, Tell me if my question was not clear or need further information.
-
How to use Pause / Break button on Macbook / Small Apple Keyboards
I have ready many forums regarding the inability to use Pause / Break button on Macbooks (or other small keyboards made by mac) without using a USB pad extension. And all of those threads are closed and will not let me reply with MY ANSWER / SOLUTION!!
Lets just say my life depended on getting a Pause button working on Bootcamp Windows 7 x64 macbook. I googled away, with no answers... I did know about the fn option to perm in windows btw.
BUT, i remembered, when i couldn't get my x64 bit drivers for Bluetooth keyboard to work, that there was a VIRTUAL KEYBOARD inside of "ease of access center" inside of Control Panel (all view). Find "use the computer without keyboard" and enable "use on screen keyboard"
Now you will be able to click PAUSE virtually in keyboard...
I dont know if this is an option in XP or vista, but Im sure its built in as well.
YOUR WELCOME ;PI've been going crazy tring to figue this out as well-- I use Microsoft Remote Access on my Macbook Pro. I found this archived post below-- it worked for me!!!
MWithersIT
Nov 3, 2010 1:09 PM
I have ready many forums regarding the inability to use Pause / Break button on Macbooks (or other small keyboards made by mac) without using a USB pad extension. And all of those threads are closed and will not let me reply with MY ANSWER / SOLUTION!! Lets just say my life depended on getting a Pause button working on Bootcamp Windows 7 x64 macbook. I googled away, with no answers... I did know about the fn option to perm in windows btw. BUT, i remembered, when i couldn't get my x64 bit drivers for Bluetooth keyboard to work, that there was a VIRTUAL KEYBOARD inside of "ease of access center" inside of Control Panel (all view). Find "use the computer without keyboard" and enable "use on screen keyboard" Now you will be able to click PAUSE virtually in keyboard... I dont know if this is an option in XP or vista, but Im sure its built in as well. YOUR WELCOME ;P -
Dear All,
I am trying to use the functionality Transportation and Shipment Scheduling in GATP.
I would like to know that how the sytem determines the process alias using condition technique in Transportation & Shipment Scheudling?
As the Transportation & Shipment Scheduling functionality can be extended further by using the configurable process to overcome the complex scenario. But it needs that process alias should not be determined by using the condition technique.
Moreover, is it possible to use both functionality simultaneously in the system. i.e. Transportation and Shipment Scheduling using condition technique and Transportation and Shipment Scheduling using configurable process?
Thanks & Regards
Piyush RanpuraHi Piyush,
I have added a small overview in the SCN WIKI which shows you the two ways for the process alias determination and also here as attachment:
http://wiki.sdn.sap.com/wiki/display/SCM/Time+and+Scheduling+Functions
Yes, depending on your customizing you can use both scheduling methods in parallel. e.g. you activate CPS just for a specific ITEM category or product and/or customer and/or....what ever you want.
best regards,
Michael
Maybe you are looking for
-
Error when Creating a ServiceClientFactory instance JAVA API
When invoking Assembling a PDF document quick start I'm having a compilation error when creating a ServiceClientFactory instance: //Create a ServiceClientFactory instance ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectio
-
Hi , I have the masterdata loaded and activated to the infoobject acttype. when i am loading data to the ods it is giving an error message No sid found for acttype. The master data loaded to the acttype and it is activated. What could be the reason f
-
InDesign CS3 inverts JPEGs before export
I'm laying out a youth group's yearbook, and I'm having a fairly hard time of it. The layout is going fine, linking seems to work, but when I go to export the file to PDF, many of the JPEGs have inverted (they are now negative). I am at loss as to ho
-
DSL Modem will not give me an IP address
I keep getting the amber flashing light when I am connected to my DSL modem. Airport Utility says that I am not getting a Valid IP address from my modem. My Linksys wireless router works fine, I even tried connected my Linksys travel router to my DSL
-
Auto retry for the instances under manual recovery
Hi I have a situation where i need to refire all the instances which are in activities tab [because of manual intervention in the fault policy] at regular intervals. Checked the documentation where it says in 10.1.3.4 we can configure a time frame wh