我想在程序中动态配置block的属性,现在对where clause进行设置
比如我有一个叫做test的 block,在其连接的数据库test中只显示字段
b以'B'打头的记录,现在我在 when-new-form-instance中添加语句如下:
set_block_property('test','default_where','where b like ''B%''');[@more@]
比如我有一个叫做test的 block,在其连接的数据库test中只显示字段
b以'B'打头的记录,现在我在 when-new-form-instance中添加语句如下:
set_block_property('test','default_where','where b like ''B%''');[@more@]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10484922/viewspace-967043/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10484922/viewspace-967043/