Announcement
Collapse
No announcement yet.
X
-
Re: #18, DataSource.implicitCriteria is an entirely client-side feature, it is added by client-side components. So it does not affect server-side requests, and will not be added to client-side requests that don't come from a SmartClient UI (eg RestHandler). This clarification will be added to the docs soon.
-
Originally posted by Isomorphic View PostThis has now been fixed - you can test out the change in builds dated April 11.
For clarity, case doesn't matter because advancedCriteria.criteria / criterion.criteria is a multiple="true" field, and we're using the uniform format for such fields.
Leave a comment:
-
Hi Isomorpic
yes, mixup. It should read:
OperationBinding.criteria is only applied for client requests, as it is a declarative security feature (see #11).
Question was if this also applies to DataSource.implicitCriteria or can this be used to e.g. always for all requests filter e.g. deleted='Y' rows.
Best regards
Blama
Leave a comment:
-
Please re-read your last two sentences - there's a thinko in there somewhere as you repeated DataSource.implicitCriteria twice but we think you actually meant to contrast it with something else.
Leave a comment:
-
Hi Isomorphic,
Originally posted by Isomorphic View PostWhat do you mean by "the tag is supported"? What tag?
Originally posted by Isomorphic View PostOperationBinding.criteria is for a specific operationBinding and DataSource.implicitCriteria affects all fetches.
Question was if this also applies to DataSource.implicitCriteria or can this be used to e.g. always for all requests filter e.g. deleted='Y' rows.
Best regards
Blama
Leave a comment:
-
What do you mean by "the tag is supported"? What tag?
OperationBinding.criteria is for a specific operationBinding and DataSource.implicitCriteria affects all fetches.
Leave a comment:
-
Hi Isomorphic,
Originally posted by Isomorphic View PostFor clarity, case doesn't matter because advancedCriteria.criteria / criterion.criteria is a multiple="true" field, and we're using the uniform format for such fields.
Originally posted by Isomorphic View PostThis has now been fixed - you can test out the change in builds dated April 11.
Can you also explain the difference between implicitCriteria and OperationBinding.criteria?
Best regards
Blama
Leave a comment:
-
This has now been fixed - you can test out the change in builds dated April 11.
For clarity, case doesn't matter because advancedCriteria.criteria / criterion.criteria is a multiple="true" field, and we're using the uniform format for such fields.
Leave a comment:
-
Apologies, we spoke in error about casing on Criterion - there is indeed a bug with the interpretation of implicitCriteria in DS xml - we'll take a look and update here when it's been fixed.
If you want to see things work in the meantime, you can specify your implicitCriteria in js code on the DS or on dataBoundComponents.
Leave a comment:
-
Hi claudiobosticco,
from what it does I do think that the documented .ds.xml criteria do exactly what client side implicitCriteria do.
As I stumbled over it: .ds.xml criteria only apply to client initiated requests, not to server-requests (so the same like implicitCriteria defined on a clientside datasource). This is because they are a declarative security feature (this is as answer in some recent thread of mine. I can look it up if necessary.).
Best regards
Blama
Leave a comment:
-
Originally posted by Blama View Postclaudiobosticco: Why do you have implicitCriteria in you .ds.xml anyway? I always so only have <criteria... tags and the docs also don't list implicitCriteria.
Perhaps it's just a wrong tag that does not get removed?
I've asked before about it https://forums.smartclient.com/forum...rid-updatedata and I didn't get a RTM response...for now ;-)
Leave a comment:
-
Hi Isomorphic, Hi claudiobosticco
if #8 is true, this seems like an error to me and a case for this thread.
But I don't see any "Criterion" in my result (assuming that loadDS tag is just another way of a DataSourceLoader-call) using my existing .ds.xml.
claudiobosticco: Why do you have implicitCriteria in you .ds.xml anyway? I always so only have <criteria... tags and the docs also don't list implicitCriteria.
Perhaps it's just a wrong tag that does not get removed?
Best regards
Blama
Leave a comment:
-
Hi Blama, yes I load the dataSource using the loadDS tag, and in the js version of the dataSource I see the implicitCriteria in that form, which doesn't seem correct, so I assume that's why I get a js error when executing dataSource.fetchData.
Agreed for the Velocity syntax, I just want to understand the correct syntax (or help to understand if it's a bug), and then for my use case I'll use another technique.
Leave a comment:
-
Hi claudiobosticco,
Originally posted by claudiobosticco View Postok, but this gives me the same js error:
...
client side, it is translated like that:
The "$currentDateTime" is Velocity, so from #2 I assume this is not supposed to work this way.
Best regards
Blama
Leave a comment:
-
Hi Isomorphic,
Originally posted by Isomorphic View Post"criterion" needs a capital letter
I know that it is possible to find it somewhere in the docs, but you'd to know the docs really good if you ever stumble on something like this to get authoritative information.
Don't get me wrong, I really like the wast amount of information in the docs and their thoroughness, but sometimes I do miss complex examples, like I also wrote in the linked thread and that would also have helped claudiobosticco here.
Best regards
Blama
Leave a comment:
Leave a comment: