Insert code in a find

Questions, tips and tricks and techniques for scripting in Servoy

Insert code in a find

Postby kurtbleicken » Fri Apr 27, 2012 10:08 pm

In a search method a method might like this:

forms.pf_schools_admin_summ_web.controller.find()
forms.pf_schools_admin_summ_web.fk_school_id = globals.g_school_id
forms.pf_schools_admin_summ_web.controller.search( )

What I'd like to do is insert some code into the method where that insert is stored in the school table. Could be several lines of code unique to that school.

var schoolSearch = contacts_to_schools.find_ca_query //where this section of the search code is unique to the school and stored in the school table in the text field 'find_ca_query'
forms.pf_schools_admin_summ_web.controller.find()
schoolSearch
forms.pf_schools_admin_summ_web.controller.search( )

This doesn't work. Any suggestions on how this might be done?

K
Kurt Bleicken
Servoy 7
Executive Director, onRamp for nonprofits
kurtbleicken@gmail.com
Founder, AgentSphere, LLC
kurtbleicken@gmail.com
603.525.8019
kurtbleicken
 
Posts: 100
Joined: Mon Feb 12, 2007 11:36 pm

Return to Methods

Who is online

Users browsing this forum: No registered users and 6 guests