Comments (6)
It is possible to set constrained by using [%CurrentObject] however there is a limitation in that the association needs to be set and committed on the context object.
I've added a test called 'Constrained By' in the test project that shows using [%CurrentObject] but I will need to have a think to see how we can achieve the same behaviour with associations set in memory (which is what is really needed)
from autocompleteformendix.
Ok, I think I have managed to do this by adding two additional parameters in the Search tab:
- Constrained by [Context] - Select an association from the data view context if you want the results to be constrained by a particular object. Must be used alongside 'Constrained by [Source]'
- Constrained by [Source] - Select an association from the AutoComplete's source entity if you want the results to be constrained by a particular object. Must be used alongside 'Constrained by [Context]'
I need the first one in order to retrieve the ID of the object to filter the results by. I need the second one so I can apply the correct xpath with the retrieved ID.
An updated widget is available in the dist folder. Let me know if this solves it for you
from autocompleteformendix.
sorry, dist folder is only on my local machine! You'll need to take the widget from the widgets folder in the test project
from autocompleteformendix.
I'm testing it right now, but at first sight it seems to do exactly that what I was looking for, so KUDOS and much appreciation for working on this! I'll do some test (On change, etc.) and come back to you to finalize this.
from autocompleteformendix.
Great, let me know how your testing goes... if all goes well I'll publish a new release on to the app store
from autocompleteformendix.
Does exactly what I need! Only thing I'll take care of with an On Change microflow is emptying certain associations as soon as something up the tree requires it (for example: Category was Food with subcategory Drinks and category is changed to Cars. Subcategory remains selected at Drinks, while the possible options is now different. But like I said, nothing that can't be handled through On Change microflow logic)
from autocompleteformendix.
Related Issues (20)
- Cannot tab past widget HOT 2
- Error and warnings on closing page HOT 2
- Search bar doesn't render properly when placed inside a second modal popup. (Mendix 8.15.0)
- Failed to fetch on no result microflow HOT 1
- Limited styling options HOT 1
- Validation message count does not update correctly in a tab container
- Focus issue - when you click tab instead of 'enter'
- on-change microflow with pop-up page keeps a page-open state in memory
- No results displayed by default HOT 4
- Cant clear with 'Allow clear' and 'Select on Close' properties both enabled.
- Why was it chosen to put "Search String" to the context object instead of an extra microflow parameter? HOT 1
- List items are garbage-collected on client
- 404 file not found errors in client logs HOT 1
- No Results button kicks user to home page
- Usage of nanoflows for OnChange event
- No Records found if Template Attribute comes from related entity
- Close page in OCH microflow not working
- Error
- DEPRECATED: mx.logger, use console.debug instead -- will be removed in version: 11.0
- Cannot read properties of null (reading 'toLowerCase')
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autocompleteformendix.