logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Writing back data using class objects (C#)
CarpeDatum
#1 Posted : Wednesday, March 30, 2011 7:51:07 AM(UTC)
Rank: Administration

Groups: Registered, Administrators
Joined: 8/17/2010(UTC)
Posts: 6
Location: Denver

Here is a sample of using the class objects to write back data to the Financials cube using the view Sales Entry to supply the data.

Code:

    ES.ESWebService ws = new ES.ESWebService();
    ES.ESErrorInfo err = null;

    // Get the sales entry data
    ES.SalesEntryResults results = ws.SalesEntry(null, null, null, null, null, out err);
    if (err.Success == false)
        return;

    foreach (ES.SalesEntryRow row in results.RowSet.Rows)
    {
        // Increment March by 20
        row.Mar.Value = row.Mar.Value + 20;

        // Reduce September by 50
        row.Sep.Value = row.Sep.Value - 50;
    }

    // Write the data back to TM1
    ws.TM1ViewWrite(results, out err);
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.016 seconds.