I am beginner in coldbox , after going through simplscrud example in sample application , i started converting my application into coldbox.
i.e. making view separately calling handlers on click of any event or in the form submission , for ex like this “#event.buildLink(‘report.flag’)#/StaffId/#rc.ViewSickCalls.StaffId#”
And all the queries . bisiness logic im doing in model by passing & returning values throigh handlers.
Now my requirement is i am using output of one query inside another query and printing the result .
for e.g.
SELECT CallBatchId
FROM callqueue
WHERE CallBatchId = #CallBatchId#
and printing value of #GetData1.Recordcount#
How will i implement this ? as handler will return output of first query then how will i call second query’s handler simultaneously by passing first’s result?
I already gone through this link , there are functions like ol , ul ,table that will produce complete table or lists isnt it? Which function you’ll suggest me if i want recordcount or just one field of the returned query?
HTML Helpers are just plugins, you can either create a plugin that extends the core HTML helper, and then just load this up when you need it. Another way would be to look at the ColdBox code and see how the HTMLHelper plugin is made available to your views, and then copy that way of creating your own.
I just googled myself, as I thought there would be a heap of ways to show how to write your own. There are a few on how to extend the built in one though, so that might be a good guide to begin with, at least till you get a bit more adventurous.
But every time its giving me this error :
“Routines cannot be declared more than once.
The routine getpartners has been declared twice in different templates.”
i changed the name of function also but every time this same error .Can you help me out in this.