AML search in TOC with variables

Hi, I'm trying to make AML queries with variables, like the ones in the photo. The only thing that I do not find is the key to put a personalized "label" for each field. It's possible?

As almost always, ARAs fails with the size of the dialog box.

This is the code.

 

<mp_fecha_entrada condition="ge">@{0}</mp_fecha_entrada>
  <mp_fecha_entrada condition="le">@{1}</mp_fecha_entrada>
  <mp_con_usr>
    <Item type="AIT User" action="get">
      <keyed_name condition="like">@{2}</keyed_name>
    </Item>
  </mp_con_usr>

  • Hi,

    that doesn´t look like the regular Aras AML search. These kind of {} placeholders are not intended to be used in the standard AML search. Is this a custom search mode used in your company? 

    To test this out: When you select a different search mode, do you have "AML" in addition to your "Busqueda AML" search mode?

    Are you looking for custom label in the Form? I guess that your solution fetches the labels from the ItemType definition. If you don´t have assigned a custom label, it will maybe create you the "parameter 2" placeholder. But I am just guessing. If this one is a custom search mode, you should have somewhere a custom Form with specifies the fields and Form size.

  • Hello, 

    As far as I know, we haven't done anything special to make that type of search work. I don't know if the previous developer made a patch to make it work. But when I arrived there weren't many changes.

    To test: I have the option ""busqueda AMl", i think in your system "AML Search" (Spanish translation), this is my options:

    It's a simple AML search, but in the search fields you put the code: @{0}

    <mp_entry_date condition="ge">@{0}</mp_entry_date>

    I see this search method quite well, especially for date ranges for "clumsy" users, who do not know how to delete dates, edit them, etc.


    You know, for the average user, it's easier for them to have a form appear and fill in the data.

  • I am shocked! I didn´t know that this kind of feature exists at all.Grinning The additional window seems to be triggernd when using date or other "hard to use" properties:

    The used label is definitely taken from the ItemType definition. When you assign a proper label in the ItemType, it will appear in the Form. If label is missing, it will just use Parameter 0/1/2.

    During my quick test I wasn´t able to determine, where the Form itself is specified. Maybe the AML search mode contains the answer. But the windows is triggernd when clicking "Search", so it´s probably more related to the general search function. But I am just guessing.

  • Wow, I'm so glad I was able to teach you something you didn't know.

    Yes, the label is taken from there, but the "ugly" thing is that if I do a search between a date, start and end range, in the 2 fields it will give me the same label for the form, as in the photo that I used above . But hey, as long as the user who is going to use it knows it...

  • That´s why I love this forum! Nobody know everything, but everybody knows a bit and all you have to do is collect. :)  

    I did some quick codetree investigation and I guess this one is responsible: 

    ..\Client\javascript\SearchParameterizedHelper.js

    See references to a "fakeForm". This is used to call the dialog. There is further code that inserts the buttons.

    If you really want to modify this codetree file, ensure to document the change. Keep the golden rule in mind: Never change the code tree unless really really necessary.