class MyRendererConstText

this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint(dpblnt@gmail.com)

Public Class Methods

new(pc) click to toggle source
Calls superclass method MyRendererLabel::new
# File lib/FormHolder/Form/InputHolder/ConstText.rb, line 6
def initialize(pc)
        @pc=pc
        item['admin']=true
        odata=item["data"]
        if i=item["data"].rindex(".")
                item['data']=item["data"][i+1 .. item["data"].length]
        end
        item['querysql']="select cdisplay as #{item['data']},description from scv where combo='#{odata}' and cdata='#{pc.default}' order by cdata"
        super(pc)
end