[Search and AutoComplete Mobile] Search and autocomplete mobile set default value in edit screen

[Search and AutoComplete Mobile] Search and autocomplete mobile set default value in edit screen

  
Forge Component
(0)
Published on 18 Mar by Pedro Marques
0 votes
Published on 18 Mar by Pedro Marques

Hi,

I implemented the "Search and Autocomplete Mobile" component in my mobile application and it works fine when i enter something to search.

I now want to set the default value for the search field when my screen load (Edit mode). Can you please help me how can i achieve this.


thanks,

-Venkata Rajam

Hi Venkata

Use the screen lifecycle events to set default value.

Probably you'll want to use the "On Initialize" one.



If the inputs are bound to Aggregates, "On After Fetch" of the corresponding Aggregate is a better option.


João Heleno wrote:

Hi Venkata

Use the screen lifecycle events to set default value.

Probably you'll want to use the "On Initialize" one.



If the inputs are bound to Aggregates, "On After Fetch" of the corresponding Aggregate is a better option.


Thanks Joao for quick response, i did create an On Initialize event to set the default values and i am getting the desired inputs successfully from aggregates but not able to bind that value to the "Search and Autocomplete Mobile" webblock that was used from the component.


thanks,

-Venkata Rajam