Book a Demo

Author Topic: Update step in scenario - result and results  (Read 4482 times)

PiotrS

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Update step in scenario - result and results
« on: June 03, 2014, 01:22:41 am »
I want update field "Results" (UI) for the one of scenario steps defined to element, but its not working. Method "Update()" (API) updated filed "results" instead "result". Only the value from "result" (database, t_objectscenarios.XMLContent=>result) is shown in UI. It is true? It is another way to updated field "Results" (UI) using API?
Code: [Select]
                       foreach (EA.IDualScenario es in element.Scenarios)
                        {
                            foreach (EA.IDualScenarioStep ess in es.Steps)
                            {
                                if (ess.Name.Trim().Length == 0 &&
                                    ess.Uses.Trim().Length == 0 &&
                                    ess.Results.Trim().Length == 0
                                    )
                                {
                                    ess.Name = "TEST_Name";
                                    ess.Uses = "TEST_Uses";
                                    ess.Results = "TEST_Results";

                                    ess.Update();
                                }
                            }
                            es.Update();
                        }
                        element.Update();

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Update step in scenario - result and results
« Reply #1 on: June 03, 2014, 05:05:28 am »
You are right once again. Results does not accept values. So again: report a(nother) bug.

Here as a work around you likely need to call Repository.Execute to supply an appropriate UPDATE SQL.

q.

PiotrS

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Update step in scenario - result and results
« Reply #2 on: June 03, 2014, 05:23:05 pm »
Thank you for your interest in my problem, I'll try to do as you wrote

PiotrS

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Update step in scenario - result and results
« Reply #3 on: June 03, 2014, 08:04:08 pm »
I sent the bug report. If I get an answer, I'll pass it on the forum.
Thank You for help.

PiotrS

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Update step in scenario - result and results
« Reply #4 on: June 03, 2014, 11:16:57 pm »
It's already fixed... information from another user...
My version is too old: EA Edition: Corporate Build: 9.2.921
(...)
You're using an EA version that's more than two years (and two major versions) out of date. The behavior in question is a confirmed bug, which was fixed in version 10.0.1005.
(...)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Update step in scenario - result and results
« Reply #5 on: June 03, 2014, 11:32:53 pm »
lol. Yes. I made the above test with 9.3 after trying the deletion bug also with the old version and did not switch back to V11.

q.