benjamin_brooking
9 years agoIdeator I
Federation - Item count
Hello,
I've created a federated ItemType to pull in data from an ODBC data source and it seems to be working great apart from one thing: When running a search the status bar at the bottom reports '0 items found', and consequently you can't page through the results. 25 results do actually appear on screen though!
Looking at the results in AML Studio I can't see any difference between what my onGet returns and the results of any other query on a normal native ItemType, so I'm not sure how I'm supposed to communicate the number of results (and page number) to the UI.
To save uploading all my code, my results are assembled by:
- Create inn.newItem("my federated type")
- Set attributes and properties
- Get AML of new Item and append to string
- Repeat this for all results
- Strip the isNew and isTemp attributes from the AML
- Wrap in <Result> tags
- Return via inn.newItem().LoadAML(mystring);