Resize the width of the columns of several stories selected with tables

I found this wonderful script that matches the width of all tables to the width of their text frames

It's great because we have several layers, each layer containing the tables in their own language. If the script helps a lot.

There is only one thing, I would change:

In this case, the script runs through the entire document. I would like to change that to the framework only we choose (to optimize control and avoid mistakes).

----------------------------------------------------------------------

var myDocument = app.activeDocument;

for (s = 0; s < myDocument.stories.length; s + +) {}

for (t = 0; t < myDocument.stories [s].tables.length; t ++) {}

var myTable is myDocument.stories.item (s).tables.item (t);.

var myTableParent = myTable.parent;

var parentWidth = myTableParent.geometricBounds [3] - myTable.parent.geometricBounds [1];

var factor = parentWidth/myTable.width;

for (col = 0; col < myTable.columns.length; col ++) {}

myTable.columns [col] .width * = factor;

}

}

}

Hello

Try this,

var selection = app.selection;

for (var j = 0; i)<>

var myTable = selection [j].tables.everyItem () .getElements ();

for (var i = 0; i)<>

{

var myTableParent = .parent myTable [i];

var parentWidth = myTableParent.geometricBounds [3] - myTable [i].parent.geometricBounds [1];

var factor = parentWidth/myTable [i] .width;

for (col = 0; col

{

myTable [i] .columns [col] .width * = factor

}

}

}

Kind regards

Cognet

Tags: InDesign

Similar Questions

  • Can I use * and the list of the column names in a select query

    PLSQL again.  Can I use * and the list of the column names in a select query, i.e. Select *, col1, col2 from Mytable.  When I do that my questions tend to the bomb.  Can do in other databases.

    Thank you

    Mike

    Hi, Mike,.

    If there is something else in the more SELECT clause *, then * must be qualified with a table name or alias.

    For example:

    SELECT Mytable. *, col1, col2

    FROM MyTable;

  • You can ' resize the columns: by Scalling to widths Totalling: "throughout the document?

    Is it still possible?

    Play with this example, it seems possible, but I can't quite figure out how to make it work.

    var doc is app. ActiveDoc; var flow is doc. MainFlowInDoc; var tbl = 0; var textItems = flow. GetText (Constants.FTI_TblAnchor); for (var i = 0; I < textItems.len; i += 1) {tbl = textItems [i] .obj; var tblColWidths = new Metrics (2 * 72 * 65536, 2 * 72 * 65536); tbl.} TblColWidths = tblColWidths; }

    Unlimited amounts of tables in each document for the most part, with 4 to 6 columns each. I'm quite puzzled here, someone who could help or at least direct me I would be grateful.

    The problem is that you're passing only widths for two columns, regardless of the number of columns the original table. You need calculate the new widths separately for each table. The following code should do what you are looking for:

    var flow is app. ActiveDoc.MainFlowInDoc;

    var targetTbleWidth = Math.floor (6.25 * 72 * 65536); Block of text assumed 6.25 inch

    var tbl;

    var textItems = flow. GetText (Constants.FTI_TblAnchor);

    for (var i = 0; i)< textitems.len;="" i="" +="">

    {

    tbl = textItems [i] .obj;

    scaledColWidths = scaleTblMetrics (tbl, targetTbleWidth)

    tbl. TblColWidths = scaledColWidths;

    }

    function scaleTblMetrics (tbl, targetWidth)

    {

    var currentColWidths is tbl. TblColWidths

    var currentWidth is tbl. TblWidth;

    var scaleFactor = targetWidth/currentWidth;

    var targetColWidths = new Metrics;

    for (var i = 0; i)< currentcolwidths.length;="" i++)="" targetcolwidths.push(math.floor(currentcolwidths[i]="" *="">

    Return targetColWidths;

    }

  • width of the column of xml to framemaker attribute table

    I'm trying to set the width of the columns in a table in framemaker by importing the width of an attribute in the imported xml file. But it does not work...

    It's my read/write rules:

    element 'POINT-CELL-LIST.

    {

    is fm table cell element.

    the "width" attribute is fm column width of property;

    column and the width of the FM property value is "2cm".

    }

    The last line that specifies the width of 2cm seems to be accepted as I can save ESD in the DTD without errors, but it has no effect on the actual width of the created table.

    The line above, it does not at all. When I try to save the EDD, I get the following error: "invalid property specified for the element (ITEM-CELL-LIST).

    I tried all the ways that I can think of, but nothing seems to work

    The only way I could actually set the widths is to create a table in the main master page and the resizing of columns. Bringing on the imported XML.

    Rudi,

    Ah, no problem. Do not set the widths in the rules of r/w, but in an attribute on the

    element, something like:

    XML1:

    XML2:

    You did not mention what units you are using, so I guessed mm. Alternatively, you can use proportional widths, using an asterisk as a unit:

    This variation tells FM to use all available space (width of the column or page, as determined by the pgwide attribute) and to divide so that columns 2 and 4 are twice as wide as the other columns.

    You can use items if you use CALS tables, in particular, if you have an element of .

    -Lynne

  • Cannot resize the search box of Google Toolbar with FF 4 rc1

    Hello

    I have problems with the new version of Firefox 4 rc1 and the Google toolbar. In fact, I can't resize the Google search field in no way (this means that I can't move the arrows and the vertical separator - which consists of an icon) as it is gray. I can't slide on the left or right as I used to do it with the previous version of Firefox. What is someone having the same problem? Did you solve it?

    Thank you!

    Weird, weird, weird. I got it to work! If you hover over the gray arrows and click the right and left mouse buttons, you can then resize the google toolbar. Just happened on this subject!

  • Comparison of the data of several rows in a table - based on the primary key

    Currently I have a select statement that returns hundreds of records.  Each returned record is linked to A NUMBER of ORDER this order number has a recipe.  (a bit like a cooking recipe).  Each recipe has many records in the database related to this order number and records should be compared to records in a table that bind to a specific primary key...  (I have already developed the logic to isolate what PK I need).  If all these records that are returned by the select statement below does not match all the records containing PK in the table below, I need to get the next PK and compare all these recordings for select statements return.

    See below for a better understanding. Need a good example detailed on how to solve my problem here.

    Just to help you understand:

    Each element of the recipe is 3 parts (side, ref_des, part_number).  1 single recipe can have several parts (where the part_number), and each of these pieces should be placed on the lower side or top of the Board that is there "side" comes into play.  Same thing with Ref_Des.

    What is going on

    Select statement returns the RECIPE of ORDER NUMBER A.  There will be multiple records returned by this query.

    Select the Return statement:

    • Side
    • Ref_Des
    • Part_Number

    Example of return:

    B c17 75145-2

    T f14 89242-8

    B s12 45123-3

    etc,

    In general - what I need to do:

    There is a table called AUTO_RECIPE_DETAILS.  I take all of the records returned by the select query above and compare for each record in this table relating to the recipe 30319-000001.  30319-000001 a number of records.  It is the primary key for a whole recipe as seen above.  This primary key is bound the number of data records in this table.  The comparison is to see if all records under RECIPE_NAME 30319 -000001 match all the records returned by the select statement.

    IF IT DOES NOT MATCH: recover the following recipe in this table below 30319 -000002 and make the same comparison.

    Here's a perfect example of what the table looks like: (AUTO_RECIPE_DETAILS)


    RECIPE_NAME SIDE REF_DES PART_NUM

    -30319-000001 C16 87595-1 B

    -30319-000002           T B14 74150-4

    -30319-000001 T B14 34251-2          

    -30319-000001            T F24 84180-7

    -30319-000002 T B12 13710-8          



    It is the solution to my original question.  By this thread, it's the right answer and I hope this helps someone who is trying to compare two arrays element-by-element.  In the end, the advice given in this thread were correct and I will be using all of your suggestions and the scrapping of this.  Thank you everyone for your help though.

    FOR index_p IN pid_recipe. FIRST... pid_recipe. LAST

    LOOP

    Result WHEN the OUTPUT = 1;

    FOR index_d IN details_recipe. FIRST... details_recipe. LAST

    LOOP

    IF (pid_recipe (index_p). SIDE = details_recipe (index_d). SIDE)

    AND (pid_recipe (index_p). REF_DES = details_recipe (index_d). REF_DES)

    AND (pid_recipe (index_p). PART_NUM = details_recipe (index_d). PART_NUM)

    THEN

    EXIT;

    ON THE OTHER

    DBMS_OUTPUT. Put_line("IT WAS NOT a MATCH");

    result: = 1;

    EXIT;

    END IF;

    END LOOP;

    END LOOP;

    DBMS_OUTPUT. Put_line('LOOP OUT');

  • The call of several objects in a table

    Hello

    I tried to figure out how to appeal to several objects in a table.

    What I want to do is set the value of certain objects display in a table at certain points.

    Thus, for example;

    var CheckBox1 = this.getField("CheckBox1").value;
    var CheckBox2 = this.getField("CheckBox2").value;
    var arrObj = [
    "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten"];
    
    if (CheckBox1 = "Yes") {
         if (CheckBox2 = "Yes") {
              arrObj[1].display = display.hidden;
              arrObj[7, 8, 9].display = display.visible;
              arrObj[4, 5, 6].display = display.noView;
              arrObj[2, 3].display = display.noPrint;
         }
         else if ...
              //do something else
    }
    

    So instead of writing 10 different set out I can condense up to maximum 4 or less in function.

    However, all the ways I tried to do it didn't and I can't find any clear examples on the web.

    Any suggestions?

    As always, any help is very appreciated.

    Thank you in advance.

    This is a potential problem with your code: in a table JavaScript, the first element is element 0 and not 1.

    Try this instead (it's just the inner loop):

    var a1 = [7, 8, 9];
    var a2 = [4, 5, 6];
    var a4 = [2, 3];
    
    if (CheckBox2 == "Yes") {
        arrObj[1].display = display.hidden;
        for (var i in a1)
            arrObj[a1[i]].display = display.visible;
        for (var i in a2)
            arrObj[a2[i]].display = display.noView;
        for (var i in a3)
            arrObj[a3[i]].display = display.noPrint;
    }
    
  • Select the checkbox in the column header everything inside TableView with CheckBoxTableCell

    Hello

    I have a TableView with a column filed with the box and a listener "changed" in the template class 'Code '. I also have a 'Select all' check box in the header of this column that call the method "handleSelectAllCheckbox()". But him 'select all' does not work!

    I'm really grateful for the help.

    Here is my code:

    Concerning

    import java.net.URL;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.ResourceBundle;
    import javafx.beans.property.SimpleBooleanProperty;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.fxml.FXML;
    import javafx.fxml.Initializable;
    import javafx.scene.control.CheckBox;
    import javafx.scene.control.TableCell;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableView;
    import javafx.scene.control.TitledPane;
    
    
    
    
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.util.Callback;
    
    
    
    
    public class FXMLController implements Initializable {
    
    
        private CodeService codeService = new CodeServiceImpl();
        @FXML
        private TableView<Code> codeTableView;
        @FXML
        private TableColumn codeNomCol;
        @FXML
        private TableColumn codeAbregeCol;
        @FXML
        private TableColumn codeSelectCol;
        // The table's data
        private ObservableList<Code> dataCode;
    
    
        // ---------- ---------- ---------- ---------- ----------
        @Override
        public void initialize(URL url, ResourceBundle rb) {
            this.initCodeTableView();
            this.initColumnsSize();
        }
    
    
        /**
         *
         */
        private void initCodeTableView() {
            
            this.codeNomCol.setCellValueFactory(new PropertyValueFactory<Code, String>("nom"));
            this.codeAbregeCol.setCellValueFactory(new PropertyValueFactory<Code, String>("abrege"));
            //this.codeSelectCol.setCellValueFactory(new PropertyValueFactory<Code, String>("selected"));
    
    
            this.codeSelectCol.setCellValueFactory(new PropertyValueFactory("selected"));
            this.codeSelectCol.setCellFactory(new Callback<TableColumn<Code, Boolean>, TableCell<Code, Boolean>>() {
                @Override
                public TableCell<Code, Boolean> call(TableColumn<Code, Boolean> arg0) {
                    return new CheckBoxTableCell<Code, Boolean>();
                }
            });
            
            // Header CheckBox
            CheckBox cb = new CheckBox();
            cb.setUserData(this.codeSelectCol);
            cb.setOnAction(handleSelectAllCheckbox());
            this.codeSelectCol.setGraphic(cb);       
    
    
            this.codeTableView.getItems().clear();
            this.dataCode = FXCollections.observableArrayList((List<Code>) this.codeService.listCodes());
            this.codeTableView.setItems(this.dataCode);
        }
    
    
        /**
         * 
         * @return 
         */
        private EventHandler<ActionEvent> handleSelectAllCheckbox() {
    
    
            return new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent event) {
                    CheckBox cb = (CheckBox) event.getSource();
                    TableColumn column = (TableColumn) cb.getUserData();
                    if (cb.isSelected()) {
                        for (Code c : dataCode) {
                            System.out.println("Nom: " + c.getNom() + " Selected: " + c.getSelected());
                            c.setSelected(new SimpleBooleanProperty(Boolean.TRUE));
                        }
                     } else {
                        for (Code c : dataCode) {
                            System.out.println("Nom: " + c.getNom() + " Selected: " + c.getSelected());                        
                            c.setSelected(new SimpleBooleanProperty(Boolean.FALSE));
                        }
                    }
    
    
                }
            };
        }
    
    
        /**
         *
         */
        private void initColumnsSize() {
            this.codeNomCol.setMinWidth(300);
            this.codeAbregeCol.setMinWidth(200);
            this.codeSelectCol.setMinWidth(50);
        }
    
    
    
    
    
    
    }
    

    The line

    c.setSelected(new SimpleBooleanProperty(Boolean.TRUE));
    

    bad air.

    It should be

    c.setSelected(true);
    

    This suggests that your class model Code is wrong: it should be built according to the model of properties JavaFX (see tutorial):

    public class Code {
         private final BooleanProperty selected ;
         public Code(boolean selected) {
              this.selected = new SimpleBooleanProperty(this, "selected", selected);
         }
         public final boolean getSelected() {
              return this.selected.get();
         }
         public final void setSelected(boolean selected) {
              this.selected.set(selected);
         }
         public final BooleanProperty selectedProperty() {
              return selected ;
         }
    }
    

    (And similarly for the other properties).

    The problem is that when you change the selected property, the individual check boxes in the column of the table are respecting the old instances of BooleanProperty changes, not the new instance you just created.

  • change the column type of data in large tables

    Hello

    I have a very large table 3 TB and 97 scores and I need to extend the size of a column. This operation can take a long time and I'm afraid that it will block some SQL operations. What is the recommended way to do this? Can I use alter column? Should I add the column, copy values, delete the former and rename it?

    Kind regards

    Nestor Boscan

    Because you widen the column, all existing values are guaranteed to fit the new size. This should happen fairly quickly. If you were however decrease the size of a column, each value must be checked first before the DOF could complete to check it might all go in the smaller space. Change the alter table is a great value.

    If these fields are variable length (number, varchar2), then the space doesn't have to be 'reserved' for future data. Oracle will take care of the future inserts or updates of larger data as usual. If you increase a fixed length as a CHAR data type, then it is another story.

  • How can I remove the gaps when pasting and select with the magic wand?

    Anti-aliasing is turned off however, there are gaps. How can I stop this? This problem occurred recently, as a few days ago, I've been able to copy and paste without gaps.

    I select a part of the image then copy and paste into a new layer in the same position, then I select the inverse of the image newly pasted the selection back to previous and Coptic image, the other party, and paste it into a new layer.

    The gap is between the tank and the plants (see image)

    Screen Shot 2015-09-16 at 6.01.29 pm.png

    Sometimes, these lines appear if you are not 100% like c.pfaffenbichler said, it can also be the way that your graphics card is reading the info, as often, when you flatten layers, the line will disappear. One thing you can do is to develop the selection of 1 px on the layer which will be the bottom. This will give you a bit of overlap.

  • Problem with the help of several sensors piezo with DAQ

    Hey there,

    For a drum program, I have 2 buzzers piezo related to data acquisition in the code, I put it in place so that a different sound sample would be assigned to each sensor. However in the beginning, when I run the code, I hit a sensor (a1), he plays as ok. When I hit (a0), this kind of chance. Sometimes he plays the sample assigned to a0 or a1 or cheek then the other.

    Then messing around with the DAQ assistant, I changed the scope of the input signal and found that the entrance to the a1 plays the affected a0 sound instead. My mind is boggled.

    Code attached.

    Thanks in advance,

    Emile


  • Store an Image in the column of type BLOB of a Table

    It is about saving an Image file, a temp_photo table.

    UNDER LINUX, I created the Directory object.
    Step # 1
    SQL > create directory MSGS3 as ' / home/HD/om4000/I_MESSAGES ";
    Created directory.

    Step 2: set up the temp_photo Table.

    SQL > create table temp_photo
    (
    ID NUMBER (3) NOT NULL,
    PHOTO_NAME VARCHAR2 (50).
    PHOTO BLOB
    );
    Table created.

    Step: 3 this is the procedure that I have created to load the file from the file system of the database.

    create or replace PROCEDURE load_file)
    number of P_ID,
    p_photo_name in varchar2) IS
    src_file BFILE.
    dst_file BLOB;
    lgh_file directory.
    BEGIN
    src_file: = bfilename ('MSGS3', p_photo_name);
    -Insert a NULL record to lock
    INSERT INTO temp_photo
    (id, photo_name, photo)
    VALUES
    (p_id, p_photo_name, EMPTY_BLOB())
    RETURN photo INTO dst_file;
    -lock the folder
    SELECT photo
    IN dst_file
    OF temp_photo
    ID WHERE p_id =
    AND photo_name = p_photo_name
    UPDATE;
    -Open the file
    DBMS_LOB. FileOpen (src_file, dbms_lob.file_readonly);
    -determine the length
    lgh_file: = dbms_lob.getlength (src_file);
    -Read the file
    DBMS_LOB. LoadFromFile (dst_file, src_file, lgh_file);
    -update the blob field
    UPDATE temp_photo
    Photo SET dst_file =
    ID WHERE p_id =
    AND photo_name = p_photo_name;
    -close file
    DBMS_LOB. FileClose (src_file);
    END load_file;
    /


    Step 4: when I test it by running the procedure in the following assistance:
    SQL > execute load_file (1, 'Omega5000.jpg');

    I get the following error:

    Error from line 5 in order:
    run load_file(1,'Omega5000.gif')
    Error report:
    ORA-22288: file or LOB FILEOPEN operation failed
    No such file or directory
    ORA-06512: at "SYS." DBMS_LOB", line 805
    ORA-06512: at "HD. Load_file", line 23
    ORA-06512: at line 1
    22288 00000 - "file or LOB operation %s failed\n%s".
    * Cause: Failure of the attempted operation on the file or the LOB.
    * Action: See the following error message in the more detailed error stack
    information. In addition, make sure that the file or LOB exists and that
    privileges are set for the specified operation. If
    the error continues, report the error to the user DBA.

    He said: no such file or directory, but I double checked that the file is located in the same directory and directory is it physically (for which I created the above directory object.)
    Can someone help me where I'm doing something wrong. This is the first time I use the BLOB in my table. Can anyone suggest what's not here.

    >
    He said: no such file or directory, but I double checked that the file is located in the same directory and directory is it physically (for which I created the above directory object.)
    >
    Oracle is disagreeing with you.

    Post your proof that the file exists in the path you provided.

    See this example Oracle-base
    http://www.Oracle-base.com/articles/Misc/HTML-with-embedded-images-from-plsql.php
    >
    CONN / AS SYSDBA
    CREATE or REPLACE DIRECTORY of images AS "/ host /";
    GRANT READ, WRITE on DIRECTORY images TO test;
    >
    Write down everything you missed? Tip: Look at the last character of the DIRECTORY string. Second Tip: See the grant?

    SQL>create directory MSGS3 as '/home/mh/om4000/I_MESSAGES' ;
    
  • With the help of several conditional tags with multiple outputs of WebHelp

    I have a project that I created for a web application. Within the web application, there are 3 types of customers (business Accts, Accts National and level 1 clients).

    I added each help topic associated with the help topics that I created.

    Then, I created 3 outputs of webhelp and 3 Table of contents for each type of client.

    My goal is to publish the project, where each type of client has their own output generated. Do it this way, which is listed in the help topics of table of contents for each type of customer that is not correctly displayed.

    Example: National accounts TOC

    What is generated:

    I have tagged in the table of contents to the conditional tag appropriate help topics. Help, please. Any advice? I can also be reached at [email protected]

    None of your screenshots came through - the icon of camera in the web interface allows you to attach images

  • Change the content of the xml document as data selected with SQLX functions

    Hi all
    I have seen several examples of database xml documents using SQLX functions but they seem to be simple queries, which we reproduce the same forest of xml in all elements. What I'm trying to do is to create something like the following:


    < billing xmls = "http://blurb.com" >
    < header >
    < timestamp > 2008-12-11 13:28:46 < / timestamp >
    < source > ORCL < / source >
    < / header >
    < transaction and billing-answers >
    < invoice-transaction-response >
    < invoice-transaction-id > 36866320 < / billing-transaction-id >
    ORDER of < invoice-transaction-type > < / billing-transaction-type >
    <-group-id of transaction > 092220082100 < / transaction-group-id >
    < ok >
    < charged to date > 2008-09-22T 10: 20:43 - 05:00 < / beak-date >
    < /OK. >
    < / billing-transaction-response >
    < invoice-transaction-response >
    < invoice-transaction-id > 37617490 < / billing-transaction-id >
    ORDER of < invoice-transaction-type > < / billing-transaction-type >
    <-group-id of transaction > 112020082100 < / transaction-group-id >
    < error >
    reasons <>
    < reason >
    < text > impossible to derive information of customer SHIP_TO < / text >
    < / reason >
    < / reasons >
    < / error >
    < / billing-transaction-response >
    < / billing-transaction-answers >
    < / billing >


    I can see how to generate the individual components of the xml document, but I don't know how to put this together in a single select statement:


    SQL > SELECT XMLElement ("billing", XMLAttributes (http://blurb.com LIKE "xmls")
    2, XMLElement ("header"
    3, XMLElement ("timestamp", TO_CHAR (SYSDATE, ' YYYY-MM-DD HH24:MI:SS'))))
    4, XMLElement ("source", "ORCL'"))).extract('/*') xml
    5 FROM DUAL;

    XML
    ----------------------------------------------------------------------------------------
    < billing xmls = "http://blurb.com" >
    < header >
    < timestamp > 2008-12-11 13:28:46 < / timestamp >
    < source > ORCL < / source >
    < / header >
    < / billing >


    SQL > SELECT XMLElement ("billing transaction-answers"
    2, XMLAgg (XMLElement ("billing-transaction-reply"
    3, XMLElement ("billing transaction id", billing_transaction_id)
    4, XMLElement ("billing-transaction-type", billing_transaction_type)
    5, XMLElement ("transaction-group-id", transaction_group_id)
    6, XMLElement ("ok"
    7, XMLElement ("beak-date", billed_date))).extract('/*') xml
    8 FROM table_a
    9 status WHERE! = 'E';

    XML
    ----------------------------------------------------------------------------------------------------
    < transaction and billing-answers >
    < invoice-transaction-response >
    < invoice-transaction-id > 36866320 < / billing-transaction-id >
    ORDER of < invoice-transaction-type > < / billing-transaction-type >
    <-group-id of transaction > 092220082100 < / transaction-group-id >
    < ok >
    < charged to date > 2008-09-22T 10: 20:43 - 05:00 < / beak-date >
    < /OK. >
    < / billing-transaction-response >
    < / billing-transaction-answers >



    MDACFS@CORPD23 > SELECT XMLElement ("billing transaction-answers"
    2, XMLAgg (XMLElement ("billing-transaction-reply"
    3, XMLElement ("billing transaction id", billing_transaction_id)
    4, XMLElement ("billing-transaction-type", billing_transaction_type)
    5, XMLElement ("transaction-group-id", transaction_group_id)
    6, XMLElement ("error"
    7, XMLElement ("patterns"
    8, XMLElement ("reason"
    9, XMLElement ("text", error_message))).extract('/*') xml
    10 FROM table_a
    * 11 situation WHERE = 'E '; *

    XML
    -------------------------------------------------------------------------------------
    < transaction and billing-answers >
    < invoice-transaction-response >
    < invoice-transaction-id > 37617490 < / billing-transaction-id >
    ORDER of < invoice-transaction-type > < / billing-transaction-type >
    <-group-id of transaction > 112020082100 < / transaction-group-id >
    < error >
    reasons <>
    < reason >
    < text > impossible to derive information of customer SHIP_TO < / text >
    < / reason >
    < / reasons >
    < / error >
    < / billing-transaction-response >
    < / billing-transaction-answers >

    This is my first attempt to generate xml from the database if it is not a correct approach then please notify. Any help much appreciated.

    See you soon,.
    Paul.

    Given you already wrote each song as a separate statement which refers to what you want, you already have the concept and just need to merge the three queries SQL in one alone. Here is an example of the fusion of your first two SQL set statements.

    SELECT XMLElement("billing", XMLAttributes('http://blurb.com' AS "xmls")
            ,XMLElement("header"
              ,XMLElement("timestamp", TO_CHAR(SYSDATE, 'YYYY-MM-DD HH24:MI:SS'))
              ,XMLElement("source", 'ORCL')
             ),
             (SELECT XMLElement("billing-transaction-replies"
                      ,XMLAgg(XMLElement("billing-transaction-reply"
                       ,XMLElement("billing-transaction-id", rownum))))
               FROM dual
               CONNECT BY level <= 5
             )) rslt
    FROM DUAL;
    
    returns
    
    
         
    2008-12-12 09:21:39 ORCL
    1 2 3 4 5
  • Increase the capacity of data store, which with the block size?

    Hello

    I am trying to expand my datastore 2 TB, I added a new lun 2 TB of the FC SAN TB 4 even and there is no problem adding this in the existing data store.

    But the existing data store is formatted in VMFS3 with a block size of 4 MB for a maximum file size of 512 GB. But when I try to extend the data store to select the size of the block is set to 1 MB and disabled.
    The measure automatically takes on the size of the original block or wil he get a block size of 1 MB? There are some > 256GB files on the existing data store and I think I'd get a strange behavior, if half of the data store is 4 MB and the other half is 1 MB blocksize.

    Can anyone confirm that the blocksize wil be the same for the measure?

    I can also make a second warehouse 2 TB one manually fracture the virtual machine on 2 data warehouses. is there any advantages or disadvantages to this approach?

    Don't you worry, add an item to an existing data store certainly will not change the size of the block. In any case, if it is an option that you can use two data warehouses, I would. With two distinct data warehouses that you will not only be able to spread the load on each of these LUNS but also avoid the complexity. With ESXi 5 (VMFS-5), a single LUN can grow up to 64 ~ to without needing extensions.

    BTW, a 4MB block size allows 1 TB less than 512 bytes.

    André

Maybe you are looking for

  • Drain battery iOS 9.3.5 &amp; 4S

    Updated my 4s to ios 9.3.5 a few days ago. And then ecerythig is going well except for the battery. He runs so fast that I can see easily that. Navigation of web 3 minutes was usually 1% of the battery, now 1 minutes to 1%.  I tried all tips, includi

  • After updating a Web site always appear the old file

    I have a site for my bowling club. When I update for instanse a result file it seems wrong - it's the old file that appears. It does not help to restart Firefox or delete the file (yes I try to open it and then I got the usual error message) BUT if I

  • Facebook &amp; YouTube does not not in Safari

    Facebook was driving last night, but I assumed that a restart would fix it. Still this morning, and I see the same problem plaguing YouTube... basically Safari is only responsible for the most basic version of the page without CSS, dynamic content or

  • Error message when you use the DVD player

    I have a Satellite P200D and whenever I put a disc any in the drive I get an error NON-DISQUE when I eject the disc. I always make sure I close all programs relating to the use of the disc before you try to take out the drive. It is a new problem tha

  • Microtech scam?

    Unfortunately, I left a crowd calling themselves Global Microtech security convinced me they were Microsoft and helped them remote access to fix my computer problems. Although I was very dubious, they seem to be very technically competent, then I let