[Laszlo-dev] How to convert "setQueryType(...)"

P T Withington ptw at pobox.com
Sun Mar 1 07:35:57 PST 2009


And please file a bug to get SetQueryType added to the conversion  
script.

On 2009-03-01, at 08:54EST, Henry Minsky wrote:

> 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