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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

How to Update Multi-value variables from Applinx using .NET

  • 1.  How to Update Multi-value variables from Applinx using .NET

    Posted 05/28/08 02:47 PM

    Question.

    I am attempting to update a multi-value variable from my .net VB ApplinX web page, but have been unsuccessful.

    In my sample code below, I have a multi-value variable “ECCOM115Compl”. (3 occurances) Not sure how I need to define the index when sending the data back thru applinx to allow the update of the multi-value variable. I’ve tried using [0], and (0) but no luck. Any suggestions?

    Sample Code

    
    Dim req As New GXPathRequest("UPDATEM115")
    With req
    .addInputField("ECCOM115init", ECCOM115Init.Value)
    .addInputField("ECCOM115Compl[0]", ECCOM115Compl_000.Value)
    .addInputField("ECCOM115Compl[1]", ECCOM115Compl_001.Value)
    .addInputField("ECCOM115Compl[2]", ECCOM115Compl_002.Value)
    .addInputField("ECCOM115EmailCR", ECCOM115EmailCR.Value)
    End With
    Try
    gx_session.executePath(req)
    gx_handleHostResponse()
    Catch ex As Exception

    #Mainframe-Integration
    #webMethods
    #ApplinX


  • 2.  RE: How to Update Multi-value variables from Applinx using .NET

    Posted 05/31/08 09:20 AM

    there is an overloaded method with the index as the second parameter:

    
    .addInputField("ECCOM115Compl",2, ECCOM115Compl_002.Value) 

    #ApplinX
    #webMethods
    #Mainframe-Integration