4 Replies Latest reply: Apr 2, 2012 11:29 AM by Ron Pierce RSS

Internal Qualifier Conversion

Mahira Thajuddin


Is there a way to convert the convert the value of the Qualification field in the AR System Searches form into a string?
For eg:

The Qualification field value is 1/536870922/18/Building Materials

I need it to be converted to something descriptive like Department=" Building Materials".


  • 1. Re: Internal Qualifier Conversion
    Appajee Papolu

    Look at the DecodeQualifier and FormatQualification methods in BMC.ARSystem.Server class of the AR .NET API.  Similar facility is available within Java API too -- ARServerUser class has the methods such as decodeQualification, formatQualification are of interest to you. As the names indicate, first function allows you to decode an internal representation (string) into an appropriate qualification object; second function then allows you to produce a formatted representation (string) using this object.

    If you are looking for workflow based solution, please look at the AR System Special Run Process Application Commands -- specifically
        Application-Format-Qual "<form>" <internal_qualifier>

    Finally if you're looking for this functionality in a C API client, unfortunately you're out of luck at least AFAIAK. You can decode the qualification (ARDecodeQualification), you can parse a readable/formatted qualification string into object (ARLoadARQualifierStruct); but you cannot produce a formatted string representation usign the API. You have to walk the qualification object and produce the string yourself recursively.


  • 2. Re: Internal Qualifier Conversion
    Enzifer NameToUpdate



    when I have created such a conversion class in java where is the location for this class on the ARServer?


    Thanks for advice

  • 3. Re: Internal Qualifier Conversion
    Adam Buteux

    Have a look at the special Run Processes in the help/documentation there is some stuff there

  • 4. Re: Internal Qualifier Conversion
    Ron Pierce

    I have attached a def file for a simple conversion tool I built. It will convert from String to Internal Rep and vice versa.


    Basically, it is a Active Link that executes a Service Filter and maps the output using Application-Parse-Qual and Application-Format-Qual based on form selection. Very straight forward.


    (I realize this question is almost 4 years old, but it might be helpful for future queries on the topic)