Handling new story event

Hi everybody,
I'm trying to handle an event for new created stores, I'm using the kNewStorySignalResponderService
void GTTxtEdtResponder::Respond(ISignalMgr* signalMgr)
          do {
  // Get the service ID from the signal manager
                    ServiceID serviceTrigger = signalMgr->GetServiceID();
  // Take action based on the service ID
                    switch (serviceTrigger.Get())
case kNewStorySignalResponderService:
InterfacePtr<INewStorySignalData> data(signalMgr,UseDefaultIID());
    if(data == nil)
       break;
    UIDRef mod = data->GetTextModel();
    if(mod == nil)
        break;
    InterfacePtr<ITextModel> txt(mod,UseDefaultIID());
    if(txt == nil)
        break;
    int len = txt->TotalLength();
break;
default:
  break;
          } while (kFalse);
I keep getting 0 for the length of the text event that when I drag the text it already contains some text.
what am doing wrong
Thanks.

Works as intended.
The signal is sent as soon as the story is created, before the new/placed text is inserted in a separate step.
Dirk

Similar Messages

  • Subscribing to new mail event of multiple impersonated user through one ExchangeService object

    I am able to subscribe to push notifications by specifying impersonating users' credentials and then specifying impersonated user's email in ExchangeService' ImpersonatedUserId property.
    However want to know how can I handle new email events on multiple email ids that are impersonated by one email id, since there is no collection as such on ExchangeService to specify multiple Impersonation Ids. In fact I think we can handle only one email
    id by using single ExchangeService object. And to subscribe to multiple user mail events, even through impersonation, I have to create multiple instances of ExchangeService. And also multiple callback listeners too. This is what I want confirmation about:
    Q. Do I need to create multiple instances of ExchangeService and callback listeners to handle new mail event on multiple user id with impersonation?
    Q. Without impersonation?
    Q. Also want to know given credentials of impersonating user, can I retrieve list of all users impersonated by that user.

    > Without impersonation?
    You don't need a separate instance in this case (you need separate subscriptions for each mailbox). However there are throttling limitations around the total number of subscriptions one particular user can make see http://msdn.microsoft.com/en-us/library/office/dn458788(v=exchg.150).aspx
    For
    subscribing to mailbox of same user id, we can use same object of ExchangeService. However I did asked for subscribing to mailboxes of
    different user ids (or simply multiple mailboxes) without impersonation.
    I cannot find how can I specify credentials for multiple mailboxes on single instance of ExchangeServer. Just following:
    service.Credentials = new WebCredentials(userid, password);
     Is it really possible to use same instance ExchangeService to subscribe to multiple mailboxes?

  • Event Handling - New Approach

    Hi,
    I have developed a BSP and implemented the way Brian described in the Apprach 3 of the weblog mentioned below. In the method of new class that handles the server event(method name is same as server event), How do I access the model instance that I used in my BSP?
    BSP Programming: Handling HTMLB Events
    /people/brian.mckellar/blog/2004/07/28/bsp-programming-handling-htmlb-events
    Thanks,
    Suresh

    Brian it's Good Idea to create in Controller Class or creating event handling methods within the model class. But I would like to create s separate class just for Even handling alone, so that I can use wherever I want(in different BSP Applications).
    1.I have created ZCL_EVENT_HANDLER_FORME.
    2.Created Method HANDLE_MYBUTTONCLICK and passed
      event_object as a parameter.
    3. I have ZCL_MY_CONTROLLER and ZCL_MODEL for BSP.
    4. Created instance of ZCL_MODEL and assigned it to the Controller Attribute.
    5. Successfully dispatced the event from DO_HANDLE_EVENT to HANDLE_MYBUTTONCLICK method of CL_EVENT_HANDLER_FORME.
    6. I don't know how to get the reference to the model in
    HANDLE_MYBUTTONCLICK method of CL_EVENT_HANDLER_FORME.
    Am I missing some thing....
    -Suresh

  • How to handle check box events in alv tree.

    hi,
    i am working in CL_GUI_COLUMN_TREE class.Also using Check box. Now i want to handle events for check box . I am new to ABAP Objects.
    Pls expaline in detail or send code
    thanks in advance,
    senthil kumar.r

    Hello Senthil
    Have a look at the sample report
    SAPCOLUMN_TREE_CONTROL_DEMO
    . The crucial points are:
    <b>(1) Register the required events at the control</b>
    * define the events which will be passed to the backend
      " checkbox change
      event-eventid = CL_GUI_COLUMN_TREE=>EVENTID_checkbox_change.
      event-appl_event = 'X'.
      append event to events.
      CALL METHOD G_TREE->SET_REGISTERED_EVENTS
        EXPORTING
          EVENTS = EVENTS
        EXCEPTIONS
          CNTL_ERROR                = 1
          CNTL_SYSTEM_ERROR         = 2
          ILLEGAL_EVENT_COMBINATION = 3.
      IF SY-SUBRC <> 0.
        MESSAGE A000.
      ENDIF.
    <b>(2) Set the event handler</b>
    assign event handlers in the application class to each desired event
      SET HANDLER G_APPLICATION->HANDLE_CHECKBOX_CHANGE FOR g_tree.
    <b>(3) Define and implement event handler method</b>
      METHOD  HANDLE_CHECKBOX_CHANGE.
        " this method handles the checkbox_change event of the tree
        " control instance
        " show the key of the node and the name of the item
        " of the clicked checkbox in a dynpro field
        G_EVENT = 'CHECKBOX_CHANGE'.
        G_NODE_KEY = NODE_KEY.
        G_ITEM_NAME = ITEM_NAME.
        CLEAR  G_HEADER_NAME.
      ENDMETHOD.
    Regards
      Uwe

  • HOWTO: Handle a click event on a DAC TreeControl

    HOWTO: Handle a click event on a DAC TreeControl
    Goal: Handle the event that occurs when a user clicks on a new node of a DAC TreeControl. In this example the handler is simple - it just prints out the current node. You can try this example on the DACTree.jpr project in the 3.2 tutorial, described in the online help under
    Tutorials and Sample Applications
    -> Tutorials
    -> Building Enterprise Applications with Business Components for Java
    -> Enhancing the Online Orders Application
    -> Creating a DAC Client
    The problem: The usual procedure for adding an event to a DAC component does not work: if you select your TreeControl in the designer, then select the Events tab of the property inspector, none of the events listed does what we want.
    Solution: Get the underlying JTree and add your listener to it. Although the TreeControl is not a subclass of javax.swing.JTree, it does have an underlying JTree which you can get by calling TreeControl.getTree().
    Add the following code to your frame's .java file (Hint: Add any event, from the Events tab of the property inspector, then use the generated code as your template, changing it to match this example):
    1. Declare a JTree:
    JTree tree = new JTree();2. In jbInit(), add the event listener after the code that sets up your TreeControl:
    tree = treeControl1.getTree();
    tree.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
    public void valueChanged(javax.swing.event.TreeSelectionEvent e) {
    tree_valueChanged(e);
    });3. Add the event handler method:
    void tree_valueChanged(javax.swing.event.TreeSelectionEvent e) {
    System.out.println("Current node: " + tree.getLastSelectedPathComponent());
    }

    could you add a mouselistener to the pane or whatever container the pie chart is drawn on? Then override the mouseClicked method to do whatever you want?
    Message was edited by:
    petes1234

  • Best way to edit in audio first for a news story type edit

    Whats the best way to do a news story type edit?
    I want to lay down audio narration ( voiceover track ). Next I want to add picture. I want to have some flexibility to edit and move around parts of the voiceover track. I will also want to be able to move the video clips around. What's the best way to do this?
    Which method would you use? All ideas are welcome.
    So far I hear:
    1. Edit in a text track ( as a placeholder ) the length of the proposed narration
    2. Add audio ( narration)
    3. Add video clips
    Additional questions:
    A) When I add video clips, should I do cutaways? Which offers the greatest flexibility?
    B) If I do use cutaways will I eventually be able to delete the original placeholder text track?
    Thanks everyone. I'm trying to get a handle on iMovie. Your responses are helpful.
    -CraigarJ

    I think I answered in your other thread.

  • ABAP WebDynpro: Handling the ON_ENTER Event in editable ALVs

    Sub: ABAP WebDynpro : Handling the ON_ENTER Event in editable ALVs
    Hi,
    I would like to know if there exists an event to handle TABout (i.e, when user navigates out of the cell with a TAB key-press) for a cell of an editable ALV.
    Alternatively, any help on how to handle ON_ENTER event and how it is triggered when data is entered by user into a cell of an editable ALV, would be really appreciated.
    Thanks,
    Adithya

    Hi
    I had one similar problem where user enter something into the editable cell and press enter. to handle this scenario i used WDDOBEFOREACTION  method of my view to call alv interface method check_data.
    if there is any change in the any table cell, it will fire an event on_data_check..which has paramater column name, row index and new and old value of the cell.
    you can handle this event and write your business logic in event handler method.
    hope it will help
    Regards
    Saurabh Garg

  • How to handle the drop event

    Hi everyone,
    Now I'm developing the function about drag-drop source(image & text) from Panel Tree to the document.
    I also have a look at the basic drag/drop & Panel Treeview, but all of them is not the source code mentions to how to handle the drop event, almost about drag event only.
    Now when user Drags(image, text) from PanelTreeView(example) and drops them to document and then new page Item contains source(image, text) created, so I want to get the page item after drop event.
    so anyone know about this please give me suggestion
    thanks so much.

    i dont think you can.
    ~~~~~~~~~~~~~~~~
    --> Adobe Certified Expert
    --> www.mudbubble.com
    --> www.keyframer.com
    ~~~~~~~~~~~~~~~~
    keyoke_za wrote:
    > Hi,
    > How can I get my flash movie to handle the drop event
    when dropping objects from outside the flash window.
    > Thanks for your help..

  • The BBC is a drop-down menu item on my bookmarks toolbar. About 20% of the time, when I click on a news story, I get the link that's underneath, not the one on the drop-down menu. What the?

    I don't understand why Firefox would take me to a link UNDERNEATH the link I clicked on in the drop-down menu. Items in the drop-down menu are supposed to be clickable. I'm tired of clicking on a BBC news story link only to be sent to the beanie babies page of Amazon.com.
    == This happened ==
    Not sure how often
    == I installed my third-to-latest upgrade, about 3.5

    To add a Pinterest icon to your Home Screen do the followiing:
    In Safari:
    Go to the Pinterest Website - http://pinterest.com
    Touch the Share icon at the top (looks like a box with an arrow coming out)
    Touch Add to Home Screen

  • Cannot add new iCal events on my iPhone 3G.

    My iPhone 3G has stopped saving new iCal events. I can still set up new events in iCal on my laptop, and they'll sync over to my iPhone, but new events won't save when entered into iCal on my iPhone. Any idea what's wrong and how to fix this?
    BTW, I just got rid of a MobileMe account. I never ended up using MobileMe, so it doesn't seem like that should be the issue here, but I noticed that some other folks have had iCal sync issues with MobileMe, so I thought I'd add that info.

    In other words, it's hacked.
    Sorry, you can't get help here.
    Say for an instance, that it wasn't hacked. Would you suggest to just wipe and restore it?

  • Create new iCal event from contents of mail uses wrong date

    I received an email today with an appointment using the date "6/3/2010 at 4PM". Being from the US, it is obvious to me that this meeting should occur on June 3, 2010, but when I attempt to create a new iCal event with this date it creates the event on March 6, 2010. Even more confusing is that when I choose "Show this date in iCal" it highlights March 7, 2010!
    My question is:
    Shouldn't the system default to a month/day/year date preference everywhere when I've selected US English in the internationalization preferences pane?

    have a very similar question: is there somewhere an application where I can, when receiving an email, put it into iCal so that I am reminded about it in a week or something?

  • In mail "create new ical event" has stopped appearing in ical

    Please help! I love clicking on data in email to bring up the "Create New iCal Event" box, and using it to put new events into my ical calendar. But recently when I "Create New iCal Event" from an email, and click "add to iCal" the window closes but the event doesn't show up in iCal. I can still add events by clicking on a calendar date in iCal and typing them in, but the link between Mail and iCal seems to be broken. How can I fix it?
    Could this be related to how Firefox recently broke? Foxfire will not save bookmarks any more, either, I click on "Bookmarks," then "Bookmark this page". The window closes but the bookmark does not save. Also, the forward/backward browser arrows no longer work on Foxfire.

    Could you be more specific? What happens (or fails to happen?)

  • I entered a new calendar event at I cloud on my laptop.  The enent showed up on my I Phone  4S but, the start and finish times on the entry in I cloud was different than the times shown on the I phone calendar.  How do I sync the time in my I Phone with

    I entered a new calender event using I cloud on my laptop. The enent transfered to my i Phone 5 S but, the start and finish times shown st i cloud on the laptop are different than the times shown on the i phone.  How do I sync the times on the i Phone with the times shown on the laptop i cloud calender?

    Turn off time zone support on the phone.

  • How do i return calendar to original view?   All I can see is an hour by hour grid...can't get back to page where I can enter new appointments/events

    How do I return calendar to original view?   All I can see is an hour by hour grid...can't get back to page where I can enter new appointments/events

         Hi, at the bottom bar you should see a series of five buttons. Press the "Month" button if you desire to see the view of the month. As for creating a new calendar event simply press the "+" button in the upper right-hand corner to create a new appointment. *
    * Please note that this is all within the app called "Calendar".

  • When I click on a yahoo news story, about 30 seconds into reading it, the page changes to one that says the page I requested can't be found, and it has a list of search results.

    I just upgraded to firefox 4 this morning. My homepage is yahoo.com. Sometimes when I click a news story, about 30 seconds into reading it, the page changes to a search result page with the heading that the page I requested can't be found. If I click the back button, it goes back to the page I was on. It doesn't happen on every one, and I haven't seen a pattern to which sites it happens on. It also happened when I was trying to make a payment on ebay.

    To revert to Google as your preferred search engine, please do the following.<br><br>
    * In the location bar, type '''about:config''' and hit Enter.<br><br>
    * In the filter at the top, type: '''keyword.URL'''<br><br>
    * Double click it and remove whatever's in there (probably Yahoo) and replace it with http://www.google.com/search?q=<br>
    The URL to add in "keyword.URL" becomes a link in this post, so right click it and choose "Copy Link Location" to copy it to the Windows clipboard. Then hit CTRL+V to paste it. Saves you having to type the whole thing.
    '''To reset your home page, do the following'''.<br><br>
    * Go to the site you want to set as your homepage.<br><br>
    * Click the orange Firefox button and go to '''Options '''| '''Options '''| '''General'''.<br><br>
    * Make sure it says "''Show My Homepage''" in the first dropdown menu.<br><br>
    * Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.<br>

Maybe you are looking for

  • Vendor Master Data Check

    Dear Gurus, I have to configure certain checks for Vendor Master duplication checks. Can you please tell me the node in IMG and revent details for this config or if you can give the link. Regards Raju

  • XQuery transformation in OSB

    Hi can any body tell how to make xquery transformation for the requirement like source as xml and target as schema,please provide related links if any Thanks Mani

  • I would like to plot two lines with an xy graph in realtime

    I understand how to plot in real time with an xy graph appending to an array, but I would like to simply put a line so I can see when my first plot crosses a certain value on the y-axis, say at like y=30. So I would like to know how it is you can plo

  • Number of concurrent a/v conference calls, and its bandwidth consumed.

    I have two central sites and multiple branch sites. Each central site has one Front End pool. we are planning to replace Lync 2013 servers for hosting meetings, conferences ( audio, video and web) My manager wants to know the number of concurrent aud

  • Fetching mail from a mail server

    Hai, I've tried to fetch the mail from my inbox which belongs to the MODOMAIL server. I've write code for that.But iam not able to dwnload.Whenever i tried that program The following exceptions are occured. NORoute to host Exception : Operation timed