Find or ctrl+F Functionality in Appian.

 Hello,

Is there anything like "ctrl+F" functionality provided by the Appian. My requirement is:- we are having records with N number of dashboard and every dashboard contain different Attributes. We have provided the user to search any attribute from any dashboard and get the link of the dashboard of searched attribute. But we want that when user navidate to that particular dashboard that searched  attribute should be highlighted like the same way when er do "ctrl+F" in any page and that particular searched item get highlighted.

Pleas share your valuable views regarding this requirement. I am attaching a fie which show how we want that attribute to be highlighted.

Thanks in advance

 

Regards

Sahil 

  Discussion posts and replies are publicly visible

Parents
  • Hi,
    I am attaching sample code to achieve your functionality.
    Please test it with "First Name", "Middle Name" "Last Name", "City", "State" kind of inputs.

    The is sample code is standalone code, so you can paste it in interface designer and test it right away.
    Let me know if that justifies your requirement.

    Thanks!
    Mayur Mondhe

     

    load(
      local!firstName:"First Name",
      local!middleName: "Middle Name",
      local!lastName:"Last Name",
      local!city:"City",
      local!state:"State",
      local!country:"Country",
      local!cityName1:"City Name 1",
      local!cityName2:"City Name 2",
      local!titleArray: {
        local!firstName,
        local!middleName,
        local!lastName,
        local!city,
        local!state,
        local!country,
        local!cityName1,
        local!cityName2
      },
      local!position: 1,
      local!searchtext,
      local!showPosition:{0},
      {
        a!sectionLayout(
          label: "Search Control",
          contents: {
            a!textField(
              label: "Enter Search Text",
              value: local!searchtext,
              refreshAfter:"KEYPRESS",
              saveInto: {local!searchtext,
              a!save(
                local!showPosition, where(like(lower(local!titleArray),"*"&lower(local!searchtext)&"*"))
              )
              }
            )
          
          }
        ),
        a!sectionLayout(
          label: "Search Output",
          showWhen:and( len(local!searchtext)>0,count(local!showPosition)>0),
          contents: {
    
              a!textField(
                label: local!firstName,
                value: null,
                showWhen: contains(local!showPosition,1)
              ),
              a!textField(
                label: local!middleName,
                value: null,
                showWhen: contains(local!showPosition,2)
              ),
              a!textField(
                label: local!lastName,
                value: null,
                showWhen: contains(local!showPosition,3)
              ),
              a!textField(
                label: local!city,
                value: null,
                showWhen: contains(local!showPosition,4)
              ),
              a!textField(
                label: local!state,
                value: null,
                showWhen: contains(local!showPosition,5)
              ),
              a!textField(
                label: local!country,
                value: null,
                showWhen: contains(local!showPosition,6)
              ),
              a!textField(
                label: "City Name 1",
                value: null,
                showWhen: contains(local!showPosition,7)
              ),
              a!textField(
                label: "City Name 2",
                value: null,
                showWhen: contains(local!showPosition,8)
              )
           
          }
        )
      }
    )
    

Reply
  • Hi,
    I am attaching sample code to achieve your functionality.
    Please test it with "First Name", "Middle Name" "Last Name", "City", "State" kind of inputs.

    The is sample code is standalone code, so you can paste it in interface designer and test it right away.
    Let me know if that justifies your requirement.

    Thanks!
    Mayur Mondhe

     

    load(
      local!firstName:"First Name",
      local!middleName: "Middle Name",
      local!lastName:"Last Name",
      local!city:"City",
      local!state:"State",
      local!country:"Country",
      local!cityName1:"City Name 1",
      local!cityName2:"City Name 2",
      local!titleArray: {
        local!firstName,
        local!middleName,
        local!lastName,
        local!city,
        local!state,
        local!country,
        local!cityName1,
        local!cityName2
      },
      local!position: 1,
      local!searchtext,
      local!showPosition:{0},
      {
        a!sectionLayout(
          label: "Search Control",
          contents: {
            a!textField(
              label: "Enter Search Text",
              value: local!searchtext,
              refreshAfter:"KEYPRESS",
              saveInto: {local!searchtext,
              a!save(
                local!showPosition, where(like(lower(local!titleArray),"*"&lower(local!searchtext)&"*"))
              )
              }
            )
          
          }
        ),
        a!sectionLayout(
          label: "Search Output",
          showWhen:and( len(local!searchtext)>0,count(local!showPosition)>0),
          contents: {
    
              a!textField(
                label: local!firstName,
                value: null,
                showWhen: contains(local!showPosition,1)
              ),
              a!textField(
                label: local!middleName,
                value: null,
                showWhen: contains(local!showPosition,2)
              ),
              a!textField(
                label: local!lastName,
                value: null,
                showWhen: contains(local!showPosition,3)
              ),
              a!textField(
                label: local!city,
                value: null,
                showWhen: contains(local!showPosition,4)
              ),
              a!textField(
                label: local!state,
                value: null,
                showWhen: contains(local!showPosition,5)
              ),
              a!textField(
                label: local!country,
                value: null,
                showWhen: contains(local!showPosition,6)
              ),
              a!textField(
                label: "City Name 1",
                value: null,
                showWhen: contains(local!showPosition,7)
              ),
              a!textField(
                label: "City Name 2",
                value: null,
                showWhen: contains(local!showPosition,8)
              )
           
          }
        )
      }
    )
    

Children
  • Thanks for your reply this is not my requirement,
    My requirement is We want to move user from 1 record dashboard to another dashboard,

    On search of some objects of any dashboard we are giving dashboard name with link , After clicking the link the user is moving to that dashboard, but we want that searched object to be in highlight mode when user move to that particular search object's dashboard, so that user knows which object he searched for.
    Please provide your valuable advice for achieving this requirement