Hi Sameera,Shiva,

Thank you for your information.



Thanks,
Kathees

On Thu, Jan 29, 2015 at 10:22 PM, Sameera Medagammaddegedara <
[email protected]> wrote:

> Hi Kathees,
>
> For the ES 1.2.0 -M2 pack used in the connector store this can only be
> done by editing the following file:
>
>
> https://github.com/wso2-dev/product-es/blob/1.2.0-m3/modules/apps/store/modules/rxt/ext/scripts/form.overview.exporter.js
>
> The flow of determining search enable fields is as follows:
>
> The search fields are retireved in each page (e.g. [1]) by calling the
> following util script:
>
>
> https://github.com/wso2-dev/product-es/blob/1.2.0-m3/modules/apps/store/modules/util.js
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2-dev%2Fproduct-es%2Fblob%2F1.2.0-m3%2Fmodules%2Fapps%2Fstore%2Fmodules%2Futil.js&sa=D&sntz=1&usg=AFQjCNErLQ9iNS7LEn39hsHS-ihW_zK0VA>
>
> The search able fields are returned by:
>
> return model.export('formo');
>
> which invokes the following script:
>
>
> https://github.com/wso2-dev/product-es/blob/1.2.0-m3/modules/apps/store/modules/rxt/ext/scripts/form.overview.exporter.js
>
> The above scripts only extracts the fields specified in the overview table
> to include as search enabled fields.Since you have fields in other tables,
> you will need to write logic which drops the check for the overview table:
>
>
> https://github.com/wso2-dev/product-es/blob/1.2.0-m3/modules/apps/store/modules/rxt/ext/scripts/form.overview.exporter.js#L47
> :
>
> if(table.name.toLowerCase()=='overview'){
>
>
> *Reference*
> [1]
> https://github.com/wso2-dev/product-es/blob/1.2.0-m3/modules/apps/store/controllers/assets.jag#L101
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2-dev%2Fproduct-es%2Fblob%2F1.2.0-m3%2Fmodules%2Fapps%2Fstore%2Fcontrollers%2Fassets.jag%23L101&sa=D&sntz=1&usg=AFQjCNFygnc5jwuJE51ML9m91hBKC3OspA>
>
> Thank You,
> Sameera
>
> On Thu, Jan 29, 2015 at 3:01 AM, Kathees Rajendram <[email protected]>
> wrote:
>
>> Hi Shiva,
>>
>> Yes, I want to limit the certain fields.
>>
>>
>> Thanks,
>> Kathees
>>
>> On Thu, Jan 29, 2015 at 1:04 PM, Shiva Balachandran <[email protected]>
>> wrote:
>>
>>> Hi Kathees,
>>>
>>> Do you want to add your own filters for the search or customize the
>>> search functionality itself to limit it to certain fields?
>>>
>>> Thank you,
>>>
>>> Regards,
>>>
>>> Shiva Balachandran
>>>
>>> p.s. - Looping in SameeraM
>>>
>>> On Thu, Jan 29, 2015 at 12:22 PM, Kathees Rajendram <[email protected]>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Now we are getting all RXT Attributes for search functionality. I want
>>>> to customize the search in Enterprise store. How can I do in the enterprise
>>>> store?
>>>>
>>>>
>>>>
>>>> Thanks,
>>>> Kathees
>>>>
>>>> --
>>>> Kathees
>>>> Software Engineer,
>>>> email: [email protected]
>>>> mobile: +94772596173
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Shiva Balachandran
>>> Software Engineer
>>> WSO2 Inc.
>>>
>>> Mobile - +94 774445788
>>> Blog - https://shivabalachandran.wordpress.com/
>>>
>>
>>
>>
>> --
>> Kathees
>> Software Engineer,
>> email: [email protected]
>> mobile: +94772596173
>>
>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: [email protected]
> Mobile: + 94 077 255 3005
>



-- 
Kathees
Software Engineer,
email: [email protected]
mobile: +94772596173
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to