Profile picture for user stephane.roux

Hi Forum,

Do you know how to get the list of values for a multi-value attribute type ? I don't want the num but the name.

I played with filter and other methods like fromAPIName, getAttrValueAPIName, AttrTypeName, UserDefinedAttributeTypeNum, but I'm stuck now.

Thank you

Stéphane

by M. Zschuckelt
Posted on Wed, 08/28/2019 - 20:43

Hi,

did you try this one on class ArisMetaModel?

AttrValueType ( int p_nAttrTypeNum, int nAttrValueTypeNum )

It returns a String. I would expect, that the language of the String is already known in the instance of the ArisMetaModel.

So with ArisData.ActiveFilter().AttrValueType(Constants.AT_SOMEATTRIBUTE, Constants.AVT_SOMEVALUE)

you should be getting the name of the value in the current method language of the user. For comparisons of the values I would rather not use the string value, since the string value is language dependent. You might have "Yes", "Ja", "Sí" for the same value depending on the language setting preferred by the user.

0
by M. Zschuckelt
Posted on Thu, 08/29/2019 - 10:45

Hi,

I missed one detail: You asked for the list of values. There is the method

int[] AttrValueTypeNums( int attrTypeNum )

which will give you the list of available AttrValueTypeNums for the attribute type. With this list you ask for each value text in the above function.

0
by Stéphane Roux Author
Posted on Fri, 08/30/2019 - 09:58

Thanks a lot M. Zschuckelt, it works fine. Here a code example :

function main()

{

  var filtre = ArisData.ActiveFilter();

  var tabval = filtre.AttrValueTypeNums(Constants.AT_LOC_TYPE);

  var val = "";

  for (var num in tabval) { val = val + " | " + filtre.AttrValueType(Constants.AT_LOC_TYPE,  tabval[num]);}

  Dialogs.MsgBox(val);

}

main();

0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock