NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
WebService and Sql filter
« previous
next »
Print
Pages: [
1
]
Author
Topic: WebService and Sql filter (Read 5855 times)
Alberto
Hero Member
Posts: 1873
WebService and Sql filter
«
on:
July 10, 2019, 07:22:27 AM »
I tried to use te Sql Filter in the Web service pethod but it does nothng.
I had to use SQL() in the normal filter.
Ive search the docs fos sql filter and found nothing.
What is it for?
Logged
-----------
Regards
Alberto
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: WebService and Sql filter
«
Reply #1 on:
July 10, 2019, 11:32:45 PM »
It sets the prop:SqlFilter property for the View.
I recommend putting something in there, then right-click on the procedure, view the embeditor (source) and search for your filter.
cheers
Bruce
Logged
Alberto
Hero Member
Posts: 1873
Re: WebService and Sql filter
«
Reply #2 on:
July 12, 2019, 07:05:21 AM »
Using the filter:
loc:filter.Cat('art:Activo_Ventas=1 and SQL(isnull(GuidBlob,'''')='''') ')
view_arts_sin_foto{prop:filter} = loc:Filter.GetValue()
Using Sql filter:
view_arts_sin_foto{prop:filter} = loc:Filter.GetValue()
Theres no loc:filter setting.
Logged
-----------
Regards
Alberto
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: WebService and Sql filter
«
Reply #3 on:
July 14, 2019, 11:01:47 PM »
In an app here I added yyy as the filter and xxx as the SQL Filter.
I see the following in the generated code;
loc:Filter.SetValue('')
loc:Filter.Cat(yyy)
view_5{prop:filter} = loc:Filter.GetValue()
view_5{prop:sqlfilter} = '+' & xxx
If you're not seeing that I guess I need an example to see what's going on.
Cheers
Bruce
Logged
Alberto
Hero Member
Posts: 1873
Re: WebService and Sql filter
«
Reply #4 on:
July 15, 2019, 07:00:06 AM »
I see this:
! End of "Before Populating Result"
loc:filter.Cat(yyy)
view_arts_sin_foto{prop:filter} = loc:Filter.GetValue()
xml.start()
NT11.15
Logged
-----------
Regards
Alberto
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: WebService and Sql filter
«
Reply #5 on:
July 16, 2019, 04:11:11 AM »
I guess I need an example app to see what's going on Alberto?
Logged
Alberto
Hero Member
Posts: 1873
Re: WebService and Sql filter
«
Reply #6 on:
July 16, 2019, 04:19:39 AM »
here it goes... just an app and dct
the proc is
samiApiDatosArticulos
Logged
-----------
Regards
Alberto
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: WebService and Sql filter
«
Reply #7 on:
July 17, 2019, 06:24:40 AM »
thanks - fixed for 11.16
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
WebService and Sql filter