Create the XML element for the cell in the chart CC2015

Hello world

I am currently working with the xml element.

And I want to create xml, table cell element.

For now, I can create xml for the graphic cell by select graphic image of that cell, and then call the AutoTag() function.

But I want to create an xml element of a chart without selected cell.

I found the function () Utils < IXMLElementCommands >-> CreateElement()

but it doesn't seem to work with a graphic table cell structure.

Does anyone know how to do?

Thanks in advance.

Try,

InterfacePtr cellContent (tableModel-> QueryCellContentBoss (gridAddress));

if(cellContent == Nil) {}

break;

}

InterfacePtr cellXMLReferenceData (cellContent, UseDefaultIID());

{if(!cellXMLReferenceData)}

break;

}

XMLReference cellXMLRef is cellXMLReferenceData-> GetReference();.

Tags: InDesign

Similar Questions

  • Related XML element for the Address object tags

    Hi all

    I'm trying to insert a child object address related, in an account object. I have successfully done a test, but now I can not all data in the field "Address 2" because it says that the item is not defined in the EAI integration.

    Someone at - it a complete list of tags for the Address object? I already tried 'Address2', 'Address_2' and 'StreetAddress2', but none of this seems to work.

    I also resorted to the use of the service API to get mapping for the Account object and RelatedAddress object. object mapping has just returned to me the shipping and billing address fields while the object of RelatedAddress reported that there was.

    I hope someone can help me out here, because trying to find the element tag name is driving me crazy!

    Hello!

    In the WSDL of account, you have the ListOfAddress object. If you use it, fill in the field "StreetAddress2" should work...

    Max

  • How to find the page number of an xml element

    Hi everyone, sorry for my very bad English (french guy! logic). I hope you see what I'm looking for.

    I'm script (javascript), of each articles export a script from a script multiple indesign pages.

    In fact, I might have one or more article in a single file, each of which is a separate xml element. for each, I export an xml file named with, first, page where appears the xml element, the second number, the number of exported article.

    I am the second goal of success, but not the first.

    Someone has an idea?

    Hi kazegonzo,

    Please try the js code below, I have access to the doc/article/the title tag because the doc not placed in pages, you placed the title tags to access the title tag and get the page number.

    var myDoc=app.activeDocument;
    var root = myDoc.xmlElements[0];
    var docTag = root.evaluateXPathExpression('//doc//article//titre');
    for(i=0; i
    

    THX,

    csm_phil

    Post edited by: csm_phil

  • XML file for GigE Vision camera

    Hello

    I'm working on a model of GigE Vision camera. It should be very simple linescan camera. I put in place the necessary set of registers GigE Vision, can communicate with the camera in MAX. The problem is that I need creata this XML file for the camera. There is this here XML file:

    http://www.EMVA.org/CMS/upload/standards/GenICam_Downloads/SFNC_Reference_Version_2_0_0_Schema_1_1.x...

    What should I do with it? My first version of the camera will have 2 functions: turn on and off I'm confused, because the model xml file has many functions, I don't really have. Should I remove them? Or leave it inside with default values? That she needs a configuration minimum XML file?

    Kind regards

    Linus

    Hi Linus,

    If you look at the GigE Vision specification, you will see that there is a minimal subset of functionality that must be present for the camera be declared compliant. That's all what IMAQdx will need for the camera works fine. All other functions in the XML file that you downloaded are part of the SFNC (features Standard Naming Convention) defines the names/behavior for common characteristics that are often found on machine vision cameras. As a general rule, cameras implement a subset of these features. You should not let any features that are not implemented in the XML because it would be just confused because they would do nothing.

    Eric

  • XML: contents.replace () destroyed XML elements inside

    Hello

    I wrote a script XML rule where all the < ul > < li > is mapped to a paragraph style that uses bulleted lists. It is possible that returns occur inside the < li > elements. Before you go through the items and by applying styles with a script rule, I tried to change the return (\r) of returns (\n) cycling through all the < li > with this code:

    _node.contents = _node.contents.replace(/\r/g, '\n');  //change all returns inside <usp><li> to newline
    

    But I realized that, when there are other XML elements (for example < em > or < strong >) inside the < li >, these elements have been killed by my call of. replace().

    So my question: How can I reach evolution \r's to \n's and keep inside XML structure?

    Thanks in advance

    Tobias

    I did it with this chiseled script - function grep with emphasis on the XML element - executed after that all XML was processed and placed in the document:

      // change \r to \n in usp's li's
      app.findGrepPreferences = NothingEnum.NOTHING; app.changeGrepPreferences = NothingEnum.NOTHING;
      var _root = _dok.xmlElements[0];
      var _nodeList = _root.evaluateXPathExpression("//li");
      app.findGrepPreferences.findWhat = "\\r"; app.changeGrepPreferences.changeTo = "\\n";
        for ( i = 0; i < _nodeList.length; i++ ) {
            var _node = _nodeList[i];
            if ( _node.contents != "" ) {
                _node.changeGrep();
            }
        }
      app.findGrepPreferences = NothingEnum.NOTHING; app.changeGrepPreferences = NothingEnum.NOTHING;
    

    It works perfectly. Any other suggestions?

    Thank you

    Tobias

  • Calculation value of axis based on, click in the chart area.

    Hey there, I'm still working on my graphic feature and so far I've been able to get help on these forums.

    I need to be able to calculate the values of the corresponding axis in a click in the chart area. I see no real utility method in the NumberAxis class which will help me to do it. The only thing I can think is to get the bounds of the array and that relate to what I know about the range of the values I put in.

    It is a line chart with two NumberAxis. I want to display on click, (x, y)-value as PR. the axis of the point clicked. Is it possible that I can do this easily, or I just need to design a work around?

    Yes, it's a little tricky, but not too bad. It would be probably good for XYChart have public X getXValue (Point2D) and the public methods of getYValue (Point2D) Y. This works, however:

    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.geometry.Point2D;
    import javafx.scene.Scene;
    import javafx.scene.chart.LineChart;
    import javafx.scene.chart.NumberAxis;
    import javafx.scene.chart.XYChart;
    import javafx.scene.input.MouseEvent;
    import javafx.stage.Stage;
    
    public class LineChartSample extends Application {
    
        @Override
        public void start(Stage stage) {
            stage.setTitle("Line Chart Sample");
            // defining the axes
            final NumberAxis xAxis = new NumberAxis();
            final NumberAxis yAxis = new NumberAxis();
            xAxis.setLabel("Number of Month");
            // creating the chart
            final LineChart lineChart = new LineChart(xAxis, yAxis);
    
            lineChart.setTitle("Stock Monitoring, 2010");
            // defining a series
            XYChart.Series series = new XYChart.Series<>();
            series.setName("My portfolio");
            // populating the series with data
            series.getData().add(new XYChart.Data(1, 23));
            series.getData().add(new XYChart.Data(2, 14));
            series.getData().add(new XYChart.Data(3, 15));
            series.getData().add(new XYChart.Data(4, 24));
            series.getData().add(new XYChart.Data(5, 34));
            series.getData().add(new XYChart.Data(6, 36));
            series.getData().add(new XYChart.Data(7, 22));
            series.getData().add(new XYChart.Data(8, 45));
            series.getData().add(new XYChart.Data(9, 43));
            series.getData().add(new XYChart.Data(10, 17));
            series.getData().add(new XYChart.Data(11, 29));
            series.getData().add(new XYChart.Data(12, 25));
    
            Scene scene = new Scene(lineChart, 800, 600);
            lineChart.getData().add(series);
    
            stage.setScene(scene);
            stage.show();
    
            lineChart.setOnMouseClicked(new EventHandler() {
                @Override
                public void handle(MouseEvent event) {
                    Point2D xAxisInScene = xAxis.localToScene(new Point2D(0, 0));
                    Point2D yAxisInScene = yAxis.localToScene(new Point2D(0, 0));
                    double xInScene = event.getSceneX();
                    double yInScene = event.getSceneY();
                    double x = (xInScene - xAxisInScene.getX()) / xAxis.getScale() + xAxis.getLowerBound();
                    double y = yAxis.getUpperBound() + (yInScene - yAxisInScene.getY()) / yAxis.getScale();
    
                    System.out.printf("[%.1f, %.1f]%n", x, y);
                }
            });
        }
    
        public static void main(String[] args) {
            launch(args);
        }
    }
    
  • You cannot change the chart value axis when there are several types of graphics in a single diagram

    Illustrator can do graphics with bars and lines / columns, for example in the docs:

    http://help.adobe.com/en_US/illustrator/cs/using/images/gr_15.png

    http://help.Adobe.com/en_US/Illustrator/CS/using/WS3f28b00cc50711d9fc86fa8133b3ce158e-8000 .html

    However, when I create a chart like this, I seem to lose the ability to manually set the y-axis using 'override calculated values.

    To reproduce this problem:

    1. Create a chart as in the example, with bars and an axis on the left, lines and an axis on the right. Unlike the example, don't fix the numbers as well as the lines align perfectly - have a go until just less than 20, a up to a little less than 250, therefore it do not markers and the number of divisions on each side.
    2. Try to make the markers and numbers of divisions to the height, so in fact, the side that is going up 20 going up to 25 and has the same number of divisions on the other side.

    Everything I have tried does not work:

    • If I select the entire chart and go to the "Chart Type", I can not set the options for the value axis. In earlier versions, it's gray, in CS6 I can access, but clicking on 'OK' does nothing.
    • If I select the entire chart and chose the type of a chart, I can set options for the axis value, but that the selected chart type, and then applies the entire table.
    • If I use the direct Selection tool to select one of the series and open the "Chart Type" options, changing the options of the y-axis has no effect
    • If I use the direct Selection tool to select all series that share an axis and open the "Chart Type" options, changing the options of the y-axis always has no effect
    • If I use the direct Selection tool to select the Group of ticks axis itself, or the axis line and groups of ticks axis themselves, of axis labels, axis and graduations of the axis line, or axis labels, axis line, graduations of the axis and series of related data, etc., by changing the options of the axis also has no effect

    It seems that this feature is broken and it seems that the example in the manual has been carefully chosen to use a rare combination of numbers where it would actually look right.

    I thought about it. Like everything to do with the horrible ancient neglected graphic Illustrator tool, it is ridiculously clumsy and involves the caution around what is shamefully bad programming for a professional expensive product.

    It is timing - to do things in a sequence of rigid counterintuitive that seems not to work then meets at the end:

    1. Create the chart but, for now, keep all the same chart type. If you've already set to have different graphics types, put the same thing for now.
    2. Select the entire chart and in the main window of Chart Types, set the value to "Both sides" axis
    3. In the drop-down menu, there should be a left and right axis (or top and bottom...). Set the parameters of the value axis for these now. It will look like it does for a single axis, because it will not change the other axis - naked with her...
    4. Select the data series you want to use the other axis using group selection. Go to graph Type and the value of the y-axis to the other and set the chart type that you want. All of a sudden all be put in place.
    5. If you need to change the settings for the value axis, select the entire chart, set the whole chart type to a chart, change the appropriate value axis by choosing it from the menu drop down and the re - apply types of graph as above.

    (the bug is - it should not necessary to set the graphic object to only have only one chart of type in order to access the axis options of value for two different y-axis)

  • Check for the existing XML element

    Hi all

    I'm writing a simple script first check if an XML element exists and creating so if it's not. I tried to change a piece of code that I used previously to do the same for paragraph styles, but apparently it's not that simple. Currently, all I get is the error "Unable to run the script in the 'main' target engine!" Without checking them, adding the XML element based on the result of the search works very well.

    /* Find all instances of the word "Superscript" */
    app.findTextPreferences.findWhat = "Superscript";
    var mySuperscript = myDocument.findText(); // Save search result for future reference
    
    /* See if an XML element named "Superscript" already exists, and create it if that's not the case; then add it to all instances of the word "Superscript" */
    var myXMLElementSuper = myDocument.xmlElements.item("Superscript");
    try {
    var myName = myXMLElementSuper.name;
    }
    catch (myError){
        var myXMLElementSuper = myDocument.xmlElements.add({markupTag:"Superscript", xmlContent:mySuperscript[i]});}
    

    Any help would be greatly appreciated!

    Regards and thanks in advance.

    Julian

    The myDocument.xmlElements always has a single element - the root element.

    If you want your element directly below that, you have to work a level down.

    To try-catch for such situations regular aid is bad because you spend so usually the ESTK option stop on exceptions and real problems don't miss. Use the isValid property.

    var rootXE = myDocument.xmlElements.item(0);
    var superXE = rootXE.xmlElements.itemByName("Superscript");
    if( !superXE.isValid )
      superXE = rootXE.xmlElements.add(...
    else
     superXE = superXE.getElements()[0]; // take first of potentially multiple elements
    
  • How to create the index suitable for my xml...

    Hi all... I have an xml attachment saved in an XMLType column in a table that is stored in binary xml secure.
    I want to use XQuery to navigate the xml code and push the results in a normal table.

    All of this works, I have a question if all the xmlindex I want to create.
    I want to create a xmlindex so that the plan of the explain command would be cheaper.
    If I remove the where XQuery bit the explain command comes with a cost of 32, but if I use the where the bits of the cost are 223000!
    Removal of the index makes no difference if the index is not used here.

    What index to use here and especially how he specify?
    I read something on the structured and unstructured indexes, but I did not understand what and how to use them.

    If someone could help that would be great.

    A point, however: the xml used for the explain command is much longer; It contains 48385 lines instead of the rows listed here.
    Ad al of them would make the post a little longer...

    table and index:
     CREATE  TABLE XML_NAME_CLOB ( 
            OS_FILENAME varchar2(255),
            ORA_DIR varchar2(255),
            NLS_CHARSET_ID varchar2(255),
            XML_DATA XMLType,
            LOAD_DATE date,
            AUDIT_ID number)
        XMLTYPE xml_data STORE AS BINARY XML
        ;
    
     CREATE INDEX po_xmlindex_ix ON XML_NAME_CLOB (xml_data) INDEXTYPE IS XDB.XMLIndex;    
    Used XML short-circuited for brevity
    <?xml version="1.0"?>
    <?mso-application progid="Excel.Sheet"?>
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
              xmlns:o="urn:schemas-microsoft-com:office:office"
              xmlns:x="urn:schemas-microsoft-com:office:excel"
              xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
              xmlns:html="http://www.w3.org/TR/REC-html40">
     <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
      <Author>def</Author>
      <LastAuthor>def</LastAuthor>
      <Created>2011-10-06T15:05:31Z</Created>
      <Company></Company>
      <Version>11.9999</Version>
     </DocumentProperties>
     <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
      <WindowHeight>12525</WindowHeight>
      <WindowWidth>24795</WindowWidth>
      <WindowTopX>120</WindowTopX>
      <WindowTopY>30</WindowTopY>
      <ProtectStructure>False</ProtectStructure>
      <ProtectWindows>False</ProtectWindows>
     </ExcelWorkbook>
     <Styles>
      <Style ss:ID="Default" ss:Name="Normal">
       <Alignment ss:Vertical="Bottom"/>
       <Borders/>
       <Font/>
       <Interior/>
       <NumberFormat/>
       <Protection/>
      </Style>
      <Style ss:ID="s21">
       <NumberFormat ss:Format="#,##0"/>
      </Style>
     </Styles>
     <Worksheet ss:Name="Sheet1">
      <Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="127" x:FullColumns="1"
             x:FullRows="1">
       <Column ss:Width="63.75"/>
       <Column ss:Width="58.5"/>
       <Row>
        <Cell ss:StyleID="s21"><Data ss:Type="String">budgethouder</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="String">documenten</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ABU</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">24</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ABJ</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">995</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ACC</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">2754</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ADD</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">224</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ALG</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">310</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">AMM</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">125</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">WEN</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">106</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">YAO</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">263</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ZAG</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">0</Data></Cell>
       </Row>
      </Table>
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <Selected/>
       <Panes>
        <Pane>
         <Number>3</Number>
         <ActiveRow>4</ActiveRow>
         <ActiveCol>3</ActiveCol>
        </Pane>
       </Panes>
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
     </Worksheet>
     <Worksheet ss:Name="Sheet2">
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
     </Worksheet>
     <Worksheet ss:Name="Sheet3">
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
     </Worksheet>
    </Workbook>
    Select with xquery
     select tabel.budgethouder, tabel.documenten
    from XML_NAME_CLOB,
          xmltable(
                  XmlNamespaces('urn:schemas-microsoft-com:office:spreadsheet' as "ss",
                  DEFAULT 'urn:schemas-microsoft-com:office:spreadsheet' ),
                   'for $i in /Workbook/Worksheet[1]/Table/Row[position()>1] 
                    where 
                      /Workbook/Worksheet[1]/Table/Row[1]/Cell[1]/Data/text()=''budgethouder'' and
                      /Workbook/Worksheet[1]/Table/Row[1]/Cell[2]/Data/text()=''documenten'' and
                      /Workbook/Worksheet[1]/@ss:Name=''Sheet1''
                    return $i '
                    PASSING xml_data 
                    columns budgethouder varchar2(100)  PATH 'Cell[1]/Data/text()',
                            documenten varchar2(100)    PATH 'Cell[2]/Data/text()'
                            
                  ) tabel
            where audit_id = 12;   
    Published by: MichaelR64 on 7-oct-2011 16:53

    Published by: MichaelR64 on 8-oct-2011 18:05

    You saw the answer on my blog? ;)

    begin
      dbms_xmlindex.registerparameter(
        'ext_smldata_xtb_param'
      , 'XMLTable ext_smldata_xtb ... big text content here ... '
      );
    end;
    /
    
    create index ext_smldata_sxi on ext_smldata (object_value)
    indextype is xdb.xmlindex parameters ('PARAM ext_smldata_xtb_param')
    ;
    
  • Create the file prov.xml of origin for Provisioning Toolkit Enterprise?

    How to create the file prov.xml of origin to be used with the Setup Toolkit Enterprise? This is intended to resovle the question with serialization of deployments of Creative Enterprise Cloud break during imaging. Several people reported trying to reserializing with PTE.

    Hi msdavidson,

    Follow this KB for Adobe Provisioning Toolkit article.

    http://helpx.Adobe.com/creative-cloud/Packager/Provisioning-Toolkit-enterprise.html

    Hope it meets your request.

    Kind regards

    Abhijit

  • I need to find all of the XML elements and add a line break for the text of each of them

    I need to find all XML elements and to add a line break the text of each of them.

    Is it possible with a script?

    Try this piece of code as it is. I hope that's what you want...

    var myDoc = app.activeDocument;
    var inddRooElement = myDoc.xmlElements.item(0);
    var xPathElements = inddRooElement.evaluateXPathExpression("//*");
    var elementCount = xPathElements.length;
    for(var eId=0; eId
    

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

    Green4ever

  • Unable to create the resource portal for contentListTemplateDef

    Using JDeveloper 11g PS 5 and WebCenter spaces.
    We try to create a list of content model definition Presenter. We have already created a definition of model element that went well.

    If we have a simple definition of the list of Presenter content model:

    <? XML version = "1.0"? >
    < jsp:root xmlns:jsp = "http://java.sun.com/JSP/Page" version = "2.1".
    xmlns:af = "http://xmlns.oracle.com/adf/faces/rich".
    xmlns = "http://xmlns.oracle.com/webcenter/content/templates" >
    < var dt:contentListTemplateDef = 'nodes' >
    < af:panelGroupLayout layout = "vertical" id = 'list' valign = "top" >
    < af:iterator lines = '0' var = 'node' varStatus = 'iterator' value = ' #{node} ".
    ID = "i1" >
    < dt:contentTemplate = view node "#{node}" = "dagberichtListItem."
    nodesHint = ' #{node} "id ="ct1"/ >
    < / af:iterator >
    < / af:panelGroupLayout >
    < / dt:contentListTemplateDef >
    < / jsp:root >

    and click on 'Create the Portal resource', JDeveloper shows following error messages and blank window and finally a NullPointerException.

    April 12, 2012 18:04:41 oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl
    WARNING: Error getting resource group: oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
    April 12, 2012 18:04:41 oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl
    WARNING: Error getting resource group: oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
    April 12, 2012 18:04:43 oracle.webcenter.content.internal.templates.registry.TemplateRegistry getDefaultCategoryTemplate()
    WARNING: Invalid Configuration for the id of the category ' *'. Did not view defined for the id of the view ' *'.
    April 12, 2012 18:04:43 oracle.webcenter.portal.dt.appnav.SiteResourcePanel init
    WARNING: Error initializing the Portal Resources dialog box.
    java.lang.NullPointerException
    at java.util.Hashtable.get(Hashtable.java:334)
    at oracle.webcenter.portal.dt.appnav.ResourceAttributesPanel.actionPerformed(ResourceAttributesPanel.java:161)
    at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1240)
    at javax.swing.JComboBox.setSelectedItem(JComboBox.java:567)
    at oracle.webcenter.portal.dt.appnav.ResourceAttributesPanel.initFields(ResourceAttributesPanel.java:555)
    at oracle.webcenter.portal.dt.appnav.ResourceAttributesPanel.init(ResourceAttributesPanel.java:491)
    to oracle.webcenter.portal.dt.appnav.ResourceAttributesPanel. < init > (ResourceAttributesPanel.java:110)
    at oracle.webcenter.portal.dt.appnav.SiteResourcePanel.init(SiteResourcePanel.java:219)
    to oracle.webcenter.portal.dt.appnav.SiteResourcePanel. < init > (SiteResourcePanel.java:73)
    at oracle.webcenter.portal.dt.appnav.PortalMenuController.handleCreateSiteRes(PortalMenuController.java:458)
    at oracle.webcenter.portal.dt.appnav.PortalMenuController.handleEvent(PortalMenuController.java:182)
    at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
    at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:897)
    at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
    in javax.swing.plaf.basic.BasicMenuItemUI$ Handler.mouseReleased (BasicMenuItemUI.java:850)
    at java.awt.Component.processMouseEvent(Component.java:6290)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6055)
    at java.awt.Container.processEvent(Container.java:2039)
    at java.awt.Component.dispatchEventImpl(Component.java:4653)
    at java.awt.Container.dispatchEventImpl(Container.java:2097)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    at java.awt.Container.dispatchEventImpl(Container.java:2083)
    at java.awt.Window.dispatchEventImpl(Window.java:2482)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
    to java.awt.EventQueue.access$ 000 (EventQueue.java:84)
    in java.awt.EventQueue$ 1.run(EventQueue.java:607)
    in java.awt.EventQueue$ 1.run(EventQueue.java:605)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
    in java.awt.EventQueue$ 2.run(EventQueue.java:621)
    in java.awt.EventQueue$ 2.run(EventQueue.java:619)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Pointers? I'm guessing that the clue is in the category id, the id of the view, etc., where he expects a value but found none, but so far no luck.

    Jaap,

    I am connected to a SR for the same problem a few months ago and development focuses on this issue.
    It is now a bug :)

    Resolution:

    You need to add a piece of XML code for the fichier...\DesignWebCenterSpaces\mds\oracle\webcenter\siteresources\scopedMD\s8bba98ff_4cbb_40b8_beee_296c916a23ed\generic-site-resources.xml

    Add this piece:











    You should put it inside the tag
    Restart JDev and try again.

    The problem is that there is no definition of the resource for a multi item template, so the null pointer exception.
    Add this tag will fix this.

    Kind regards

    Rob

    PS: The file might be elsewhere, this is the location of the PS4 if I'm not mistaken...
    You open the file from the Explorer, because it is not accessible from JDev.

    Published by: rgouw on April 12, 2012 11:09

  • Loop through all of the xml elements

    How do I loop over all xml tagged in a story? I created a reference to the xml elements of the story I want to like this:

    var xmlStory = myDoc.xmlElements[0].xmlElements[0];
    

    In this structure, I have items < v > 10 / < v >, which I want to change of < id v '10' = > 10 / < v >. I want to do in the InDesign scripting and not with XSL export because of workflow, I plan. I know I can loop on children in the structure like this:

    for(var i=0;i<xmlStory.xmlElements.length;i++){
                        if(xmlStory.xmlElements[i].markupTag.name == "v"){
                                  xmlStory.xmlElements[i].xmlAttributes.add("id", xmlStory.xmlElements[i].contents);
                       }
             }
    

    This works very well for the first level, but I want to find all elements with the tag '< v >. These tags can appear at any level in the structure. How can I make sure that all of them are included and not just the first elements of the child of the element of the story?

    Try this,

    #target inDesign;

    var doc = app.activeDocument;
    xmlTag var = doc.xmlElements [0];
    var vTag = xmlTag.evaluateXPathExpression("//v")
    for (var i = 0; i)<>
    {
    Try
    {
    vTag [i].xmlAttributes.add ("id", vTag [i].xmlContent.contents)
    }
    {catch (e)}
    }

  • How can I save the references to the elements of the xml elements page?

    Hello

    I am trying to add coordinates of the page elements to their associated as xml attributes xml elements.

    I can easily create xml help items

    myDocument.mapStylesToXMLTags ();

    Now, I want to browse the xml document and find details of each element of the associated page and then add them in the corresponding as attributes xml node.

    In other words, I'm trying a code (assuming that all the nodes as children of the root for simplicity) as follows:

    for (var i = 0; i < myRootXMLElement.xmlElements.length; i ++) {}

    var myElement = myRootXMLElement.xmlElements.item (i);

    var myElementsPageItem = * did not find a reference of function / correct documents *.

    var myBounds = myElementsPageItem.visibleBounds;

    addORupdate (myElement, "y1", myBounds [0]);

    addORupdate (myElement, ' x 1', myBounds [1] ");

    addORupdate (myElement, "y2", myBounds [2]);

    addORupdate (myElement, ' x 2', myBounds [3] ");

    }

    In my example of document all the xml that is created by mapStylesToXMLTags() are history of type.

    So I need a way to refer to the corresponding (or rectangle) page element of the history so that I can add information about contact information item xml as attributes.

    Thank you very much...

    myElement.xmlContent.parentTextFrames was not defined in the xml document that is generated by mapStylesToXMLTags()

    After some research the object model, I found my data in

    myElement.xmlContent.textContainers [0]

    Thank you

    Halin

  • Xml file for reading in the clob in the staging table column

    Hello

    I am trying to query the intermediate table with the database adapter that has the column type CLOB containing the XML file. How to extract the XML of CLOB and map the fields to the another final scheme variable.

    Thank you

    Published by: chaitu123 on Sep 20, 2009 08:16

    (1) when you create DBAdapter on a table that has the clob column watch closely the xsd created for the DBAdapter cloumn clob element must be a String data type

    (2) create xsd for Xml files and create the variable of the xsd element

    (3) use ora:parseEscapedXML("yourDBAdapterclobElement") for XmlFileVarilable

    Krishna

Maybe you are looking for