<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/dm/qry/dmqry0507m000" xml:lang="en">
   <Header>
      <Title>Complex Conditions (dmqry0507m000)</Title>
   </Header>
   <HelpTopic>
      <AimSection>
         <Paragraph>Use this session to link two or more queries
		  to a main query.</Paragraph>
      </AimSection>
      <GeneralSection>
         <List>
            <ListIntro>The <Link href="/baanerp/dm/qry/dmqry0507m000" role="session">Complex Conditions (dmqry0507m000)</Link> session can be invoked
			 from the Specific menu of the following sessions:</ListIntro>
            <ListItem> 
               <Link href="/baanerp/dm/qry/dmqry0501m000" role="session">Query (dmqry0501m000)</Link>.</ListItem>
            <ListItem> 
               <Link href="/baanerp/dm/qry/dmqry0503m000" role="session">Previous Runs (dmqry0503m000)</Link>.</ListItem>
         </List>
         <Paragraph>To start the <GUIRef href="/baanerp/dm/qry/dmqry0507m000" role="session">Complex Conditions (dmqry0507m000)</GUIRef> session from the <GUIRef href="/baanerp/dm/qry/dmqry0501m000" role="session">Query (dmqry0501m000)</GUIRef> session, the main query type must be linked query.</Paragraph>
         <Paragraph>If you start the <GUIRef href="/baanerp/dm/qry/dmqry0507m000" role="session">Complex Conditions (dmqry0507m000)</GUIRef> session from the <GUIRef href="/baanerp/dm/qry/dmqry0503m000" role="session">Previous Runs (dmqry0503m000)</GUIRef> session, the session is read only. You can view the
		  condition on which the previous run was performed. You cannot modify the data.</Paragraph>
         <Paragraph>To work with the <GUIRef href="/baanerp/dm/qry/dmqry0507m000" role="session">Complex Conditions (dmqry0507m000)</GUIRef> session:</Paragraph>
         <Paragraph>The object type and
		  query fields are filled with the selected values from the <Link href="/baanerp/dm/qry/dmqry0501m000" role="session">Query (dmqry0501m000)</Link> session.</Paragraph>
         <Paragraph>The link type is
		  always set to And.</Paragraph>
         <Paragraph>The link direction can
		  be the following: <GUIRef href="" role="manual">Link Member to Owner</GUIRef>: The base query object
		  is a member of a family owned by linked query object.</Paragraph>
         <Paragraph>If the link type is
		  Link Member to Owner, you are prompted with all the families of which the query
		  object is a member. On selection of a particular family, you are prompted to
		  select a query based on the family owner as the object .</Paragraph>
         <Paragraph>For example, query
		  Q-001 is based on CR. The user selects the family FATT_DOCS, of which CR is a
		  member. The user must select a query Q-0010 based on the family owner of
		  FATT_DOCS, which is DOCS.</Paragraph>
         <Paragraph> 
            <GUIRef href="" role="manual">Link Owner to Member</GUIRef>: The base query object is the owner of the family and the
		  linked object is a member.</Paragraph>
         <Paragraph>If the link type is
		  Link Owner to Member, the user is prompted with all the families for which the
		  base query object is the owner. On selection of a particular family, you are
		  prompted to select an object from the list of members of the selected family.
		  Then you are prompted to select the linked query which is based on the
		  previously selected object</Paragraph>
         <Paragraph>For example, query
		  Q-001 is based on CR. The user selects the family FATT_CR with CR as the owner.
		  The user then clicks EITM as the linked object from a list of member object of
		  FATT_CR. The user then clicks Q-0011 based on EITM.</Paragraph>
         <Paragraph> 
            <GUIRef href="" role="manual">Combined Queries</GUIRef>: Queries based on the same object type are linked.</Paragraph>
         <Paragraph>If the link type is
		  combined queries, the user is prompted to select a query based on the query
		  object type.</Paragraph>
         <Paragraph>For example, Q-001 is
		  based on CR, the user clicks a query Q-0012 based on CR. Queries are defined
		  based on a single object type, or based on combined queries.</Paragraph>
      </GeneralSection>
   </HelpTopic>
   <Fields>
      <FieldHelp ID="dmqry007.objt">
         <Header>
            <Title>Object Type</Title>
         </Header>
         <FuncDesc>The object ID which acts as an identifier. Click the browse
		  arrow in the <Link href="/baanerp/dm/qry/dmqry0501m000" role="session">Query (dmqry0501m000)</Link> session for the object type to select the query
		  instance.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="dmqry007.qrid">
         <Header>
            <Title>Query</Title>
         </Header>
         <FuncDesc>The query ID which acts as an identifier.To select a query
		  click the browse arrow in the <GUIRef href="/baanerp/dm/qry/dmqry0501m000" role="session">Query (dmqry0501m000)</GUIRef> session for the specified object for which the complex
		  query conditions are created.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="dmqry007.qtyp">
         <Header>
            <Title>Query Type</Title>
         </Header>
         <FuncDesc>The Description of the query type.The query type for the
		  complex conditions query will be set to linked query.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="dmqry007.ltyp">
         <Header>
            <Title>Link Type</Title>
         </Header>
         <FuncDesc>Specifies the type of link to another query of a different
		  object.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="dmqry007.ldir">
         <Header>
            <Title>Link Direction</Title>
         </Header>
         <FuncDesc>Used to link queries that are based on the same object type or
		  on various object types. You must specify the link type and the link direction
		  for the query to be linked.</FuncDesc>
         <SimpleSection>
            <Paragraph>Link Member to
			 Owner: The base query object is a member of a family owned by the linked query
			 object.</Paragraph>
            <Paragraph>Link Owner to
			 Member: The base query object is the owner of a family and the linked query
			 object is a member.</Paragraph>
            <Paragraph>Combined Queries:
			 Queries based on the same object are linked.</Paragraph>
         </SimpleSection>
      </FieldHelp>
      <FieldHelp ID="dmqry007.lobj">
         <Header>
            <Title>Linked Family</Title>
         </Header>
         <FuncDesc>Value is dependent on the link direction selected. If the link
		  direction is Member to Owner, the family must be from the list of families
		  where the Base Query Object is a member. If the link direction is owner to
		  member, the family must be from the list of families in which the base object
		  is the owner. If the link type is combined, the family is the same as the base
		  query object.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="dmqry007.loty">
         <Header>
            <Title>Linked Object</Title>
         </Header>
         <FuncDesc>Displays the linked object that is linked to a complex
		  condition. This field is enabled only if the link direction field is set to
		  Owner to Member. To choose the object, the user can zoom to the Objects
		  session. If the link direction is Member to Owner, this field is directly
		  populated with the object, which is the owner of the chosen <Link href="/baanerp/dm/glossary/glossary#000065" role="glossary">object family</Link>. If the linked direction is combined, this
		  field has the same value as that of the base query object.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="dmqry007.lqrd">
         <Header>
            <Title>Linked Query</Title>
         </Header>
         <FuncDesc>Displays the <Link href="/baanerp/dm/glossary/glossary#000039" role="glossary">query</Link> that is linked to the complex condition. Select the
		  query associated with the linked object. This query must belong to the chosen
		  linked object.</FuncDesc>
      </FieldHelp>
   </Fields>
   <FormCommands>
      <CommandHelp ID="exec.user.0">
         <Header>
            <Title>Query Conditions...</Title>
         </Header>
         <FuncDesc>You can view the query conditions for the selected linked
		  query.</FuncDesc>
      </CommandHelp>
   </FormCommands>
</Session>