Create dynamic table in BEEP RTF models

Hello

I have a table in my RTF model and I want to hide some columns and the remaining columns occupy the remaining space so

I try inserting the size of each column in the table dynamically like this:


Elements of XSL - FO support

" column in the table " " " -the width of column '


< fo:table - column-column number '2' column width = "25%" border-style = border-width 'solid' = "5pt" / >


but gives me the following error "FOTableColumn cannot be cast to oracle.xdo.template.fo.elements.FOLayoutable"


Is there a way to do this?

I solved this problem with the number of columns spans:

2

Tags: Business Intelligence

Similar Questions

  • How to create a table in a schema in the SOA database

    Hello

    can you please guide me how to create a table looks under custom schema available in the SOA database

    Thank you

    Valsaint

    Hello

    1. use JDeveloper to connect to your schema custom: view > Database > Database Navigator > new connection

    2. set the mpdel of your table column names, types of data, constraints (primary key, not null, foreign key, etc..)

    3. use this simplified tutorial to create the table according to your model of table create statement - Oracle/PLSQL: CREATE TABLE statement

    4. execute the statement in the SQL of JDeveloper journal for the custom connection (point 1 above).

    Let me know if you need help!

    HTH,

    A.

  • How to create a dynamic RTF report that creates dynamic columns based on the selection of dynamic columns in a table?

    Hi all

    Suppose I have table, whose structure changes frequently on a daily basis.

    For example. / / desc my_table gives you after the name of the column the day 1

    SQL > my_table DESC;

    Output

    Name

    Age

    Phone


    Day 2, two other columns are added, viz, address and salary.

    SQL > my_table DESC;

    Output

    Name

    Age

    Phone

    Address

    Salary


    Now, I want to create a Dynnamic RTF report which made extracting data from all columns from my_table daily. For this, I have defined a simultaneous program with XML output type and include in annex a data/definition of data model that takes XML as input and gives the final result of the conc program in EXCEL layout. I am able to do that for a constant number of columns, but don't know how to do it when the number of columns to display dynamically changes.

    For 1 day my XML file should be like this.

    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
    </group>
    </dataStructure>
    </dataTemplate>
    
    

    And my day 1, EXCEL output RTF model should be like this.
    Name age phone

    Swapnill 23 12345

    For 2 days my XML file should be like this. With 2 new columns selected in the SELECT clause.

    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    ,Address
    ,Salary
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
      <element name="Address" value="Address" />
      <element name="Salary" value="Salary" />
    </group>
    </dataStructure>
    </dataTemplate>
    
    

    And my day 2, exit EXCEL model RTF should be like this.
    Name address telephone pay

    23 12345 Madrid 100000 Swapnill

    Now, I don't know below things.

    • Make the dynamic XML as we did in the day 1 there are 3 columns in the SELECT statement and the day 2, 5 columns. I want to create a dynamic XML which must not be changed if the new columns are added into my_table. I don't know how to create this query and also create their corresponding items below.
    • Make the RTF model dyanamic as day 1 there are 3 exit EXCEL columns and the day 2, 5 columns. I want to create a dynamic RTF model that would display all the columns selected in XML dynamic. I don't know how the RTF will create new XML tags and how it will know where to place them in the report. Means, I can create model RTF day 1, by loading the XML data for 3 columns and place 3 tags XML in the model. But how he will create and place the tags for the new columns the day 2?

    Hope so, you got my requirement, it's difficult. Please let me know how I can implement the necessary solution using the RTF dynamically without any manual intervention.

    Kind regards

    Patricia K.

    Post edited by: SwapnilK

    Hi guys,.

    I was able to solve above the requirement.

    I created a procedure that would create & update (attached to the data definition) XML file dynamically for each race. This dynamic XML contains the SQL statement for the data query that is built dynamically. I am updating this XML file using XDOLoader utility to the definition of data. Then run my program customized to generate the excel output.

    Exit excel retrieves correct number of columns dynamically (3 on Day1 and Day2 5), with corresponding data records.

    Kind regards

    Patricia K.

  • Problems with highlighting of the rows of the table through RTF-model

    Hello!

    Peace im new in the world of BI Publisher. For the moment, I try to create and RTF-model with the Office AddIn for Word Bi-editeur (2010). I want to create a table based on a table of a pdf document existing already. I have all the data in the right format and order and just worked fine - until I wanted to change the background color of some specific lines.
    If I add that a statement such as

    <? If: Variable = "Expressionstring?" > <? attribute@InContext:background-color;' #FFFF80 '? > <? end if? >

    the context of the evolution of the entry. But the fact the line height. It develops. The expressions more that I use more it grows. That of not good, because the table is so great that it only fits on a single page with fine lines... I tried to apply a height specified in the line through the word, but it does not work.
    I searched a couple hours and still didn't find anything regarding this problem. I appreciate any ideas how to solve this problem.

    Tounsiiaa in advance

    Gabriel

    To help those who have a similar problem: it's just like sfr.farhan.fani wrote. I try to give you a general expression:


    <? If@row:ROWNAME=VALUE? > (this should work with = > etc do not forget the ' ' for strings etc..)

    < xsl: attribute name = 'background-color' xdofo:ctx = 'incontext' > lightgray < / xsl: attribute > (lightgray can be changed to hexa% and %valeurs)

    <? end if? >

    Hello

    Try the following expression

    5000? >

    LightGray

  • Can dynamically create you index rules or virtual models in plsql?

    I am writing a plsql utility that loads data into a new model in offline mode. Once the load is complete, I need to create a new index of rules based on the definition of an index of existing rules. Once this is done, I need then to drop my virtual model existing and re-create it to include the new model I just loaded. I realize I could hardcode the two statements created in my plsql but I rather dynamically build lists of types "sem_apis.create_entailment" and "sem_apis.create_virtual_model" so that I don't have to change the code every time that I add new models to my environment (i.e. with this feature, I can add new models to the index of the rule and vitual manually models and my load utility would automatically include) in the next run of load).

    How can I pass the list of templates in each of these APIs? The documentation states that both accept a parameter of "models_in" of type SEM_MODELS, to whom he explains has a definition of TABLE OF VARCHAR2 (25).

    I created variables of types said in my utility and initialized them valid with models. However, whenever I try to run the API in my plsql using these variables, I get the following error:

    PLS-00306: wrong number or types of arguments in the call to 'CREATE_VIRTUAL_MODEL '.

    I have attached the sample code below:

    declare
    Model_T. ARRAY TYPE IS VARCHAR2 (25);
    model_list model_T;
    Start
    model_list: = model_T ('M1', 'M2');
    for me in model_list.first... loop of model_list. Last
    dbms_output.put_line (i: ' = ': model_list (i));
    end loop;
    sem_apis.create_virtual_model ('m12_NEW', model_list);
    end;
    /


    Has anyone successfully done this before? Any ideas how I might be able to get this to work?

    Thank you!

    Use the type SEM_MODELS as shown below:

    declare
    model_list SEM_MODELS;
    Start
    model_list: = SEM_MODELS ('M1', 'M2');
    ...
    end;
    /

  • I want to create the BI Publisher .rtf model as attaché

    Hi Experts,

    I'm creating the RTF template but unable to group and the merger of the blocks contained in the sample model. Could you please create the rtf with attached sample data model. For your reference, I enclose my RTF template as well. Please do the needful.

    Thanks in advance

    Thank you and best regards,

    Satya

    Hi Satya,

    I created the RTF model based on your design data and sample layout xml.

    Please find attached.

    Let me know if you need more assistance.

    Thank you...

  • For Timo: Dynamically create pivot table binding

    Hi Timo,

    Long time ago you have this announcement on a thread:

    "The solution for your use a 2013 DOAG case, I presented was to create binding table pivot out user defined attributes in the table."

    For the defined attributes, VO is created dynamically and the pivot link.

    The pivot link is exchanged during execution as well as the activation of the adequate VO Dynamics to get only the

    necessary data for the pivot table in particular.

    ......

    I can't give you a working example because it is too complex. I can make available slides, but they are in German. "

    We have the same problem.

    Can you please send me this presentation on: email address removed by the moderator - there is no private through this public forum consultation >

    I can't find this Presentation on the Internet.

    Maybe, if you have some examples of simple work, too.

    Kind regards

    Diana

    Diana, you can get the DOAG2013_DynamicPivotTable_virtual7 blades | JDev & ADF Goodies

    The sample is too complex to be made available through my blog.

    Timo

  • Create education dynamic table in SQL

    Hello

    I am trying to create a table in a select query via a using the dynamic SQL PL/SQL block. This is the query,

    declare
    stmt varchar2 (2000);
    Start
    stmt: = "' CREATE TABLE AS SELECT PATIENT_ID, name FROM employee output" ';
    immediately execute stmt;
    end;
    /

    It throws the following error.

    declare
    *
    ERROR on line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at line 5

    I tried to run the statement without the variable, and it runs very well. I mean

    Start
    run immediately "CREATE TABLE output AS SELECT PATIENT_ID, name OF the employee";
    end;
    /

    works perfectly. Can you please help me with this.

    Thank you

    Hello

    declare
    stmt varchar2(2000);
    begin
    stmt := 'CREATE TABLE output AS SELECT PATIENT_ID, FIRST_NAME FROM employee';
    execute immediate stmt;
    end;
    

    Nothing different from what Anurag has shown above.
    But you will need to consider a few things.
    (1) since it is possible it is not a must to use
    (2) it is considered to be a poor design where in it need to create tables on the fly.
    (3) whether it is absolutely mandatory. If you can give us an idea of your condition. I don't know that the gurus here can give you suggestions
    (4) this kind of design will be will lead you into problems sooner or later for sure

    Kind regards
    Bobin

  • Of FUNDING and dynamic SQL CREATE ANY TABLE

    Hi gurus,

    I have a dynamic SQL code in a procedure where a table to an existing table without data will be created.

    strSQL: = "create table ' | strTemp | ' in select * from '. strArc. "where 1 = 2"; "
    Execute immediate strSQL;


    without GRANT CREATE ANY TABLE to user, * "ORA-01031: insufficient privileges" * error executing. "."

    Is there a way to tackle this problem without providing a GRANT CREATE ANY TABLE privileged?


    Thank you very much
    Charles

    (1) why you are creating a table to run? Which seems to me very concerning. If you create a temporary table and you're accustomed to work how temporary tables in other databases, I would strongly suggest you look at how Oracle manages global temporary tables. If temporary storage is really necessary (99% of the time is not because of the consistent reading multi-version), you should be able to create global temporary tables a few during execution.

    (2) the owner of the procedure should just need the CREATE TABLE privilege granted directly to the user (not granted through a role), assuming that it is in stored procedure a standard DEFINER rights.

    Justin

  • Dynamically create a table of contents

    I'm having a problem dynamically create a table of contents (table of contents). I set up the table of contents in my template, but apparently not otherwise than he does until I run the report during execution. I feel that the TOC can be built dynamically, but I do not see how this works. Any thoughts?

    Group of LINE by TABLE_NAME

    TABLE-NAME
    "The data in the table.

    page breakend LINE of TABLE_NAME


    Here are the results before and after execution:

    Table of contents
    TABLE_NAME...........................................................................................................................

    Hi Patrick,

    Take a look at the email I sent.

    Simply enter the domain name like and do not use the form for this field.

  • RTF model dynamic watermarks

    Hi all

    One of our clients wants to integrate dynamic watermarks in the RTF of BI publisher reports. The report has a watermark and on the basis of the connection of the user, the watermark should display the logged in user ID, and the opening date of session.

    For Ex - if the user is Roy, then watermark must display user-Roy, Date-28 July, 2014

    If the user is John, then watermark must display user-John, Date to July 30, 2014.

    All entries are greatly appreciated.

    Best regards

    gt1942

    Yes it is possible, please follow this link

    http://www.Oracle.com/ocom/groups/public/@OTN/documents/digitalasset/176444.swf

    For the dynamic user based on the login name, use ": xdo_user_name" as a column in your sql code so that you can retrieve the value of xml and make the required changes in RTF for watermark.

  • drop and re-create the table using dynamic sql

    The following procedure should drop the table and re-create it. Currently, I get the dbms_output of the query. If I run the query only, it works well. but through the procedure, it does not work. Please help me

    PROCEdure emp_backup is
    sql_txt varchar2(10000);
    begin
         begin
         EXECUTE IMMEDIATE 'drop table emp_backup ' ;
         exception
         when others then
         null;
    
         sql_txt:= 'CREATE TABLE emp_backup as ' ||
                     'select * from emp  '||
                     'where dep_no=10 ' ;
         dbms_output.put_line(sql_txt);
         EXECUTE IMMEDIATE sql_txt;
    Exception
    when others then
    Null;
    
    End;

    Daniel wrote:
    I'm getting following error ORA-01031: insufficient privileges

    What is the command to grant privileges to this

    GRANT CREATE TABLE TO <>
    

    Detaching Frank, however, and echoing my previous comment, let them down and to re-create the tables makes no sense. It is logical to truncate a table if you test a load. If you build a data warehouse, it makes sense to delete and re-create a partition if you rerun a load for a particular date and that you have daily partitions. Deletion and recreation of a table in a stored procedure is not a reasonable way to test a system (nor is there a reasonable way to approach change control issues that will inevitably produce when you need to change the structure of a table).

    Justin

  • creating style table of dynamic materials &amp; sorting of entries...

    Hello world

    We have created the command script to generate multiple files inx artlink reports to a text file. Finally we have to sort alphabetically. I tried with the concept [myArray.sort ()] before writing in the text file. It works but it first sorts the letters and then it sorts the lowercase of each input. For example,.

    Table sorting But wait

    Apple.EPS

    Banana.EPS

    Candy.TIFF

    Apple.EPS

    Banana.EPS

    Candy.TIFF

    Apple.EPS
    Apple.EPS
    Banana.EPS
    Banana.EPS
    Candy.TIFF
    Candy.TIFF

    Can someone look into this and help for me. Or help me to query below.

    We can settle this report perfectly with InDesign TOC options. I tried to create the style of table of contents through javascript, but I'm unable to do so. Can anyone suggest me how to create style table of contents (with a paragraph style and sort entries in alphabetical order option) or how to import another document TOC styles using javascript.

    Thanks in advance.

    Indana

    That's what JS using said of table-> sorting:

    Sub sort (userFunction: Function)
    Sorts the elements in the array in place, using the given function to compare elements.
    If no function is provided, the elements are sorted alphabetically. Not return a return value.

    Parameter Type Description
    userFunction Function A function provided by the user in the form of userFunction (a, b) that returns less than 0 if a is greater than b, 0 if a and b are equal and greater than 0, if b is greater than one.

    As it is said, the default behavior is to sort alphabetically - and hence they must mean "in ASCII order. What you need is a custom sort routine. A few more string manipulations, I come to this conclusion:

    var myArray = [
    "Apple.eps",
    "Banana.eps",
    "Candy.tiff",
    "apple.eps",
    "BANANA.Eps",
    "candy.tif" ];
    myArray.sort(function (a,b) { return a.toUpperCase() == b.toUpperCase() ? (a < b ? -1 : a > b) : (a.toUpperCase() < b.toUpperCase() ? -1 : a.toUpperCase() > b.toUpperCase()); });
    alert (myArray.join ('\n'));
    

    that sorts correctly the case independent table.

  • Merge cells in Excel of the RTF model output

    Newbie question. When I create a RTF model whose primary production is Excel, I usually have a lot of merged cells. Any advice on how to fix that? I almost always prefer my split cells.

    exporting to XLSX

    What export to xls?

    also that there emerged word? where is the same behavior or not?

    as I said

    can not say without looking at it

    can be yes or no

    output image seems strange

    It's may be bug or incorrect model

    Look at

    Generate an Excel output with an RTF template columns and rows of a Table are combined (Doc ID 1590858.1)
  • Help me. RTF model, XML BI Publisher report

    I have a table of data

    Model day number

    GS          1          0

    LX           1          0

    ES          1          1

    GS          2          0

    LX           2          0

    ES          2          0

    GS          3          0

    LX           3          1

    ES          3          0

    .............. 31 ........ 0

    Please help me to create data model RTF see the:

    Model 1 2 3 4 5 6 7... 31 total

    GS         0     0     0     0     0     0     0          0         0

    LX          0     0     1     0     0     0     0          0        1

    ES         1     0     0     0     0     0     0          0         0

    1 0 0 0 0 0 0 0 1-total

    Please help me...

    Thank you very much >. <

    Was not looking for it but, it, maybe it helps: https://blogs.oracle.com/xmlpublisher/entry/minning_and_maxing_in_pivots

Maybe you are looking for

  • How to use fonts (installed in Windows) Mistral in Thunderbird 38.0.1?

    Mistral and several other fonts are installed in Windows 7. In earlier versions of Thunderbird, I was able to use the MIstral and all other fonts in Windows without difficulty. Mistral and many other fonts in Windows 7 are now available in Thunderbir

  • HP Pavilion 11-h010nr x 2

    I have this camera, but I have not used it much because of limited disk space. I have a question about the upgrade. Questions: 1) what is the upgrade of the disk of maximum size? I was thinking about a 500 GB. (2) what is the required interface? SATA

  • How can I retrieve or reset my password encryption for backup of iTunes to a new phone?

    I just bought an iPhone 6 and that it replaces an iPhone 5.   I want to transfer my data in iTunes but don't remember my password for encryption.   Is there a way to recover the password or change it?

  • BlackBerry Smartphones deleted photo recovery

    I was clear a white Peak turned my phone off and this massive deletion started of my photos in my Album in August. Don't know what caused it. Is it possible to recover these photos? More than 200 photos have been deleted.

  • I got a call from a company called ITSOLUTIONS cold

    I got a call from a company called ITSOLUTIONS that says that my new computer was displaying the errors in my Windows 7 system cold. Is this true or false? How did get that info, my computer, my phone number, name, etc. ? Then they asked me if I had