Skip to main content
April 4, 2023
Question

helpTool

  • April 4, 2023
  • 13 replies
  • 0 views

Hello All,

I have a question, is that possible to provide helptoolTip in textfield that each item has to be shown different helptool,like I have decision for each parameter different HoverOver_desc (placed screenshot) has to be shown, how that can be shown in textfield?

  a!textField(
                readOnly:index(
                  rule!CR_RISK_PARAMETER_MAPPING(
                  Param_description: fv!item.parameterId_int
                ),
                "isReadOnly_bool",
                {}
                ),
                value: rule!CR_RISK_PARAMETER_MAPPING(
                  Param_description: fv!item.parameterId_int
                ).parameters,
                saveInto: rule!CR_RISK_PARAMETER_MAPPING(
                  Param_description: fv!item.parameterId_int
                ).parameters,
                helpTooltip: rule!CR_RISK_PARAMETER_MAPPING(
                  Param_description: fv!item.parameterId_int
                ).HoverOver_Desc,

              ),

    13 replies

    stefanhelzle0001
    Brainy
    April 4, 2023

    I am not sure I understand what you want to achieve. Before starting the guessing-game, can you help me understand it better?

    April 4, 2023

    I need to achieve providing helptoolTip in textfield,for different items, that mentioned in the decision and tried in text field.

    stefanhelzle0001
    Brainy
    April 4, 2023

    OK. Your code seems a bit clunky, but should work. What do you see when rendering this interface?

    April 4, 2023

    Since you haven't shared the whole code, I'm assuming you are forming a loop on something. So Yes you can do this to get different parameters of a textField for multiple fields. I would suggest not calling the decision again and again for each parameter instead save it in a local variable outside textField and then property the fields from that.

    April 4, 2023

    Could you brief me or can u share sample code?

    April 4, 2023

    According to what I have understood from your explanation

    a!forEach(
      items: local!data,
      expression: a!localVariables(
        local!parameters: rule!decision(
          Param_description: fv!item.parameterId_int
        ),
        a!textField(
          value: property(local!parameters, "parameters", null),
          saveInto: property(local!parameters, "parameters", null),
          helpTooltip: property(local!parameters, "HoverOver_Desc", null),
          readOnly: property(
            local!parameters,
            "isReadOnly_bool",
            null
          )
        )
      )
    )