Hello,
when working with more than one schema, the doctypes of the schemas must be mapped to the collections where the documents of these doctypes are stored. To define this mapping edit the web.xml file of your application (see also chapter ?configuration? of the X-Application documentation).
Now, to your wishes:
1) I want to display the list of employees and their projects(concatenated) in a list box while loading the page.
If I understand you right you want to create a list of employees, e.g.
<BR>Name Project<BR>------------------------------------------------------------------------------´-<BR>John Smith list box with all projects John Smith works on<BR>Adam Miller list box with all projects Adam Miller works on<BR>...<BR>
For this page, my propose is a query for employees (directcommand tag or query page) and within the browse tag you use to display the employees add a X-Application select tag. The expression for the ?text? attribute must be dynamically evaluated. Therefore, use the variable mechanism of X-Application.
2) When a particular choice is selected the respective project details from the schema1 have to be displayed in a text box below.
The select box must be part of a HTML form which refers to a page to display the project details. Since you have more than one select box use JavaScript to set the value of the selected project to a hidden parameter.
On the page for displaying the project use a directcommand of type query. The ?arg? attribute of the directcommand must contain the reference to the hidden parameter which contains the id/name/… of the project.
After the directcommand use a browse tag of pagesize One to display the result of the query (the selected project).
This is a roughly description, but I hope, it helps you. If not or my understanding of your application was not correct, send a further post.
Bye,
Christian.
#API-Management#webMethods#Tamino