Need to create skeleton ws from XSD

Hi,
Could somebody please point me at some docs (or even better - tutorials!) on how I can create a document style WS which will produce its output to conform to a pre-existing XSD? (using JDevv 10.1.3 btw)
thanks,
Pete

Hi Pete,
To achieve your goal, I can think of two options.
If you have a limited number of operations, you can author the WSDL by hand, strating from scratch and develop the service, based on the interface that you can generate from the WSDL, using genInterface, the topdownAssemble.
The other way to get the job done, is you have numerus operations is to create a fake template that uses simple java type or XML element as input parameter and return values, use assemble to generate the WSDL template. Once you have this template, you could inject the XSD file in you WSDL, using xsd:import, then generate the interface and assemble the application using top-down assemble.
Hope it helps,
--Eric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Create Data Type from XSD

    Hey guys
    i need to create Data Type from and XSD,in the beginning i had an XML document which i converted to XSD using Altova ,then i imported this XSD in IR under External definition,now how should i go ahead with creating Data Type?
    my sample XSD is something like this
    <?xml version="1.0" encoding="UTF-8"?>
    <!W3C Schema generated by XMLSpy v2007 sp2 (http://www.altova.com)>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <xs:element name="WorkOrderNumber">
              <xs:simpleType>
                   <xs:restriction base="xs:short">
                        <xs:enumeration value="10942"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="VendorNumber">
              <xs:simpleType>
                   <xs:restriction base="xs:int">
                        <xs:enumeration value="109845"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
    Its not the complete XSD,just the first few lines.
    thanx
    Ahmad

    Hey Prabhu
    my XSD looks like this
    <?xml version="1.0" encoding="UTF-8"?>
    <!W3C Schema generated by XMLSpy v2007 sp2 (http://www.altova.com)>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <xs:element name="WorkOrderNumber">
              <xs:simpleType>
                   <xs:restriction base="xs:short">
                        <xs:enumeration value="10942"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="VendorNumber">
              <xs:simpleType>
                   <xs:restriction base="xs:int">
                        <xs:enumeration value="109845"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="UnitPrice">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="MonetaryAmount"/>
                        <xs:element ref="UnitOfMeasureCode"/>
                        <xs:element ref="CurrencyCode"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="UnitOfMeasureCode">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:enumeration value="EA"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="TotalLineItems">
              <xs:simpleType>
                   <xs:restriction base="xs:byte">
                        <xs:enumeration value="6"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="TaxTypeCode">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:enumeration value="GoodsAndServicesTax"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="TaxReference">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:enumeration value="GST"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="TaxAmount">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="MonetaryAmount"/>
                        <xs:element ref="CurrencyCode"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Tax">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="TaxTypeCode"/>
                        <xs:element ref="TaxAmount"/>
                        <xs:element ref="TaxReference"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Requisition">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Number"/>
                        <xs:element ref="LineItemNumber"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Quantity">
              <xs:simpleType>
                   <xs:restriction base="xs:decimal">
                        <xs:enumeration value="1.0"/>
                        <xs:enumeration value="2.0"/>
                        <xs:enumeration value="6.0"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="PrimaryCurrency">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="CurrencyCode"/>
                        <xs:element ref="ExchangeRate"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Pricing">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="UnitPrice"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="PaymentTerms">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:enumeration value="NT30"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="Number">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:enumeration value="Q173849"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="MonetaryAmount">
              <xs:simpleType>
                   <xs:restriction base="xs:decimal">
                        <xs:enumeration value="1.98"/>
                        <xs:enumeration value="12.48"/>
                        <xs:enumeration value="12.63"/>
                        <xs:enumeration value="16.75"/>
                        <xs:enumeration value="24.96"/>
                        <xs:enumeration value="240.0"/>
                        <xs:enumeration value="33.84"/>
                        <xs:enumeration value="43.83"/>
                        <xs:enumeration value="5.64"/>
                        <xs:enumeration value="74.81"/>
                        <xs:enumeration value="87.66"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="LineItemTotal">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="MonetaryAmount"/>
                        <xs:element ref="CurrencyCode"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="LineItemNumber">
              <xs:simpleType>
                   <xs:restriction base="xs:byte">
                        <xs:enumeration value="10"/>
                        <xs:enumeration value="20"/>
                        <xs:enumeration value="30"/>
                        <xs:enumeration value="40"/>
                        <xs:enumeration value="50"/>
                        <xs:enumeration value="60"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="LineItemMaterialNumber">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:enumeration value="108739"/>
                        <xs:enumeration value="192740-A"/>
                        <xs:enumeration value="380495"/>
                        <xs:enumeration value="43998"/>
                        <xs:enumeration value="54727S"/>
                        <xs:enumeration value="5746"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="LineItemInformation">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="LineItemMaterialNumber"/>
                        <xs:element ref="LineItemDescription"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="LineItemDescription">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:enumeration value="ABSRBT PAD 17 IN X 19 IN X 3/8 IN UNIV P"/>
                        <xs:enumeration value="BSHG HEX 1 IN X 1/2 IN THD FS A105N"/>
                        <xs:enumeration value="GGE 4 IN 1M / 7000 DL SCALE 1/2 IN LM WI"/>
                        <xs:enumeration value="PEN REC RD MED GRAPHIC 39-202"/>
                        <xs:enumeration value="PL ORF 3 IN .5 IN ORF SER 500 316 SS"/>
                        <xs:enumeration value="WPR F-200 FLC NOV LABEL 20"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="Invoices">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Invoice"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="InvoiceTypeCode">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:enumeration value="ProductOrService"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="InvoiceTotal">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="MonetaryAmount"/>
                        <xs:element ref="CurrencyCode"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="InvoiceSummary">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="TotalLineItems"/>
                        <xs:element ref="InvoiceTotal"/>
                        <xs:element ref="Tax"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="InvoiceQuantity">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Quantity"/>
                        <xs:element ref="UnitOfMeasureCode"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="InvoiceProperties">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="InvoiceNumber"/>
                        <xs:element ref="InvoiceDate"/>
                        <xs:element ref="VendorNumber"/>
                        <xs:element ref="InvoiceTypeCode"/>
                        <xs:element ref="PrimaryCurrency"/>
                        <xs:element ref="PaymentTerms"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="InvoiceNumber">
              <xs:simpleType>
                   <xs:restriction base="xs:int">
                        <xs:enumeration value="98815236"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="InvoiceLineItem">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="WorkOrderNumber"/>
                        <xs:element ref="LineItemNumber"/>
                        <xs:element ref="InvoiceQuantity"/>
                        <xs:element ref="LineItemInformation"/>
                        <xs:element ref="Pricing"/>
                        <xs:element ref="LineItemTotal"/>
                        <xs:element ref="Requisition"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="InvoiceDetails">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="InvoiceLineItem" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="InvoiceDate">
              <xs:simpleType>
                   <xs:restriction base="xs:date">
                        <xs:enumeration value="2007-01-25"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="Invoice">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="InvoiceProperties"/>
                        <xs:element ref="InvoiceDetails"/>
                        <xs:element ref="InvoiceSummary"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ExchangeRate">
              <xs:complexType/>
         </xs:element>
         <xs:element name="CurrencyCode">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:enumeration value="CAD"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
    </xs:schema>
    can you please tell me how to nest the structures,i m fairly new to XSD and stuffs
    thanx
    ahmad

  • I need to create a PDF from InDesign that people can edit in Reader or Acrobat

    I need to create a PDF from InDesign that people can edit (for example, change a name from "John" to "Johnny") from either Adobe Reader or Adobe Acrobat. I have already looked at forms, but they do not keep your font colors, faces, and sizes and just make everything that is selected as a text form Black, 12pt, Times New Roman.
    Can anyone here help me?

    Vincent,
    If you use Acrobat pro, generate your .pdf file and then save it as (french version):
    ... so that anyone using Acrobat Reader (or Pro, of course) can modify the .pdf file (with limitations), add comments, ...
    If you want to try to "protect" your .pdf file, you can try with this (in the "Préférences" menu (french version)):

  • How to create JSF application from xsd files?

    Hi,
    We have many xsd files describing xml's which we are supposed to send to web services. Application which we are creating should allow user to fill xml documents with data and then we should send those xml files to some web service. We want to automatize as much as possible the process of application creation to avoid possible errors and to minimize our efforts (there are plenty of quite complex xsd files).
    Our first approach was: we used Oracle JSXB to generate java classes basing on xsd files (using JDeveloper 10.1.3.2.0.4066). Then we tried to generate DataControls, but this action fails with following error:
    Window title: Error in init bean
    Message: Could not complete initbean because it would result in an invalid document
    Details: oracle.bali.xml.model.XmlInvalidOnCommitException: SEVERE: Wartość atrybutu Name nie jest typu ID (Value of Name attribute is not of ID type)
    Wartość musi być następującego typu: (Value must be of following type)
    Nazwa typu: ID (Type name)
    Typ pierwotny: string (Primitive type)
    Z następującymi więzami: (With following constraints)
    zgodne z wzorcem: [\i-[:]][\c-[:]]* (Compliant with template)
    [ node = Name ]
    <JavaBean version="10.1.3.40.66" id="XSLStylesheet" BeanClass="oracle.xml.xslt.XSLStylesheet" Package="oracle.xml.xslt" isJavaBased="true">
    <Attribute Name="classMethodParams" IsUpdateable="0" Type="java.util.Hashtable" />
    We tried Sun implementation fo JAXB - it generated different java classes (with annotation mechanism). Creation of DataControls using those classes was successful. Then we created simple JSF page and tried to put those DataControls on it in order to let the user fill it with data. The thing is that those controls are read only as there is no row created in those DC. We can't create any row in those DC as there are only 'commit' and 'rollback' operations. When we try to call 'CreateInsert' operation on child elements of those DC we get error in JDeveloper log window:
    2007-05-29 10:08:46 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: JBO-29000: DataControl:createRowData
    2007-05-29 10:08:46 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: DataControl:createRowData
    new row is not created and controls are still read-only.
    The question is:
    1. is there another, more efficient way to create JSF application from xsd files?
    2. if this is the best way to do it, what do we do wrong?
    Leszek

    To anyone who might find it useful: our solution to mentioned problem.
    Few tips how to solve described problem:
    1. Do not use JAXB (we checked Oracle and Sun)
    2. Use castor http://www.castor.org/
    a) for each xsd generate java files in separated package
    b) use java 1.5 to let castor generate lists
    c) use mapping of xml namespaces to java packages to have only 1 implementation of each xsd
    3. Create facades - java files for you root-level java objects
    4. Right click those facades and choose 'Create DataControl' in jdev
    5. Now you may drag and drop you DataControls and use them in your JSF (or UIX) application
    I hope it will help someone :)
    Leszek

  • Need to create a user  from procedure

    Hi to all,
    I need to create a user from oracle stored procedure. i am able to create a proceure successfully, when i am executing the procedure i cant able to successfully run it. it is throwing insufficient privileges. i tried to run the procedure from system user also.
    The below one is the procedure.
    create or replace procedure sp_createsuser(username varchar2)
    as
    begin
    execute immediate 'create user ' || username || ' identified by ' || username;
    end;
    the code is parsed successfully and created without any errors
    when trying to executing it throwing error as insufficient privileges
    the user is dba privileged and tried this procedure to execute from the system user also, getting the same output.
    I need to know whether it is possible to create user from a procedure, package or a trigger.
    Thanks in advance.

    Hi,
    I guess the message is pretty clear !! you lack privilege.
    SQL> conn imx/imx
    Connected.
    SQL>
    SQL> create user testproc identified by testproc;
    create user testproc identified by testproc
    ERROR at line 1:
    ORA-01031: insufficient privileges
    SQL> create or replace procedure sp_createsuser(username varchar2)
      2  as
      3  begin
      4  execute immediate 'create user ' || username || ' identified by ' || username;
      5  end;
      6  /
    Procedure created.
    SQL> exec sp_createsuser('testproc');
    BEGIN sp_createsuser('testproc'); END;
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "IMX.SP_CREATESUSER", line 4
    ORA-06512: at line 1
    SQL> conn sys/******* as sysdba
    Connected.
    SQL> grant create user to imx;
    Grant succeeded.
    SQL> conn imx/imx
    Connected.
    SQL> exec sp_createsuser('testproc');
    PL/SQL procedure successfully completed.
    SQL> conn sys/syssys as sysdba
    Connected.
    SQL> select username from dba_users where username like 'TESTP%';
    USERNAME
    TESTPROC
    SQL>Regards

  • How to create an xml from xsd in abap

    HI Experts,
       i want to create an xml file from xsd and i want to validate an xml file against an xds.is this possible in abap.if it is possible can any one give me an sample code
    for this one.
    how to create an xml file in abap.i have seen so many blogs which parses the xml file but i didn't get blog for creating an xml file.how can we do that one.
    any suggestions will be appriciated
    thanks in advance
    With Regards
    Naidu

    HI
    GOOD
    IT IS POSSIBLE IN ABAP
    Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere.
    XSD->
    XML Schemas express shared vocabularies and allow machines to carry out rules made by people. They provide a means for defining the structure, content and semantics of XML documents. in more detail.
    XDS->
    XDS can process data images from CCD-, imaging-plate, and multiwire-detectors in a variety of formats. Detector specific Input file templates greatly simplify the use of XDS; they are provided as part of the documentation.
    XDS runs under Unix or Linux on a single server or a grid of up to 99 machines of the same type managed by the MOSIX system; in addition, by using OpenMP, it can be executed in parallel on up to 32 processors at each node that share the same address space.
    http://www2.stylusstudio.com/SSDN/default.asp?action=9&fid=23&read=2926
    /people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
    THANKS
    MRUTYUN

  • Need to create sale order from the flat file & mail has to be sent

    Hi Experts,
              I have a requirement to create a sale order from a flat file and once the oder is created, mail has to be sent to customer as well as to internal user with the order details. I want to know how this process can be implemented and what adapters are needed to execute this.
    it would be very helpful, if i get an step-by-step procedure.
    Points assured for any helpful answers.
    Thanks in Advance
    Jai

    HI Jai,
    You need to create two interfaces as file will be sending the Sales oreder details that you need to capture in IDOC or RFC and then have to trigger to create the sales order. For this Standard BAPIs are also available.
    These RFC or BAPIs will response with Sales order details that you need to divert to Mail adapter with the use of BPM and also have to go for Async to Sync bridge.
    File -
    >XI (BPM) ---> BAPI/RFC  (Request)
    MailAdapter <- XI (BPM) <--- BAPI/RFC (Response)
    For this refer below links for step by step
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] - File to Mail
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm - Walk through BPM
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm - Schedule BPM
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - Use of Synch - Asynch bridge in ccBPM
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] - Use of Synch - Asynch bridge in ccBPM
    If you will use IDOC then In IDOC inbound processing you need to trigger for Sales order creation and then have to send the Sales Order generated IDOC as an Outbound to Mail Adapter
    Flat file -
    > XI ---> IDOC
    IDOC -
    > XI ---> Mail
    This will be bit easy scenario to develope as compare to using BAPI with BPM
    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping - Any flat file to any Idoc
    configuring IDOC-XI-Mail scenario using following web-log:
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u - Triggering Email from folder
    Thanks
    Swarup

  • Need to create infor record from one plant to other

    Hi All,
    We have a requirement where we need to create a info record in plant 120.
    we already have the info records in the plant 130 and need to merge them in plant 120 even.
    So requirement is to get the infor records from plant 130 and create in plant 120.
    We have batch input programs ZRM06IBI0 ( create purch info record ) by which we can create the info record with available sequential file. this sequential file will be created by program RM06IBIE  ( Create sequetial file for Purch info record ).
    The problem here to use this things is that it creates a session for each record which will result in lacs of session created. which is not advaisable.
    another option is to use BDC. but because of performance issues we need to skip it out and find any other method or function modules which can get the inforecords info from the database for plant 130 and create the same in plant 120.
    Please help me in this regard.
    Helpfull answers will be rewarded.
    BR,
    Ravi

    Try:
    INSERT INTO fnd_lobs
               (fnd_lob_id,
                file_data
        VALUES (1, -- or whatever the identifying value is
                (SELECT blob_type_column
                   FROM xxxx
                  WHERE xxxx_id = 1 -- or whatever the identifying value is
    ;If this doesn't work, then please list the table create statements for each table.

  • Need to create PAR files from JSP

    Hi,
    In my project we are creating portal archives from JSP iviews .
    Using NWDS we can easily create par files by going to Enterprise Portal workspace  .But in my project we are not using NWDS or any other JSP editor .
    Can anybody tell me how to create par files if i am using only notepad to develop my JSP .
    Thanks a lot .

    Hi
    here is the link how to create a par file without using any editor
    http://support.sas.com/rnd/itech/doc9/portal_dev/tasks/dg_portlet_parfile.html
    all the best..
    thanks Regards ,
    Boopalan.M

  • Need to create a flipbook from an ID CS4 "book" not a document

    I've created a 600+ page coursebook in InDesign CS4 which consists of 15 ID documents. I have put all these (15) documents in an InDesign "book". From this ID "book", how do I make a flipbook. Or from the "book" I create a PDF. How can I create a flipbook from a PDF?

    It seems like I read somewhere that you cannot export to SWF (your flipbook) format from a book. There are scripts, tho, that can take booked documents, then combine the separate documents into one document. Afterwards you could export to SWF.
    I couldn't find where I got this script, nor who I downloaded it from, so if anyone can provide attribution to the following, please post the info:
    //BookToDocument.jsx
    //An InDesign CS3 JavaScript
    //Moves pages from all documents in a book to a
    //single, new document.
    main();
    function main(){
    if(app.books.length > 0){
      if(app.books.item(0).bookContents.length > 0){
       myMovePages(app.books.item(0));
    function myMovePages(myBook){
    var myDocument, myPageCounter, myPage, mySection;
    var myFileName = File.saveDialog("Save the merged book as:", "*.indd");
    //Suppress missing font/file warnings.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    var myTargetDocument = app.open(myBook.bookContents.item(0).fullName);
    var myName = myTargetDocument.name;
    //Turn user interaction back on again.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    //Document.save (to: File , stationery:boolean, versionComments:string, forceSave:boolean):Document 
    myTargetDocument = myTargetDocument.save(File(myFileName));
    //Iterate through each document in the book.
    var myMaximumValue = myBook.bookContents.length;
    var myProgressBarWidth = 300;
    var myIncrement = myProgressBarWidth/myMaximumValue;
    var myProgressPanel = myCreateProgressPanel(myProgressBarWidth);
    myProgressPanel.show();
    myProgressPanel.myProgressBar.value = myIncrement;
    myProgressPanel.myChapterName.enabled = false; 
    myProgressPanel.myChapterName.text = "Now processing: " + myName;
    for(var myCounter = 1; myCounter<myBook.bookContents.length; myCounter++){
      //Open the book document, suppressing missing font/file warnings.
      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
      myDocument = app.open(myBook.bookContents.item(myCounter).fullName);
      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
      myProgressPanel.myChapterName.text = "Now processing: " + myDocument.name;
      for(myPageCounter = 0; myPageCounter<myDocument.pages.length; myPageCounter++){
       //Duplicate the page to the merged document.
       myPage = myDocument.pages.item(myPageCounter).duplicate(LocationOptions.after, myTargetDocument.pages.item(-1));
       if(myPageCounter == 0){
        //Create the section and copy section properties from the document.
        myProperties = myDocument.sections.item(0).properties;
        mySection = myTargetDocument.sections.add(undefined, {pageStart:myTargetDocument.pages.item(-1)});
        mySection.properties = myProperties;
      //Close the document without saving.
      myDocument.close(SaveOptions.NO);
      myProgressPanel.myProgressBar.value = myIncrement * (myCounter+1);
    myProgressPanel.myProgressBar.value = 0;
    myProgressPanel.hide();
    alert("Done!");
    function myCreateProgressPanel(myProgressBarWidth){
      myProgressPanel = new Window('window', 'Progress');
      with(myProgressPanel){
       myProgressPanel.myChapterName = add('edittext', [12, 12, myProgressBarWidth, 36], ""); 
       myProgressPanel.myProgressBar = add('progressbar', [12, 12, myProgressBarWidth, 24], 0, myProgressBarWidth);
      return myProgressPanel;

  • Need help - creating QT movies from iPhoto slide shows

    I am creating QT movies from slideshows in iPhoto. I then put the QT movies on a CD. I am having no trouble doing this, but if I give the CD to a Windows user, will she be able to view it? If not, is there any way to make it Windows compatible? Are there any other problems I should be aware of before I give these QT movies for Christmas gifts?

    Any PC user that has QuickTime 5, or higher, installed will be able to view your iPhoto slide show movies on the CD.
    You must use the Finder to guarantee a PC compatible CD, however.

  • Create XML file from XSD

    Hello,
    can anybody help me with generating an empty tagged XML file from a XSD file. Any sample java code will be highly appreciated.
    Thanx in advance.
    A .

    Apache XML Beans presents a way to compile the XSD Schema and generate Java classes for each element defined in the schema. With these interface you can then create new XML instances from the schema. (http://xmlbeans.apache.org/)

  • I need help creating PDF files from Outlook .msg files.

    I am trying to create a single PDF file from a group of Outlook .msg files. I need the attachments to be preserved and I am hoping that the individual .msg messages will be separated / bookmarked.
    I am trying to remove large quantities messages from my mailbox and store them elsewhere as a record of correspondence. 

    Try running Repair Disk on the external drive.
    With the drive connected go to Applications / Utilities / Disk Utility and double click DU.
    In the left column click to select the name of the external (the item indented to the right).
    Click First Aid.
    Click Repair Disk.
    Unless you get a message the drive cannot be repaired, you should run Repair Disk again and again until you see green text saying the disk was repaired.
    Quit DU.
    If you get the message that the disk cannot be repaired, you will need a more powerful repair utility.

  • Help needed to create active links from a database

    I want to create active links to web addresses stored in my
    Access database and returned on the detail page of a Master/Detail
    set. The code below returns the correct entry from the database
    field - but I can't seem to make it an active link.
    <%=(rsNameMasterDetail.Fields.Item("Link").Value)%>
    any help would be appreciated!
    thanks,
    emyers

    >
    <%=(rsNameMasterDetail.Fields.Item("Link").Value)%>
    >
    > any help would be appreciated!
    <a
    href='<%=(rsNameMasterDetail.Fields.Item("Link").Value)%>'><%=(rsNameMasterDetail.Fields. Item("Link").Value)%></a>
    -Darrel

  • Need To Create CR Reports From Excel

    Post Author: ExcelOnly
    CA Forum: Data Connectivity and SQL
    Hello all:
    We're living in spread sheet you know what here!   I'm trying to help out in the interim by rewriting some of these in Crystal Reports (I've never used it before).  Can someone please give me some basic steps?  Right now I'm using the version of CR that ships with Visual Basic 6.  I can bring up a spread sheet in CR but CR does not find any tables to select from.
    Thanks in advance!

    Post Author: V361
    CA Forum: Data Connectivity and SQL
    When I start up VB, I click on Project, and click add CR XI, (I have CR XI on this same machine) Right Click in one of the sections (Report header) select database, database expert, create new connection, database files, browse to your spreadsheet and select.

Maybe you are looking for

  • HT204389 how to stop the voice over

    how  do i stop the siri voice over

  • Find and Replace text string in HTML

    Opps... I hope this forum is not just for Outlook. My Html files reside on my hard-drive. I am looking for VBA code to open specified file names ####File.html and then find and replace text strings within the html for example "####Name" replaced with

  • Using XREF

    I am stuck with an issue with XREF and can't seem to find where the problem is.The calc script is executing with no errors, but the value is not being copied over We have 2 databases(with one cube in each of them) SOurce cube has an additional dimens

  • Owb dimenion value based hierarchy

    Hi, I am looking for some documention or an example to create value based hierarchy in owb 11g r2. Under what condition value based hierarchy should be created and under what condition level based hierarchy should be created

  • A question about VM

    Hi,everybody My question is how does OnCard VM works. It interprets CAP, or compiles and then executes? If OnCard VM is a interpreter, how can it ensure the speed of performance? Thanks in advance.