IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

deleting records from recordlist

  • 1.  deleting records from recordlist

    Posted Thu April 13, 2006 12:25 PM

    hi,

    can anyone help me out in deleting record from recordlist

    thanks

    rudhra


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: deleting records from recordlist

    Posted Thu April 13, 2006 02:24 PM

    Basically you have to loop thru the recordlist and build a new recordlist using appendToDocumentlist and dont append the particular record that you dont need.

    HTH
    RMG


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: deleting records from recordlist

    Posted Thu April 13, 2006 05:33 PM

    That or you can use the built-in service administrator.util:removeFromRecordList to achieve the same. You will need to provide three inputs - the list, the name of the key on which you want to select which record to remove and the value of that key for which you want to remove the record. HTH,

    Rohit


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 4.  RE: deleting records from recordlist

    Posted Thu April 13, 2006 05:58 PM

    Rohit,

    Thanks for pointing though…i think this should be cleaner way than using append to new list.

    HTH,
    RMG


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 5.  RE: deleting records from recordlist

    Posted Thu April 13, 2006 07:11 PM

    RMG,

    I do agree that looping over the list, branching on the key, omitting the unwanted and appending the rest to the list is a way of doing it, but I am confused as to how this is cleaner as compared to having just one service invoked and getting the same task done. Please help me understand.

    Thanks, Rohit


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 6.  RE: deleting records from recordlist

    Posted Thu April 13, 2006 07:15 PM

    What i mean is your mentioned removeFromRecordList service is the better approach.

    Sorry for the confusion.

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 7.  RE: deleting records from recordlist

    Posted Thu April 13, 2006 07:19 PM

    Oops… sorry…! Think I read it all wrong.

    Always admire your knowledge on the platform and am keen to learn - the reason why I asked. :slight_smile:

    Rohit


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 8.  RE: deleting records from recordlist

    Posted Thu April 13, 2006 07:27 PM

    I see your posts all the time,they are really very helpful and its right technical guidance.

    Take it easy.

    Cheers,
    RMG


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: deleting records from recordlist

    Posted Thu April 27, 2006 03:29 PM

    I am not sure that using the removeFromRecordList service is the better approach. Sure, it is simpler, but administrator.util:removeFromRecordList doesn’t appear to be documented, and it is in the WmAdmin package, which to me means that it may not be supported for use in a user application.

    Roger


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 10.  RE: deleting records from recordlist

    Posted Thu April 27, 2006 06:47 PM

    Well i agree with you Roger,but i believe WmAdmin can be enabled and user application can start using it.I dont think enable this package doesn any thing other than WmRoot.

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services