Latest post Wed, Nov 13 2013 8:39 AM by elenab. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • Tue, Oct 29 2013 10:24 AM

    • elenab
    • Not Ranked
    • Joined on Tue, Oct 29 2013
    • Posts 18
    • Points 200

    Update story in iNews through FTP

    Hi,

    It is possible to update specific fields in iNews (for example, clip status) through FTP? I know this is possible through Mos Gateway, but I am interested in doing this through FTP. Maybe using iNews Web Services?

     

    Thanks

  • Tue, Oct 29 2013 3:18 PM In reply to

    • robg
    • Top 200 Contributor
    • Joined on Fri, Nov 4 2005
    • Tewksbury, MA
    • Posts 494
    • Points 5,605
    • Avid Developer Moderator
      Avid Employee

    Re: Update story in iNews through FTP

    elanb,

    I'm checking with the developers to see if this is possible with FTP.

    Note that fields in stories can be updated with iNEWS Web Services like this:

      LockStory(QueueFullName, QueueLocator);  // set the current story and lock it
      StoryNSML = GetStories(1, true, SAME);     // (NumberOfStoriesToGet, IsStoryBodyIncluded, NavigationType)
                                                                 // retrieve the NSML for the story 
      // . . . Update some fields in StoryNSML

      SaveStory(StoryNSML);                          
    // save the updated story and unlock it

    I'll let you know about FTP later this week.

    - Rob

     

  • Tue, Oct 29 2013 8:22 PM In reply to

    • robg
    • Top 200 Contributor
    • Joined on Fri, Nov 4 2005
    • Tewksbury, MA
    • Posts 494
    • Points 5,605
    • Avid Developer Moderator
      Avid Employee

    Re: Update story in iNews through FTP

    elanb,

    I heard back from the iNEWS development team.

    1) Yes, the FTP interface can be used to update existing stories with some restrictions/caveats. First, the target queue must have the Update trait enabled. This is not terribly common and is problematic with queues containing a large number of stories (>1000). Second, there are no edit locks so pushing a modified story whose lock is owned by someone else will cause a write failure.

    2) As mentioned above, this can also be done from iNEWS Web Services. Here's some more detailed pseudo-code:

    inewsClient.INEWSSystem.SetCurrentQueue(FULLPATH);
    Stories[] = inewsClient.INEWSQueue.GetStories(1, true, SAME);
    StoryNSML = Stories[0].StoryAsNSML;
    inewsClient.INEWSStory.LockStory(Stories[0].FullPath, Stories[0].QueueLocator, FORM);

    // modify fields locally

    inewsClient.INEWSStory.SaveStory(StoryNSML);
    inewsClient.INEWSStory.UnlockStory();

    - Rob

     

  • Wed, Oct 30 2013 9:30 AM In reply to

    • elenab
    • Not Ranked
    • Joined on Tue, Oct 29 2013
    • Posts 18
    • Points 200

    Re: Update story in iNews through FTP

    Hi Rob,

    Thank you very much for your reply. I'll give it a try with iNews Web Services. I need to check something before starting this. Some words came to my ears that status filed is not available in WebServices, and thus can not be updated. Is this true?

     

    Thanks

  • Fri, Nov 8 2013 8:23 AM In reply to

    • elenab
    • Not Ranked
    • Joined on Tue, Oct 29 2013
    • Posts 18
    • Points 200

    Re: Update story in iNews through FTP

    Hi Rob,

    I managed to update the status field through iNews Web Services and works nicely with the exception that I don't see the update in the rundown until I move the focus from the selected rundown and then come back or select another story in the rundown and then select again the previous story. Is there a way to see the update without doing this?

     

    Thanks

  • Mon, Nov 11 2013 9:34 PM In reply to

    • robg
    • Top 200 Contributor
    • Joined on Fri, Nov 4 2005
    • Tewksbury, MA
    • Posts 494
    • Points 5,605
    • Avid Developer Moderator
      Avid Employee

    Re: Update story in iNews through FTP

    elenb,

    I talked to the iNEWS product guys/gals, and they said that the queue has to set to be a refresh queue in order to automatically update.

    To set the queue refresh trait at the console, use:

    dbtraits <queue name> [+refresh | -refresh]

    Hope this helps,

     - Rob

     

  • Wed, Nov 13 2013 8:39 AM In reply to

    • elenab
    • Not Ranked
    • Joined on Tue, Oct 29 2013
    • Posts 18
    • Points 200

    Re: Update story in iNews through FTP

    Thanks Rob, it works!

Page 1 of 1 (7 items)

© Copyright 2011 Avid Technology, Inc.  Terms of Use |  Privacy Policy |  Site Map |  Find a Reseller