Links and insert problems of list

LabKey Support Forum (Inactive)
Links and insert problems of list feifei bao  2015-04-08 12:47
Status: Closed
 
Hi Jon,

I think your understanding is right.

Here is the javascript coding I get from default filter function of list:

<script type="text/javascript">

LABKEY.Query.selectRows({
    requiredVersion: 9.1,
    schemaName: 'study',
    queryName: 'Demographics',
    columns: 'ParticipantId,date,Start Date,Height (inches),Gender,Country,Group Assignment,Status of Infection,Comments,Treatment Group',
    filterArray: [LABKEY.Filter.create('Height (inches)', '58;57', LABKEY.Filter.Types.IN),LABKEY.Filter.create('Country', 'USA', LABKEY.Filter.Types.EQUAL)],
    success: onSuccess,
    error: onError
});

But I have no idea about how to create the "filterArray" dynamically based on the input content in the box. Could you please give me an example about how to make the search box pipe into the query as a filter?

Thanks a lot!

Feifei