Document table and paragraph with POI

Hi wrotten the following program in order to read paragraph and tables
in a word document:
* To change this template, choose Tools | Templates
* and open the template in the editor.
package prezziarioreader;
import org.apache.poi.hwpf.HWPFDocument;
import org.apache.poi.hwpf.usermodel.Range;
import org.apache.poi.hwpf.usermodel.Paragraph;
import org.apache.poi.hwpf.usermodel.Table;
import org.apache.poi.hwpf.model.ListTables;
//import org.apache.poi.hwpf.usermodel.CharacterRun;
import java.io.*;
* @author Enrico
public class Main {
* @param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here
try{
HWPFDocument doc = new HWPFDocument(new FileInputStream("d:\\prova.doc"));
Range r = doc.getRange ();
int sectionLevel = 0;
int lenParagraph = r.numParagraphs ();
boolean inCode = false;
String text;
Paragraph p;
for (int x = 0; x < lenParagraph; x++){
p = r.getParagraph (x);
if (p.isInTable()){                  
Table tab = r.getTable(p);
System.out.println("Paragraph " + x + ":"+"Table with " tab.numRows() "rows.");
else{
text = p.text ();
System.out.println("Paragraph " + x + ":" + text);
catch (IOException e){
System.err.println(e);
I got a problem during the execution; It read well the simple paragraphs but
when there's a table i got the following error message:
Exception in
thread "main" java.lang.IllegalArgumentException: This paragraph is not
the first one in the table
at org.apache.poi.hwpf.usermodel.
Range.getTable(Range.java:873)
What's worng?

Welcome to the forum. Please don't post in threads that are long dead and don't hijack other threads. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
Also, replying to old threads with links to a personal site is link spamming.
I'm locking this thread now.

Similar Messages

  • Limiting Tables and charts with Measures having RelativeValue

    Hallo,
    I just try to do some difficult stuff with the WebI Rich Client 4.1.
    There are two measures for each month on a time line showing year and month. Thus, I have a dimension for year and month and two different measures for each year/month combination.
    Now, e.g. I want to compare these two measures having same month and different years, say the current year and the year before. Please see the table below for a visible figure.
    I used RelativeValue([measure prior year_1];([year/month]);-12) for [measure prior year] in order to compare one 1 year older measure with the other measure.
    year/month
    measure prior year
    measure current year
    2010/10
    2010/11
    2010/12
    2011/01
    2011/02
    2011/03
    2011/04
    2011/05
    2011/06
    2011/07
    2011/08
    2011/09
    2011/10
    439
    97
    2011/11
    7.294
    2.712
    2012/02
    20.496
    13.397
    2012/05
    21.859
    12.636
    2013/01
    36.325
    27.286
    2014/08
    26.894
    17.425
    There are no values for [measure current year] before 2011/10. But, there are values for [measure prior year_1] before 2011/10. [measure prior year] is actually from 2010/10, 2010/11 and so on, as defined with RelativeValue.
    No problem here. Everything works fine. But, now, I want to start the table with the first row where [measure prior year] is not null while leaving measure current year unchanged. Just cut the table and start with 2011/10...
    And here we get the problem. Hence, RelativeValue references to values before 2011/10 all these reference will disappear for [measure prior year].
    The same is with charts. I couldn't find a way to reference to values that exist by the query but which are not displayed in a table or a chart!
    What I need is a way to reference to values which are not present in a single table or chart but in the report. I already fiddled with the display options (null values, without dimension etc.) of tables. But, no way.
    How could a accomplish this task?
    Any idea of something like "hiding" unwanted rows/bars results in "loss of data".
    Thanks for any help
    Matthias

    Well... if you think and try long enough, you may find the solution .
    The core problem is to reference to queried values not shown in the table/chart. And there IS a solution.
    Just use...
    NoFilter(RelativeValue([measure prior year_1];([year/month]);-12))
    ... instead of
    RelativeValue([measure prior year_1];([year/month]);-12)
    NoFilter enables RelativeValue to reference to values not present in a table or chart, but available in the report .
    From there on, you can define e.g. the starting point of the category axis of a chart by defining a local filter without losing values to be referenced .

  • How to fetch the data from a pl/sql table and varray, with some example

    I want to fetch the data using a cursor from Pl/sql table and varry and I want to update the data.
    Please provide me some example.

    PL/SQL Table  - please note that, right term is Associative Array.
    Presumably you are referring to the 'often heated' back-and-forth that sometimes goes on in the forums when people refer to ANY PL/SQL type using a term with the word 'table' in it?
    Curious that you then show an example of a nested table!
    type emp_tab is table of employees%rowtype;
    The 'right term' for that is 'nested table'. The following would be an 'associative array' or 'index-by table'
    type emp_tab is table of employees%rowtype INDEX BY PLS_INTEGER;
    Those used to be called 'PL/SQL tables' or 'index-by tables' but 'associative array' is the current term used.
    Associative Arrays
    An associative array (formerly called PL/SQL table or index-by table) is a set of key-value pairs. Each key is a unique index, used to locate the associated value with the syntax variable_name(index).
    The data type of index can be either a string type or PLS_INTEGER.
    Since the Oracle docs often use 'PL/SQL table' or 'index-by table' it isn't unusual for someone asking a question to use those terms also. Technically the types may not be 'tables' but it's clear what they mean when they use the term.
    In PL/SQL the term 'nested table' is still used even though the PL/SQL collection is not really a table. SQL does have nested tables where the data is actually stored in a table. The PL/SQL  'nested table' type can be used as the source/destination of the SQL data from a nested table so that may be why Oracle uses that term for the PL/SQL type.
    The doc that SKP referenced refers to this use:
    Nested Tables
    In the database, a nested table is a column type that stores an unspecified number of rows in no particular order. When you retrieve a nested table value from the database into a PL/SQL nested table variable, PL/SQL gives the rows consecutive indexes, starting at 1.

  • How can I include a MySQL table and records with the PUT of my Dreamweaver site?

    I am using .php to validate a user code against one of four codes that I am providing to potential clients.  They enter that code, along with a default user id and the appropriate page is then displayed for them.  Everything is working fine on the desktop.  I need to have this table and the records created on my remote server.  I tried saving the table in the Connections folder, but that didn't help.  Everytime I enter a code (valid or invalid) on the live site, I get the following message:  "Table 'boundsauctions_com.promocode' doesn't exist".  Is there someway to include the table and records in my Dreamweaver folders for the site? 
    Thanks for any help that you can offer.

    You can't.  Dreamweaver, or FTP for that matter has no connection to the MySQL database.  If you have created a MySQL database locally and now wish to move/copy it to your server you'll need to create a back up of your local database and then log into your database on the server and then restore that back up.
    An even easier way to do this, and if you are working with MySQL much at all  a good investement is to get the commercial version of Navicat MySQL - this is the best MySQL administrator I've found to date and is well worth the few bucks to buy it.  With Navicat you can connect to your local MySQL database and also create a connection to your remote database, then literally drag and drop your local database contents to copy them to your server. This function alone justifies buying Navicat. A huge time saver.   And no I do not work for or have any share or ties to Navicat.  I'd recommend something else if I knew of anything better, but so far I don't.
    Hope this helps. If you need any more details let me know.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    Shopping Cart for Adobe Dreamweaver
    available in PHP, ColdFusion
    Stay updated - http://blog.cartweaver.com

  • Using JHS tables and hashing with salt algorithms for Weblogic security

    We are going to do our first enterprise ADF/JHeadstart application. For security part, we are going to do the following:
    1. We will use JHS tables as authentication for ADF security.
    2. We will use JAAS as authentication and Custom as authorization.
    2. We need to use JHeadStart security service screen in our application to manage users, roles and permission, instead of doing users/groups management within Weblogic.
    3. We will create new Weblogic SQL Authentication Provider.
    4. We will store salt with password in the database table.
    5. We will use Oracle MDS.
    There are some blogs online giving detail steps on how to create Weblogic SQL Authentication Provider and use JHS tables as authentication for ADF security. I am not sure about the implementation of hashing with salt algorithms, as ideally we'd like to use JHS security service screen in the application to manage users, roles and permission, not using Weblogic to do the users/groups management. We are going to try JMX client to interact with Weblogic API, looks like it is a flexiable approach. Does anybody have experience on working with JMX, SQL Authentication Provider and hashing with salt algorithms? Just want to make sure we are on the right track.
    Thanks,
    Sarah

    To be clear, we are planning on using a JMX client at the Entity level using custom JHS entitiy classes.
    BradW working with Sarah

  • Fragmentation in tables and indexes with 9.2.0.5

    Hi guys ,
    I need of query to identified fragmentation in tables and indexes using Oracle 9i,someone could help me send that's querys
    tks
    spaulonci

    Fragmentation by itself at the tablespace level doesn't mean any thing from the performance point of view, only from the storage capacity perspective, and this just in case fragments are not necessarily the same size as in the case of dictionary manged tablespaces.
    You may be concerned about block density, which actually could lead to performance degradation. I suggest you to consider using coalesce instead of rebuilding in the case of indexes, and in the case of tables you should perform a segment reorganization. In the case of 9iR2 the coalesce command for table segments is not available so you will have to perform another segment reorganization strategy. If there are meaningful differences with the high water mark, average number of rows per block and chained rows then you will notice performance differences.
    I suggest you to take metrics for block usage prior to perform an index coalesce operation, as well as prior to perform a data segment reorganization to assess if the reorganization effort is useful.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • InDesign CS2 - 100 document limit and compatibility with newer versions

    Hello,
    I have Adobe InDesign CS2 and am using it to compile a large report. I have come across a problem once i tried to add more than 100 documents to my book and now see there is a 100 file limit to books in CS2. Each document needs to stay as a single file so i am unable to join files to overcome this problem.
    I have a summary table at the beginning of the document detailing the title of each file in the book. I am unable to work out how to create page hyperlinks in the pdf to the second book (documents over the 100 mark).
    It has since come to fruition that my company has updates to CS3 and CS5 and that these new versions do not have a 100 file limit in creating books. This document i am creating is over 400 pages long so i am wary of upgrading to a new version when i am not far from publishing.
    Should i have any concerns in upgrading to a new version of InDesign when i have almost finished my report? Would it be better to just upgrade to CS3 and not make such a large jump to CS5? Or does anyone know how to create page hyperlinks in my pdf to the files contained in the second book?
    Thanks for any help! Much appreciated.

    Normally I would advise against changing versions in midstream on a project like this, but I'm not sure you have a choice. My instinct is there will be fewer issues moving to CS3 than CS5, but there are far more features in CS5 you might like to use...
    One way to limit the possible anomalies would be to export all the CS2 files to .inx na open those in CS5, rather than converting the .indd files directly, then save as new CS5 .indd files and add to a new book. One very serious issue you may run into wehn moving to a later version is that the text engines are updated and text won't necessarily flow exactly the same, particualry justified text, which can cause line endings to move and some paragraphs may gain or lose a line, which can have a really devastating effect on a long doc if it causes a page count to shift. The killer is that the changes normally don't happen until you start to edit text in that story. I believe the .inx route will force a recompose on opening, but I'm not dead certain, so take a look at http://indesignsecrets.com/force-text-reflow-when-indesign-forgets-to-flow-the-text.php to see how to force the recompose manually as soon as you open the file (you'd only need to do it once, before saving in the new version, for each file), then check carefully for oversets or other problems. Live preflight in CS5 can help with that.
    As you can tell, a successful move to a newer version is likely to be a lot of careful work preparing and checking the files. Some of it can be automated (the export to .inx, the recompose, and the save in the new version) by scripting, but in all honesty you're going to need to check every page when you are done.
    One of the others who uses Hyperlinks will need to weigh in on ID's native abilities and linking to other files in a book. I know that doing that with cross-references (which don't even exist natively prior to CS4) is extremely likely to break down at some point and leave you trying to remake them all, and large numbers of links across docs is likely to slow CS5 in particular to a crawl unless all files (at least the ones to which there are links in the doc you are editing) in the book are open.

  • Deleting Documents folder and replacing with symlink - Downsides?

    Background:
    I have a new iMac with the dual internal drive option (SSD + HDD) running Lion. I am trying to set up the system to have the OS and applications on the SSD with documents and media on the HDD. In researching my options I found three paths often suggested:
    1. Create folders in the HDD and save your documents there + point applications like iTunes and iPhoto to the HDD for storage.
    2. Move your entire home folder to the HDD.
    3. Replace certain folders of your home folder with symbolic links that point to the actual folders in the HDD (i.e., Documents, Downloads, Movies, Pictures, Public) + leave certain folders in the SDD (i.e., Library, Desktop, Music) + point certain applications to the HDD for storage.
    After weighing the pros and cons of the options, I plan on using option number 3. Option 1 required the least "advanced" work, but had the downside of needing to change preferences in all my programs that default to folders like Downloads to the HDD as well as the good chance that I or others in my family would forget to navigate to the HDD to save documents. Option 2, moving the entire home folder seemed simple after reading the steps, but came with two main downsides: 1) warnings not being able to boot should the OS stop recognizing to look to the HDD for the user account and messing up the library and 2) not gaining the performance boost of keeping certain things on the SSD (e.g., the library file of iTunes and Aperture, files for current active projects kept on the Desktop).
    That left me with Option 3, the one with the most setup work, but hopefully a good balance of later ease and performance.
    Question:
    In order to set up Option 3, my understanding is that I need to create a new folder in the HDD, delete the usual folder in the user home folder, and then create a symlink that lives in the user home folder so programs reference it and seemlessly access the folder in the HDD.
    Does this really work without any problems? In order to delete folders like Documents and Downloads, you need to ignore warnings that say the folder "can’t be modified or deleted because it’s required by Mac OS X" and then use terminal commands to do so.
    Of course, I plan to replace these folders with symlinks, so I think all should be fine and applications will just see the newly created folder without a hitch. I just want to be sure.
    Here are some links to articles outlining the method:
    http://gigaom.com/apple/how-to-create-and-use-symlinks-on-a-mac/
    http://macperformanceguide.com/SettingUp-Relocating-Documents.html
    http://martinbay.net/how-to-move-user-folder/
    Thanks for the help!

    Just a note... I've noticed a problem in some sandbox apps when trying to save a file to the symlinked Documents directory.. depending on how the app saves the file, it might throw an error.

  • Printing document name and date with document

    hi all.
    former pc user here.
    is there a way to automatically print the name of a document and the time it was printed on documents that I print on the mac?
    how does this work?
    can i set it globally by printer driver?
    can i set it globally by software?
    or can i only set it by manually doing this on each document?
    thanks

    Here is a script which add automatically a date_time stamp to PDF created thru Print in a PDF file.
    --{code}
    --[SCRIPT ranger PDFs dans un dossier]
    Attach this folder action script to the folder in which "Print as PDF" store its files.
    It will move them in a storage folder with a date_time stamped name.
    Yvan KOENIG (VALLAURIS, France)
    2011/10/04
    -- two instructions used for tests
    set this_folder to ((path to desktop as text) & "PDFs recipient:") as alias
    set added_items to {((path to desktop as text) & "PDFs recipient:OS X Lion / à propos de Récupération Lion.pdf") as alias}
    on adding folder items to this_folder after receiving added_items
              set nom_du_dossier to "stamped PDFs"
    Build the path to storage folder *)
              if nom_du_dossier ends with ":" then
                        set dossier_de_stockage to "" & this_folder & nom_du_dossier
              else
                        set dossier_de_stockage to "" & this_folder & nom_du_dossier & ":"
              end if
    If the storage folder doesn't exist, create it *)
              tell application "System Events"
                        if not (exists folder dossier_de_stockage) then make new folder at end of folder ("" & this_folder) with properties {name:nom_du_dossier}
              end tell
    Main loop *)
              repeat with un_fichier in added_items
                        tell application "System Events" to tell disk item ("" & un_fichier)
                                  try
                                            set isPDF to type identifier is "com.adobe.pdf"
    If the file is a PDF, grab some infos *)
                                            if isPDF then set {the_ext, origName} to {name extension, name}
                                  on error
                                            set isPDF to false
                                  end try
                        end tell -- System Events
                        if isPDF then
    If the file is a PDF, move it to the storage folder with a date_time stamped name *)
                                  if the_ext is "" then
                                            set new_name to origName & (do shell script "date +_%Y%m%d_%H%M%S.PDF")
                                  else
                                            set new_name to (text 1 thru -5 of origName) & (do shell script "date +_%Y%m%d_%H%M%S.PDF")
                                  end if -- the_ext…
      do shell script "mv " & quoted form of POSIX path of un_fichier & space & quoted form of POSIX path of ("" & dossier_de_stockage & new_name)
                        end if -- isPDF
              end repeat
    end adding folder items to
    --[/SCRIPT]
    --{code}
    Attach it to the folder in which you send the PDFs created by Print in a PDF.
    Yvan KOENIG (VALLAURIS, France) mardi 4 octobre 2011 11:49:42
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Current page (not Document) width and height with JSX

    Hi,
    I am trying to create a script that saves every page of the document and add its width and height to the name.
    So far I managed to get the dimensions of the document using:
    app.activeDocument.pages.documentPreferences.pageWidth;
    app.activeDocument.pages.documentPreferences.pageHeight;
    That's ok when all the pages in the document have the same dimensions (Document Preferences).
    However, when I use custom pages that does not work.
    I tried the code below but does not work either.
    for(i=0; i<nb;i++)
         app.activeDocument.pages[i].documentPreferences.pageWidth;
         app.activeDocument.pages[i].documentPreferences.pageHeight;
    I have done some research and I don't seem to find any information regarding custom pages dimensions.
    Can you please help with this?
    Thanks in advance,
    Isko

    Main();
    function Main() {
        var doc = app.activeDocument,
        pages = doc.pages,
        page, width, height;
        for (var i = 0; i < pages.length; i++) {
            page = pages[i];
            width = page.bounds[3] - page.bounds[1];
            height = page.bounds[2] - page.bounds[0];
            $.writeln("Page: " + page.name + " - " + "width = " + width + ", height = " + height);

  • Document scanning software that allows for custom search fields, attaching a thumbnail to the scanned document file, and works with any scanner?

    I am a professional photographer, with years of paper model releases. I would like to find a document scanning software that works with my exisiting flatbed scanner (Canon MP250) that I can customize the seach fields for (ie. name, agency, job, etc.) and also attach a thumbnail image to as a job reference. I would like the document to be searchable as well. I've looked at a few different document scanning software companies, but I haven't found one that allows me to attach a jpeg file to a scanned PDF. Does anyone know if software like this exists?

    You can't do better than to use VueScan:
    http://hamrick.com/

  • Create a GPT partition table and format with a large volume (solved)

    Hello,
    I'm having trouble creating a GPT partition table for a large volume (~6T). It is a RAID 5 (hardware) with 3 hard disk drives having a size of 3T each (thus the resulting 6T volume).
    I tried creating a GPT partition table with gdisk but it just fails at creating it, stopping here (I've let it run for like 3 hours...):
    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
    PARTITIONS!!
    Do you want to proceed? (Y/N): y
    OK; writing new GUID partition table (GPT) to /dev/md126.
    I also tried with parted but I get the same result. Out of luck, I created a GPT partition table from Windows 7 and  2 NTFS partitions (15G and the rest of space for the other) and it worked just fine. I then tried to format the 15G partition as ext4 but, as for gdisk, mkfs.ext4 will just never stop.
    Some information:
    fdisk -l
    Disk /dev/sda: 256.1 GB, 256060514304 bytes, 500118192 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk label type: dos
    Disk identifier: 0xd9a6c0f5
    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 104861695 52429824 83 Linux
    /dev/sda2 104861696 466567167 180852736 83 Linux
    /dev/sda3 466567168 500117503 16775168 82 Linux swap / Solaris
    Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk label type: dos
    Disk identifier: 0x00000000
    Device Boot Start End Blocks Id System
    /dev/sdb1 1 4294967295 2147483647+ ee GPT
    Partition 1 does not start on physical sector boundary.
    Disk /dev/sdc: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk /dev/sdd: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk label type: dos
    Disk identifier: 0x00000000
    Device Boot Start End Blocks Id System
    /dev/sdd1 1 4294967295 2147483647+ ee GPT
    Partition 1 does not start on physical sector boundary.
    Disk /dev/sde: 320.1 GB, 320072933376 bytes, 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk label type: dos
    Disk identifier: 0x5ffb31fc
    Device Boot Start End Blocks Id System
    /dev/sde1 * 2048 625139711 312568832 7 HPFS/NTFS/exFAT
    Disk /dev/md126: 6001.1 GB, 6001143054336 bytes, 11720982528 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 65536 bytes / 131072 bytes
    Disk label type: dos
    Disk identifier: 0x00000000
    Device Boot Start End Blocks Id System
    /dev/md126p1 1 4294967295 2147483647+ ee GPT
    Partition 1 does not start on physical sector boundary.
    WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
    gdisk -l on my RAID volume (/dev/md126):
    GPT fdisk (gdisk) version 0.8.7
    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present
    Found valid GPT with protective MBR; using GPT.
    Disk /dev/md126: 11720982528 sectors, 5.5 TiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 8E7D03F1-8C3A-4FE6-B7BA-502D168E87D1
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 11720982494
    Partitions will be aligned on 8-sector boundaries
    Total free space is 6077 sectors (3.0 MiB)
    Number Start (sector) End (sector) Size Code Name
    1 34 262177 128.0 MiB 0C01 Microsoft reserved part
    2 264192 33032191 15.6 GiB 0700 Basic data partition
    3 33032192 11720978431 5.4 TiB 0700 Basic data partition
    To make things clear: sda is an SSD on which Archlinux has been freshly installed (sda1 for root, sda2 for home, sda3 for swap), sde is a hard disk drive having Windows 7 installed on it. My goal with the 15G partition is to format it so I can mount /var on the HDD rather than on the SSD. The large volume will be for storage.
    So if anyone has any suggestion that would help me out with this, I'd be glad to read.
    Cheers
    Last edited by Rolinh (2013-08-16 11:16:21)

    Well, I finally decided to use a software RAID as I will not share this partition with Windows anyway and it seems a better choice than the fake RAID.
    Therefore, I used the mdadm utility to create my RAID 5:
    # mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sdd1
    # mkfs.ext4 -v -m .1 -b 4096 -E stride=32,stripe-width=64 /dev/md0
    It works like a charm.

  • Portal template without tables and only with css

    Hi,
    I would like to know if it's possible to create portal templates that dont't use tables to define the layout but a css instead.
    Thanks,
    rjc

    With Portal 10.0, we introduced CSS-based (non-table) equivalents to our standard OOTB layouts. These have similar names to the pre-10.0 layouts with "flow" suffixes.
    Table-based:
    twocolumn.layout ("Two Column Layout" in the IDE)
    CSS-based:
    twocolumnflow.layout ("Two Column Flow Layout" in the IDE)
    It is also possible to create custom layouts and use whatever layout techniques are most appropriate for the circumstances:
    http://edocs/wlp/docs100/portals/develop_ui_lookfeel.html#wp1032320
    Tim

  • UIX table and textInput with multiple rows

    JDev 9.0.5.2
    I created an input form with a messageTextInput which allows the user to enter in multiple lines of text with the ability to use the return key. When I edit the record, the messageTextInput displays the lines of text just as the user entered them with the correct spacing and returns.
    My question is how do I get the messageTextInput data to display properly in a UIX read only table?
    I am able to display it with a scroll bar but I would prefer for the field to be sized based on the amount of data to display without scroll bars.
    Thanks for any help.

    I tried this but the table would not use my new style. Here is what I have in my xss:<style selector=".DVTableBorder">
    <property name="border-width">0px 0px 0px 0px</property>
    </style>

  • BI - ABAP To pick the field from One table and link with 2nd table

    Hello, I am stuck to write the correct abap code. Requirement is that My Client BMW  California require the below:
    <b>1.</b>  list of invoices (BELNR) that a has tcode = FB01 and FBVB" from Table BKPF.  Account Number field (BELNR) is there in 0fiap_4 Data source
    <b>2.</b> Now Link the above invoice Number (BELNR)  that a has tcode = FB01 and FBVB" from Table BKPF to BMW Custom Table I_BMW_WI. - Field "PAT ID" which is the cocatenation of OBJNR (Object Number), Invoice Number and Purchase Year.  where PICK only thos PAT ID where "TYPEID"  Value = "BMW" in table I_BMW_WI.
    To solve Number 1 Please fix my abap code and help me to write the Code to Solve Number 2 and Link #1 AND #2.
    Please help me soon
    Code # 1
    case I_datasource.
    WHEN '0FI_AP_4'.
    loop at C_t_data into l_s_DTFIAP_3.
    l_tabix = sy-tabix.
    clear I_BMW_WI.
    if sy-subrc = 0.
    select single * from BKPF into I_BKPF where BELNR = l_s_DTFIAP_3-BELNR.
    LOOP AT I_BKPF into I_FINAL WHERE
    Code below is not working
    (I_BKPF-TCODE = ‘FV50’) OR (I_BKPF-TCODE = ‘FB01’)
    I_FINAL-BELNR = I_BKPF-BELNR
    modify I_FINAL.
    endloop
    modify C_t_data from l_s_DTFIAP_3  index l_tabix.
    endif.
    endloop.
    endcase
    Code # 2 -
    Please help with templates.
    Thanks
    Soniya Kapoor

    Hi,
    Ad Code #1
    First of all the key for BKPF consists of:
    BUKRS, BELNR and GJAHR so I think you should use all key fields in your SELECT statement:
    select single * from BKPF into I_BKPF
    where BUKRS = l_s_DTFIAP_3-BUKRS and
          BELNR = l_s_DTFIAP_3-BELNR and
          GJAHR = l_s_DTFIAP_3-GJAHR.
    And why do you test SY-SUBRC after CLEAR ?
    Your IF statement should be after SELECT...
    And last but not least when you are using SELECT SINGLE you always get only one record so what is the purpose of LOOP statement ?
    Try following code:
    case I_datasource.
    WHEN '0FI_AP_4'.
      loop at C_t_data into l_s_DTFIAP_3.
        l_tabix = sy-tabix.
        select single * from BKPF into I_BKPF
          where BUKRS = l_s_DTFIAP_3-BUKRS and
                BELNR = l_s_DTFIAP_3-BELNR and
                GJAHR = l_s_DTFIAP_3-GJAHR.
        if sy-subrc = 0.
          if (I_BKPF-TCODE = ‘FV50’) OR
             (I_BKPF-TCODE = ‘FB01’).
            I_FINAL-BELNR = I_BKPF-BELNR
            modify I_FINAL.
          endif.
          modify C_t_data from l_s_DTFIAP_3 index l_tabix.
        endif.
      endloop.
    endcase.
    regards
    Krzys

Maybe you are looking for