Variables on Mac Pro not loading?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Variables on Mac Pro not loading?

XL Cordemans
Ok, the upgrade from 8.6 to 9.3.1-5 is worth the change. But it is time consuming.The set-up is lasso 9.3.1-5, MySQL and latest El Capitan Server on a Mac Pro w/ 10.11.4

1. VARIABLES NOT LOADINGOne issue with the variables. On 8.6 I used to work with [server_push] to make sure values are properly generated before the rest of the page loads. On 9.3.1-5 that that is no more. 
But since then the variables seem not to load properly, and seem to depend on the location on the html page and what comes before and after those.  I work quite a bit with 'includes' as their content (usually for verification) are used on every single page of the site. Worked for years on 8.6, not on 9.3.1-5 . So sometimes the variables are existing, sometimes their absence lead to an error page.
It is as if the server works too fast. Is there a way to have the code loading in a preset sequence?

The code is written like this (i.e.) s:  [var(VGLB=(Field:'GLB')]
    note: I prefer to use [  ] as that is that I used for many years.

2. IP ADDRESSanother problem I have is with [client_addr]. It shows fine on the browser, but capturing inside a database is an issue: often it  just put the word 'client_address' instead of the proper IP address itself. 
Any clue? The code is written like this: [client_addr] and [var(Vaddress=(client_addr))] 
    note: again, it seems an issue with the variable not being passed over


Thanks










#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Variables on Mac Pro not loading?

stevepiercy
On 5/20/16 at 2:13 AM, [hidden email] (XL Cordemans) pronounced:

>The code is written like this (i.e.) s:  [var(VGLB=(Field:'GLB')]
>    note: I prefer to use [  ] as that is that I used for many years.

Your problem has nothing to do with the operating system.

[ ] is fine to use.

     [var(VGLB=(Field:'GLB')]

...is syntactically incorrect as the number of opening and
closing parentheses do not match.  The following would be correct.

     [var(VGLB=(Field:'GLB'))]

...except...

: might not work as you would expect in Lasso 9 (or 8 for that
matter).  Use parentheses () for throwing parameters at Lasso
types and methods.

So instead of this:

     lasso_method: positional_parameter, -keyword_parameter

Do this:

     lasso_method(positional_parameter, -keyword_parameter)

>2. IP ADDRESSanother problem I have is with [client_addr]. It
>shows fine on the browser, but capturing inside a database is
>an issue: often it  just put the word 'client_address' instead
>of the proper IP address itself. 
>Any clue? The code is written like this: [client_addr] and [var(Vaddress=(client_addr))] 

[client_addr] is a deprecated Lasso method, and has not been
used since Lasso 3.x.

[client_address] or [client_ip] is probably what you want, or
better yet use the Lasso 9 web_request type and its methods
which avoid ambiguity of [client_address], e.g., [web_request -> remoteaddr].
http://www.lassosoft.com/lassoDocs/languageReference/obj/web_request/remoteAddr

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Variables on Mac Pro not loading?

XL Cordemans
Thanks Steve, 
IP Address:     noted, it works fine
Variable:    my mistake in the post, I had it with 2x a ) in the code. 


The ' : ' in 9.3.x
   thanks for the explanation. I changed the code as follows and it works very well indeed:
    from   [var(VGLB=(Field:'GLB'))]

    to       [var(VGLB=Field('GLB'))]  

FYI - 


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>