2 Replies Latest reply: Dec 21, 2012 6:33 AM by Farshid Zarinara RSS

    item in item region depends on another item in the same group out of the re

    Farshid Zarinara
      Hi
      i have an item ( BnkrecTrackingCode ) in the item region and i want to disable this item depends on another item ( BnkrecType )out of that region but in the same group
      but
      it is not work
      --------------------------------------------------------------------------------------------------------
      BnkrecTrackingCode Properties in the Application Defination Editor

      Depends On Item(s) ----> BnkrecType
      Disabled?---------------------> #{$DEPENDS_ON_ITEM_VALUE$ == 'Bill'}
      Required?--------------------> #{$DEPENDS_ON_ITEM_VALUE$ == 'Receipt'}
      --------------------------------------------------------------------------------------------------------
      Thanks
        • 1. Re: item in item region depends on another item in the same group out of the re
          Steven Davelaar-Oracle
          This should just work for the enabled property. For the required property, you need to refresh the enclosing layout container, so if the dependent item is in another item region, you should make this region dependent on BnkrecType.
          Can you post the generated page fragment? And which version of JDeveloper and Jheadstart are you using?

          Steven Davelaar,
          JHeadstart Team.
          • 2. Re: item in item region depends on another item in the same group out of the re
            Farshid Zarinara
            Jdeveloper 11.1.2.2.0
            Jheadstart 11.1.2.1.28

            <f:facet name="center">
            <!-- DEBUG:BEGIN:STACKED_REGION_CONTAINER : default/pageComponent/stackedRegionContainer.vm, nesting level: 11 -->
            <af:panelTabbed position="above" childCreation="lazy"
            dimensionsFrom="auto"
            inlineStyle=" width:400px; "
            partialTriggers=" BnkReceipts2BnkrecType" ---------->Referenced id BnkReceipts2BnkrecType does not exist._
            id="BnkReceipts2RegionsTabs">
            <af:showDetailItem stretchChildren="first"
            textAndAccessKey="#{nls['RECEIPT_TITLE']}"
            partialTriggers=" BnkReceipts2BnkrecType"
            id="BnkReceipts2RegionsReceiptTab">
            <!-- DEBUG:BEGIN:ITEM_REGION : default/pageComponent/itemRegion.vm, nesting level: 12 -->
            <af:panelFormLayout rows="1" maxColumns="1"
            labelAlignment="start"
            id="pfl6">
            <!-- DEBUG:BEGIN:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13 -->
            <af:inputText id="BnkReceipts2BnkrecTrackingCode"
            value="#{bindings.BnkReceipts2BnkrecTrackingCode.inputValue}"
            label="#{bindings.BnkReceipts2BnkrecTrackingCode.hints.label}"
            *required="#{bindings.BnkReceipts2BnkrecType.attributeValue == 'Receipt'}"*
            rows="#{bindings.BnkReceipts2BnkrecTrackingCode.hints.displayHeight}"
            columns="#{bindings.BnkReceipts2BnkrecTrackingCode.hints.displayWidth}"
            maximumLength="20"
            *disabled="#{bindings.BnkReceipts2BnkrecType.attributeValue == 'Bill'}"*
            shortDesc="#{bindings.BnkReceipts2BnkrecTrackingCode.hints.tooltip}">
            <f:validator binding="#{bindings.BnkReceipts2BnkrecTrackingCode.validator}"/>
            <af:convertNumber groupingUsed="false"
            pattern="#{bindings.BnkReceipts2BnkrecTrackingCode.format}"/>
            </af:inputText>
            <!-- DEBUG:END:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13-->
            <!-- DEBUG:BEGIN:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13 -->
            <af:inputText id="BnkReceipts2BnkrecRefNumber"
            value="#{bindings.BnkReceipts2BnkrecRefNumber.inputValue}"
            label="#{bindings.BnkReceipts2BnkrecRefNumber.hints.label}"
            *required="#{bindings.BnkReceipts2BnkrecType.attributeValue == 'Receipt'}"*
            rows="#{bindings.BnkReceipts2BnkrecRefNumber.hints.displayHeight}"
            columns="#{bindings.BnkReceipts2BnkrecRefNumber.hints.displayWidth}"
            maximumLength="20"
            *disabled="#{bindings.BnkReceipts2BnkrecType.attributeValue == 'Bill'}"*
            shortDesc="#{bindings.BnkReceipts2BnkrecRefNumber.hints.tooltip}">
            <f:validator binding="#{bindings.BnkReceipts2BnkrecRefNumber.validator}"/>
            <af:convertNumber groupingUsed="false"
            pattern="#{bindings.BnkReceipts2BnkrecRefNumber.format}"/>
            </af:inputText>
            <!-- DEBUG:END:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13-->
            </af:panelFormLayout>
            <!-- DEBUG:END:ITEM_REGION : default/pageComponent/itemRegion.vm, nesting level: 12-->
            </af:showDetailItem>
            <af:showDetailItem stretchChildren="first"
            textAndAccessKey="#{nls['BILL_TITLE']}"
            *partialTriggers=" BnkReceipts2BnkrecType"*
            id="BnkReceipts2RegionsBillTab">
            <!-- DEBUG:BEGIN:ITEM_REGION : default/pageComponent/itemRegion.vm, nesting level: 12 -->
            <af:panelFormLayout rows="1" maxColumns="1"
            labelAlignment="start"
            id="pfl7">
            <!-- DEBUG:BEGIN:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13 -->
            <af:inputText id="BnkReceipts2BnkNameFa"
            value="#{bindings.BnkReceipts2BnkNameFa.inputValue}"
            label="#{bindings.BnkReceipts2BnkNameFa.hints.label}"
            *required="#{bindings.BnkReceipts2BnkrecType.attributeValue == 'Bill'}"*
            rows="#{bindings.BnkReceipts2BnkNameFa.hints.displayHeight}"
            columns="20"
            maximumLength="40"
            *disabled="#{bindings.BnkReceipts2BnkrecType.attributeValue == 'Receipt'}"*
            shortDesc="#{bindings.BnkReceipts2BnkNameFa.hints.tooltip}">
            <f:validator binding="#{bindings.BnkReceipts2BnkNameFa.validator}"/>
            </af:inputText>
            <!-- DEBUG:END:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13-->
            <!-- DEBUG:BEGIN:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13 -->
            <af:inputText id="BnkReceipts2BnkbchNameFa"
            value="#{bindings.BnkReceipts2BnkbchNameFa.inputValue}"
            label="#{bindings.BnkReceipts2BnkbchNameFa.hints.label}"
            *required="#{bindings.BnkReceipts2BnkrecType.attributeValue == 'Bill'}"*
            rows="#{bindings.BnkReceipts2BnkbchNameFa.hints.displayHeight}"
            columns="20"
            maximumLength="40"
            *disabled="#{bindings.BnkReceipts2BnkrecType.attributeValue == 'Receipt'}"*
            shortDesc="#{bindings.BnkReceipts2BnkbchNameFa.hints.tooltip}">
            <f:validator binding="#{bindings.BnkReceipts2BnkbchNameFa.validator}"/>
            </af:inputText>
            <!-- DEBUG:END:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13-->
            <!-- DEBUG:BEGIN:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13 -->
            <af:inputText id="BnkReceipts2BnkrecAccountNumber"
            value="#{bindings.BnkReceipts2BnkrecAccountNumber.inputValue}"
            label="#{bindings.BnkReceipts2BnkrecAccountNumber.hints.label}"
            *required="#{bindings.BnkReceipts2BnkrecType.attributeValue == 'Bill'}"*
            rows="#{bindings.BnkReceipts2BnkrecAccountNumber.hints.displayHeight}"
            columns="#{bindings.BnkReceipts2BnkrecAccountNumber.hints.displayWidth}"
            maximumLength="20"
            *disabled="#{bindings.BnkReceipts2BnkrecType.attributeValue == 'Receipt'}"*
            shortDesc="#{bindings.BnkReceipts2BnkrecAccountNumber.hints.tooltip}">
            <f:validator binding="#{bindings.BnkReceipts2BnkrecAccountNumber.validator}"/>
            <af:convertNumber groupingUsed="false"
            pattern="#{bindings.BnkReceipts2BnkrecAccountNumber.format}"/>
            </af:inputText>
            <!-- DEBUG:END:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13-->
            <!-- DEBUG:BEGIN:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13 -->
            <af:inputText id="BnkReceipts2BnkrecAccountOwner"
            value="#{bindings.BnkReceipts2BnkrecAccountOwner.inputValue}"
            label="#{bindings.BnkReceipts2BnkrecAccountOwner.hints.label}"
            *required="#{bindings.BnkReceipts2BnkrecType.attributeValue == 'Bill'}"*
            rows="#{bindings.BnkReceipts2BnkrecAccountOwner.hints.displayHeight}"
            columns="#{bindings.BnkReceipts2BnkrecAccountOwner.hints.displayWidth}"
            maximumLength="40"
            *disabled="#{bindings.BnkReceipts2BnkrecType.attributeValue == 'Receipt'}"*
            shortDesc="#{bindings.BnkReceipts2BnkrecAccountOwner.hints.tooltip}">
            <f:validator binding="#{bindings.BnkReceipts2BnkrecAccountOwner.validator}"/>
            </af:inputText>
            <!-- DEBUG:END:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13-->
            </af:panelFormLayout>
            <!-- DEBUG:END:ITEM_REGION : default/pageComponent/itemRegion.vm, nesting level: 12-->
            </af:showDetailItem>
            <af:showDetailItem stretchChildren="first"
            textAndAccessKey="#{nls['INFORMATION_TITLE']}"
            *partialTriggers=" BnkReceipts2BnkrecType"*
            id="BnkReceipts2RegionsInformationTab">
            <!-- DEBUG:BEGIN:ITEM_REGION : default/pageComponent/itemRegion.vm, nesting level: 12 -->
            <af:panelFormLayout rows="1" maxColumns="1"
            labelAlignment="start"
            id="pfl8">
            <!-- DEBUG:BEGIN:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13 -->
            <af:inputText id="BnkReceipts2BnkrecCreatedBy"
            value="#{bindings.BnkReceipts2BnkrecCreatedBy.inputValue}"
            label="#{bindings.BnkReceipts2BnkrecCreatedBy.hints.label}"
            required="#{bindings.BnkReceipts2BnkrecCreatedBy.hints.mandatory}"
            rows="#{bindings.BnkReceipts2BnkrecCreatedBy.hints.displayHeight}"
            columns="#{bindings.BnkReceipts2BnkrecCreatedBy.hints.displayWidth}"
            maximumLength="40"
            readOnly="true"
            shortDesc="#{bindings.BnkReceipts2BnkrecCreatedBy.hints.tooltip}">
            <f:validator binding="#{bindings.BnkReceipts2BnkrecCreatedBy.validator}"/>
            </af:inputText>
            <!-- DEBUG:END:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13-->
            <!-- DEBUG:BEGIN:FORM_DATE_FIELD : default/item/form/formDateField.vm, nesting level: 13 -->
            <af:inputDate id="BnkReceipts2BnkrecCreationDate"
            value="#{bindings.BnkReceipts2BnkrecCreationDate.inputValue}"
            label="#{bindings.BnkReceipts2BnkrecCreationDate.hints.label}"
            required="#{bindings.BnkReceipts2BnkrecCreationDate.hints.mandatory}"
            readOnly="true"
            shortDesc="#{bindings.BnkReceipts2BnkrecCreationDate.hints.tooltip}">
            <af:convertDateTime pattern="#{nls.datepattern}"/>
            </af:inputDate>
            <!-- DEBUG:END:FORM_DATE_FIELD : default/item/form/formDateField.vm, nesting level: 13-->
            <!-- DEBUG:BEGIN:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13 -->
            <af:inputText id="BnkReceipts2BnkrecLastUpdatedBy"
            value="#{bindings.BnkReceipts2BnkrecLastUpdatedBy.inputValue}"
            label="#{bindings.BnkReceipts2BnkrecLastUpdatedBy.hints.label}"
            required="#{bindings.BnkReceipts2BnkrecLastUpdatedBy.hints.mandatory}"
            rows="#{bindings.BnkReceipts2BnkrecLastUpdatedBy.hints.displayHeight}"
            columns="#{bindings.BnkReceipts2BnkrecLastUpdatedBy.hints.displayWidth}"
            maximumLength="40"
            readOnly="true"
            shortDesc="#{bindings.BnkReceipts2BnkrecLastUpdatedBy.hints.tooltip}">
            <f:validator binding="#{bindings.BnkReceipts2BnkrecLastUpdatedBy.validator}"/>
            </af:inputText>
            <!-- DEBUG:END:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13-->
            <!-- DEBUG:BEGIN:FORM_DATE_FIELD : default/item/form/formDateField.vm, nesting level: 13 -->
            <af:inputDate id="BnkReceipts2BnkrecLastUpdateDate"
            value="#{bindings.BnkReceipts2BnkrecLastUpdateDate.inputValue}"
            label="#{bindings.BnkReceipts2BnkrecLastUpdateDate.hints.label}"
            required="#{bindings.BnkReceipts2BnkrecLastUpdateDate.hints.mandatory}"
            readOnly="true"
            shortDesc="#{bindings.BnkReceipts2BnkrecLastUpdateDate.hints.tooltip}">
            <af:convertDateTime pattern="#{nls.datepattern}"/>
            </af:inputDate>
            <!-- DEBUG:END:FORM_DATE_FIELD : default/item/form/formDateField.vm, nesting level: 13-->
            <!-- DEBUG:BEGIN:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13 -->
            <af:inputText id="BnkReceipts2BnkrecObjectVersionId"
            value="#{bindings.BnkReceipts2BnkrecObjectVersionId.inputValue}"
            label="#{bindings.BnkReceipts2BnkrecObjectVersionId.hints.label}"
            required="#{bindings.BnkReceipts2BnkrecObjectVersionId.hints.mandatory}"
            rows="#{bindings.BnkReceipts2BnkrecObjectVersionId.hints.displayHeight}"
            columns="#{bindings.BnkReceipts2BnkrecObjectVersionId.hints.displayWidth}"
            maximumLength="20"
            readOnly="true"
            shortDesc="#{bindings.BnkReceipts2BnkrecObjectVersionId.hints.tooltip}">
            <f:validator binding="#{bindings.BnkReceipts2BnkrecObjectVersionId.validator}"/>
            <af:convertNumber groupingUsed="false"
            pattern="#{bindings.BnkReceipts2BnkrecObjectVersionId.format}"/>
            </af:inputText>
            <!-- DEBUG:END:FORM_TEXT_INPUT : default/item/form/formTextInput.vm, nesting level: 13-->
            </af:panelFormLayout>
            <!-- DEBUG:END:ITEM_REGION : default/pageComponent/itemRegion.vm, nesting level: 12-->
            </af:showDetailItem>
            </af:panelTabbed>
            <!-- DEBUG:END:STACKED_REGION_CONTAINER : default/pageComponent/stackedRegionContainer.vm, nesting level: 11-->
            </f:facet>

            *this is not work for both of disabled? and required property*

            Thanks for reply

            Edited by: Farshid Zarinara on Dec 21, 2012 4:02 PM