Patent ID: 7624122

Claim:
A computer implemented method for creating a user interface element to query a database, the method comprising: from a query specifying user interface, receiving a user selection of a condition type for querying a business object associated with the condition type; in response to the user selection, identifying an instance of query by group code that is adapted to search for metadata associated with the condition type; executing the identified instance of the query by group code to retrieve the metadata associated with the condition type; based upon the retrieved metadata, adapting the query specifying user interface to create a query specifying user interface element to query for the objects associated with the condition type, by adding at least one static key and at least one a dynamic key; based upon the adapted query specifying user interface element, generating a generic query structure of a query by type code associated with the condition type, the generic query structure including a static field value attribute and a dynamic attribute pair, the dynamic attribute pair having a dynamic field name attribute and a dynamic field value attribute; binding the user interface element to the generic query structure of the query by type code, by binding the static key of the user interface element to the static field value attribute of the generic query structure, and binding the dynamic key of the user interface element to the dynamic attribute pair of the generic query structure; and passing a value entered in the static value field of the static key to the static field value attribute of the generic query structure, passing a value of the dynamic name field of the dynamic key to the dynamic field name attribute of the generic query structure, passing a value entered in the dynamic value field of the dynamic key to the dynamic value field attribute of the generic query structure, and based upon the values entered in the static key and the dynamic key of the user, building a query for querying the business object.