Is there a way to use "Call Service" in the table?
When I try to associate a source with a target, I get the error "Invalid assignment. Source and target must have the same number of lists (or tables) as ancestors."
I'm expecting this to happen because the JSON object hierarchy of the REST service execution results is different, but I'd like to know if there is a way around this.
So the table element as the destination is only going to take a response of the same type. Not sure you can put a single element response in the table unless the resulting JSON is modified
The resulting JSON needs to match the destination count. Meaning that if you JSON returns a list of sets then the destination element needs to be a table or a drop down list. But if it just returns a single group of items then it can go into single element items like a single line edit etc.
So a JSON response like this:
Thank you very much.
I understand that it seems that you can get it by the method you taught me with a general REST API.
So what if you want to use "Accessing data from Existing Domino Applications" in your service calls?
I would like to place a Drop down in the table and use the Domino Application data as an option.
However, at Assign Output, I get the error "Invalid assignment. Source and target must have the same number of lists (or tables) as ancestors."
Is it possible to deal with this by customizing the view of Domino Application?
Calling services within a table is not easy today. it can be done, but it takes some magic. This article talks about how to do it -> https://hclleapwiki.atlassian.net/wiki/spaces/HL/pages/393354/Dynamic+Dropdowns+in+a+Table
How do I get to the data on that link?
No matter what Altassian account I use, it says 'travis.hiscock@kelros.com doesn't have access to Confluence on hclleapwiki.atlassian.net.'
We migrated wiki's awhile back, here is the new link -> https://hclwiki.atlassian.net/wiki/spaces/HL/pages/461807/Dynamic+Dropdowns+in+a+Table
(Beginner)
Could I please ask for some help on the example (see wiki); I've recreated as per the instructions and added the JavaScript and it's 'almost' working.
I can successfully select a Region drop down, the Temp Country successfully updates however the Country doesn't.
Would appreciate any advice
Best regards
I was able to get this working.
If the temp country is working then the issue is in the service call listener (this is the code in the onShow of the table).
1. Make sure the service id is correct:
//attach a listener to the temp dropdown and pass in my object
var srv = app.getForm('F_Form1').getServiceConfiguration('SC_GetCountryByRegion');
2. Make sure the references to your temp country and country fields are correct.
If you are still stuck, email me your app (christopher.dawes@hcl.com).

