Using API - move course from subsection to another?

Is it possible - using web services / Java API - to move a course from one section to another?
If so, which methods should I use? Either it is a single command (which I could not find), or it is a procedure by which where you recreate an entire album from scratch, by first getting its properties from the original location, then recreating that exact "structure" in the new section. Then what happens with the files one uploaded?
I'm very new to jsp, had to setup a server yesterday with Tomcat to try out the API.
Thanks!
John Pariseau
Message was edited by: ururk

It worked! The title wasn't copied over, however. I had to add:
destCourse.setName(course.getName());
destCourse.setShortName(course.getName());
to set the name. I had to set both, as it added newCourse to both the name and short name when ShortName was not specified. The Otherwise, it seems permissions copied over properly.
Site site = conn.getSite();
List sections = site.getSections();
Section section = (Section) sections.get(0);
Division division = (Division) section.getSectionItems().get(5);
Section subSectionto = (Section) division.getSections().get(2);
Section subSectionfrom = (Section) division.getSections().get(3);
Course course = (Course) subSectionfrom.getSectionItems().get(0);
Course srcCourse = course; // find the source course in the site tree
Section destSection = subSectionto; // find the destination section
Course destCourse = new Course();
// if you want to make any changes as you copy, call setters on destCourse here...
destCourse.setName(course.getName());
destCourse.setShortName(course.getName());
ITunesUResponse resp = conn.addCourse(destSection.getHandle(), srcCourse.getHandle(), destCourse);
Message was edited by: ururk
Message was edited by: ururk
Message was edited by: ururk

Similar Messages

  • Move email from inbox to another folder, still appears in inbox. How to solve?

    move email from inbox to another folder, still appears in inbox. How to solve?

    Fixed the Trouble Shooting information in previous post.

  • How Can We move Suppliers from SOB to Another

    Hi to All,
    Would like to know how we can move suppliers from 1 SOB to another SOB.
    Basically I was given a list of suppliers from a SOB and need to move those suppliers to another.
    If anyone has gone through these steps. Please advise accordingly.
    Thanks

    Hello.
    For the best of my knowledge, SET_OF_BOOKS_ID is populated at suppliers level but not used since all sets of books can share the same supplier.
    Which is your version of APPS?
    Octavio

  • Unable to  move data from Infooject to another Infoobject in APD

    Dear BW experts.
    I have data in Infoobject1 with 10 columns and I have another Infooject2 with 11 columns.
    I need to move data from infoobject1 to Infoobject2 both have identical fields except for the 11th column. In addition to filling up the common 10 columns, I need to calculate the data on the 11th column based on the previous record for each record. Hence I cannot move data directly from Inobject1 to Infoobject2.
    I try to use Analysis Process designer. In this, I could consider Infoobject1 as the source but in the choice of the target, I do not see Infoobect  but only see DSO and other objects not relevant for me.
    How do I move data from infoobject1 to Infoobject2 using ABAP routine in the APD.
    Kindly suggest.
    Thanks,
    Sai

    Hi,.
    See usefull Articles in
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Analysis Process Designer (APD)
    Analysis Process Designer (APD): Part - 1
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f06353dd-1fe3-2c10-7197-dd1a2ed3893e?quicklink=index&overridelayout=true 
    Analysis Process Designer (APD): Part - 2
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/analysis%20process%20designer%20(APD)%20Part%20-%202.pdf 
    Analysis Process Designer (APD): Part - 3
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/analysis%20process%20designer%20(APD)%3a%20Part%20-%203.pdf
    Thanks
    Surendra Reddy

  • Move costs from WBS to another

    Dear Gurus,
    I kindly ask you to tell me how can I move some costs (hour of personnel type of cost S43...) from a WBS on a project to a WBS on another project.
    I know I can use KB21N: in that way I have to pull out costs from a WBS though the costs center and then do another movement in order to charge the costs on the WBS receiver always thourgh the cost center.
    Is there a way to do it directly?
    Thanks a lot!
    Sara

    S43.. is of type indirect activity allocation,cost element category 43, hence can be used only with reference to activity allocation. Please use any other cost element, be it primary or secondary.
    Or else you could cancel the original activity allocation through KB67 and renter through KB21N. You may also want to try reposting of activity allocation posting through KB65.
    For number range, go to transaction KANK and enter the controlling area. Then click on Change groups icon on top left. Click on binoculars and search for KAMV (Manual Cost Allocation) This is SAP standard and most likely you will find it.

  • HELP!  Trying to move master from one to another

    I've got pretty much the same problem. Let me explain what I've done so far.
    I uploaded photos to Album(Sledding) under Project(Winter). There were a few photos that belonged in the Album(Landscape) also under Project(Winter). So I dragged and dropped for Sledding Album to Landscape Album. I thought this would move them and not leave them in the original. But they were still there. So I went and tried to delete one, I got the message
    "Managed master files stored in the Aperture Library will be moved to the Trash.
    Referenced master files may be used by another project, library, or application. They will remain in their current locations unless you choose to move them to the Trash.
    All versions, adjustments, and metadata will be permanently removed from your library. This operation cannot be undone."
    Then went and check and the photo was removed from both albums and the project.
    I've messed around and deleted one from each of the different albums and project just to see what would happen. And the same happens no matter what album or project I'm in.
    I really need for someone to explain how this Master thing works.

    Tried Robocopy and Richcopy but not having any luck , the files transfer but the permissions are not transferring with them , there taking on the permission of the new system.
    Any suggestions
    This topic first appeared in the Spiceworks Community

  • How do I move pictures from iPad to another device ?

    My father intends to give me his iPad Air. Before I take over the iPad and reset it he had asked me to transfer all the photo's on it another device.
    He has an apple SD Card reader that connects to the iPad so is it possible to transfer the photos from the ipad to the SD card ?
    If not, what other options are open to me to save these photo's to an alternative device ?
    My knowledge of how to use an iPad is very very minimal - I'm new to the iPad and currently struggling to understand how to use it.
    Thanks 

    Photos will NOT transfer off the iPad to the SD card. The camera connection kit is for import only.
    Your easiest thing will be to use a service like Dropbox or other cloud service. Upload the photos there, download them where you want them to be. There may also be some photo apps that have better transfer services, but I don't have any to recommend.

  • How can I move mail from Gmail to another account?

    Mail.app in Mavericks is incompatible with Gmail. I use Gmail. I have about 2GB of mail, most of it in a few dozen archive folders, stored on Gmail, and (I think) duplicated locally on my Mac Mini.
    I think my best recourse is to switch to an email service provider that conforms to the IMAP standard (which Gmail does not). Assuming I find one, I will have both accounts, Gmail and the new one, in Mail.app. How can I move the mail from Gmail to the other account?
    In Mail.app in Mavericks, All Mail must be marked to show as a folder, and when I move a message from a folder in Gmail it will still be in the All Mail folder.
    When all folders are empty, including the Inbox, can I be sure that every message has been moved to the new account, even though every message is still in the All Mail folder?

    Mail.app in Mavericks is incompatible with Gmail. I use Gmail. I have about 2GB of mail, most of it in a few dozen archive folders, stored on Gmail, and (I think) duplicated locally on my Mac Mini.
    --> mine's working fine. I know there are issues, but it should work
    I think my best recourse is to switch to an email service provider that conforms to the IMAP standard (which Gmail does not).
    --> yes, it would be nice if they adhered to standards.  That said, mine works great.  So far.
    Assuming I find one, I will have both accounts, Gmail and the new one, in Mail.app. How can I move the mail from Gmail to the other account?
    --> If all you want to do is keep your history, make a local folder on your mac and drag all the mail messages there (both se4nt and incoming).  I am not sure what will happen if you later drag those into the new Xmail account
    When all folders are empty, including the Inbox, can I be sure that every message has been moved to the new account, even though every message is still in the All Mail folder?
    --> Dont look in "all mail". Open your inbox and look at each individual inbox.
    Good luck,. But first, try to fix your account.
    Grant

  • Move focus from one to another itemRenderer inside DataGrid itemRenderer

    I have a mx: DataGrid with 4 columns that have a itemRenderer with the following settings:
    - Mx:DataGrid:
    <code>
    <mx:DataGrid id="itensPedidoCompraList"
          width="100%"
    height="120"   
    dataProvider="{ model.pedidoCompra.itens }"
    editable="true"
    itemEditEnd="itensPedidoCompraList_itemEditEndHandler(event)">
    </code>
    - Mx:DataGridColumn:
    <code>
    <mx:DataGridColumn headerText="{resourceManager.getString('cadastroPedidoCompra', 'ident.PercentualDesconto') }"
                       width="60"
                       textAlign="right"
                       rendererIsEditor="true"
                                          editorDataField="data">
          <mx:itemRenderer>
                     <fx:Component>
                           <mx:Canvas>
                                     <input:NumberInput width="55"                                                                number="@{ data.percentualDesconto }"/>
                           </mx:Canvas>
                </fx:Component>
          </mx:itemRenderer>
      </mx:DataGridColumn>
    </code>
    The user clicks on the line of the grid and click on the column to edit.
    After him change or add value, ENTER key and have to move the focus to another column in the same line.
    The way I'm doing, is moving to the column below.
    What is the best way to do to move to the right column?
    thank you

    Try adding a capture phase event listener to DataGrid for keyDown and changing the key from ENTER to TAB

  • Trying to move songs from 1comp to another- NEED HELP

    I was orginally trying to move my itunes folder from my old comp to my new one. Easy enough right? Wrong. I copied the folder and put it on my 40gb ipod then went to put it on my comp. Well it only put bout 1/3 of my music like the first 15 folders. It started saying files were corrupt. Then I started getting the ! with the folder on my ipod. I tried reseting it but that doesn't work and it is fully charged. I'm using Windows XP. Plz help. I just sold my other laptop so I need to get these songs off the other computer.

    I have a similar problem, my hard disk has been reformatted and my library of songs is now only on the iPod, can i transfer them back from the iPod to the computer or is my library now only accessible on my iPod.

  • Move data from alv to another perform

    i have an alv, and i make 1 field etidable  ( fieldcatalog-edit      = 'X'.)
    my qa: when i change the field i want to pass it to another itab how???

    Hi,
    Look at this sample code -:D It uses OO ALV.
    code
    *& Report Z_DUMMY_ATG
    REPORT Z_DUMMY_ATG NO STANDARD PAGE HEADING.
    TABLES: SPFLI.
    *============================================================
    Variables
    *============================================================
    DATA: OK_CODE TYPE SY-UCOMM,
    L_MODE TYPE RAW4,
    W_TABIX TYPE SY-TABIX.
    *============================================================
    Tablas internas
    *============================================================
    DATA: L_S_LAYO TYPE LVC_S_LAYO.
    DATA: WA_EDIT TYPE LVC_T_STYL WITH HEADER LINE.
    DATA: IT_EDIT TYPE LVC_T_STYL WITH HEADER LINE.
    DATA: BEGIN OF G_WA_SFLIGHT.
    INCLUDE STRUCTURE SPFLI.
    DATA: CELL_TAB TYPE LVC_T_STYL.
    DATA: END OF G_WA_SFLIGHT.
    TYPES: BEGIN OF SPFLI_TAB.
    INCLUDE STRUCTURE SPFLI.
    TYPES: CELL_TAB TYPE LVC_T_STYL.
    TYPES: END OF SPFLI_TAB.
    TYPES: SPFLI_TABS TYPE STANDARD TABLE OF SPFLI_TAB.
    DATA: GI_SFLIGHT TYPE SPFLI_TABS.
    DATA: BEGIN OF AUX_TAB OCCURS 0,
    CARRID LIKE SPFLI-CARRID,
    CONNID LIKE SPFLI-CONNID,
    CITYFROM LIKE SPFLI-CITYFROM,
    AIRPFROM LIKE SPFLI-AIRPFROM,
    CITYTO LIKE SPFLI-CITYTO,
    AIRPTO LIKE SPFLI-AIRPTO,
    END OF AUX_TAB.
    DATA: SPFLI_TAB_WA LIKE G_WA_SFLIGHT.
    FIELD-SYMBOLS: SET_TABLE_FOR_FIRST_DISPLAY(
    EXPORTING I_STRUCTURE_NAME = 'SPFLI'
    IS_LAYOUT = L_S_LAYO
    CHANGING IT_OUTTAB = GI_SFLIGHT ).
    *============================================================
    Dynpro
    *============================================================
    CALL SCREEN 100.
    *& Module STATUS_0100 OUTPUT
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS '100'.
    ENDMODULE.
    *& Module USER_COMMAND_0100 INPUT
    MODULE USER_COMMAND_0100 INPUT.
    OK_CODE = SY-UCOMM.
    IF OK_CODE = 'BACK'.
    SET SCREEN 0.
    LEAVE SCREEN.
    CLEAR OK_CODE.
    ENDIF.
    ENDMODULE.
    /code
    Greetings,
    Raj.

  • How to move iPhone from one to another Mac?

    We have two laptops and one iPhone. My contacts, calendar, bookmarks and notes sync between the two Macs and MobileMe and the iPhone. At present I sync my Photos, Apps and podcasts on my iPhone with my PowerBook, but since we are going on a trip and take along my wife's smaller and lighter MacBook, I'd like to sync from now on to her MacBook.
    How can I "migrate" the iPhone to the other computer without loosing my applications etc. and the data on the iPhone?
    Your suggestions/pointers/solutions would be highly appreciated. Thanks and cheers, Veit

    The iphone will sync with one computer at a time.
    When you sync to another, it will erase the current itunes content and pics from the iphone and replace with content from the new computer.
    A forum search is an excellent suggestion. This is asked and answered quite often.
    You can copy the entire itunes folder from the PB to the macbook. This should make the transition as seamless as possible. However, I believe that you would lose the content that is currently in itunes on the macbook as the new itunes folder would replace the old.

  • Cant move paragraph from textFrame to another

    what is the problem with the move method???
    <pre>var myDoc = app.activeDocument;
    var myPStmuna = myDoc.paragraphStyles.item("תמונה");
    var myPScomment = myDoc.paragraphStyles.item("הערה");
    for(i=0;i<myDoc.pages.length;i++){
      myPage=myDoc.pages.item(i);
      tf=myPage.textFrames.item(0);
      for(g=0;g<tf.paragraphs.length;g++){
        if(tf.paragraphs.length>0){
          myPara=tf.paragraphs.item(g);
          if(myPara.appliedParagraphStyle == myPStmuna){
            newTF=myPage.textFrames.add();
            myPara.move(LocationOptions.affter,newTF.insertionPoints.item(0));
            newTF.fit(FitOptions.frameToContent);
        }else{
          break;
    }</pre>

    I tried newTF.contents="bla bla..." and it gets into the newTF.
    this is my updated code:
    <pre>var myDoc = app.activeDocument;
    var myPStmuna = myDoc.paragraphStyles.item("תמונה");
    var myPScomment = myDoc.paragraphStyles.item("הערה");
    for(i=0;i<myDoc.pages.length;i++){
      myPage=myDoc.pages.item(i);
      tf=myPage.textFrames.item(0);
      for(g=tf.paragraphs.length-1;g>=0;g--){
        if(tf.paragraphs.length>0){
          myPara=tf.paragraphs.item(g);
          if(myPara.appliedParagraphStyle == myPStmuna){
            newTF=myPage.textFrames.add();
            myBounds = myGetBounds(myDoc,myPage);
            newTF.geometricBounds = myBounds;
            newTF.contents="bla bla\r";        
            myPara.move(LocationOptions.atEnd,newTF);
        }else{
          break;
    function myGetBounds(myDocument, myPage){
    var myWidth = myDocument.documentPreferences.pageWidth;
    var myHeight = myDocument.documentPreferences.pageHeight;
    var myX1 = myPage.marginPreferences.left;
    var myY1 = myPage.marginPreferences.top;
    var myX2 = myWidth - myPage.marginPreferences.right;
    var myY2 = myHeight - myPage.marginPreferences.bottom;
    return [myY1, myX1, myY2, myX2];
    }</pre>

  • Move files from one server to another

    <cfset spath = "\\ght4\clients\abc\new\256\">
    <cfset dpath ="\\ffg\clients\def\new\kij">
    <cffile action = "move" source = "#spath#" destination = "#dpath#">
    It generating an error Is there a way to move files from server to another in coldfusion

    You talk to your network administrator(s) and ask them what permissions have been assigned to the user that the ColdFusion service|demeon is running as.
    P.S.  By default, on a windows machine, ColdFusion runs as a "localSystem" user, which usually has *no* permissions to other systems.

  • Movement type from QM to Unrestricted

    Hi ALL,
    How to move the material from QM to Unrestricted...I am aware of 321 mvt type..
    Please suggest me diffferent mvt type..
    Thanks,
    Regards,
    Ameya k.

    Hello Ameya,
    The only one mvt type 321 is used to move material from QI to UR - Unrestricted. This can be done through MB1B transaction code (if QM module is not active) or using QA11 (usage Decision) as explained by Srinivas.
    If you have any other business scenario, please let us know so we can address accordingly.
    Regards
    Arif Mansuri

Maybe you are looking for

  • Why can't I drag things to the timeline?

    I decided to upgrade to Adobe Premiere Pro CS3 last night after long debate and not wanting to spend the money. Everything is going pretty well now after transferring my project created using Adobe Premiere Elements 3.0 into the new program. But now

  • Error while setting up existing code--WSAD+EJB container caught java.lang.

    [5/8/08 9:12:31:741 IST] 3bb9beb5 BeanMetaData E CNTR0035E: EJB container caught java.lang.NoClassDefFoundError: com/scb/scp/util/exceptions/SCPException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMetho

  • Lost all pictures and contact from i phone 4s when trying to download to a laptop

    lost all pictures and contracts from a 4s phone trying to download to a laptop

  • Getting repeating frames according to Parameter value

    Dear Users....I wanna print bar codes in a report based on a query. Now the scenario is that users want to take multiple prints of the same barcode on the same page. I think its possible only if the repeating frame gets repeated as many times as user

  • Problem in loading a DTP

    Hi, I´m using BW 7.0, i just installed SP13. I load 0VENDOR ATTR without problem, but I had a short dump loadind a DTP Text of 0VENDOR. Following message: "ASSERTION_FAILED" " " "CL_RSTRAN_GEN_STEP_DIRECT=====CP" or "CL_RSTRAN_GEN_STEP_DIRECT=====CM0