Hoppa till huvudinnehållet

Add tables to DataSet

Kommentarer

2 kommentarer

  • Ryan Cooney

    Hi Marc,

    This is possible but the nature of the Tables collection of the DataSet makes it a bit awkward.

    Let's assume you have a DataSet in a variable called "ds" and a DataTable in a variable called "dt".

    1. Add an Invoke Method activity to your workflow.
    2. Set the TargetObject to "ds.Tables". 
    3. Set the MethodName to "Add".
    4. Click the "..." button next to the Parameters collection in the Properties pane.
    5. Click Create Argument. 
    6. Set the Direction to "In".
    7. Set the Type to "DataTable".
    8. Set the value to "dt".

    This will invoke the Add method on the DataSet's Tables collection and pass in your DataTable as a the method parameter.

    --Ryan

     

    0
  • Marc Rempel

    Thanks, Ryan!

    Marc

    0

Du måste logga in om du vill lämna en kommentar.