Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Upgrade smarclient version from 10.0 to 13.0 - ComboBoxItem - How not to use AdvancedCriteria?

    Hi.
    I am trying to upgrade an application to smartclient 13, for now I have been downloading the "eval" version.

    Using "ComboBoxItem", how is it possible to avoid using "AdvancedCriteria" when the input data to populate the combo comes to the DMI class?


    Here are two images, the first image is the "criteria" with version 10:
    Click image for larger version  Name:	criteria_10.jpg Views:	16 Size:	13.5 KB ID:	270127

    Here is version 13(eval):
    Click image for larger version  Name:	criteria_13_eval.jpg Views:	11 Size:	82.0 KB ID:	270128

    How can 'AdvancedCriteria' not be used?

    Thank





    Last edited by Enri_000; 8 May 2023, 23:45.

    #2
    The ComboBoxItem will in general only produce AdvancedCriteria by default if it is required to for correctness, for example, because you have optionCriteria that are set for exact match, but you also want iEquals matching for the ComboBox's search string.

    See the docs here:

    https://smartclient.com/reifyOnSite/...tMatchCriteria

    The particular criteria you show does not seem to need to be advanced, so it's likely able to be simplified. However, you haven't yet told us whether this ComboBoxItem is in a SearchForm, FilterEditor or some other context, or shown the way that you pass criteria to this DMI - we'll need all of that in order to provide more advice.

    Comment


      #3
      Hi Isomorphic

      The object is a "ComboBoxItem":

      Click image for larger version  Name:	ComboBoxItem.jpg Views:	0 Size:	17.9 KB ID:	270133

      The way to DMI is "optionCriteria":
      Click image for larger version  Name:	OptCriteria.jpg Views:	0 Size:	21.7 KB ID:	270135
      Read the criteria in method "fetch", on DMI class;
      Click image for larger version  Name:	get_criteria_fetch.jpg Views:	0 Size:	27.1 KB ID:	270136


      The ComboBoxITem is located in a form.


      Thank
      Last edited by Enri_000; 8 May 2023, 02:45.

      Comment

      Working...
      X