Book a Demo

Author Topic: How to store .Position atribute  (Read 3586 times)

lubos

  • EA User
  • **
  • Posts: 101
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
How to store .Position atribute
« on: April 17, 2009, 08:49:55 pm »
Method parameters ( or  atributes of class) has .position (.pos) atrribute.
We found out that have some "holes" in the sequences of this numbers and we want to repair it by automation script. But even we call Paramater.Update(), Method.Update(), Element.Update()  after fixing the number(s)  the new Position values are not stored to DB.

What we do wrong?
Thanks for any hints

jkorman

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: How to store .Position atribute
« Reply #1 on: April 23, 2009, 03:46:53 am »
Are you calling .Refresh() on the collection that contains the method? You should have something like this...

Code: [Select]
 // In Java
  Collection<Method> methods = element.GetMethods();

  method = methods.get...

  method.SetPos(x);
  method.Update();

  // methods is the collection that contains method
  methods.Refresh();

Jim

lubos

  • EA User
  • **
  • Posts: 101
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How to store .Position atribute
« Reply #2 on: April 23, 2009, 08:47:49 pm »
Yes I tried to call refresh/update on anything that could have relation to it ... I have overcome this by counting on with gaps :-/
I will do some other investigations when I will have some time....