Disable scrolling for an entire document

Can anyone help me with a code sample that will disable scrolling for an entire document?

Sure! You could write a script which is executed from the top level subform's ("form1" by default) Enter event and looks for all fields on the form and sets their
doNotScroll property to true. Note that the script will have to execute on the Enter event (which will be called the moment the user sets focus to any field on the form) because any other event is too "soon" for the
doNotScroll property setting to take effect.
I've attached another sample form which demonstrates how to do this. Check-out the script in the form1 object's Enter event. The
DisableScrolling method is recursive and finds all child fields within all possible container objects (such as subforms, areas, exclusion groups) found in the XFA language. For each field found which supports the
doNotScroll property, it sets that property to true. Note the boolean variable used to guard against running this script every time focus is set to a field within the form. The script only needs to be executed once.
Stefan
Adobe Systems

Similar Messages

  • Embedding fonts for an entire document?

    Hello,  I have a set of flash files that use dynamic text in both AS2 and AS3.  I am looking for a way to embed a font in such a way that including one swf in the library or something similar would make the entire font work whenever else it is used in the document- not just for a single text box.  I have looked into most of the AS2 solutions and not found anything that worked thusfar, but ultimately I would like to find AS2 and AS3 solutions.  I have flash CS5 available but would prefer to use CS4 due to compatibility concerns.  This would need to work online.
    Also, I have another related question.  When you have a swf loading others swfs, if the first swf has a font embedded in the universal manner described above (assuming this is actually possible), will this font be available to the loaded swfs without further action?
    Thanks!

    Sure! You could write a script which is executed from the top level subform's ("form1" by default) Enter event and looks for all fields on the form and sets their
    doNotScroll property to true. Note that the script will have to execute on the Enter event (which will be called the moment the user sets focus to any field on the form) because any other event is too "soon" for the
    doNotScroll property setting to take effect.
    I've attached another sample form which demonstrates how to do this. Check-out the script in the form1 object's Enter event. The
    DisableScrolling method is recursive and finds all child fields within all possible container objects (such as subforms, areas, exclusion groups) found in the XFA language. For each field found which supports the
    doNotScroll property, it sets that property to true. Note the boolean variable used to guard against running this script every time focus is set to a field within the form. The script only needs to be executed once.
    Stefan
    Adobe Systems

  • How can i disable scrolling on firefox mobile ?

    I want to disable scrolling for my responsive website, when a colorbox (like a lightbox) is layered over the page (as div, not as iframe).
    Scrolling should only be available for the colorbox-div, but not for body or html.
    Therefore, I set "html" and/or "body" to "overflow:hidden" with the help of jquery. That works in chromium mobile and in the desktop versions of FF and chromium, but I can't figure out why I still have the scrollbar in Firefox on Android.
    Is this a know 'problem'? What can I do?

    Hello,
    Thank you for contacting Mozilla.
    I understand that you are having problems with lightboxes scrolling in webpages. In order to better understand and investigate on the issue that you are encountering, please reply to this message with the following information:
    * What is the model of your phone? (ZTE Open, LG Fireweb or Alcatel OneTouch Fire)
    * What is the OS version found in the Device Information page? Please visit [http://mzl.la/Gzz6Kp this link] if you need help finding the Build ID of your phone.
    * Please provide the exact steps to reprodcuce the issue you are encountering.
    * Who is your current cell phone carrier?
    * How often do you encounter this issue?
    Please be sure to include as much detail as possible, including any websites that may exhibit this issue, and any error messages that you may be receiving, exactly as they appear. This will ensure that we will have all the information needed to investigate into this. Thank you for your help and we look forward to hearing from you!
    Curtis

  • Disable print function for  a pdf document

    Is there a way to make an Adobe pdf read-only?  Can I disable the print function for an isolated document before making it available to others? I am working on MAC laptop.

    hi
    i got the answer
    we have to give issue output to -->screen

  • How do I lift a picture in a document to print it without printing the entire document, and when I ask it to print at 400%, how do I get it to tell me how many pages there are and what is on them

    I have a pix of a quilt in a document. I would like to print the page of the document at 400% to enable me to see the quilt better. When I go to effects and put in my percent, it prints the entire document and will not allow me to move to other pages. It says its p1 of 1. I am taking a class for making this quilt. I need this pix for the class.

    http://www.kimberlyeinmo.com/classes/
    This the site. The tulip quilt is what I would like to enlarge and print without the whole document.

  • Apple AirPort Express - HP LaserJet M1120 won't print entire document

    Hi,
    My first post.  I've recently purchased Airport Express and installed all necessary programmes (incl. Airport Base Station Agent and Bonjour print service) on my Win 7 Ultimate x64.
    The device is set up as "Join a existing network".
    Airplay works without any issues, but printing does not.
    I've also installed the driver for HP LaserJet M1120 printer.
    When I send something to print (regardless of the file), it won't print the entire document. Usually, it prints smaller documents (up to 10 pages) normally, but when it comes to larger documets it prints only half of the document.
    I send 30 pages document to print and it prints only 15 pages. Then I need to re-send print command and again, it prints only half - 7 or 8. Printer just stops.
    Sometimes i get "Error-printing", but not always.
    This issue happens on all 4 PCs that I have at home all running Win 7 Ultimate x64 or Win Vista Home Premium x32.
    Any ideas?
    HP Print Diagnostic Utility did not find any issues also. Says everything is OK. 

    Unfortunately, not all USB printers are compatible with AirPort base stations. In addition, the  AirPort's USB port does not support the "advanced" printer functions, like scanning, copying or faxing, of multi-function printers. 
    To see if your printer is compatible, take a look at thisiFelix Unofficial AirPort Printer Compatibility link. If your printer isn't listed, it doesn't necessarily mean it won't work, but simply that it has not been verified. iFelix also provides the following workaround for printers not on the list that would certainly be worth a try.
    Also you can try this Apple Tech Support article to see if it will help: Printer troubleshooting for AirPort Base Stations and Time Capsule
    Finally, check out this IBM support article to see if your printer is listed as having a Postscript or PCL3 interface. If it does, then it will most likely work with the AirPort's USB port. Printers that use the "HP LIDIL" interface must be connected to a computer directly and will not work.

  • How to autofill blank cells in an entire document?

    Is there a way of filling blank cells in the entire document, not just surrounding cells as the fill-function works? In other programms you search " " and fill (replace) it with "0" for example. Doesn't work with the Find/Replace function in Numbers.
    Tino

    tis15 wrote:
    Is there a way of filling blank cells in the entire document, not just surrounding cells as the fill-function works? In other programms you search " " and fill (replace) it with "0" for example. Doesn't work with the Find/Replace function in Numbers.
    A cell containing " " (a space) is not a blank cell.
    When cells contain this string, the Search / Replace tool behaves flawlessly and replace the spaces by the wanted string.
    To fill the blank cells, I know only one soluce : AppleScript.
    Here is a script doing the trick.
    --[SCRIPT fillblank_cells_withclipboard]
    Enregistrer le script en tant que Script : fillblank_cells_withclipboard.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner la cellule en haut à gauche de la zône à remplir.
    Aller au menu Scripts , choisir Numbers puis choisir fillblank_cells_withclipboard.
    Le script remplit les cellules vides de la zône définie avec la valeur extraite du presse-papiers.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    --=====
    Save the script as a Script: fillblank_cells_withclipboard.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select a cell which is at top left of the range to fill?
    Go to the Scripts Menu, choose Numbers, then choose fillblank_cells_withclipboard
    The script will fill every blank cell of the defined range with the value extracted from the clipoard.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/10/29
    --=====
    on run
    local remplir_avec, dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2, c, r
    set remplir_avec to the clipboard as text
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    repeat with c from colNum1 to count of column
    tell column c
    repeat with r from rowNum1 to count of row
    if (value of cell r) = 0 then set value of cell r to remplir_avec
    end repeat
    end tell
    end repeat
    end tell
    end run
    --=====
    set {rowNum1, colNum1, rowNum2, colNum2} to my getCellsAddresses(dname,s_name,t_name,arange)
    on getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    local two_Names, row_Num1, col_Num1, row_Num2, col_Num2
    tell application "Numbers"
    set d_Name to name of document d_Name (* useful if we passed a number *)
    tell document d_Name
    set s_Name to name of sheet s_Name (* useful if we passed a number *)
    tell sheet s_Name
    set t_Name to name of table t_Name (* useful if we passed a number *)
    end tell -- sheet
    end tell -- document
    end tell -- Numbers
    if r_Name contains ":" then
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, item 1 of two_Names)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(d_Name, s_Name, t_Name, item 2 of two_Names)
    end if
    else
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, r_Name)
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    end if -- r_Name contains…
    return {row_Num1, col_Num1, row_Num2, col_Num2}
    end getCellsAddresses
    --=====
    set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    return {d_Name, s_Name, t_Name, r_Name} & my getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(docName,sheetName,tableName,cellRef)
    apply to named row or named column !
    on decipher(d, s, t, n)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to ¬
    return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on parleAnglais()
    local z
    try
    tell application "Numbers" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) vendredi 29 octobre 2010 14:42:38

  • Creating an Element for an XML Document

    Assuming I have an XML file
    file.xml
    <root>
    <child1>
    <child2>
    <child100>
    <root>
    i do
    SAXBuilder parser = new SAXBuilder();
    doc = parser.build(file);
    root = doc.getRootElement();This returns a root elemnet for the entire tree.Now my question is how do i create a root element for say jus the top 10 children? That is, is there a way i can create a document just reading the first 10 elements from the file tree above so that when i do a getChildren on root I should have only 10 elements in the list.

    | 1. How are the attributes of an XML element can be stored to the database
    XML SQL Utility (which XSQL uses under the covers) only stores
    documents in the canonical format. You'll need to use an XSLT
    transformation to transform data into the canonical format
    (including transforming attribute values into elements whose
    names correspond to the column in which you'd like to store it)
    | 2. How can I store a single XML document to multiple database tables?
    I outline several techniques for this in my upcoming
    O'Reilly book, "Building Oracle XML Applications".
    The basic idea is to either:
    (1) Use an Object View with an INSTEAD OF INSERT trigger, or
    (2) Use a technique that transform the inbound document
    into a multi-table insert-format and passes each
    relevant part for insert to the XML SQL Utility separately.
    null

  • Java API for running entire ".sql" files on a remote DB ( mySQL or Oracle)?

    Hi,
    Would anyone happen to know if there's a java API for executing entire ".sql" files (containing several different SQL commands), on a remote database server ?
    It's enough if the API works with MySQL and/or Oracle.
    Just to demonstrate what i'm looking for:
    Suppose you've created sql file "c:/test.sql" with several script lines:
    -- test.sql:
    insert into TABLE1 values(3,3);
    insert into TABLE1 values(5,5);
    create table TABLE2 (name VARCHER) ENGINE innoDB; -- MYSQL specific
    Then the java API should look something like:
    // Dummy java code:
    String driver="com.mysql.jdbc.Driver";
    String url= "jdbc:mysql://localhost:3306/myDb";
    SomeAPI.executeScriptFile( "c:/test.sql", driver, url);
    Thanks.

    No such a API, but it's easy to parse all sqls in a file, then run those command:
    For instance:
    import java.sql.*;
    import java.util.Properties;
    /* A demo show how to load some sql statements. */
    public class testSQL {
    private final static Object[] getSQLStatements(java.util.Vector v) {
    Object[] statements = new Object[v.size()];
    Object temp;
    for (int i = 0; i < v.size(); i++) {
    temp = v.elementAt(i);
    if (temp instanceof java.util.Vector)
    statements[i] = getSQLStatements( (java.util.Vector) temp);
    else
    statements[i] = temp;
    return statements;
    public final static Object[] getSQLStatements(String sqlFile) throws java.
    io.IOException {
    java.util.Vector v = new java.util.Vector(1000);
    try {
    java.io.BufferedReader br = new java.io.BufferedReader(new java.io.
    FileReader(sqlFile));
    java.util.Vector batchs = new java.util.Vector(10);
    String temp;
    while ( (temp = br.readLine()) != null) {
    temp = temp.trim();
    if (temp.length() == 0)
    continue;
    switch (temp.charAt(0)) {
    case '*':
    case '"':
    case '\'':
    // System.out.println(temp);
    break; //Ignore any line which begin with the above character
    case '#': //Used to begin a new sql statement
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    break;
    case 'S':
    case 's':
    case '?':
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    v.addElement(temp);
    break;
    case '!': //Use it to get a large number of simple update statements
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    String part1 = temp.substring(1);
    String part2 = br.readLine();
    for (int i = -2890; i < 1388; i += 39)
    batchs.addElement(part1 + i + part2);
    for (int i = 1890; i < 2388; i += 53) {
    batchs.addElement(part1 + i + part2);
    batchs.addElement(part1 + i + part2);
    for (int i = 4320; i > 4268; i--) {
    batchs.addElement(part1 + i + part2);
    batchs.addElement(part1 + i + part2);
    for (int i = 9389; i > 7388; i -= 83)
    batchs.addElement(part1 + i + part2);
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    break;
    default:
    batchs.addElement(temp);
    break;
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    br.close();
    br = null;
    catch (java.io.FileNotFoundException fnfe) {
    v.addElement(sqlFile); //sqlFile is a sql command, not a file Name
    Object[] statements = new Object[v.size()];
    for (int i = 0; i < v.size(); i++)
    statements[i] = v.elementAt(i);
    return statements;
    public static void main(String argv[]) {
    try {
    String url;
    Object[] statements;
    switch (argv.length) {
    case 0: //Use it for the simplest test
    case 1:
    url = "jdbc:dbf:/.";
    if (argv.length == 0) {
    statements = new String[1];
    statements[0] = "select * from test";
    else
    statements = argv;
    break;
    case 2:
    url = argv[0];
    statements = getSQLStatements(argv[1]);
    break;
    default:
    throw new Exception(
    "Syntax Error: java testSQL url sqlfile");
    Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
    //Please see Connecting to the Database section of Chapter 2. Installation in Development Document
    Properties properties = new Properties();
    Connection con = DriverManager.getConnection(url, properties);
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    //Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
    // stmt.setMaxRows(0);
    stmt.setFetchSize(10);
    final boolean serializeFlag = false;//A test switch to serialize/deserialize the resultSet
    ResultSet rs;
    for (int i = 0; i < statements.length; i++) {
    if (statements[i] instanceof java.lang.String) {
    String temp = (java.lang.String) statements;
    switch (temp.charAt(0)) {
    case 'S':
    case 's':
    case '?':
    System.out.println(temp);
    rs = stmt.executeQuery(temp);
    if (serializeFlag) {
    // serialize the resultSet
    try {
    java.io.FileOutputStream fileOutputStream = new
    java.io.FileOutputStream("testrs.tmp");
    java.io.ObjectOutputStream
    objectOutputStream = new java.io.
    ObjectOutputStream(fileOutputStream);
    objectOutputStream.writeObject(rs);
    objectOutputStream.flush();
    objectOutputStream.close();
    fileOutputStream.close();
    catch (Exception e) {
    System.out.println(e);
    e.printStackTrace();
    System.exit(1);
    rs.close(); //Let the CONCUR_UPDATABLE resultSet release its open files at once.
    rs = null;
    // deserialize the resultSet
    try {
    java.io.FileInputStream fileInputStream = new
    java.io.FileInputStream("testrs.tmp");
    java.io.ObjectInputStream objectInputStream = new
    java.io.ObjectInputStream(
    fileInputStream);
    rs = (ResultSet) objectInputStream.
    readObject();
    objectInputStream.close();
    fileInputStream.close();
    catch (Exception e) {
    System.out.println(e);
    e.printStackTrace();
    System.exit(1);
    ResultSetMetaData resultSetMetaData = rs.
    getMetaData();
    int iNumCols = resultSetMetaData.getColumnCount();
    for (int j = 1; j <= iNumCols; j++) {
    // System.out.println(resultSetMetaData.getColumnName(j));
    /* System.out.println(resultSetMetaData.getColumnType(j));
    System.out.println(resultSetMetaData.getColumnDisplaySize(j));
    System.out.println(resultSetMetaData.getPrecision(j));
    System.out.println(resultSetMetaData.getScale(j));
    System.out.println(resultSetMetaData.
    getColumnLabel(j)
    + " " +
    resultSetMetaData.getColumnTypeName(j));
    Object colval;
    rs.beforeFirst();
    long ncount = 0;
    while (rs.next()) {
    // System.out.print(rs.rowDeleted()+" ");
    ncount++;
    for (int j = 1; j <= iNumCols; j++) {
    colval = rs.getObject(j);
    System.out.print(colval + " ");
    System.out.println();
    rs.close(); //Let the resultSet release its open tables at once.
    rs = null;
    System.out.println(
    "The total row number of resultset: " + ncount);
    System.out.println();
    break;
    default:
    int updateCount = stmt.executeUpdate(temp);
    System.out.println(temp + " : " + updateCount);
    System.out.println();
    else if (statements[i] instanceof java.lang.Object[]) {
    int[] updateCounts;
    Object[] temp = (java.lang.Object[]) statements[i];
    try {
    for (int j = 0; j < temp.length; j++){
    System.out.println( temp[j]);
    stmt.addBatch( (java.lang.String) temp[j]);
    updateCounts = stmt.executeBatch();
    for (int j = 0; j < temp.length; j++)
    System.out.println((j+1)+":"+temp[j]);
    for (int j = 0; j < updateCounts.length; j++)
    System.out.println((j+1)+":" +updateCounts[j]);
    catch (java.sql.BatchUpdateException e) {
    updateCounts = e.getUpdateCounts();
    for (int j = 0; j < updateCounts.length; j++)
    System.out.println((j+1)+":"+updateCounts[j]);
    java.sql.SQLException sqle = e;
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" +
    sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    catch (java.sql.SQLException sqle) {
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" +
    sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    stmt.clearBatch();
    System.out.println();
    stmt.close();
    con.close();
    catch (SQLException sqle) {
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" + sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    catch (Exception e) {
    System.out.println(e.getMessage());
    e.printStackTrace();

  • TS1702 I wish to save a multi page document sent by e mail as PDF in Pages - it only files the first page? How do I save the entire document ?

    I have Pages on my iPad, which is brilliant....but when I want to save a multi page file sent to me by e mail, pages only saves the first page. How do I save the entire document?

    What type of document is the file? (ie. what is the file extension for tie file?)
    Regards,
    Barry

  • How to disable sorting for some columns in a ALV GRID?

    Hi i have requirement where I have to disable sorting for some columns in a ALV GRID. i am using REUSE_ALV_GRID_DISPLAY function module.
    Can anybody help me. how to acieve this? Any code snippets will really be appreciated.

    Hi,
    I have tried this but not completely successful. I think this can be done using the OOPS method.
      DATA: it_event_exit TYPE  slis_t_event_exit.
      DATA: w_exit TYPE slis_event_exit.
      w_exit-ucomm = '&ODN'.
      w_exit-before = 'X'.
      CLEAR w_exit-after.
      APPEND w_exit TO it_event_exit.
      w_exit-ucomm = '&OUP'.
      w_exit-before = 'X'.
      CLEAR w_exit-after.
      APPEND w_exit TO it_event_exit.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program          = w_repid
          i_callback_top_of_page      = 'ALV_TOP_OF_PAGE'
          i_callback_html_top_of_page = 'ALV_HTML_TOP_OF_PAGE'
          i_callback_user_command     = 'USER_COMMAND'  <- User command form
          is_layout                   = wm_layout
          it_fieldcat                 = wt_fieldcat
          it_events                   = i_events
          it_event_exit               = it_event_exit    <- Need to fill
          it_sort                     = wt_sort
          i_default                   = 'X'
    Now you can capture this events in the user command
    FORM user_command  USING r_ucomm LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
      IF r_ucomm = '&OUP' and rs_selfield-SEL_TAB_FIELD = 'Your field name'.
      ENDIF.
    ENDFORM.                    "user_command
    In this form you will get the function code in 'r_ucomm' and the field selected for sorting in 'rs_selfield-SEL_TAB_FIELD'. But reseting 'r_ucomm' will not work.
    May be somebody else can give some help on this.
    But this will work if you follow the oop method.
    Please see this document for more info.
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an easy reference for alv grid control.pdf
    Thanks
    Vinod

  • Is it possible to remove yellow text background in the entire document?

    I have the same problem as the one that is mentioned here:http://forums.adobe.com/message/1155089 In my case the yellow background is already in the pdf-file which was created with a virtual pdf printer and then manipulated with another pdf-editor.  I noticed accidentally that it is possible to remove the yellow background in Acrobat Pro as if I'd edit an object. Getting rid of it on each page by hand would be a daunting task. Is it possible to do this somehow with the entire document? All help would be much appreciated.
    cheers
    Btw: The yellowish background does not appear in other pdf viewers.

    I'll try to describe the process but the exact numbers will depend on your document - as I said earlier when I ran a test of your file I got 3.4%, but you may not.
    Your file has a mixture of color spaces (CMYK/RGB/etc.) and so you must first run the Convert Colors tool from the Print Production Panel to get everything into a consistent space, or Preflight will choke. Run the default profile to convert to the SWOP v2 profile.
    Open the Output Preview tool from the Print production Panel and hover over one of the yellow areas, write down the percentage of yellow. Hopefully nothing else in the document will have the same percentage.
    Now open Preflight from the Print Production Panel, switch to the Single Checks tab.
    Open the Options menu, choose "Create new Preflight Check".
    Name it "yellow boxes" and apply it to "Page contents" and "Current file".
    Select the Colors group and pick "object uses Yellow with a percentage of..." - press ADD.
    Configure it with "Equal to" and your percentage (no % sign)
    Click OK, then switch to the Single Fixups tab.
    Options menu > Create new Preflight Fixup
    Name it "move yellow  to layer"
    Choose the Layers category, "Put objects on layer" and press ADD
    In the "Objects identified by a check" dropdown, select your "yellow boxes" check.
    In the Layer name field, type "yellow boxes"
    Click OK, then click the Fix button to run it.
    You'll get a message to save/close and reopen the file.
    When you do, (hopefully) all your yellow boxes will now be in their own layer.
    Open the layers navigator on the left side of Acrobat's window and turn off the eyeball for that layer.
    Print

  • How to search for words in documents in Lion

    Here's why I'm trying to ask.
    Lately I have downloaded a lot of files from Google Drive, and I'm trying to sort a lot of documents (262 exactly) by finding a set of numbers and letters that only one kind of document has.
    For example, I'm trying to find the documents that have "5R-ET1" to see which documents has those set of letters inside the documents to sort them in a diffrent folder.
    Is there something in the Finder that can allow me to do this, or is there like this program which compares documents that fits my use?
    By the way, most of the files are in .doc format, the rest are in .pages format.
    Hope there is a way to fix this situation!

    Open to correction here but I don't think Spotlight will do this for you, particulary if these are long documents. Spotlight does not index then entire document, just the first 2k approx unique terms within a document. If the string you're looking for isn't within that limit then it won't work.
    Options:
    1. You could import the documents to an app like DevonThink Pro or Circus Ponies Notebook that have a concordance feature.
    2. You could convert the files to Text and search them with BBEdit or the grep command.
    http://hints.macworld.com/article.php?story=20001105214242629

  • Importing a document from Word.  How do I change the tabs for the whole document?

    I am new to pages.  In importing a document from Word, the tabs are all messed.  The help topics work fine for adding/changing tabs... only it applies to a single line.  I cannot locate info on how to change the settings for the document.  Any help?

    d,
    A set of Tab stops applies to a Paragraph (not a line). A change in stops will apply to all paragraphs selected. A good way to make all your paragraph styles the same is to set up one paragraph the way you want it, then Format > Copy Paragraph Style. Then Select the entire document (Command-A) and Format > Paste Paragraph Style.
    Shortcuts for Copy Paragraph Style and Paste Paragraph Style are Shift-Command-C and Shift-Command-V.
    Jerry

  • Disable DSN for specific messages

    Hi,
    i have a problem, where i wish to disable DSN for specific internal users.
    Scenario :
    Interal User a sends a mail to special address c,
    if mail host of special address c is not available or anything else i wish that internal user a is never informed that c didnt recieve his mail.
    Can this be done ?
    i thought about doing this with sieve.. but i dont know if DSNs generated by the IMS Master itself are also checked by sieve mechanism....

    Please do notice that your bits do not support many of the features you want. And that later bits do. If you offer that to your company, perhaps you could update more often, or at least this time. We're not talking about a new package, here, but just an update to the one you have, that's not doing the job properly.
    Also, if you had asked for what you needed at the beginning, I could have helped you better.
    What you want is the sieve command, save-copy, or, perhaps monitor. Please see whitepaper, quoted below:
    Saving Messages for Document Retention
    If the reason you want to capture a copy of the message is for document retention, then you will want to take advantage of the new "capture" sieve action. You have to have iMS v5.2 or better to use this facility. The capture action can only be specified in a system or channel sieve; it is not available in user sieves. The general syntax is
    capture "monitoraddress"
    The monitor action is the same as the capture action. Users are encouraged to use the 'capture' instead of monitor as it best reflects the function being performed.
    This action sends a DSN containing the original message in its entirety to the specified capture address. Since this is a DSN it is effectively a completely separate message so there's little chance of it causing side effects that will alert anyone to the monitoring. In particular, no addresses from the original message appear in the DSN header so there's very little chance of the capture copy getting forwarded to the wrong person by mistake. And even though the original message is encapsulated, it is a MIME encapsulation which means the content is easily accessible in any MIME-compliant user agent.
    The capture action is nonstandard and undocumented. It was originally intended to be part of the habanero release, but the backporting of direct LDAP support to 5.2 means it is available in 5.2 as well. We certainly intend to support it in the future.
    Saving Messages for Replay
    There is an undocumented functionality in iMS for making a copy of messages for archival purposes. It's intended for saving sent messages in the event that they need to be replayed. We did this for folks who send mail via bad links to places where the mail may be received OK by an intermediate host but then subsequently lost on its way to the final destination.
    This is done with the MESSAGE-SAVE-COPY mapping table. Entries in that table have the form
    MESSAGE-SAVE-COPY
    out-channel|from-address|D|msg-filename result
    where
    out-channel -- name of the channel the message is flowing out
    from-address -- originator's address (envelope From: address)
    D -- the letter "D" (stands for "dequeue" )
    msg-filename -- name of the message file being dequeued.
    result -- where to rename the file
    Outbound Traffic
    To save only messages out to the Internet, do
    MESSAGE-SAVE-COPY
    tcp_local|*|D|/instance-root/queue/tcp_local/*/* (tab-or-space)$Y/msg_save/$1/$2
    Be aware that the archive isn't made until the message is actually dequeued from iMS (i.e., sent successfully or bounced). A rename operation is done (as opposed to a copy operation). As such, the message file has to remain on the same disk that the IMTA_QUEUE lives on.
    Inbound Traffic
    To capture inbound mail will want to have good control of what machines/pathways a message will take on its way into your systems. If your setup is such that mail always enters the site via an INBOUND relay and leaves the site via know outbound gateways, then inbound message flow is from INBOUND-MTA --> MsgStore machine.
    Since you can have multiple MsgStore machines behind any one INBOUND-MTA, you will want to make configuration on the INBOUND-MTA machine such that it will use a dedicated queue to talk to the MsgStore machines. For instance, on the INBOUND-MTA machine, you could setup a rewrite rule in your imta.cnf file for MsgStore-A, MsgStore-B, ... MsgStore-Z like:
    Node-A.store.domain.com.au $U%$D@tcp_to_store-daemon
    Node-Z.store.domain.com.au $U%$D@tcp_to_store-daemon
    and a corresponding 'tcp_to_store' channel which looks like:
    ! tcp_to_store
    tcp_to_store smtp mx single_sys subdirs 20 noreverse maxjobs 7 \
    pool SMTP_POOL maytlsserver allowswitchchannel \
    saslswitchchannel tcp_auth
    tcp_to_store-daemon
    This has the effect of routing all mail to any of your MsgStore machines through tcp_to_store channel. Transactions to other machines in your setup will take the tcp_intranet channel.
    With this in place you can then throw in a MSG-SAVE-COPY mapping table which reads:
    MESSAGE-SAVE-COPY
    *|*|D|/instance-root/imta/queue/tcp_to_store/*/* $Y/msg_save/tcp_to_store/$2/$3
    the net effect will be a number of queue files in the /msg_save/tcp_to_store directory which are ready for replay. Note the $2 in the sample represents the subdir that the message was already in. As such if you have 'subdirs 20' on your tcp_to_store channel, you will want to precreate the /msg_save/tcp_to_save/000 thru 019 subdirectories with the appropriate ownership and permissions.
    To initiate the replay, you want to simply move the /msg_save/tcp_to_store/### directories to the /instance-root/imta/queue/reprocess and issue the command 'imsimta cache -synch'. The MTA will start pushing out those messages to the store(s).
    If you want to have multiple replays happening you can kick off parallel runs of the reprocess channel by doing 'imsimta run reprocess &' a number of times.
    And, If you want to segregate the storage for each MsgStore machine, you can make new channel in addition to the one suggested 'tcp_to_store' channel. You would then have groups of rewrite rules directing traffic over those channels or you could have one rewrite rule per channel block that you setup. That way you can have distinct entries in your MSG-SAVE-COPY mapping table.
    Finally, since there is a rename operation taking place when you use the MSG-SAVE-COPY mapping table, you will want to make sure that at the first pass that /msg_save is on the same device that your queues live on.
    Short Term Arvchival
    You could setup a process in cron to move those files to a new device on a periodic basis. Better yet, schedule this via the job_controller. For instance, these lines at the top of your job_controller.cnf file:
    [PERIODIC_JOB=archive_mover]
    command=/usr/iplanet/sitescripts/arc_mover.sh
    time=/00:10
    will run the arc_mover.sh script for you every 10 minutes. Your arc_mover.sh could look something like:
    #!/bin/ksh
    # ***Script is untested - should generate some ideas though****
    DUMMY=`test -d /var/tmp/timestamp.dir || mkdir -p /var/tmp/timestamp.dir`
    cd /msg_save
    # First pass
    for dir in `find ./ -type d`
    do
    DUMMY=`test -d /real/storage/area/$dir || mkdir -p /real/storage/area/$dir`
    cd $dir
    for msgfile in `find ./ -type f -newer /var/tmp/timestamp.dir -name "*.00"`
    do
    mv $msgfile /real/storage/area/$dir/
    done
    cd /msg_save
    done
    touch /var/tmp/timestamp.dir
    # Second pass cause we do not know how long we took.
    for dir in `find ./ -type d`
    do
    DUMMY=`test -d /real/storage/area/$dir || mkdir -p /real/storage/area/$dir`
    cd $dir
    for msgfile in `find ./ -type f -newer /var/tmp/timestamp.dir -name "00"`
    do
    mv $msgfile /real/storage/area/$dir/
    done
    cd /msg_save
    done
    exit

Maybe you are looking for

  • HT1320 i have tried all of the above to reset my 30gb ipod but its still not working, please help

    Hi, i have a ipod classic, it now wont turn on or do anything, i have charged it, toggled the HOLD button and tried all the suggested press and hold, but nothing. Ive tried conecting it to the computer via a USB cable again nothing, its not even show

  • Message and Error Logging

    Version : TimesTen Release 11.2.1.4.0 (32 bit NT) In C:\TimesTen\tt1121_32\srv\info we have 2 TimesTen log files : tterrors.log and ttmesg.log Based on C:\TimesTen\tt1121_32\srv\info\ttendaemon.options I expected these files to grow to a maximum of 1

  • ITunes - An Error occured while connecting to the remote speaker. (-15000)

    I have been using airportexpress for the last 9 months with no problem. I used to use Windows Vista (32bit) to play itunes music and stream the music to the airportexpress which connects to my living room AV system. Couple of days ago, I rebuilt my m

  • NBAR & BGP

    I'm trying to use "match protocol bgp" command in a class-map in order to classify all BGP routing traffic, but it doesn't match. When I try to do the same using an ACL matching tcp 179 in the same class-map configuration it works. Any suggestion? Re

  • Strikethrough prices management

    Hello, I've a question regarding the strike through prices management. First of all, our configuration :  We are using WCEM 3.0 SP01 with MDM and CRM backend. List price for catalog and dynamic price for shopping cart. I followed Sap help regarding s