Book a Demo

Author Topic: Get/Set operation parameter multiplicity through API  (Read 4963 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Get/Set operation parameter multiplicity through API
« on: October 13, 2017, 01:12:04 am »
Hello boys and girls,

An operation parameter's multiplicity is stored in t_xref. The API Parameter class does not have a CustomProperties collection.
Is there a way to set a parameter's multiplicity through the API?

Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Get/Set operation parameter multiplicity through API
« Reply #1 on: October 13, 2017, 05:46:51 am »
Nope. You need to use the back door.

q.

PAF

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Get/Set operation parameter multiplicity through API
« Reply #2 on: February 22, 2022, 07:07:44 pm »
For newbies: is it possible to give the backdoor code?

I guess, we're talking about some select

Select t_xref.`Type`, client.Object_ID as ClientID, client.Name as ClientName, client.Object_Type as ClientType, supplier.Object_ID as SupplierID, supplier.Name as SupplierName, supplier.Object_Type as SupplierType from t_xref, t_object client, t_object supplier where t_xref.Client = client.ea_guid and t_xref.Supplier = supplier.ea_guid;

I have ParameterGUID, I need to know the multiplicity of it. Don't know how to run selects yet

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Get/Set operation parameter multiplicity through API
« Reply #3 on: February 22, 2022, 07:42:36 pm »
You run the sql simply via Repository.SQLQuery(sql) which returns a XML structure (see the help or so). Actually I have a wrapper in my Python code and deal with simply array of columns.

q.