Archiving News Items

Can someone please help me with how to archive news items after 30 days? I still want these news items to be accessable to users. So I guess I need to know 2 things:
1. How to archive news items
2. How to retrieve archived news items
Thanks,
Tara

Hi Tara,
This depends on what you call "archived". If you just want news not to be published after a certain date, the Timedependent Publishing Service maybe would be enough for you. See http://help.sap.com/saphelp_nw04/helpdata/en/e8/a9a76828b8dc469969ff450ec81ced/frameset.htm
If you want them to move to some "archive" folder (located wherever), you could implement your own SchedulerTasks which regulary check documents if they are "old enough" and then move them into some archive folder.
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

Similar Messages

  • Archiving News

    Hello,
    Has anybody written a code that automatically reads the date on a News File (XML Form) and moves it to an Archive folder if the News item has expired?
    Thanks,
    EA

    Hi Tara,
    This depends on what you call "archived". If you just want news not to be published after a certain date, the Timedependent Publishing Service maybe would be enough for you. See http://help.sap.com/saphelp_nw04/helpdata/en/e8/a9a76828b8dc469969ff450ec81ced/frameset.htm
    If you want them to move to some "archive" folder (located wherever), you could implement your own SchedulerTasks which regulary check documents if they are "old enough" and then move them into some archive folder.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Custom SharePoint 2010 designer page throws "The data source control failed to execute the insert command" exception while adding the new item after the August 13, 2013 CU has installed

    We have the SharePoint Server 2010 with SP1 environment on which the custom SP2010 designer pages were working as expected before the
    August 13, 2013 CU has installed. But, getting the below exception while trying to add the new item after the CU has installed.
    Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteInsert(IDictionary values)     at
    System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65  w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control
    failed to execute the insert command. 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex)     at System.Web.UI.DataSourceView.Insert(IDictionary
    values, DataSourceViewOperationCallback callback)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e)    
    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
    inclu... 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65* w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected ...deStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    I have tried changing the "DataSourceMode" as below, now the insert command is working, but update command is not working.
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" />
    Also, the lookup dropdown fields are displaying the value as "<a href="Daughterhttp://cpsp10/sites/Employees/_layouts/listform.aspx?PageType=4&ListId={8F62F444-FB6A-4F03-9522-C4696B45DCD1}&ID=10&RootFolder=*">Daughter</a>"
    instead of only "Daughter".
    Please provide the solution to get rid of this issue.
    Thanks
    Ramasubbu

    Try below:
    http://social.technet.microsoft.com/Forums/en-US/ae910269-3a0c-4506-844b-e8bc89d95b71/data-source-control-failed-to-execute-the-insert-command
    http://blog.jussipalo.com/2012/01/sharepoint-2010-data-source-control.html
    While there can be many causes for this generic error message, in my case the first parameter or ddwrt:DataBind function inside the SharePoint:FormFields element was
    'i' and I was working with an Edit Form. Changing it to
    'u' as it was with every other FormField fixed the issue.
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Esittaja" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Esittaja')}"
    />
    Explanation:
    DataBind operation type parameters (the first parameter) are listed below:
    'i' stands for INSERT,
    'u' stands for UPDATE,
    'd' stands for DELETE.
    http://webcache.googleusercontent.com/search?q=cache:d9HHY4I7omgJ:thearkfloats.blogspot.com/2014/03/sharepoint-2010-data-source-control.html+&cd=4&hl=en&ct=clnk&gl=in
    If this helped you resolve your issue, please mark it Answered

  • How to create new subsite while adding new item to the list by using javascript?

    hi,
    I hav a task ie, when I add item to the list then subsite will create with that list item title and description . So By using javascript, I have to create subsite while adding new item to the list.
    Help me to solve this.
    Thank you, 

    Is your item getting added through Javascript client object model ? If yes, you can write in the success delegate of your list creation method the logic to create the subsite.
    function CreateListItem()
    var clientContext = new SP.ClientContext.get_current();
    var oList = clientContext.get_web().get_lists().getByTitle('List Name');
    var itemCreateInfo = new SP.ListItemCreationInformation();
    this.oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', 'My New Item!');
    oListItem.set_item('Body', 'Hello World!');
    oListItem.update();
    clientContext.load(oListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.CreateListItemOnSuccess), Function.createDelegate(this, this.onQueryFailed));
    function CreateListItemOnSuccess() {
    var subsiteTitle = oListItem.get_item('Title');
    //Logic to create a subsite
    function onQueryFailed(sender, args) {
    I have added a sample flow for the above scenario. Have a look at the following lnk for how you can craete a subsite using ecmascript.
    http://ravisoftltd.wordpress.com/2013/03/06/sharepoint-2010-create-site-with-ecma-script-with/
    Geetanjali Arora | My blogs |

  • Why "New Item" in ribbon and "Add new item" in xsllistview link to different form

    Hi all,
    I have a question. I have a list with two new forms, one is created in SPD the other one is created in InfoPath (both forms are created by developer).
    I don't know why the new form link to different page when I click "New Item" in ribbon and "Add new item" in list view.
    1. Will open new form that created in InfoPath when click on "New Item" in ribbon.
    2. Will open new form that created in SPD when click on "Add new item" in list view.

    One way to do this would be to hold the urls for the pages you need to display in a table. You could then build the links as one of the columns of a report using some fancy SQL.<br>
    <br>
    Or you could make a simple function to return the correct link based on the relevant parameters:<br>
    <br>
    create or replace function get_url (p_criteria in varchar2) return varchar2<br>
    is<br>
    lv_url varchar2(500);<br>
    begin<br>
    if p_criteria = 'Personal' then<br>
    lv_url := 'http://host:port/pls/portal/etc...';<br>
    end if;<br>
    etc...<br>
    return '&LT;a href="' || lv_url || '"&GT;' || p_criteria || '&LT;/a&GT;';<br>
    end;<br>
    <br>
    Your report could then include the function as one of the columns in your report.<br>
    Not very elegant but it should do the job.
    Patrick.

  • Problem while creating new item in the sale order  in case of  Thirdparty

    Dear Gurus
    The following error is coming
    while adding the new item with quantity  in the sale order in case of third party  .
    Error Info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
    Update key...   482ACBD89C7D0067E10080000A8C681C
    Can give any idea abt this.
    Rgds
    Surya

    Hi
    This error comes up due to number range problem in the
    tables.
    As you have said this is a third party Sales order, just check if this is relevant to the PR being generated or the Sales order getting created.
    Check the Current number of the PR document type in the EBAN table & check if it is the same for the Number ranges in customizingin OMH7.
    If they are not the same... & the current number in OMH7 is smaller than the Number in the table EBAN , you need to change the current number  equal to the EBAN table.
    If this is the case fior sales orders similarly check for Sales order table & sales order number range object.
    reward points if useful
    Thanks & Regards
    Kishore

  • Changing the default "New Item" link url in SharePoint

    Is it possible to change the default url of the New Item button on a list.
    When i hover over or click on new item link it show the ......../15/listform.aspx?Page type=blah.....blah......
    I want it to be something like :/newform?source=xxxx
    Please help me !
    Thank you !

    Hi,
    The following code for your reference, please add the code into a Content Editor Web Part in the list view page.
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
    <script type="text/javascript">
    $(function () {
    $("#idHomePageNewItem").attr("href", "http://site/list/newform.aspx?source=http://...........");
    $("#idHomePageNewItem").attr("onclick", "");
    </script>
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Crystal Report  not listed Add New Item for Visual Studio 2010

    I just finished installing cryestal report for visual studio 2010.
    During the installation a visual studio error dialog popped up "Operation cannot be completed. Access Denied", the crystal report installation continued and was informed that the installation was successful.
    But on opening my visual studio project to add new item,  crystal report item is not listed there.
    Is there anything that needs to be done to get it listed in the Add New Item dialog for visual studio?

    I wonder what file you ran to install CRVS2010? Was it the MSI as opposed to the actual install file?
    The link to the correct install is here:
    http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_2.exe
    Is that the file you ran to install CRVS2010? E.g. as opposed to:
    http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_2.zip
    - Ludek

  • How can i create a new item in the app "health"?

    how can i create a new item in the app "health"? I need a field for documentation of "Waist-to-height ratio", exactly for "circumference".
    It's a matter of common knowledge, that the Waist-to-height ratio (WHtR) has more significance then the Body-Mass-Index (BMI).

    If you mean you want to change a color of a calendar category or create a new one, you cannot do that, what is pre-loaded is what you get and cannot be edited.

  • How to understand the "New Item" icon at the bottom of the Project window

    I'm trying to understand that small "New Item" box at the bottom of the project window better. I'm aware that when I bring video clips into my project, if I drag them to this box, PPCS5 will add them to the timeline. I partially understand the positive reasons for doing so, primarily that PPCS5 will correctly identify the type of video being brought into the project. I know that if I select all my clips and drag them to the new item box, that all my clips will be added to the timeline at the same time and all together on the timeline. There are many things I don't understand about it. If I add my clips one by one using the "New Item" icon, they will show up as separate sequences on the timeline. If you try to add another clip at a later time, can that clip not be added using the "New Item" box?  One other question is what would be the advantage in putting clips on the timeline as separate sequences? And one further question is do you drag other items to this box besides video clips? Like music, and still images?

    Dragging something to the New Item icon doesn't just add that something to a sequence.  It actually creates the correct sequence for the something to be added to.
    You do this once, when you need a new sequence.  Anything else you want to add to that sequence you do by other means.

  • Just uploaded iso7 , . . .hate it!  Can you change background colours?  How do you add a new item/activity to the schedule? In notes the font has changed, can I change it back and the link colour is now yellow instead of blue, can I change it?  Thanks

    Just uploaded iso7 , . . .hate it!  Can you change background colours?  How do you add a new item/activity to the schedule? In notes the font has changed, can I change it back and the link colour is now yellow instead of blue, can I change it?  Yellow on white is harder to read. Thanks

    Another question. How do you bookmark something.  It was so easy before, why did they change it?  Can I uninstall it?

  • Creating a new item in application Personalize Page

    Hi all,
    I've created a new item from the application's personalize page. There are a few questions I want to ask about this new item I've created.
    1. I know that the page has different regions as there is more than one controller class for that page(visually). If I use oapagecontext.getParameter("Item ID"), will that give me the item's value even if it is in a different controller?
    2. When I create a new item using the application's personalize page, does it automatically update the relevant xml in $FND_TOP/mds repository? Or does it only update it during run time?
    Cheers

    Hi there,
    it still seems unable to do what i want. The code I'm using right now is this
    I've created a new MessageTextInput item from the application and gave it the ID of xxActiveTo. I also made the view attribute of "ActiveTo" and attribute set of /oracle/apps/jtf/resource/attributesets/JtfRsResourceExtns/EndDateActive.
    **code **
    String temp = oapagecontext.getParameter("xxActiveTo");
    if (temp != "22-Aug-2006")
    setforwardurl (xxxxxx);
    When i see the field I enter 22-Aug-2006 and then press the button. However, it always forwards to the url as in setforwardurl.
    I know I'm getting the wrong value but I don't exactly know why
    Please help

  • Update Document line with a new Item Code...

    Hi.
    This is all done using the DI Server.
    I am updating a sales order with two lines - it looks like this:
    ItemCode____Qty
    651_________10
    00028________5
    I update line 2 so the sales order now looks like this to this:
    651_________10
    651__________8
    All I pass in is the two values 651 and 10 (and a taxcode etc)
    Now... if I take a look at the sales orders GL - before and after the update - It looks like this
    (before)
    ItemCode_____Qty______GL Account
    651___________10_____ _SYS00000000235
    00028__________5_____ _SYS00000000237
    (after)
    651___________10_____ _SYS00000000235
    651____________8_____ _SYS00000000237
    So it does not change the GL Account to fit the new Item... It looks like I need to find the GL Revenue Account for the new item myself. How do I find this?
    Method or SQL is more than welcome...
    Regards,
    Allan C. E. Rasmussen

    Hi Allan,
    your Stored Procedure is good for GLMethod = 'L' but if GLMethod of Item is 'W' or is 'C' your code is not good.
    Case is "W"
    SELECT RevenuesAc FROM OWHS Where WhsCode = @WhsCode
    Case is "C"
    SELECT OITB.RevenuesAc FROM OITM INNER JOIN OITB ON OITM.ItmsGrpCod = dbo.OITB.ItmsGrpCod Where OITM.ItemCode = @ItemCode
    Regards,
    Claudio

  • Change value of a control in a list item new or edit form depending on the page level view Add New Item being clicked.

    I have a list which has a underlying infopath form for insert and edit a record.
    The list has various views spread across different pages .
    Now depending on different pages "New Item", a value for the form will have a corresponding value.
    If there is a single line of text control in the list, and depending ona page name, the value for the single line text should be autofilled when Add new item is clicked.
    How do i achieve that?
    Thanks...

    Hi,
    According to your description, there are several list views in your list, there is a textbox control which holds the “Single Line of Text” type of data in your custom
    form. When users click the “Add new item” button in one of the existing list views, you want the textbox control in the custom form to be populated automatically.
    By default, when user clicks the “Add new item” button in a list view, the URL of the custom form page will contain the name of that list view page, thus, a workaround
    which requires custom code can be like this:
    After the form page loaded, we can extract the name of the list view page from the URL, then populate it into the textbox control immediately. This can be achieved
    using jQuery.
    About how to
    get URL parameters of current page using jQuery:
    http://www.jquerybyexample.net/2012/06/get-url-parameters-using-jquery.html
    About
    adding jQuery into InfoPath form:
    http://riteshudupak.blogspot.com/2010/09/add-jquery-to-browser-enabled-infopath.html
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How to add a new item-position to salesorder in dialog

    Dear all,
    i have a request to add a new item position to an existing sales order in dialog. The information I have are material number and quanity. After adding these infos the system should work like the user has added the line manually (Entered MatNr and Quantity and pressed Enter). All error messages and checks and rereading data should be processed. Any idea how to do this?
    Every help is welcome.
    Best regards
    Roman

    Maybe not exactly. The user jumps from an "extension" button to a dialog where he can select materials an quantity´s these should be added as new positions to the order.
    BR
    Roman

Maybe you are looking for

  • Delete a page in a document

    I have a 2 page document, I want to delete the first page. I tried deleting everything off of it, but it shows blank page. I tried going to the beginning of the second page and deleting, nothing happens. Ipad   iOS 4    

  • How can I add invisible buttons to a scrollable window?

    I've made a scrollable window that basically scrolls some text and images. I'd like the images to link to another site but I'm having trouble getting the invisible buttons to scroll with the images. The text and images laid out in Flash. That is, I'm

  • I can not simply load images from my computer & iphoto. I used to now i can not

    I used to be able to simply attach & upload images. I used to hit the attach button, then I would see the options incuding pictures as an aoption, I would click on pictures & it would take me to my desktop pics & or iphoto as an option, if i chose ip

  • Purcahsing organisation in FBL3N Report

    Hi, Can we add purchasing organisation in FBL3N report , Is there any standard user exist or any other options to add it ?? Regards Rajesh

  • Blocking imessaging

    Apple, Please allow blocking of imessaging! I understand it's free, but sometimes we just don't want to receive communicaiton from some people.  Have your customers top of mind with this. We should be able to make these type of decisions with our pho