Book a Demo

Author Topic: Adding new package problem  (Read 3057 times)

marano

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Adding new package problem
« on: August 09, 2006, 11:53:13 am »
I am creating packages for custom documentation. When i create a package with addin, documentation can't find this packages requirements,scenarios ,ext.(Package.PackageElement.*). It can't find even if i add requiremens,scenarios.. manually after creating package with addin.
I discover that in repository(i searched with access) package's guid and package.element's guid are same. But they are different if i create with addin.

EA.Package package = (EA.Package)packageRoot.Packages.AddNew("NEW","Package");
package.Update();

I should solve this problem for my documentation addin.

marano

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Adding new package problem
« Reply #1 on: August 09, 2006, 12:25:02 pm »
 ;D hey i solved the problem.
string sql = "Update t_object set ea_guid  = \"" + package.PackageGUID + "\" where ea_guid = \"" + package.Element.ElementGUID + "\"";
Repository.Execute(sql);