Possible to combine two xml documents into a single query?

In ASP, PHP, etc. if I wanted to combine two tables and
filter by one =
item, I would create a recordset combining the two on one
common element =
and have one recordset. Is that possible with xml documents
and Spry =
datasets?
I have xml information sent to me 4 times a day from a
weather service. =
This happens automatically, but the two xml documents
(current.xml and =
forecast.xml) are set in stone by the service. However, if in
my Spry =
dataset, I could combine them so I could list the 15 cities
in a master =
region and have tabs for the current conditions and forecast
which would =
each access a separate xml document but needs to do that from
the city =
link on the left, that would work great.
Can I do this as I would be able to if I had a database with
different =
tables?
Thanks!
Nancy

Hi Kin:
They are really static xml files that are placed in a folder
directly by =
the weather service. The files in question are current.xml
and =
forecast.xml.
And there is not one per city .. but just one of each. the
location =
node in current.xml and the citycode node in forecast.xml
contain the =
same information.
If I were doing this in a recordset with a database, I would
write =
something like SELECT whatever from current, forecast WHERE =
current.location =3D forecast.citycode AND current.location
=3D variable =
(which would be what is clicked on).
This sets up a master/detail arrangement for the first one
that works =
fine. Click on the city code (which I have to write something
to say If =
location =3D FAT, document.write "Fresno" and so on) and the
rest of the =
current information displays fine on the right side of the
page. Now I =
have to marry that to the forecast.xml file so that when
citycode =3D =
FAT, the five day information for Fresno shows up .. and so
on. I was =
planning to use Spry tabs or whatever to show the data.
<!--
var dsCurrent =3D new Spry.Data.XMLDataSet("current.xml", =
"weather/current");
//-->
</script>
</head>
<body>=20
<div class=3D"MasterDetail">
<div spry:region=3D"dsCurrent"
class=3D"MasterContainer">
<div class=3D"MasterColumn" spry:repeat=3D"dsCurrent" =
spry:setrow=3D"dsCurrent" spry:hover=3D"MasterColumnHover" =
spry:select=3D"MasterColumnSelected">{location}</div>
</div>
<div spry:detailregion=3D"dsCurrent"
class=3D"DetailContainer">
<div class=3D"DetailColumn">{phrase}</div>
<div class=3D"DetailColumn">{temp}</div>
<div class=3D"DetailColumn">{temp/@units}</div>
<div class=3D"DetailColumn">{aptemp}</div>
<div class=3D"DetailColumn">{aptemp/@unit}</div>
<div class=3D"DetailColumn">{wndchl}</div>
<div class=3D"DetailColumn">{wndchl/@unit}</div>
<div class=3D"DetailColumn">{rhumid}</div>
<div class=3D"DetailColumn">{rhumid/@unit}</div>
<div class=3D"DetailColumn">{wind_dir}</div>
<div class=3D"DetailColumn">{windspeed}</div>
<div
class=3D"DetailColumn">{windspeed/@unit}</div>
<div class=3D"DetailColumn">{pres}</div>
<div class=3D"DetailColumn">{pres/@unit}</div>
<div class=3D"DetailColumn">{vis}</div>
<div class=3D"DetailColumn">{vis/@unit}</div>
<div class=3D"DetailColumn">{icon}</div>
</div>
Arnout gave me some suggestions .. but so far, I haven't
gotten either =
of them to work. Also I am trying to get some ideas from spry
Samples =
from the Spry home page/samples area, but again .. not yet.
Thanks,
Nancy
"kinblas" <[email protected]> wrote in
message =
news:[email protected]...
>I don't think you need to combine them just so they can
render in a =
tabbed=20
> widget. We're still missing a couple of key pieces of
information. =
What does=20
> the data that is used in the master region look like?
Are what you =
refer to as=20
> current.xml and forecast.xml really static files? Or are
they =
dynamically=20
> generated by a server side script (php/cf/etc)? There is
one current =
and=20
> forecast xml per city right?
>=20
> I ask these questions because you may be able to simply
set up a =
master detail=20
> relationship between 3 data sets and just use those
within a region(s) =
that=20
> build up the tab widget. Assuming you were getting the
list of cities =
from a=20
> 3rd source, you could set up something like this:
>=20
>=20
> var dsCities =3D new Spry.Data.XMLDataSet("cities.xml",
=
"/cities/city");
> var dsCurrent =3D new=20
>
Spry.Data.XMLDataSet("current.php?location=3D{dsCities::name}",=20
> "/weather/current");
> var dsForecast =3D new=20
>
Spry.Data.XMLDataSet("forecast.php?citycode=3D{dsCities::name}",=20
> "/weather/forecast/day");
>=20
>=20
> ...
>=20
>=20
> <div id=3D"TabbedPanels1" class=3D"TabbedPanels">
> <ul class=3D"TabbedPanelsTabGroup">
>
Current</li>
>
Forecast</li>
>
> <div class=3D"TabbedPanelsContentGroup">
> <div class=3D"TabbedPanelsContent"
spry:region=3D"dsCurrent">
> {temp}{temp/@unit}
> </div>
> <div class=3D"TabbedPanelsContent"
spry:region=3D"dsForecast">
>
> <li spry:repeat=3D"dsForecast">{name}<br
/>High: =
{high}{high/@unit}<br=20
> />Low: {low}{low/@unit}</li>
>
> </div>
> </div>
> </div>
>=20
>=20
>=20
> --=3D=3D Kin =3D=3D--
>

Similar Messages

  • Combining two sales documents  into one billing document

    Hi Friends,
    I need to combine two sales document into one billing document. Header data is same in both sales document.
    I have set factory calendar in the payer master.
    Tried for data transfer rotine at copy control of item level. But was not sure which routine to be set.
    Please let me know, what all settings are required to create one combine billing document.
    Regards
    Suman

    Hi,
    Is it delivery based billing or order based billing?
    2 orders / 2 deliveries and 1 invoice.
    For the above situation you need to write a routine which eliminates document number difference for Reference and Allocation.
    If you do not have different customer purchase orders for these two sales orders and in your copy control from delivery to billing your assignment and reference numbers are blank then system will club these deliveries and create one sales order.
    Else you need to eliminate these by writing a copy control routine and assign it at the header level.
    Hope this helps.  Pl. revert in case of further clarifications.
    Thanks
    Krishna.

  • Is it possible to combine two pivot report into one ?..

    Is it possible to combine two pivot report into one ?..
    Then trying to display a chart or table result.

    Thanks for the reply.
    Let me explain it briefly. I am creating a Report 1 based on one fitler condition and second report is created based on second filter condition.
    I have similar column (time periods) in the both report. Then measure column has to combine and show as single report.
    This is my requirement.

  • How to combine  two user prompts into 1 single prompt from two Webi Queries

    Hi All,
    I developed a single webi report from two different queries on top of 2 BW OLAP universe .
    Here I have one user input prompt for each query so I want to combine them into one single user input promt which  should pass the user input value to both the Webi queries feeding data to the  single webi report.
    I found that the webi doc has auto checked merge dimensions enabled but it is not providing combined resluts from both the queries .
    Any inputs are greatlt appreciated.
    Thanks

    Stratos
    Firstly ,I appreciate your responses for my two questions.
    Both the prompts I am using are from the masterdata and they are similar.data types.I think the transactional data is not available in BW for one of the prompt ,hence I am not getting consistent data.
    Anyway will do further investigation in finding similarities and let you know.
    Thanks a lot

  • Combining two mono clips into a single mono clip

    I have two mono clips (two different takes of the same vocal part) that I want to combine into a single mono clip in Multitrack.  I tried the Bounce feature, but it produced a stereo file (which I don't want) and I think there isn't a mono option in Bounce.  So then I tried Mixdown to New File, and that produced a stereo file too.   So, what's the way to get the mono file I want, and which is better for the job - Bounce, or Mixdown?

    I recently filed two bug reports around bouncing tracks.  I noted that bounces were always created to match the Master track channelization, not the source track, and that they appeared to be passing through the Master when they should be the raw track output. 

  • Is it possible to combine 2 different reports in a single Query?

    Dear All,
    What am I working at?
    I produced a Query for Debtors Aged Analysis which mimics the Official SAP B1 8.8 Aging Report.
    It ages the outstanding invoices by Posting Date ( RefDate  in JDT1)
    I also made another Report which ages outstanding amounts by Document Date simply by replacing all RefDate by TaxDate
    They give different answers if Posting Date is different from Document Date, e.g a manual invoice dated 5 Jun 2011 is posted on 2 Jul 2011.
    What I want to do?
    My idea is to produce a SINGLE QUERY which will generate either Aging depending on settings:
        (a) A Debtors Aging by Posting Date
        (b) A Debtors Aging by Document Date
    I declare 2 variables:
    (a) @refdt  is [%1] and represents Posting Date (JDT1 RefDate)
    (b) @taxdt  is [%2] and represents Document Date (JDT1 TaxDate)
    When the Query is run, the foll dialog appears:
    Query - Selection Criteria
    Posting Date             Equal .......
    Document Date            Equal .......
    OK   Cancel
    We are expected to fill in only 1 date and leave the other blank, and Query will generate the required report .
    What is my problem?
    Query runs smoothly, but amounts in the Balance column does not get analyzed in the Age brackets: Current / 1 Mth Ago / etc
    I think I know where's the problem
    I am assuming (wrongly) that if we don't fill one date field, the query returns NULL for that variable. In fact, it appears to return GetDate().
    Help
    Can anybody help me put the correct commands so that all my balances are correctly analysed in the respective age buckets?
    Thanks
    Leon Lai
    Here's a simplified SQL:
    Tables  :
          JDT1   T0  = Journal Entry - Rows
          OCRD T1 = Business Partner
          OCPR T2 = Contact Person
          OJDT  T3  = Journal Entry - Header
          OINV   T4  = A/R Invoices - Header
          ORIN   T5  - A/R Credit Memo - Header
    declare @refdt date
    declare @taxdt date
    set @refdt
    /*Select 1 from jdt1 t where t.RefDate*/ = [%1]
    set @taxdt
    /*Select 1 from jdt1 w where w.TaxDate*/ = [%2]
    SELECT
    'company1' AS 'Company',
    T1.CardCode  AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    T0.RefDate AS 'Pstg Dt',
    T0.TaxDate AS 'Doc Dt',
    CASE
             WHEN T0.TransType = 13 THEN 'IN'
             WHEN T0.TransType = 14 THEN 'CN'
             WHEN T0.TransType = 30 THEN 'JE'
             WHEN T0.TransType = 24 THEN 'RC'
             WHEN T0.TransType = 46 THEN 'PS'
             ELSE 'Error ! ! !'
    END AS 'Doc Type',
    T0.Ref1 'Doc. Number',
    ISNULL(T0.FCCurrency, ' - ') AS 'Ccy',
    (T0.FCDebit - T0.FCCredit) AS 'Orig. F.Ccy',
    (T0.BalFcDeb - T0.BalFcCred) AS 'Bal. F. Ccy',
    (T0.Debit - T0.Credit) AS 'Orig. Rs',
    (T0.BalDueDeb - T0.BalDueCred) AS 'Bal. Rs',
    /* ########################  PROBLEM is here   ################## */
    CASE
                   WHEN (@refdt is not null) and (@taxdt is null)
                   THEN ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred
                   WHERE DateDiff(mm, T0.RefDate, @refdt) = 0 ) ,0)
                   WHEN (@refdt is null) and (@taxdt is not null)
                   THEN ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred
                    WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 0 ) ,0)
    END AS 'Current Mth', 
    CASE
                   WHEN (@refdt is not null) and (@taxdt is null)
                   THEN ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred
                   WHERE DateDiff(mm, T0.RefDate, @refdt) = 1 ) ,0)
                   WHEN (@refdt is null) and (@taxdt is not null)
                   THEN ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred
                    WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 1 ) ,0)
    END AS '1 Mth Ago'
    /* Similarly for other age buckets  */
    FROM company1.dbo.JDT1 T0
    INNER JOIN company1.dbo.OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT OUTER JOIN company1.dbo.OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT OUTER JOIN company1.dbo.OJDT T3 ON T0.TransID = T3.TransID
    LEFT OUTER JOIN company1.dbo.OINV  T4 ON T3.TransID = T4.TransID
    LEFT OUTER JOIN company1.dbo.ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C' and Balance != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0

    HI
    I generate the next aged analysis
    CREATE PROCEDURE [dbo].[Aged_Analysis] (@end datetime,@Client VarChar (20)) AS
    BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets
    -- interfering with SELECT statements.
    SET NOCOUNT ON;
    Declare @SAPUNION Table (SN VarChar(50), TransId Int, ReconSum Decimal(19,2), DebHab VarChar(1),
                                       Linea Int)
    insert into @SAPUNION
    SELECT X0.ShortName 'SN', X0.TransId 'TransId', SUM(X0.ReconSum)'ReconSum', X0.IsCredit 'DebHab', X0.TransRowId 'Linea'
                FROM ITR1 X0
                INNER JOIN OITR X1 ON X1.ReconNum = X0.ReconNum
                WHERE X1.ReconDate <= @end  AND X1.CancelAbs = ''
                GROUP BY X0.ShortName, X0.TransId, X0.IsCredit, X0.TransRowId
    SELECT T0.CardCode, T0.CardName,T0.Address,T0.CreditLine,
    T1.TransId , T4.BaseRef , T1.Ref2 , T1.RefDate, T1.DueDate,
    CASE
          WHEN T3.DebHab = 'D'  THEN T1.Debit-T1.Credit-T3.ReconSum
          WHEN T3.DebHab = 'C'  THEN T1.Debit-T1.Credit+T3.ReconSum
          ELSE (T1.Debit-T1.Credit)
    END 'Balance',
    CASE
           when DateDiff(Day,t1.RefDate,GetDate()) <= 30 and T3.DebHab = 'D'  then T1.Debit-T1.Credit-T3.ReconSum
           when DateDiff(Day,t1.RefDate,GetDate()) <= 30 and T3.DebHab = 'C'  then T1.Debit-T1.Credit+T3.ReconSum
           when DateDiff(Day,t1.RefDate,GetDate()) <= 30 then (T1.Debit-T1.Credit) end '0-30 dias',
    CASE
           when DateDiff(Day,t1.refdate,GetDate()) between 31 and 45 and T3.DebHab = 'D'  then T1.Debit-T1.Credit-T3.ReconSum
           when DateDiff(Day,t1.refdate,GetDate()) between 31 and 45 and T3.DebHab = 'C'  then T1.Debit-T1.Credit+T3.ReconSum
           when DateDiff(Day,t1.refdate,GetDate()) between 31 and 45 then (T1.Debit-T1.Credit) end '31-45 dias',
    CASE
           when DateDiff(Day,t1.refdate,GetDate()) between 46 and 60 and T3.DebHab = 'D'  then T1.Debit-T1.Credit-T3.ReconSum
           when DateDiff(Day,t1.refdate,GetDate()) between 46 and 60 and T3.DebHab = 'C'  then T1.Debit-T1.Credit+T3.ReconSum
           when DateDiff(Day,t1.refdate,GetDate()) between 46 and 60 then (T1.Debit-T1.Credit) end '46-60 dias',
    CASE
           when DateDiff(Day,t1.refdate,GetDate()) between 61 and 75 and T3.DebHab = 'D'  then T1.Debit-T1.Credit-T3.ReconSum
           when DateDiff(Day,t1.refdate,GetDate()) between 61 and 75 and T3.DebHab = 'C'  then T1.Debit-T1.Credit+T3.ReconSum
           when DateDiff(Day,t1.refdate,GetDate()) between 61 and 75 then (T1.Debit-T1.Credit) end '61-75 dias',
    CASE
           when DateDiff(Day,t1.refdate,GetDate()) BETWEEN 76 AND 89 and T3.DebHab = 'D'  then T1.Debit-T1.Credit-T3.ReconSum
           when DateDiff(Day,t1.refdate,GetDate()) BETWEEN 76 AND 89 and T3.DebHab = 'C'  then T1.Debit-T1.Credit+T3.ReconSum
           when DateDiff(Day,t1.refdate,GetDate()) BETWEEN 76 AND 89 then (T1.Debit-T1.Credit) end '76-89 dias',
    CASE
           when DateDiff(Day,t1.refdate,GetDate()) >90 and T3.DebHab = 'D'  then T1.Debit-T1.Credit-T3.ReconSum
           when DateDiff(Day,t1.refdate,GetDate()) >90 and T3.DebHab = 'C'  then T1.Debit-T1.Credit+T3.ReconSum
           when DateDiff(Day,t1.refdate,GetDate()) >90 then (T1.Debit-T1.Credit) end '90-Mas',
    CASE T1.TransType
          WHEN '13' THEN (SELECT Y.Comments FROM OINV Y WHERE Y.TransId = T1.TransId)
          WHEN '14' THEN (SELECT Y.Comments FROM ORIN Y WHERE Y.TransId = T1.TransId)
          WHEN '24' THEN (SELECT Y.Comments FROM ORCT Y WHERE Y.TransId = T1.TransId)
          ELSE T1.LineMemo
    END 'Comments'
    FROM OCRD T0
          INNER JOIN JDT1 T1 ON T1.ShortName = T0.CardCode
          INNER JOIN OACT T2 ON T2.AcctCode = T1.Account
          INNER JOIN OJDT T4 ON T4.TransId = T1.TransId
          LEFT JOIN OINV T5 ON T5.TransId = T4.TransId  and t5.ObjType = t4.TransType     
          LEFT JOIN @SAPUNION T3 ON T3.TransId = T1.TransId AND T3.SN = T1.ShortName AND T3.Linea = T1.Line_ID
    WHERE T0.CardType = 'C' /*FOR CLIENTS*/ AND T1.RefDate <= @end AND T2.AcctCode = /*YOUR CLIENT ACCOUNT*/ AND
    (CASE
          WHEN T3.DebHab = 'D' THEN (T1.Debit-T1.Credit-T3.ReconSum)
          WHEN T3.DebHab = 'C' THEN (T1.Debit-T1.Credit+T3.ReconSum)
          ELSE (T1.Debit-T1.Credit)
    END) != '0'
    AND T0.CardCode= @Client
    ORDER BY T0.CardCode,T1.TransId,t1.Ref2
    END
    AND Execute by SAP
    DECLARE @VAR INT, @DATE DATETIME, @BP VARCHAR(8)
    SET @VAR = (SELECT TOP 1 T.DocEntry FROM [dbo].[OINV] T WHERE T.DocDate <='[%0]' AND T.CardCode='[%1]')
    SET @DATE = '[%0]'
    SET @BP = '[%1]'
    EXECUTE [dbo].[Aged_Analysis]
    @end = @DATE,
    @Client = @BP
    Regards
    Floyola
    Edited by: Floyola on Jul 22, 2011 10:17 AM

  • How do I combine two pdf documents into one using preview?

    If I remember correctly I have done this in the past but now I can't remember how to do it.
    Message was edited by: admiral_koa
    i finally found some other questions like mine which got answered. So I'm closing this out.

    That would be kind of you. Thank you. This is my first post on the new support setup. I find it a lot different than the previous arrangement. Harder actually.  I don't remember what I did when I first posted it. It seemed like my searches for my subject I could not find until I posted my question and then I found some immediately. Evidence of my struggling with how this works.
    thanks again,
    AK

  • Combining two Apple IDs into a single account

    I couldn't find what other forum to post this question in. Please direct me to one if there is one. Thanks.
    I've accidentally created two Apple IDs and registered various hardware on each. I want to combine the two accounts into one.
    How can I do that?

    Hello,
    Unfortunately, you cannot do that.
    We just don't have that option here. My recommendation would be to use whichever account you prefer the most.
    If you have points of concern to you on the other account, then use it.
    You can adjust either account to your own preferences. So, the only difference between one and the other will be the user name and registration date that is attached to it (which cannot be changed) and the number of posts and awarded points for questions you have answered.
    I wish I could give you the answer you are wanting. But, unfortunately that just is not an option.
    Edit:
    I just found that someone else has been discussing something similar here:
    http://discussions.apple.com/thread.jspa?threadID=668526&tstart=0
    You may find that discussion useful as well when considering the limitations and other factors that are affected.
    I hope this helps.
    Message was edited by: mhunter

  • How to combine below 4 queries into a single query?

    SELECT COUNT(*) AS NORMAL_PASS
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =1 AND TESTFLAG =1)
    SELECT COUNT(*) AS NORMAL_FAIL
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =1 AND TESTFLAG =2)
    SELECT COUNT(*) AS REPEAT_PASS
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =2 AND TESTFLAG =1)
    SELECT COUNT(*) AS REPEAT_FAIL
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =2 AND TESTFLAG =2)

    Are you looking for the below:
    SELECT COUNT(*) as Cnt, 'NORMAL_PASS' as [Type]
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =1 AND TESTFLAG =1)
    Union All
    SELECT COUNT(*) , 'NORMAL_FAIL'
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =1 AND TESTFLAG =2)
    Union All
    SELECT COUNT(*) , 'REPEAT_PASS'
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =2 AND TESTFLAG =1)
    Union All
    SELECT COUNT(*) , 'REPEAT_FAIL'
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =2 AND TESTFLAG =2)
    Or
    SELECT MAINSERNO,Count(Case when TESTMODE =1 AND TESTFLAG =1 Then 1 Else NULL End) as 'Normal_Pass',
    Count(Case when TESTMODE =1 AND TESTFLAG =2 Then 1 Else NULL End) as 'Normal_Fail',
    Count(Case when TESTMODE =2 AND TESTFLAG =1 Then 1 Else NULL End) as 'Repeat_Pass',
    Count(Case when TESTMODE =2 AND TESTFLAG =2 Then 1 Else NULL End) as 'Repeat_Pass'
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556')

  • How Do I combine 2 InDesign Documents into 1 (in a very particular way)

    How do I combine two InDesign Documents into one in a very specific way.
    Here's my problem: I have two separate InDesign CS5 files for playing cards. File one is the front. File two is the back.
    The company that does my final print production needs the the cards sent as two separate PDFs. One for the card fronts, one for the card backs. Both of these InDesign (and the PDF export) files are arranged in the same way: page 1 is card #1, page 2 is card #2, etc. Nice and simple.
    However, I use a different company for producing prototype versions of the decks (the production printer can't do this economically). My prototype producer needs me to send a single PDF where page 1 is Card #1 Back, page 2 is Card #1 Front, Page 3 is Card #2 back, Page 4 is Card #2 front, etc.
    The decks I am building usually run 56 cards, but can be as large as 180 cards.
    So, what's the easiest way to automate this process? is there a way to combine two separate indesign files by "interleaving" the pages from the two original documents into a new larger document (where I could do a new PDF export)?  Or, is there a better way to do this in Acrobat Pro? At the moment I have to resort to drag and dropping each card from one PDF thumbnail pallet to the other. It's really time consuming and mind-numbingly boring.  Any Ideas?

    This script is actually pretty straightforward, so it's a good first
    challenge I think.
    I would script this in InDesign -- probably because I'm more familiar
    with InDesign scripting.
    To start learning the InDesign scripting basics, open the ExtendScript
    Toolkit (ESTK) which is almost certainly installed on your computer
    already. Go to the Help menu, and you'll find an entry there called
    Adobe Intro to Scripting. Read that. I think that's the best place to start.
    For the script in question, you would want to:
    1. make sure both InDesign documents are open. They would both have the
    same number of pages. (No scripting involved here, just make sure
    they're open before running the script.)
    2. loop backwards through the collection of document pages of one of the
    documents. (document.pages is the collection you're looking for)
    3. use the move() method of a document page to move it. (myPage.move())
    4. Learn about the LocationOptions enumerator so that when you move the
    page you can tell InDesign if you want to move it before, or after
    another page. (LocationOptions.AFTER or LocationOptions.BEFORE)
    5. Get a reference to the page in the second document before (or after)
    which you want to move the page in the first document.
    5. that's basically it
    I suggest that as you work your way through this (if you decide to take
    up the challenge), you post any questions you may have on the InDesign
    Scripting forum here.

  • Can we Concatinate two XML files to a single output?

    I was stuck up with one scenario where I am getting a XML file output from a File Adapter say x1.
    And another XML file output say x2 from other adapter. Now I want to club this two XML files into a single output where it should contain the contents of x1 and x2
    When I am doing the Transformation I am getting the two files in the output folder but I want single file as output. Is it possible with ESB? If so Please suggest.
    --Chandra                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Chandra,
    Maybe the enrichment interaction scenario would work in your case.
    My colleague Lucas Jellema wrote a blog post on it: http://technology.amis.nl/blog/?p=1464.
    Or putting the same in a larger perspective: http://www.oracle.com/technology/pub/articles/jellema-esb.html.
    Hth,
    Sjoerd

  • Can I append an XML Document into another?

    I have a large xml document which I open into coldfusion (mx
    7), and then a smaller group of files that are opened into thier
    own xml objects. After some customization of xml text values, I
    want to append the smaller xml documents into the larger document
    at specific positions within the document tree.
    I have the code that I thought would do this, using an
    arrayappend function, but what happens is that only the root
    element of the smaller (inserted) xml document is placed into the
    main document.
    Is this possible, or do I need to modify the code so that the
    entire tree of xml data that I am appending is created on the
    fly?

    Personally I do this with XSLT.
    <cfxml variable="doc1">
    <root>
    <member id="10">
    <name>Ian</name>
    <sex>male</sex>
    </member>
    </root>
    </cfxml>
    <cfxml variable="doc2">
    <root>
    <member id="1">
    <name>Joe</name>
    <sex>male</sex>
    </member>
    <member id="2">
    <name>John</name>
    <sex>male</sex>
    </member>
    <member id="3">
    <name>Sue</name>
    <sex>female</sex>
    </member>
    </root>
    </cfxml>
    <cffile action="write" file="#expandPath("/")#\doc2.xml"
    output="#ToString(doc2)#" nameconflict="overwrite">
    <!--- METHOD ONE using a depreciated and undocumented
    method --->
    <cfset newNode = doc1.root.member.cloneNode(true)>
    <cfset doc2.changeNodeOwner(newNode)>
    <cfset doc2.root.appendChild(newNode)>
    <cfdump var="#doc2#" label="Merged by hidden functions"
    expand="no">
    <!--- METHOD TWO using XSLT --->
    <!--- create an xsl docutment--->
    <cfoutput>
    <cfsavecontent variable="transformer">
    <xsl:stylesheet xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:output method="xml"/>
    <!--load the merge file -->
    <xsl:variable name="emps"
    select="document('#expandPath("/")#\doc2.xml')"/>
    <!--- this line references and XML file to be combined
    with the main file,
    I wonder if there is a way to use an XML document in memory
    here? --->
    <!-- combine the files -->
    <xsl:template match="/">
    <root>
    <!-- select all the child nodes of the root tag in the
    main file -->
    <xsl:for-each select="root/child::*">
    <!-- copy the member tag -->
    <xsl:copy-of select="."/>
    </xsl:for-each>
    <!-- and all the child nodes of the root tag in the merge
    file -->
    <xsl:for-each select="$emps/root/child::*">
    <!-- copy the member tag -->
    <xsl:copy-of select="."/>
    </xsl:for-each>
    </root>
    </xsl:template>
    </xsl:stylesheet>
    </cfsavecontent>
    </cfoutput>
    <!--- create a combined xml document --->
    <cfset doc2 = XMLparse(XMLtransform(doc1,transformer))>
    <cfdump var="#doc2#" label="Merged by XSLT"
    expand="no">

  • Combine 2 xml file into 1

    hello everyone,
    can i know is it posible to combine 2 xml file into one xml file?
    if possible
    can i know how?
    thank you
    : )

    Of course you have to make up some specifications to deal with the requirements forced by XML files. For example: an XML file must have a single root element, so you can't just concatenate the two input files. So your specifications have to say whether the root element of the result is a new element, containing two children which are the original input documents, or something else.

  • Can I combine two iTunes accounts into one?

    Hello. I have an iPod touch, but to download and install apps, I have to use my dad's account to download. Is it possible to combine two together into one( I just created an Apple ID. ) thanks for answering!0.0

    this Apple article says no:
    http://support.apple.com/kb/he37
    "I have multiple Apple IDs. Is there a way for me to consolidate them into a single Apple ID?
    At this time, Apple IDs cannot be consolidated. "

  • How to combine three PDF documents into one PDF document ?

    Hi Folks,
    I have a requirement to combine 3 PDF documents into One PDF document, let me explain clearly.
    I have developed two Adobe forms in T.code SFP and I have one PDF docuement which is stored in DMS (T.code CV02n), and now I want to combine these three PDF documents into one pdf.
    I have tried below link, but only 50% can able to do my requirement.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/404e4dc1-a79c-2d10-a7b5-9a266dfed9cb?QuickLink=index&overridelayout=true
    Is there any best solution to fix this.
    Best Regards,
    Naresh Kumar.

    Hi Lukas,
    Thanks for your response on this.
    Krisztian's solution will work/merge only for Adobe forms created in T.code SFP but can't merge with the pdf document which is sitting in CV02N (This doesn't have Adobe form name in T.code SFP), this is what I understood.
    And one more bad news is we are not able to install that unix file in our client system, it is not compatable.
    Best Regards,
    Naresh Kumar.

Maybe you are looking for

  • Reinstall Issue

    Hello, I am having extremely sluggish problems with Photoshop Elements 8, yet everything's fine with Premiere Elements 8. I recently reinstalled Windows 7 on my computer (Dell XPS), then I reinstalled the Premiere Elements and Photoshop Elements prog

  • XMLTYPE variable converting to XML (Question)

    Friends, I am stuck on an error and cannot find a way out. Please help. I know it's a long question but a very simple answer to many smart people here. I am just lost and need your help. (I am new to SOA so bear with me) I have a BPEL process which i

  • Using Firefox 26. How do I get a close button for each tab at the top of the screen?

    Some time ago, I had a close tab button for each tab on the top of the screen. I want that back. I have no additional add ons and the close tab is set to 1. Changing it to 2 does nothing.

  • Interactive reports do not execute with Z business role

    Hi all, We have created interactive reports which are working fine and displaying results with a standard business role. However, the report does not even execute when we use a custom business role - no blank screen no error, but the report does not

  • Journal voucher IDOC or BAPI

    Hi All, We will be getting one file from external system and I need to post journal vouchers in SAP. We are discussing on posting Journal Vouchers through IDOC or BAPI. Basically we are looking at automating this process. Please let me know which IDO