Hi,
the select tag provides the functionality you are looking for. With the select tag you are able to use almost abitrary queries (restricted by X-Query). Therefore you are able to read information from an independent source(here: of doctype ‘users’) not depending to a surrounding context (here: of doctype ‘request’).
The following lines of code refer to the ‘login example’ of a previous post:
<xapp:setvar [b][i]name="comboBoxQuery"[/i][/b]>/users/Xpath_to_ProjectCode[/users/userid="<xapp:display select="/users/userid"/>"]</xapp:setvar>
<xapp:form>
...
<xapp:edit select="/request/Xpath_to_ProjectCode">[b]<xapp:select text="[i]${comboBoxQuery$}[/i]" />[/b]</xapp:edit>
...
</xapp:form>
Explanation:
- 1. define a query depending on the user who is locked in an store it into a variable(here:comboBoxQuery
- 2. use a select tag within an edit tag, pointing to you destination.
a)edit tag: <xapp:edit select=“/request/Xpath_to_ProjectCode”>
b)let the text attribute refer to the vaiable: <xapp:select text=“${comboBoxQuery$}” />
Hope that this will help you
Bye
Thorsten
#webMethods#API-Management#Tamino