SDATA Section with mutiple occurrence in one document

Hello,
in a user defined datastore I create the following xml document:
<name>Huber</name><vname>Astrid</vname><pcb>1006498200</pcb><pcb>8553001101</pcb><pcb>8553002201</pcb>
begin
ctx_ddl.create_preference(preference_name=>'name_store',object_name=>'USER_DATASTORE');
ctx_ddl.set_attribute (preference_name=>'name_store',attribute_name=>'procedure',attribute_value=>'names_proc');
ctx_ddl.create_section_group ('name_sg', 'basic_section_group');
ctx_ddl.add_field_section ('name_sg', 'name', 'name');
ctx_ddl.add_field_section ('name_sg', 'vname', 'vname');
ctx_ddl.add_sdata_section ('name_sg', 'pcb', 'pcb', 'varchar2');
end;
The field PCB is used in an SDATA section. When I query the table I get a result for
select * from tbl0100person where contains(name1,'huber within name and astrid within vname and sdata (pcb=''8553002201'')')>0;
but not for the other two values 8553001101 and 1006498200 of pcb. It seems that a SDATA section only uses the last occurrence of pcb in the document.
Is there another possibility to index all three values of pcb?

According to:
http://docs.oracle.com/database/121/CCREF/cddlpkg.htm#CCREF2103
"SDATA are single-occurrence only. If multiple instances of an SDATA tag are encountered in a single document, then later instances supersede the value set by earlier instances. This means that the last occurrence of an SDATA tag takes effect."
As a workaround, you could make the pcb another field section, instead of sdata section, as shown below, adapting some code from your other thread.
SCOTT@orcl12c> CREATE TABLE tbl0100anschrift -- an
  2    (persno    NUMBER,
  3      plz    VARCHAR2(15),
  4      ort    VARCHAR2(15),
  5      str    VARCHAR2(15))
  6  /
Table created.
SCOTT@orcl12c> INSERT INTO tbl0100anschrift VALUES (1, '', '', '')
  2  /
1 row created.
SCOTT@orcl12c> CREATE TABLE tbl0100person -- pers
  2    (persno    NUMBER,
  3      name1    VARCHAR2(15),
  4      name3    VARCHAR2(15))
  5  /
Table created.
SCOTT@orcl12c> INSERT INTO tbl0100person VALUES (1, 'Huber', 'Astrid')
  2  /
1 row created.
SCOTT@orcl12c> CREATE TABLE tbl2000pcbperson -- pp
  2    (persno    NUMBER,
  3      pcbid    NUMBER)
  4  /
Table created.
SCOTT@orcl12c> INSERT ALL
  2  INTO tbl2000pcbperson VALUES (1, 8553002201)
  3  INTO tbl2000pcbperson VALUES (1, 8553001101)
  4  INTO tbl2000pcbperson VALUES (1, 1006498200)
  5  SELECT * FROM DUAL
  6  /
3 rows created.
SCOTT@orcl12c> CREATE OR REPLACE PROCEDURE names_proc (p_rid  IN rowid,p_clob IN OUT nocopy clob) IS
  2  l_adresse VARCHAR2(4000);
  3  l_name VARCHAR2(200);
  4  l_pcbid VARCHAR2(4000);
  5  l_persno VARCHAR2(32);
  6  l_xmlDoc VARCHAR2(8200);
  7  BEGIN
  8  SELECT name,
  9        LISTAGG(pcb,'') WITHIN GROUP(ORDER BY pcb),
10        LISTAGG(plz,'') WITHIN GROUP(ORDER BY plz) ||
11        LISTAGG(ort,'') WITHIN GROUP(ORDER BY ort) ||
12        LISTAGG(str,'') WITHIN GROUP(ORDER BY str)
13      INTO l_name,l_pcbid,l_adresse
14      FROM(
15          SELECT '<name>'||name1||'</name><vname>'||name3||'/vname>' as name,
16            DECODE( LAG(plz,1,0) OVER (ORDER BY plz),plz,NULL,'<plz>'||plz||'</plz>'  ) AS plz,
17            DECODE( LAG(ort,1,0) OVER (ORDER BY ort),ort,NULL,'<ort>'||ort||'</ort>'  ) AS ort,
18            DECODE( LAG(str,1,0) OVER (ORDER BY str),str,NULL,'<str>'||str||'</str>'  ) AS str,
19            DECODE( LAG(pp.pcbid,1,0) OVER (ORDER BY pp.pcbid),pp.pcbid,NULL,'<pcb>'||pp.pcbid||'</pcb>'  ) AS pcb
20          FROM tbl0100anschrift an,
21            tbl0100person pers,
22            tbl2000pcbperson pp
23          WHERE pers.persno=an.persno
24            AND pers.rowid=p_rid
25            AND pers.persno=pp.persno
26            AND an.persno=pp.persno
27          ) adr
28      WHERE plz || ort || str ||pcb IS NOT NULL
29  GROUP BY name;
30    --
31    l_xmlDoc:=l_name||l_adresse||l_pcbid;
32    DBMS_LOB.WRITEAPPEND (p_clob,length(l_xmlDoc),l_xmlDoc);
33  END;
34  /
Procedure created.
SCOTT@orcl12c> SHOW ERRORS
No errors.
SCOTT@orcl12c> DECLARE
  2    v_clob  CLOB;
  3  BEGIN
  4    FOR r IN (SELECT ROWID rid FROM tbl0100person) LOOP
  5      DBMS_LOB.CREATETEMPORARY (v_clob, TRUE);
  6      names_proc (r.rid, v_clob);
  7      DBMS_OUTPUT.PUT_LINE (v_clob);
  8      DBMS_LOB.FREETEMPORARY (v_clob);
  9    END LOOP;
10  END;
11  /
<name>Huber</name><vname>Astrid/vname><plz></plz><ort></ort><str></str><pcb>1006
498200</pcb><pcb>8553001101</pcb><pcb>8553002201</pcb>
PL/SQL procedure successfully completed.
SCOTT@orcl12c> begin
  2    ctx_ddl.create_preference(preference_name=>'name_store',object_name=>'USER_DATASTORE');
  3    ctx_ddl.set_attribute
  4      (preference_name=>'name_store',
  5        attribute_name=>'procedure',
  6        attribute_value=>'names_proc');
  7    ctx_ddl.create_section_group ('name_sg', 'basic_section_group');
  8    ctx_ddl.add_field_section ('name_sg', 'name', 'name');
  9    ctx_ddl.add_field_section ('name_sg', 'vname', 'vname');
10    ctx_ddl.add_field_section ('name_sg', 'pcb', 'pcb');
11  end;
12  /
PL/SQL procedure successfully completed.
SCOTT@orcl12c> CREATE INDEX name_ix1 ON tbl0100person (name1)
  2  INDEXTYPE IS CTXSYS.CONTEXT
  3  PARAMETERS
  4    ('DATASTORE    name_store
  5      SECTION GROUP    name_sg')
  6  /
Index created.
SCOTT@orcl12c> SELECT token_text FROM dr$name_ix1$i
  2  /
TOKEN_TEXT
1006498200
8553001101
8553002201
ASTRID
HUBER
VNAME
6 rows selected.
SCOTT@orcl12c> select * from tbl0100person
  2  where  contains
  3            (name1,
  4            'huber within name and astrid within vname and 8553002201 within pcb')>0
  5  /
    PERSNO NAME1          NAME3
        1 Huber          Astrid
1 row selected.
SCOTT@orcl12c> select * from tbl0100person
  2  where  contains
  3            (name1,
  4            'huber within name and astrid within vname and 8553001101 within pcb')>0
  5  /
    PERSNO NAME1          NAME3
        1 Huber          Astrid
1 row selected.
SCOTT@orcl12c> select * from tbl0100person
  2  where  contains
  3            (name1,
  4            'huber within name and astrid within vname and 1006498200 within pcb')>0
  5  /
    PERSNO NAME1          NAME3
        1 Huber          Astrid
1 row selected.

Similar Messages

  • Cs sdk: copying an item from one document to another

    is there a way to copy any item from one ai document to the other ?

    I'm not one for bumping old threads, but this problem is really giving me a headache...
    I'm having the same exact problem with copying groups from one document to another.  It doesn't seem to matter if it's a top-level group or not; any group that gets copied over results in the copied art not showing up in the layer list and gives errors when trying to click on it.
    If my source document looks like this:
    Layer 1
      <path 1_1>
      <path 1_2>
      Layer 2
        <path 2_1>
    If I DuplicateArt on the GetFirstArtOfLayer(Layer 1), Layer 1 gets copied into the new document, but it doesn't show up in the layer list and I get errors trying to click on any of the art.
    If I iterate over the children/siblings of Layer 1 and duplicate them all separately, <path 1_1> and <path 1_2> will show up correctly in the new layer list and are clickable, but Layer 2 will not, and clicking on <path 2_1> results in the error.
    At this point, the only solution I can think of is to recursively iterate over the source tree, manually creating the destination groups, and then copying the art work into them.
    Very frustrating!

  • How to best take sections from one document to merge with another Indesign document

    I am looking for most efficient way to take a section from one document to merge with a section from another document?  We have a book that needs updating, taking a section from one document to merge into another.  We have typically copied and paste each page, but there are 20+ pages involved.  Does anyone have a better way?

    Open both documents.
    With source document active, In pages panel, select pages that are to be copied to the destination document
    Right Click (or use panel menu) and select Move Pages ...
    Double check that correct page range is noted
    Select destination document
    select where in document pages should appear (beginning, end, after or before page X)

  • Not able to copying files/folders from one Document Library to another Document Library using Open with Browser functionality

    Hi All, 
    We have SharePoint Production server 2013 where users are complaining that they are not able to copy or move files from one document library to another document library using “Open with Explorer” functionality.
    We tried to activate publishing features on production server but it did not work. We users reported following errors:  
    Copying files from one document library to another document library:
    Tried to map the document libraries and still not get the error to copy files: 
    In our UAT environment we are able to copy and move folders from using “Open with Explorer” though.
    We have tried to simulate in the UAT environment but could not reproduce the production environment.  
    Any pointers about this issue would be highly appertained.
    Thanks in advance
    Regards,
    Aroh  
    Aroh Shukla

    Hi John and all,
    One the newly created web applications that we created few days back and navigated to document library, clicked on “Open with Explorer”, we get this error.
    We're having a problem opening this location in file explorer. Add this website to your trusted and try again.
    We added to the trusted site in Internet Explorer for this web application, cleared the cache and open the site with same document library but still get the same above error.
    However, another existing web application (In same the Farm) that we are troubleshooting at the moment, we are able click on “Open with Explorer”,  login in credentials opens and we entered the details we are able to open the document
    library and tried to follow these steps:
    From Windows Explorer (using with Open with Explorer), tried to copy or move a files to
    source document library.
    From Windows Explorer moved this file to another destination document library and we got this error.
    What we have to achieve is users should be able to copy files and folders using
    Open with Explorer functionality. We don’t know why Open with Explorer
    functionality not work working for our environment.  
    Are we doing something wrong? 
    We have referred to following websites.
    we hope concepts of copying / Moving files are similar as SharePoint 2010. Our production environment is SharePoint 2013.   
    http://www.mcstech.net/blog/index.cfm/2012/1/4/SharePoint-2010-Moving-Documents-Between-Libraries https://andreakalli.wordpress.com/2014/01/28/moving-or-copying-files-and-folders-in-sharepoint/
    Please advise us. Thank you.
    Regards,
    Aroh
    Aroh Shukla

  • I just bought a Mac Book Pro and the Appstore show one upgrade of iPhoto (9.2.1). I started a section with my Apple ID (the account that I have I use to iTunes) but when I try to update it says that there are upgrades available for other accounts and that

    I just bought a Mac Book Pro and the Appstore show one upgrade of iPhoto (9.2.1). I started a section with my Apple ID (the account that I have I use to iTunes) but when I try to update it says that there are upgrades available for other accounts and that I have to upgrade using the account that I used to buy iPhoto. What do I have to do to upgrade iPhoto?

    Dear Katty,
    Thank you very much for your answer! I have 2 Apple ID, and I have tried both of them and the problem continues. I founf several peolpe with the same problem in apple communities foruns and that really seems that there is some problem. I addded the links for 2 of those discussions.
    https://discussions.apple.com/thread/3374419?start=0&tstart=0
    https://discussions.apple.com/message/16628399#16628399
    Do you have an idea of how can I solve this problem?
    Thank you very much again.
    Best regards,
    Alfonso

  • HP Officejet 6500A How do I scan a document with multiple pages into one file?

    HP Officejet 6500A Plus e-All-in-One Printer - E710n
    Windows 7 (64 bit)
    How do I scan a document with multiple pages into one file?  My old printer (psc 2110) asked after each scan if I wanted to scan another page.  At the end I had one pdf file with multiple pages.
    This new one creates one file for each page and I cannot find a way to create one pdf file with multiple pages.
    This question was solved.
    View Solution.

    Hi mpw101,
    If you load the papers into the ADF - Automatic Document Feeder, and then select Document to PDF then they will all be scanning into one file. Let me know if this works for you?
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • "No connectivity with the server" error for one document but not the other, in the same document library

    We have a number of users all of a sudden getting "No connectivity with the server.  The file 'xxx' can't be opened because the server couldn't be contacted." errors trying to open MS Office docs (Word, Excel, etc.) in SharePoint with IE,
    just by clicking the link and selecting the "Read Only" option.  If they select the "Check Out and Edit" option, they can open the document no problem.  One of my customers gets the error on one document but not the other, in
    the same document library!  The older document (a weekly report) was copied and renamed as per standard procedure.  She can read the older document, but not the new one.
    It is definitely a profile issue, as other people have logged onto the machines of the users with problems and do not get the error.  We have also renamed people's c:\user profile folders and the corresponding Profilelist registry entry and the newly
    created profile does not experience the error for these people.  Renaming the profile back restores all their personal settings but the error reappears.  When we copied the old profile's folder structure into the new profile, many of the user settings
    were restored (but not all, like Dreamweaver settings) but the error did not appear.  We think that the system folders files (like AppData) weren't totally copied over so we're going to run another test using xcopy.  We are rebooting between
    logons to make sure all files are unlocked.
    The laptops and computers are mainly 32bit, Win7 Enterprise running IE9 and Office 2010 Professional Plus, but there's a few 64bit machines as well. The SharePoint farm has 1 WFE, 1 App Server running search and CA, and a shared database server running SQL
    2005 SP4.  SharePoint is 64bit MOSS 2007 with the latest CU.
    We've checked the logs on the client as well as on the server and there aren't any helpful entries.  We've also run Process Monitor, also with no helpful entries.  We're planning to run something like Fiddler next.
    It's not everyone, because there are many people are accessing the SharePoint system and the same files.  It is also not a permission thing, as we've tested by giving the users elevated permissions with no changes.  One person experiencing
    the errors is a Site Collection Admin.  That same person ran a test where I coped a simple Excel file into a Document Library which contained a problem file.  They were able to open it Read Only no problems that day, but the next day, the same
    file gave them an error.   In their case, they usually get a "xxx is not checked out" error and only occasionally get the "No connectivity with the server" error.
    We've tried lots of things including:
    Deleting IE cache
    Deleting SharePoint Drafts and webcache folder contents
    Running IE without add-ons
    Upgrading and Downgrading IE
    Uninstalling and re-installing IE
    Reinstalling our SSL certs
    Repairing Office
    Removing and then adding back in the Microsoft Office "Microsoft SharePoint Foundation Support" Office Tool 
    Deleting all HKLM and HKLU Office registry settings
    Toggling IE Compatibility Settings
    Toggling the IE Automatic Logon option
    Toggling the location of checked out files
    Adding the site in the trusted sites list
    Adding the site to the WebClient\Parameters registry locations
    Making sure the WebClient service is started
    Rebooting the machine (lol :)
    This is becoming a serious issue, not just because of the inconvenience for the users having to check out every document they want to read, but we have some files with macros that open up other documents to run which are now failing.  There aren't
    "check out" workarounds for some of those macros.
    We're planning to open a ticket with Microsoft, but I'm throwing it out here first in case someone has run into this before, or may have some suggestions on what to try next.  Thanks!
    -Richard.
    PS  I think this needs to be in the "General" forum instead?

    It took three days of dedicated troubleshooting, but I have found the cause of the errors, and a couple of fixes.  It helped tremendously that my own machine was throwing the error.  I have scheduled a couple of users to work with me to test the
    various fixes, to see which one works best, so the story isn't over yet.
    I had backed up my c:\users profile folder and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList registry key so I could restore my profile after I was done.  I made a copy of the profile folder and was using that for awhile,
    but then made another copy where I had deleted a lot of content out of it so that the copies would go faster.  Since a newly created profile did not have errors, I was trying to copy back as much of the profile as possible to make it easier for our users
    to get back to work.  Instead of blowing away their profile and starting from scratch (which we know worked) I wanted to narrow down what was causing the error and just skip that from the restore.  The concept was to keep as much as the users profile
    in tact (application settings, etc.) not just restoring their desktop and My Documents folders.
    When we first tested a few weeks ago, simply copying the folder contents didn't reproduce the error.  I then tried xcopy, but got the "can't read file" error.  Then I tried robocopy, and ran into the "junction" problem. 
    I went back to xcopy, and found that placing the excludes.txt file in the windows/system32 folder eliminated the error.
    So the process went as follows: 
    Reboot and log into the machine as another user
    Delete the profile and associated registry key
    Reboot and log into the machine as the affected user, creating a new profile, and there is no error
    Reboot and log in as the other user
    xcopy the contents of the skinned-down backed-up profile to the newly created profile
    Reboot and log in as the affected user, and the error occurs
    Repeat the above, but add items in the excludes.txt file to see what, when eliminated, causes the error not to appear in the last step
    I eventually found that skipping the c:\users\<profile folder>\appdata\local\Microsoft\office\14.0 folder allowed the entire profile to be copied over without the error occurring.  That was strange, because we've cleaned out the cache folders
    before which didn't fix the issue. 
    So I went about it the opposite way, and tried to delete the 14.0 folder from the restored profile, and after reboot, the error still occurred.
    What eventually worked was deleting the 14.0 folder and copying over a 14.0 folder from a newly created profile!
    One way to do this was to:
    Reboot and log in as another user
    Rename the c:\users profile folder
    Rename the appropriate [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList] registry key
    Reboot and log in as the affected user, confirm that there is no error
    Reboot and log in as the other user
    Copy the C:\Users\<profile folder>\AppData\Local\microsoft\Office\14.0 folder to the other user's desktop
    Delete new profile folder, and rename the backup to be the production folder
    Delete the C:\Users\<profile folder>\AppData\Local\microsoft\Office\14.0 folder and then paste the 14.0 copy from the desktop
    Reboot and log in as the affected user, confirm that there is no error
    We've tried this on a couple machines and it works.  I had to run Windows Explorer as Administrator to access the other profile's folders.
    We've also successfully copied a 14.0 folder created by one profile on one affected computer over another profile's folder on another computer, eliminating the error, so we're trying that first, as that is fewer steps.
    We may attempt to script this, but the self-help instructions are only 5 lines long:
    Reboot and log into the affected computer with another account
    Go to <link to location of 14.0 folder on network> and copy the 14.0 folder
    Run Windows Explorer as Administrator
    Go to c:\users\<profile folder>\appdata\local\microsoft\office and delete the 14.0 folder, and paste the copied 14.0 folder (trying to overwrite it makes Win7 want to merge the folders)
    Reboot and log into your normal account, and confirm the error is gone
    I'll come back and report after we go into the field with this fix, but after the few tests, I am cautiously optimistic that this is it.

  • How to copy-paste frames from one document to other with there respective layers intact?

    Hi All,
         I am facing an issue while copy paste frames from one document to other. I have a 3 frames in first documents each one on different layer. First document has 3 layers. The second document too have 3 layers , I am copying frames from first document to scrapdata using 'ICopyCmdData ' and 'kCopyCmdBoss'. I have 'Paste Remembers Layers' menu 'Checked' on Layer panel. I am using following function to copy frames to scrapdata.
    bool16 copyStencilsFromTheTemplateDocumentIntoScrapData(PMString & templateFilePath)
         bool16 result = kFalse;
        do
            SDKLayoutHelper sdklhelp;
            PMString filePathItemsToBeCopiedFrom(templateFilePath);  //("c:\\test\\aa.indt");
            IDFile templateIDFile(filePathItemsToBeCopiedFrom);
            UIDRef templateDocUIDRef = sdklhelp.OpenDocument(templateIDFile);
            if(templateDocUIDRef == UIDRef ::gNull)                 
                break;
            ErrorCode err = sdklhelp.OpenLayoutWindow(templateDocUIDRef);
            if(err == kFailure)                 
                break;
            InterfacePtr<IDocument> templatedoc(templateDocUIDRef,UseDefaultIID());
            if(templatedoc == nil)               
                break;
            InterfacePtr<ISpreadList>templateSpreadUIDList(templatedoc,UseDefaultIID());
            if(templateSpreadUIDList == nil)                  
                break;
            IDataBase * templateDocDatabase = templateDocUIDRef.GetDataBase();
            if(templateDocDatabase == nil)                  
                break;
            UIDRef templateDocFirstSpreadUIDRef(templateDocDatabase, templateSpreadUIDList->GetNthSpreadUID(0));
            InterfacePtr<ISpread> templateSpread(templateDocFirstSpreadUIDRef, IID_ISPREAD);
            if(templateSpread == nil)                 
                break;
            UIDList templateFrameUIDList(templateDocDatabase);
            if(templateSpread->GetNthPageUID(0)== kInvalidUID)                  
                break;      
            templateSpread->GetItemsOnPage(0,&templateFrameUIDList,kFalse,kTrue);  
            InterfacePtr<ICommand> copyStencilsCMD(CmdUtils::CreateCommand(kCopyCmdBoss));
            if(copyStencilsCMD == nil)                
                break;
            InterfacePtr<ICopyCmdData> cmdData(copyStencilsCMD, IID_ICOPYCMDDATA);
            if(cmdData == nil)                 
                break;
            // Copy cmd will own this list
            UIDList* listCopy = new UIDList(templateFrameUIDList);
            InterfacePtr<IClipboardController> clipboardController(gSession,UseDefaultIID());
            if(clipboardController == nil)              
                break;
            ErrorCode status = clipboardController->PrepareForCopy();
            if(status == kFailure)                  
                break;
            InterfacePtr<IDataExchangeHandler> scrapHandler(clipboardController->QueryHandler(kPageItemFlavor));
            if(scrapHandler == nil)                 
                break;
            clipboardController->SetActiveScrapHandler(scrapHandler);
            InterfacePtr<IPageItemScrapData> scrapData(scrapHandler, UseDefaultIID());
            if(scrapData== nil)                
                break;
            UIDRef parent = scrapData->GetRootNode();
            cmdData->Set(copyStencilsCMD, listCopy, parent, scrapHandler);
            if(templateFrameUIDList.Length() == 0)       
                return kFalse;      
            else      
                status = CmdUtils::ProcessCommand(copyStencilsCMD);    
            if(status != kFailure)
              result = kTrue;
            sdklhelp.CloseDocument(templateDocUIDRef,kFalse,K2::kSuppressUI, kFalse);
        }while(kFalse);
        return result;
    After this I need to close first document. Now I am opening the second document from indt file which has same number of layers as first document. I am trying to paste frames from scrap data to second document using '' 'ICopyCmdData ' and 'kPasteCmdBoss' as shown in follwoing function
    bool16 pasteTheItemsFromScrapDataOntoOpenDocument(UIDRef &documentDocUIDRef )
        bool16 result = kFalse;
        do
               InterfacePtr<IClipboardController> clipboardController(gSession,UseDefaultIID());
                if(clipboardController == nil)
                    break;
               InterfacePtr<IDataExchangeHandler> scrapHandler(clipboardController->QueryHandler(kPageItemFlavor));
               if(scrapHandler == nil)               
                    break;
               InterfacePtr<IPageItemScrapData> scrapData(scrapHandler, UseDefaultIID());
                if(scrapData == nil)
                   break;
                     //This will give the list of items present on the scrap
                UIDList* scrapContents = scrapData->CreateUIDList();
                if (scrapContents->Length() >= 1)
                    InterfacePtr<IDocument> dataToBeSprayedDocument(documentDocUIDRef,UseDefaultIID());
                    if(dataToBeSprayedDocument == nil)
                       break;
                    InterfacePtr<ISpreadList>dataToBeSprayedDocumentSpreadList(dataToBeSprayedDocument,UseDef aultIID());
                    if(dataToBeSprayedDocumentSpreadList == nil)
                         break;
                    IDataBase * dataToBeSprayedDocDatabase = documentDocUIDRef.GetDataBase();
                    if(dataToBeSprayedDocDatabase == nil)
                         break;    
                    UIDRef spreadUIDRef(dataToBeSprayedDocDatabase, dataToBeSprayedDocumentSpreadList->GetNthSpreadUID(0));               
                    SDKLayoutHelper sdklhelp;
                    UIDRef parentLayerUIDRef = sdklhelp.GetSpreadLayerRef(spreadUIDRef);
                    InterfacePtr<IPageItemScrapData> localScrapData(scrapHandler, UseDefaultIID());
                    if(localScrapData == nil)
                        break;
                    if(parentLayerUIDRef.GetUID() == kInvalidUID)
                        break;
                    InterfacePtr<ICommand> pasteToClipBoardCMD (CmdUtils::CreateCommand(kPasteCmdBoss));
                    if(pasteToClipBoardCMD == nil)
                        break;
                    InterfacePtr<ICopyCmdData> cmdData(pasteToClipBoardCMD, UseDefaultIID());
                    if(cmdData == nil)
                        break;
                    if(scrapContents == nil)
                        break;               
                    PMPoint offset(0.0, 0.0);
                    cmdData->SetOffset(offset);
                    cmdData->Set(pasteToClipBoardCMD, scrapContents, parentLayerUIDRef );
                    ErrorCode status = CmdUtils::ProcessCommand(pasteToClipBoardCMD);
                    if(status == kSuccess)
                        CA("result = kTrue");
                        result = kTrue;
                }//end if (scrapContents->Length() >= 1)       
        }while(kFalse);
        return result;
         Here in above function its required to set Parent Layer UIDRef and because of this all frames are getting paste in one layer.
    Is there any way we can paste frame in there respective layers?
         Also I need to work this code with CS4 server and desktop indesign.
    Thanks in advance,
    Rahul Dalvi

    Try,
    // dstDoc must be FrontDocument
    InterfacePtr<ILayoutControlData> layoutData(Utils<ILayoutUIUtils>()->QueryFrontLayoutData());
    InterfacePtr<ICommand> createMasterFromMasterCmd(CmdUtils::CreateCommand(kCreateMasterFromMasterCmdBoss));
    createMasterFromMasterCmd->SetItemList(UIDList(srcMasterSpreadUIDRef));
    InterfacePtr<ILayoutCmdData> layoutCmdData(createMasterFromMasterCmd, UseDefaultIID());
    layoutCmdData->Set(::GetUIDRef(layoutData->GetDocument()), layoutData);
    CmdUtils::ProcessCommand(createMasterFromMasterCmd);

  • If you need to send more than one document via email to a recipient with a PC, how do you convert them to a Word or PDF before sending them in one email?

    When trying to send an email to a PC user and need to send multiple documents, in the old version of iPages, you could save the document as a Word or PDF file then attach them to the email.  I don't see how to do this with the new version.  Therefore, the only way I can see to accomplish this task is to go to each document and send them individually in another version.  Otherwise, the PC user will not be able to view the documents - correct.  There must be a way to convert and save the documents like before so numerous documents can be sent at once.  Please help!
    Melody

    What fruhulda said. In addition, in the Mail composition window, I recommend that you select the paperclip icon from the Toolbar, and enable Send Windows-Friendly Attachments.
    You can also select multiple files in the Finder and drag them onto the composition window. In my experience, the documents resist an iconic state, so right-click on just one, and choose View as Icon from the contextual menu. This will transform all attached documents into icons.
    If you want to send just one document from within Pages v5, use the Share icon in the Toolbar and select Send a Copy > Email. You can then choose PDF (and its image quality), or Word (.docx default, or .doc) document formats that will be attached as an icon in a new pop-up Email composition window.

  • How to move sections from one document to another?

    In Pages 08 I could merge two documents by simply moving the sections from one document to the other one. By activating the thumbnail-view you could drag and drop sections. In Pages 5.2.2 that doesn't work. Any suggestions? Copy and paste doesn't work, because the layout is broken afterwards.
    Jan

    You only recourse in Pages v5 (any release) is copy/paste between documents, and its layout consequences; follow Peter's advice, or use a non-Apple word processing solution that allows you to get work done effectively. Apple put dumbnation into Pages v5.

  • How do I insert a section with another time signature than the one im inser

    How do I insert a section with another time signature than the one im inser

    Yeah I've been trying to figure this out as well, for example... my song might be 90 bpm and I want to program another track using midi but have it play at 180 bpm. The only way I've found to work around this is to write my 180 bpm part make a sample of this and then loop this into the 90 bpm song.

  • My document seems to be in three distinct sections. I think that because the thumbnails have three distinct yellow frames around them. Can I merge these into one document?

    My document seems to be in three distinct sections. I think that because the thumbnails have three distinct yellow frames around them. Can I merge these into one document?

    Gill,
    The three sections are one document. There are usually good reasons for Section Breaks, so you'll want to be sure that you really need to delete them. To get rid of the Section Breaks, just place your cursor at the top of the page following the break and press Delete until the Section Break goes away. It should take only one click for each case.
    Jerry

  • Does anyone knows a way to work with various Pages documents at the same time, for example with a system of tabs to switch directly from one document to the other?

    Hello everyone,
    Working with numerous Apple Pages documents at the same time, I am looking for an efficient solution to switch faster from one document to the other. Integrating all them in a single framework, for exemple by switching from one to the other with a system of tabs would be of great help. Does anyone knows if such a possibility exists?
    Thanks in advance,
    Jean-Baptiste

    jbp- wrote:
    Thanks. It works and is very efficient. Not as much as a real system of tabs, but is allows to switch very fast between different documents. Only regret I would have is that it doesn't work with a document which is on full page mode. But that's already very helpful!
    You're very welcome but Peggy really gave you the answer already. 
    With regard to the full screen apps, I don't think Apple have yet worked out how to make them elegantly coexist with other apps.  The closest you can get is the four finger swipe gestures you may use on a trackpad if you have one (Mission Control and App Exposé).
    In fact nowadays I use the App Exposé (four finger swipe down gesture) more often than I use Command-Accent to move between documents in the same app (when not in full screen).  It also as the advantage of showing you thumbnails of recently opened documents below the ones already open within the app.  If you haven't tried it, I suggest you give it a whirl.
    I can't remember now but I think the four finger gestures are not enabled by default and you must switch them on in System Preferences > Trackpad > More Gestures. 

  • Importing Multiple Items in One Document from Goods Receipt (With Serial)

    Hi guys,
    Can you render an example of a multiple items with Serial in one document uploading to Goods Receipt?
    Thank you

    Good Day Sir
    What I did is.
    The Serial BaseLineNum is same as LineNum in DocLines
    Serial Record Key is same as the Documents and Document Lines Record Key
    Serial Line Num is incremented starting 0.
    But I have come up an error
    IGN1.WhsCode Ln9
    'ItemCode* cannot be released from stock without a full selection of serial/batch no.'
    Application-defined or object-defined error
    65171
    Thanks Sir

  • I want to create a form with a manager completing one section and a staff member another. Both sections protected by different passwords.

    I want to create a form with a manager completing one section and a staff member another. Neither should be able to edit the others. Can different sections be password protected by different passwords? I'm thinking there might be an "official use only" function.

    You can use 2 forms in one portfolio.

Maybe you are looking for

  • Using JProgressBar when sending an email

    Good day to all! How can I use the JProgressBar to monitor progress when sending an email? I am using the Email package by Jakarta Commons. Somehow, I need my application to display progress since the send( ) function takes a considerable amount of t

  • Error in Graphic Modeler Process

    Dear Gurus !!!! I am new to SAP CRM as a functional consultant. During Segmentation as i click on Graphic Modeler i found blank screen . Please refer enclosed screen short and guide me through your expertise that how this problem can be solve. thanks

  • How can i get the port used for https

    Hi All, does aynbody knows how can i get in the portal the port used for https connection, cause the link send by e-mail notification, when user has been invited in a room doesnt work... i tried to use the command netstat -ao and i tried use the port

  • How to Remove Business Partner Address using DI Server

    Hello, I need to remove Business Partner Addresses using DI Server, the example in the SDK only mentions the remove of the entire business partner, but I need to delete only one of the business partner addresses, how can it be done?

  • Themes have disappeared

    After updating to the latest version of Firefox all the themes under addons have simply disappeared, and when I click get addons the page goes into perpetual load, with the little loading circle swirling away. The themes page never loads...