Ximpia
  • About Ximpia
    • Overview
    • Views
    • Forms
    • Actions
    • Templates and Visual Components
  • Example
    • Model
    • Visual Components
    • Form
    • View
    • Action
    • Registering
  • Quick Start
    • Virtual Environment
    • Installation
    • Upgrading
    • Setup Application
  • Services
    • Forms
    • Services
    • Choices
    • Messages
    • Context
  • Business
    • CommonBusiness
    • Implementation
    • Coding Practises
  • Data
    • Master/Replicas
    • BaseModel
    • CommonDAO
  • Models
    • Introduction
  • Workflow
    • Decorators
    • Extension
    • Models
    • WorkflowBusiness
  • Fields
    • Introduction
  • Component Registry
    • Apps and Services
    • Views
    • Templates
    • Actions
    • Flows and flow data
    • Menus
    • Search commands
  • Commands
    • xpcomponents
  • Visual Conditions
    • Comparison Operators
    • Logical Operators
    • Visual Objects Conditions
  • Visual Components
    • Common Attributes
    • Button
    • Check
    • Container
    • Content
    • Field
    • FieldCheck
    • FieldDateTime
    • FieldList
    • FieldNumber
    • Function
    • Link
    • ListContent
    • ListData
    • Image
    • Option
    • PagingBullet
    • PagingMore
    • Select
    • SelectPlus
    • TextArea
  • Templates
    • Visual Context
  • Menu
    • Zones
    • Services
    • Linked Views
    • Conditions
  • Search
  • Release Notes
    • 0.2.1
    • 0.2.0
 
Ximpia
  • Docs »
  • Search
  • Edit on GitHub

SearchΒΆ

We provide a search box with auto-complete to have a shortcut place where call all views and actions.

You can register which views and actions show up in search auto-complete and also associate specific data to be searchable, like customer names for example.

self._reg.registerSearch(__name__, text='Change Password', viewName=Views.CHANGE_PASSWORD)

When you want to register data, you would do in your services:

search = SearchService(self._ctx)
search.add_index(customer_name, self._app, view_name='show_customer',
    action_name=None, params={customer_id=876}):

This would add to search index a particular customer. Would show customer_name in auto-complete, which would be linked to view show_customer with attributes customer_id=876.

Next Previous

© Copyright 2013, Ximpia Inc.

Sphinx theme provided by Read the Docs