Question

Add Label in custom screen to logically "group" related properties

  • 12 April 2022
  • 1 reply
  • 199 views

Badge +3

Hello all,

what we currently try to achieve is to group properties that are conceptually related (e.g. Location related properties). We tried adding a Label (and only, just text) to the custom screen we currently work on through the XML editor using the below xml code:

            <item>
              <item_path />
              <register_name />
              <name_to_register />
              <template />
              <tab_index />
              <table_ref />
              <height />
              <check_spelling />
              <parent_element_name />
              <read_only />
              <required />
              <max_length />
              <max_decimals />
              <lookup_display_column />
              <lookup_key_column />
              <lookup_table />
              <mask_type>upper</mask_type>
              <column_type />
              <label_value>Location Information</label_value>
              <label_message_id>Location Information</label_message_id>
              <default_value />
              <image_url />
              <image_id />
              <comment_message_id />
              <comment_value />
<item_style_id>COLUMN_LABEL_STYLE</item_style_id>
              <non_db />
              <invisible />
              <currency_column_name />
              <error_message_id />
              <error_message_text />
              <expression />
              <lookup_xml />
              <regex_id />
              <regex_output_format />
              <regex_value />
              <shortcut_key />
              <shortcut_mod1 />
              <shortcut_mod2 />
              <shortcut_mod3 />
              <url />
              <display_name>Location Information</display_name>
<type>LABEL</type>
              <group_name />
              <is_checked_value />
              <unchecked_value />
              <lookup_message_type />
              <xpath />
              <post_url />
            </item>

 

As you can see the bold properties above, we tried to change the Type tag to “LABEL” and tried to format this Label by adding an item_style. So my questions are:

  1. Is this the best approach to add a Label in a custom screen? 
  2. Do you know why the item_style applies only in Smart Client and not in Web Client?

Thank you in advance,

D.K


1 reply

Userlevel 5
Badge +17

There are a couple ways to add labels.  One is what you’re doing.  Another is to add a label to a column panel in the column panel properties.  Both of these approaches do not allow for font or background styles.  You can play some tricks with using a column panel which just contains non-db fields where the column properties are set so the label % is 100 and the control % is 0, but I think, depending on the control type, you still see some visual rendering for the control.  You would need to experiment.  The idea is that you have a panel with headings directly above the panel with the actual grouped data.

I usually utilize the column property labels.

 

With regard to the web client, to my knowledge the web client does not support item styles as of FSM 6 update 16.

 

Please let me know if this helps.

Reply