How to protect elements from line break in smartforms ??

in a smartform we pass variables that contain spaces which we don't want to break in a line
for instance
hello my birthday is 27 april 2010
27 april 2010 we absolutely don't want to break like
hello my birthday is 27
april 2010
when I just add it in a text element I can use <31> to prevent breaking only when I pass the value
27<31>april<31>2010 to a variable smartforms doesn't interpretet this correctly
in sapscript you can define elements which can be set to protect so it keeps it together only in smartforms that is also not possible.
is there a neat solution for this in smartforms ??
kind regards
arthur

I have also looked at the parameters that can be passed but there is no parameter which keeps the variable together
http://help.sap.com//saphelp_erp2005/helpdata/EN/1c/f40c64ddf311d3b574006094192fe3/frameset.htm
with ZC it wil also break down half way the variable.
If I click on the variable in the smartform I can't see where I can see the attributes ??
and page protection is for an entire block and not for an individual variable in a sentence.
like a text we have
     The Examination Board of the &GS_STUDY_EN-PROGTYPE& in
     &GS_STUDY_EN-NAME&, which is accredited on &GV_CONFER_ACCRED_DATE_EN&
     declares that
so if the name off the study is to long the date has to be printed entirely on the next line but if the study name is short it has to be printed right after accredited on.
kind regards
Arthur
Edited by: A. de Smidt on May 4, 2011 3:55 PM

Similar Messages

  • How to protect a text from line break in smartforms

    Hi Gurus,
    How to protect line break in a text element of smartforms. Text in that line is printing exactly 70 characters. I want the text to be printed fully till the size of the window.  How to stop this automatic line break.
    Regards,
    Rithika.

    What I have done may be helpful, so here are the details:
    I had a table of text values, so I converted this to a string with concatenate, then string to a long character field, then used RKD_WORD_WRAP to put into table of 132 characters.  Then I constructed a table of type tline by looping at my RKD_WORD_WRAP output,  and utilized SAVE_TEXT to temporarily store a TEXT entry, like you would save with SO10, saving my desired paragraph format into TDFORMAT field and inserting any necessary character format commands into the text. 
    In my SmartForm, I then have dynamic text processing pointing to the internal table fieldnames containing tdname, tdid, tdobject, tdspras of what I saved.  This allows SmartForms to utilize the full width of the window and optimize text output, based on window width, font, scale, paragraph format, character format, etc.  These text identifier values are passed as part of my internal table via the SmartForms interface.
    At the end of SmartForms processing, I loop at my internal table and utilize DELETE_TEXT to remove the temporary texts that I created for this set of output.
    To avoid page breaks in my text, I put my output for a "block" of data into a folder (see the SmartForms folder feature).  I have page protection on the folder...that way, SmartForms examines the length of the folder content and decides whether a page break should occur before any output for my block of data begins.  My block of data contains a few data elements over 5 rows of output followed by two separate dynamic texts of various lengths.  If the entire block won't fit on the remaining part of a page, page-break occurs first.

  • Calendar app. How do i insert a line break in the title of an appointment?

    How do i insert a line break in the title of an appointment?

    Jonny Marshall wrote:
    Hi, I've had this problem for a while now but just can't find the answer anywhere. I keep seeing that 'shift+return' or 'ctrl+return' will create a new line in a cell in numbers but it just doesn't! I can't seem to find a way of doing it. Please help!
    Difficult to guess what is wrong in your system or what you made wrongly.
    Here it work.
    Maybe a problem of corrupted preferences.
    Try to run Numbers from an other User Account.
    If it behaves flawlessly it will be time to try to disable the Preferences files:
    <startupVolume>:Users:<yourAccount>:Library:Preferences:com.apple.iWork.Numbers. plist
    <startupVolume>:Users:<yourAccount>:Library:Preferences:com.apple.iWork.Numbers. LSSharedFileList.plist
    (Also, not numbers related, but if you happen to know how I find out what version of OSX I'm using please let me know.)
    menu :  (Apple)
    menu item : About this mac
    Yvan KOENIG (VALLAURIS, France) jeudi 3 juin 2010 14:41:07

  • Very Simple: How do I programmatically add line breaks?

    Very Simple: How do I programmatically add line breaks or how do I encapsulate my RichCommandLink's within a paragraph?
    My Code is as follows:
    for (String token : userViews.getViewNames())
    // add command link
    RichCommandLink output = new RichCommandLink();
    output.setText(token);
    // set action here
    // output.setActionExpression());
    viewItem.getChildren().add(output);
    // update view
    this.menuAccordion.getChildren().clear();
    this.menuAccordion.getChildren().add(0, viewItem);
    AdfFacesContext.getCurrentInstance().addPartialTarget(getMenuAccordion());

    Sorry, I'm using Jdeveloper 11.
    Im using JSP, JSF, ADF, Fusion. The RichCommandLink is an ADF Control.
    My PanelAccordion is bound to a RichPanelAccordion in my java class. When I add RichCommandLink's to the accordion the items are added next to each other. How do I add line breaks from my java class?

  • How to delete elements from a cluster?

    Hello. I would like to know how to delete elements from a cluster. I got stuck with this problem. There is its own order of each element in a cluster. I tried to initiate an array but it seems like too complicated. In the attached file, I want to obtain only the data from "flow" not "pressure". I try to use array programming but it doesn't work. Would be nice if you help me to fix the file. Thanks
    Solved!
    Go to Solution.
    Attachments:
    test 1.vi ‏16 KB

    Bombbooo wrote:
    What about if I want to store data into the pressure array too? Do I have to create another loop or it can be done in the same loop as the flow loop?
    Try this, for example. Modify as needed.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    test1MOD2.vi ‏9 KB
    SelectFlowOrPressure.png ‏7 KB

  • How can I create a line break in pages for iPad?

    On the Mac you can hold the shift key while pressing the return key to creat a line break. Only pressing the return key will creat a new paragraph of course.
    On the iPad you only can creat paragraphs. Pressing the shif key does not change that.
    Does anybody know how to force a linebrek on the pages app for iPad?

    Tap and hold where you wish to insert the line break. Select Insert from the pop up menu, then Line break.
    this might be helpful for future reference: http://help.apple.com/pages/ipad/1.7/

  • How to retrieve elements from 3 different xml file in one url

    Hi all,
    Could anyone please let me how can we retrieve elements from 3 different xml file in one url?
    i just can only do it with one file only, any help would very appreciate.
    Thank in advance
    Jim

    Hi Philip
    Thanks for replying me.
    I tried on that way, In my mdx query i am using one slice attribute (i.e [Customer].[Gender].allmembers) in rows so getting error "The  Hierarchy already appears in Axis1".
    SELECT
    {[Measures].[Internet Sales Amount] } ON 0,
    NON EMPTY
    {[Customer].[Gender].allmembers } ON 1 -- Used
    FROM
    [Adventure Works]
    WHERE
    [Customer].[Gender].&[M]
    ,[Product].[Size Range].[(All)]
    ,[Customer].[Country].[All Customers]
    [Customer].[Gender].[All Customers]
    ,[Product].[Size Range].&[XL]
    ,[Customer].[Country].[All Customers]
    [Customer].[Gender].[All Customers]
    ,[Product].[Size Range].[(All)]
    ,[Customer].[Country].&[Australia]
    Can you provide alternate ways to get resolved.
    Thanks in advance

  • How can you enter a line-break when using a Bluetooth Keyboard or onscreen Keyboard?

    In Pages &amp; Keynote the only way to force a line break I have found is to put your finger at the end of a line until the select/insert option appears and then selecting insert, then select line break.
    This is frustratingly slow when typing a presentation or document so I bought a Logitech Ultrathin Bluetooth keyboard assuming that would have the Shift+Enter shortcut to make a line break. It doesn't, nor can I find any key combination that does, it's always a new paragraph, or nothing happens.
    I have an Ipad3,  IOS 6.1.3. I've spoken to Logitech support - they said talk to Apple iOS support, I spoke with a chap at IOS support who didn't know what a line break was, didn't know shift+enter on a PC made a line break so didn't understand my question and ended the call.
    Anyone know how to create the shortcut as an alternative to the onscreen slow way?

    Yes
    http://support.apple.com/kb/HT5633
    You can also download the remote app if you have an IOS device

  • How to show Report Result line breaked(or seprate) into Total AVG MAX MIN?

    Hi all,
    in my report i have report result line which give Total value of all charetristic lines,
    I required to show this Report result line breaked into 4 section one for Total, one for avg, one for max, one for min of that cheretristic lines value, OR if we can show 4 diffrent(Total, Avg,.... ) result lines in report.
    we can show one result line for Total or AVG or MAX OR MIN Eitherwise by setting keyfiguer result line property from calculate > calculate result as - Total or Max or Min or Avg, My requirement to show all together for singal Keyfiguer.
    Is there any work around for this OR enhancment of result line by user exit or by setting some where possibel?
    Regards,
    Dushyant.

    in last post output is scattered,
    I am getting output like this:
    characteristic(row).......................... KeyFig(column)
    Equipment 1...................................... 2 (outstanding notification value)
    Equipment 2...................................... 3
    Equipment 3 ......................................4
    Result Value ......................................9 (By default Total value of above 3 notification)
    My require output is:
    characteristic(row).......................... KeyFig(column)
    Equipment 1...................................... 2 (outstanding notification value)
    Equipment 2...................................... 3
    Equipment 3 ......................................4
    Result Value ......................................9 (By default Total value of above 3 notification)
    req additional row...........................3 (Average of above 3 equipment value).
    req additional row...........................4 (Max from above 3 equipment value).
    I require all single value row of equipment and its(equipment) result required as Total, Avg, Max simultaneously in row only, is there any work around.
    Regards,
    Dushyant.

  • How do I create a line break in an axis label

    I have a very long x-axis label that needs some line breaks. I've tried every key combination I can think of to no avail. Does anyone know how?
    Thanks,
    Mark

    There are a few ways to get line breaks.
    First way: Go to the Chart Inspector, Axis tab.  At the bottom it will either have references to the header cells it is using for labels or it will have a list of the labels. If it has references, use the second or third method.  If it has text, go to the label you want to modify.  Use Option-Return to put a line break in it.
    Second way: This works when best before you create a chart and might work afterward if the chart is still refering to the header column and hasn't converted the labels to text. Use option-Return to create line breaks in the header cells of your table. In the screenshot below, the first label has no line breaks, the second has one, and the third has none but is simply wrapping to the next line in the cell. 
    Third way: If the chart inspector has references to the labels, go to the chart (not the table) and edit one of the labels. The inspector will now show text instead of references. Use the first method to add your line breaks.

  • Emergency!! How to remove elements from a set? or..?

    How do I remove elements from a Set?
    If I have Set s1and s2, I want to create a new set which consist of all elements in s1 but not in the s2.
    Which means, I have to s1.union(s2) and then remove elements of s2.
    Is there any method which has this function (remove elment from a set)?
    Or is there any other better way to solve this (which doesn't have to remove anything)?
    If not, how to design a method which will do this job?
    Your help will be very much appreciated.

    Hi
    you can use method removeAll() from set
    s1.removeAll(s2);
    so s1 contains all the element not in s2.
    If you want to lef s1 unmodifyed you have to create a copy.
    Set s3 = s1.clone();
    s3.ramoveAll(s2);
    bye
    Nicola.

  • How to protect swf from hackers!!!

    Hi, I have made many games is it any way that I can protect my swf from flash developers who want hack my game???..
    First I was tried way load game swf's into preloader swf and call it by Iframe most flash developers just get only my preloader.swf unable to get game..
    but now few did this... now i am searching way that to protect swf from flash dicompilors???

    Flash runs on the 'client side', which makes it vulnerable. There are several ways to hack a Flash game - intercepting and modifying/faking communications with the server (ie, sending fake values to your 'highscores.php' or whatever, say using an app like Fiddler2), decompiling the .swf to see how it communicates with the server (and any encryption or obfuscation it might be using to try and protect communications), or even directly editing the memory being used by the game (ie, using CheatEngine to change your score directly, the speed of the game, etc). It's pretty hard to protect against all these, and usually takes more time and effort than the game is worth.
    So the best rule is, expect your game to be hacked. Don't use it as a basis for giving away an expensive prize, for example (or at least, don't let it be obvious that the winner hacked the game or other players will get pissed off), unless all the logic happens on the server side.
    But if you still want to try...
    Let's say your game consists of three types of processes - Input (from the user), Logic (the app deciding what to do with the input), and Output (the result of the logic). Input and Output have to happen on the client side, or the user won't be able to interact with the game or see the results of their interactions - so these parts can never be fully secured, only validated as acceptable or not. However, the Logic (all or part) could be done on the server, where the user can't see it or modify it. The Flash game takes the user's input (maybe makes sure it's valid), and sends it to the server. The server checks that the input is valid, and if so performs the game logic, and sends the output back to the Flash game. If the input is NOT valid, perhaps silently keep that user (account ID or their IP address, for awhile) from adding to the high score list, or interacting with other players. Or boot them for 5 minutes, or something.
    The main problem with this is (depending upon the type of game) lag in communicating with the server, and server load. If every little input/output has to go to the server, be processed, and then be sent back to the user, the game could run very slowly for the player; or if many people are playing at once, the server could crash. So you probably have to find ways to optimise this, and decide what should happen on the server, and what can safely happen on the client side (and be fairly well validated), etc.
    Gambling-type and turn-based games are fairly easy to secure this way, though, since lag won't affect gameplay too much and there's not a lot of information going back and forth with the server. Say in a card game, the server tells the flash what cards to display for the user. The user can only choose which card to play - this choice is sent back to the server. The server calculates the results of the play, and the other players' moves, and then tells the flash what new cards/scores to display.
    A real-time shooter, on the other hand? Even a game of Pong can be tricky. In those types of games, you could potentially send some data (user's x and y position, current health, ammo, score, framerate, etc) every now and then (maybe obfuscated, checksummed, compressed, via socket, etc) and the server can see if they should be 'possible' and decide whether to keep accepting input from the user, but that gets pretty tricky really quickly, and you'll probably get far more false-positives than catch actual hackers.

  • How to copy elements from one JList to another JList?

    I have 2 JLists. availableList and selectedList.
    String availableData [] = {"A","B","C","D","E","F"};
    JList availableList = new JList(availableData);
    JList selectedList = new JList();
    Now on 'Copy >>>' action I want the elements from availableList to be copied to selectedList (elements in the first JList should not be removed.)
    on actionPerformed I used: selectedList.setListData(availableList.getSelectedValues()) but it is adding only one element at a time.
    Can anyone help me in solving this problem? I want the elements from availableList to be copied to selevtedList and the duplicate should not happen. No need to sort the selectedList. just adding one by one.
    Thanks in Advance!
    Edited by: DeepakKotla on Oct 9, 2007 5:25 PM

    You might want to use a model to make it easier to add and transfer data
    like using DefaultListModel.

  • How to extract elements from a document

    I'm new to Java and I'm using JDOM in a JSP page. I've a document like this:
    <OFFERTA>
    <FACOLTA idFacolta="F1">
    <CORSO value="xxx"/>
    <CORSO value="yyy"/>
    </FACOLTA>
    <FACOLTA idFacolta="F2">
    <CORSO value="zzz"/>
    </FACOLTA>
    <FACOLTA idFacolta="F3">
    </FACOLTA>
    <FACOLTA idFacolta="F4">
    </FACOLTA>
    </OFFERTA>
    I'd like to get a document with the same structure but with the only FACOLTA elements that match a requested value for the idFacolta attribute.
    For example, if the requested idFacolta is "F2", I'd like to get:
    <OFFERTA>
    <FACOLTA idFacolta="F2">
    <CORSO value="zzz"/>
    </FACOLTA>
    </OFFERTA>
    I check in a loop if the element matches the idFacolta requested but when I find and try to delete it I get:
    java.util.ConcurrentModificationException
         at org.jdom.ContentList$FilterListIterator.checkConcurrentModification(ContentList.java:1230)
         at org.jdom.ContentList$FilterListIterator.hasNext(ContentList.java:942)
    Here's my code:
    Document doc = builder.build(file);
    Element root = doc.getRootElement();
    List children = root.getChildren();
    Iterator facoltaIterator = children.iterator();
    // Check if there's a request
    if (id!=null) {
         while (facoltaIterator.hasNext()) {
              Element facolta = (Element) facoltaIterator.next();
              if (!facolta.getAttribute("idFacolta").getValue().equalsIgnoreCase(id)) {
                   // Delete
                   root.removeContent(facolta);
    All seems to be right, except the line
    root.removeContent(facolta);
    So, I tried to make a new document for the results, adding the element facolta:
    Document doc = builder.build(file);
    Element root = doc.getRootElement();
    // Create a new document with the same root
    Element rootRisultati = new Element("OFFERTA");
    Document docRisultati = new Document(rootRisultati);
    List children = root.getChildren();
    Iterator facoltaIterator = children.iterator();
    if (id!=null) {
         while (facoltaIterator.hasNext()) {
              Element facolta = (Element) facoltaIterator.next();
              if (facolta.getAttribute("idFacolta").getValue().equalsIgnoreCase(id)) {
                   // Add the element to the new document
                   rootRisultati.addContent(facolta);
    but this causes a different exception:
    org.jdom.IllegalAddException: The element already has an existing parent "OFFERTA"
         at org.jdom.ContentList.add(ContentList.java:190)
         at org.jdom.ContentList.add(ContentList.java:146)
         at java.util.AbstractList.add(AbstractList.java:84)
         at org.jdom.Element.addContent(Element.java:1062)
    I'm not able to find a solution.
    There's a commonly used procedure to select elements maintaing the structure of the document?
    Can anyone help please? Thanks in advance.
    Stefano

    maybe you could try posting this in a JDOM forum? JDOM is not a standard XML tool from Sun / for Java... therefore out of the scope of this forum!

  • How to remove element from ByteArrayOutputStream ?

    hello frds,
    some body please help me how to remove first two elements of ByteArrayOutputStream before converting it to byte[]
    if not possible,please help me out in deleting two elements of byte[] without using arraycopy method
    thanks

    instead of writing and then removing these 2
    elements, isn't it just more logical to not write
    them in?and if you can't do that (e.g. because the code writing into the OutputStream is not under your control), then you might consider writing a decorator e.g. called "DroppingOutputStream" extending java.io.FilterOutputStream which forwards all data to the underlying stream except for the first two bytes.

Maybe you are looking for

  • Error in VF02?

    Hi, When I am trying to post the accounting document in VF02 while releasing the billing document generated I am getting the error "u201CNo account is specified in item 0000001002 Message no. F5670 Diagnosis No account was specified for account type

  • Error -50 Please check that network connectivity is active

    I ran the diagnostics and everything was fine.  I made sure my itunes was up to date.  I restarted my computer.  I tried to download a song from the itunes store and had no problems, but the newest episode of the vampire diaries (I have a season pass

  • Marketing call lists

    Hi all, I have a BIG problem with our call list management process. We are configuring the marketing scenario in our CRM 4.0 system in order to generate several calls from a given target group. Our problem is based on the agent distribution (of these

  • Where are my cc applications?

    I downloaded and installed photoshop, dreamweaver and premier pro cc versions (I previously had cs6 of all these) but cannot find them in my start menu. I see all my cs6 applications but no cc. Where are they? How do I run them? They show as installe

  • Error 20525

    Post Author: hallj CA Forum: General I have just recently upgraded from Crystal Reports 8.5 to XI.  When I create a new report in XI and try to run it in my application I'm getting "Error 20525 Can't load report".  The information that I have found s