[Laszlo-dev] How to convert "setQueryType(...)"
Henry Minsky
hminsky at laszlosystems.com
Sun Mar 1 05:54:27 PST 2009
You should use setAttribute for the 'querytype'
setAttribute('querytype', 'post')
setQueryType is now deprecated.
On Sun, Mar 1, 2009 at 7:29 AM, Chen Ding <chending0602 at gmail.com> wrote:
> Hi There,
> I upgraded my OpenLaszlo to 4.2, which requires converting the setters to
> "setAttribute(...)". I ran the pearl script. Everything worked just fine
> except that it missed the "setQueryType(...)". I am not sure whether I
> should convert it, and if yes, what should I use. Shall I convert it to
> "setAttribute('query_type', xxx)"? Please help!
> Below is the code in case it may help.
> ...
> var ds = LzHttpDatasetPool.get(this.loadDel, this.errorDel,
> this.timeoutDel) ;
> ds.setQueryType('POST');
> ds.setQueryParams( params ); // 'parms' is a parameter passed in
> ...
>
> Thanks!
> Chen Ding
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
More information about the Laszlo-dev
mailing list