<dataScope xmlns="http://bali.us.oracle.com/cabo/marlin"
           xmlns:data="http://bali.us.oracle.com/cabo/marlin"
           xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
           xmlns:baja="http://bali.us.oracle.com/cabo/baja" >
  <contents>
    <stackLayout>
      <contents>
        <rowLayout>
          <contents>
            <cellFormat width="580px">
              <contents>
                <styledText data:text="RBK_TIME_PERIOD_PROMPT@blackoutBundle" styleClass="OraInstructionText"/>
              </contents>
            </cellFormat>
          </contents>
        </rowLayout>
        <spacer height="20"/>
        
        <rowLayout>
          <contents>
            <cellFormat>
              <contents>
                <spacer width="20"/>
              </contents>
            </cellFormat>
            <cellFormat>
              <contents>                 
                <messageChoice data:prompt="SPECIFY_TIME@blackoutBundle"
                               hAlign="left"                               
                               name="timeChoice" 
                               id="timeChoice" 
                               data:shortDesc="SPECIFY_TIME@blackoutBundle"
                               data:selectedValue="timeChoice@blkConfigData">
                    <primaryClientAction> 
                      <firePartialAction event="changeTimeChoice" 
                      formSubmitted="true" targets="timeChoicer errorGroupComp"/> 
                    </primaryClientAction> 

                    <contents>
                      <option data:text="CUSTOM_TIME_CHOICE@blackoutBundle" value="1"/>
                      <option data:text="AVAIL_DATA_TIME@blackoutBundle" value="2"/>                      
                    </contents>
                  </messageChoice>
              </contents>
            </cellFormat>
          </contents>
        </rowLayout>         
        
        <spacer height="20"/>
       
        <stackLayout id="timeChoicer">
          <contents>
            <rowLayout> 
              <contents>
                <tableLayout id="custom" name="custom">
                <boundAttribute name="rendered">
                  <if>
                    <comparison type="equals">
                      <dataObject select="timeChoice" source="blkConfigData"/>
                      <fixed javaType="string">1</fixed>
                    </comparison>
                    <fixed javaType="boolean">true</fixed>
                    <fixed javaType="boolean">false</fixed>
                  </if>
                </boundAttribute>
                
                  <contents>
                    <rowLayout>
                      <contents>
                        <cellFormat>
                          <contents>
                            <spacer width="20"/>
                          </contents>
                        </cellFormat>
                        <cellFormat width="560px">
                          <contents>                
                            <styledText data:text="CUSTOM_TIME_PROMPT@blackoutBundle" styleClass="OraInstructionText"/>
                          </contents>
                        </cellFormat>
                      </contents>
                    </rowLayout>
                    
                    <rowLayout>
                      <contents>
                        <cellFormat>
                          <contents>
                            <spacer height="10"/>
                          </contents>
                        </cellFormat>
                      </contents>
                    </rowLayout>
                    
                    <rowLayout> 
                      <contents>  
                        <spacer width="20"/>
                        <messageChoice name="blkTimeZone"
                                       id="blkTimeZone"
                                       data:messageType="tzMsgType@blkConfigData"
                                       data:anchor="tzAnchor@blkConfigData"
                                       data:message="tzInline@blkConfigData"
                                       data:prompt="TIME_ZONE@SDKBundle"
                                       data:shortDesc="TIME_ZONE@SDKBundle"
                                       required="uiOnly"
                                       data:selectedValue="timezoneRgn@blkConfigData">
                          <boundAttribute name="rendered">
                            <and>
                              <dataObject select="multipleTimezones" source="blkConfigData"/>                  
                            </and>
                          </boundAttribute>
                          <contents data:childData="tzList@blkConfigData">
                            <option data:text="available" 
                                    data:value="availID"/>
                          </contents>
                        </messageChoice>            
                     </contents> 
                    </rowLayout>
            
                    <tableLayout width="100%">
                      <contents>
                        <rowLayout vAlign="top">
                          <contents>
                            <cellFormat vAlign="top" width="50%">
                              <contents>
                                <header data:text="START@SDKBundle"
                                        hAlign="left"
                                        required="uiOnly"
                                        styleClass="OraPromptText">
                                  <contents>
                                    <tableLayout hAlign="left" cellSpacing="8">                          
                                      <contents>
                                        <rowLayout>
                                          <contents>
                                            <messageDateField data:prompt="DATE@SDKBundle"
                                                           hAlign="left"
                                                           data:tip="dateTip@blkConfigData"
                                                           data:message="sdateInlineMsg@blkConfigData"
                                                           data:messageType="sdateMsgType@blkConfigData"
                                                           data:anchor="sdateAnchor@blkConfigData"
                                                           data:shortDesc="START_DATE@SDKBundle"
                                                           name="sDate" columns="10"
                                                           id="sDate" 
                                                           formSubmitted="true"
                                                           data:value="sDate@blkConfigData">
                                              <onSubmitValidater>
                                                <date dateStyle="medium"/>
                                              </onSubmitValidater>
                                            </messageDateField>   
                                          </contents>
                                        </rowLayout>                            
                                        <rowLayout>
                                          <contents>                              
                                            <rowLayout>
                                              <contents>                                   
                                                <messageChoice data:prompt="TIME@SDKBundle"
                                                               hAlign="left"
                                                               styleClass="OraPromptText"
                                                               name="sHour" 
                                                               id="sHour" 
                                                               data:shortDesc="HOURS@SDKBundle"
                                                               data:selectedValue="sHourSel@blkConfigData">
                                                  <contents>
                                                    <option text="1" value="1"/>
                                                    <option text="2" value="2"/>
                                                    <option text="3" value="3"/>
                                                    <option text="4" value="4"/>
                                                    <option text="5" value="5"/>
                                                    <option text="6" value="6"/>
                                                    <option text="7" value="7"/>
                                                    <option text="8" value="8"/>
                                                    <option text="9" value="9"/>
                                                    <option text="10" value="10"/>
                                                    <option text="11" value="11"/>
                                                    <option text="12" value="12"/>
                                                  </contents>
                                                </messageChoice>
                                                <styledText text=":"
                                                            styleClass="OraPromptText"/>
                                                <choice name="sMin" id="sMin" 
                                                        data:shortDesc="MINUTES@SDKBundle"
                                                        data:selectedValue="sMinSel@blkConfigData">
                                                   <contents data:childData="onetosixty@blkConfigData">
                                                     <option data:text="text" data:value="value"/>                                         
                                                  </contents> 
                                                </choice>
                                                <styledText text=":"
                                                            styleClass="OraPromptText"/>
                                                <choice name="sSec" id="sSec" 
                                                        data:shortDesc="SECONDS@SDKBundle"
                                                        data:selectedValue="sSecSel@blkConfigData">
                                                   <contents data:childData="onetosixty@blkConfigData">
                                                     <option data:text="text" data:value="value"/>                                         
                                                  </contents> 
                                                </choice>
                                           
                                                <spacer width="5"/>
                                                <radioButton name="sTime" 
                                                             data:text="AM_LABEL@SDKBundle" 
                                                             data:shortDesc="AM_LABEL@SDKBundle" 
                                                             value="am">
                                                  <boundAttribute name="selected">
                                                    <if>
                                                      <comparison type="equals">
                                                        <dataObject select="sTime" source="blkConfigData"/>
                                                        <fixed javaType="string">am</fixed>
                                                      </comparison>
                                                      <fixed javaType="boolean">true</fixed>
                                                      <fixed javaType="boolean">false</fixed>
                                                    </if>
                                                  </boundAttribute>
                                                </radioButton>
                                                <radioButton name="sTime" 
                                                             data:text="PM_LABEL@SDKBundle" 
                                                             data:shortDesc="PM_LABEL@SDKBundle" 
                                                             value="pm" >
                                                  <boundAttribute name="selected">
                                                    <if>
                                                      <comparison type="equals">
                                                        <dataObject select="sTime" source="blkConfigData"/>
                                                        <fixed javaType="string">pm</fixed>
                                                      </comparison>
                                                      <fixed javaType="boolean">true</fixed>
                                                      <fixed javaType="boolean">false</fixed>
                                                    </if>
                                                  </boundAttribute>
                                                </radioButton>
                                              </contents>
                                            </rowLayout>
                                          </contents>
                                        </rowLayout>                          
                                      </contents>
                                    </tableLayout>                        
                                  </contents>
                                </header>
                              </contents>
                            </cellFormat>
                
                            <cellFormat vAlign="top" width="50%">
                              <contents>
                         
                                <header data:text="RBK_END@blackoutBundle"
                                        hAlign="left"
                                        width="50%"
                                        styleClass="OraPromptText">
                                  <contents>
                                    <tableLayout hAlign="left" cellSpacing="8">
                                      <contents>            
                                        <rowLayout>
                                          <contents>
                                            <messageDateField 
                                                   data:prompt="DATE@SDKBundle"
                                                   data:shortDesc="DATE@SDKBundle"
                                                   name="eDate" columns="10"
                                                   id="eDate"
                                                   data:tip="dateTip@blkConfigData"
                                                   data:message="edateInlineMsg@blkConfigData"
                                                   data:messageType="edateMsgType@blkConfigData"
                                                   data:anchor="edateAnchor@blkConfigData"
                                                   data:value="eDate@blkConfigData">
                                              <boundAttribute name="disabled">
                                                <and>
                                                  <dataObject select="blkStarted" source="blkConfigData"/>
                                                  <or>
                                                    <if>
                                                      <comparison type="notEquals">
                                                        <dataObject select="repeatType" source="blkConfigData"/>
                                                        <fixed javaType="string">oneTimeOnly</fixed>
                                                      </comparison>
                                                      <fixed javaType="boolean">true</fixed>
                                                      <fixed javaType="boolean">false</fixed>
                                                    </if>
                                                    <or>
                                                      <if>
                                                        <comparison type="equals">
                                                          <dataObject select="durationType" source="blkConfigData"/>
                                                          <fixed javaType="string">indef_duration</fixed>
                                                        </comparison>
                                                        <fixed javaType="boolean">true</fixed>
                                                        <fixed javaType="boolean">false</fixed>
                                                      </if>
                                                      <dataObject select="disableSchedule" source="blkConfigData"/>
                                                    </or>
                                                  </or>
                                                </and>
                                              </boundAttribute>
                                              <onSubmitValidater>
                                                <date dateStyle="medium"/>
                                              </onSubmitValidater>
                                            </messageDateField>
                                          </contents>
                                        </rowLayout>
                       
                                        <rowLayout>
                                          <contents>
                                            <rowLayout>
                                              <contents>
                                                <messageChoice styleClass="OraPromptText"
                                                            data:prompt="TIME@SDKBundle"
                                                            name="eHour" 
                                                            id="eHour" 
                                                            data:shortDesc="HOURS@SDKBundle"
                                                            data:selectedValue="eHourSel@blkConfigData">                                      
                                                  <contents>
                                                    <option text="1" value="1"/>
                                                    <option text="2" value="2"/>
                                                    <option text="3" value="3"/>
                                                    <option text="4" value="4"/>
                                                    <option text="5" value="5"/>
                                                    <option text="6" value="6"/>
                                                    <option text="7" value="7"/>
                                                    <option text="8" value="8"/>
                                                    <option text="9" value="9"/>
                                                    <option text="10" value="10"/>
                                                    <option text="11" value="11"/>
                                                    <option text="12" value="12"/>
                                                  </contents>
                                                </messageChoice>
                                                <styledText text=":"
                                                            styleClass="OraPromptText"/>
                                                <choice name="eMin" id="eMin"
                                                         data:shortDesc="MINUTES@SDKBundle"
                                                        data:selectedValue="eMinSel@blkConfigData">                                       
                                                   <contents data:childData="onetosixty@blkConfigData">
                                                     <option data:text="text" data:value="value"/>                                         
                                                  </contents>
                                                </choice>
                                                <styledText text=":"
                                                            styleClass="OraPromptText"/>
                                                <choice name="eSec" id="eSec"
                                                         data:shortDesc="SECONDS@SDKBundle"
                                                        data:selectedValue="eSecSel@blkConfigData">                                       
                                                   <contents data:childData="onetosixty@blkConfigData">
                                                     <option data:text="text" data:value="value"/>                                         
                                                  </contents>
                                                </choice>
                                                <spacer width="5"/>
                                                <radioButton name="eTime" 
                                                             data:shortDesc="AM_LABEL@SDKBundle" 
                                                             data:text="AM_LABEL@SDKBundle" 
                                                             value="am">
                                                  <boundAttribute name="selected">
                                                    <if>
                                                      <comparison type="equals">
                                                        <dataObject select="eTime" source="blkConfigData"/>
                                                        <fixed javaType="string">am</fixed>
                                                      </comparison>
                                                      <fixed javaType="boolean">true</fixed>
                                                      <fixed javaType="boolean">false</fixed>
                                                    </if>
                                                  </boundAttribute>                                      
                                                </radioButton>
                                                <radioButton name="eTime" 
                                                             data:shortDesc="PM_LABEL@SDKBundle"
                                                             data:text="PM_LABEL@SDKBundle" 
                                                             value="pm">
                                                  <boundAttribute name="selected">
                                                    <if>
                                                      <comparison type="equals">
                                                        <dataObject select="eTime" source="blkConfigData"/>
                                                        <fixed javaType="string">pm</fixed>
                                                      </comparison>
                                                      <fixed javaType="boolean">true</fixed>
                                                      <fixed javaType="boolean">false</fixed>
                                                    </if>
                                                  </boundAttribute>                                      
                                                </radioButton>
                                              </contents>
                                            </rowLayout>
                                          </contents>
                                        </rowLayout>
                                      </contents>
                                    </tableLayout>  
                                  </contents>
                                </header>  
                              </contents>
                            </cellFormat>                            
                          </contents>
                        </rowLayout>                       
                      </contents>
                    </tableLayout>              
                                       
                    
                  </contents>
                </tableLayout>   
        
                <!-- Header for Availability data-->
                <header id="availDataTable"
                        name="availDataTable"
                        data:text="TARGET_DOWNTIME_DUR_HEADER@blackoutBundle" 
                        hAlign="left"
                        required="uiOnly"
                        styleClass="OraPromptText">
                <boundAttribute name="rendered">
                  <if>
                    <comparison type="equals">
                      <dataObject select="timeChoice" source="blkConfigData"/>
                      <fixed javaType="string">2</fixed>
                    </comparison>
                    <fixed javaType="boolean">true</fixed>
                    <fixed javaType="boolean">false</fixed>
                  </if>
                </boundAttribute>
                
                  <contents>
                    <spacer height="8"/>
                    <tableLayout>
                      <contents>
                        <rowLayout>
                          <contents>
                            <cellFormat >
                              <contents>
                                <styledText data:text="DOWNTIME_TIME_PERIOD_PROMPT@blackoutBundle" 
                                            styleClass="OraInstructionText"/>
                              </contents>
                            </cellFormat>
                          </contents>
                        </rowLayout>
                         <rowLayout>
                          <contents>
                            <cellFormat >
                              <contents>
                                <spacer height="8"/>
                             </contents>
                            </cellFormat>
                          </contents>
                        </rowLayout>
                        <rowLayout>
                          <contents>
                            <cellFormat>
                              <contents>
                                <messageChoice data:prompt="SPECIFY_TARGETS@blackoutBundle"
                                       hAlign="left"                                       
                                       name="targetChoice" 
                                       id="targetChoice" 
                                       data:shortDesc="SPECIFY_TARGETS@blackoutBundle"
                                       data:selectedValue="selTargetForAvailData@blkConfigData"
                                       data:message="targetChoiceInlineMsg@blkConfigData"
                                       data:messageType="targetChoiceMsgType@blkConfigData"
                                       data:anchor="targetChoiceAnchor@blkConfigData">
                                       
                                  <primaryClientAction> 
                                    <!-- PPR target is set errorGroupComp so as to show Error on Cache expiry-->
                                    <firePartialAction event="changeTargetChoice" 
                                    formSubmitted="true" targets="availDataTable errorGroupComp"/> 
                                  </primaryClientAction> 
              
                                  <contents data:childData="allSelectedTargetDisp@blkConfigData">
                                    <option data:text="targetNameTypePair" data:value="ID"/>                                    
                                  </contents>
                                  
                                </messageChoice>
                                <formValue name="blkTimeZone" data:value="blkTimeZone@blkConfigData"/>
                              </contents>
                            </cellFormat>
                          </contents>
                        </rowLayout>
                        
                        <rowLayout>
                          <contents>
                            <cellFormat>
                              <contents>                              
                                <spacer height="8"/>                                
                                <table id="availData" 
                                       partialRenderMode="self" name="availData"
                                       showAll="yes"
                                       data:summary="AVAIL_DATA_TABLE_SUMMARY@blackoutBundle"
                                       data:alternateText="NO_AVAIL_DATA_FOR_TAR@blackoutBundle"
                                       data:value="value@blkConfigData"
                                       data:minValue="minValue@blkConfigData"
                                       data:blockSize="blockSize@blkConfigData"
                                       data:maxValue="maxValue@blkConfigData"
                                       width="100%" 
                                       data:tableData="row@blkConfigData"
                                       data:columnHeaderData="column@blkConfigData">
                                
                                  <tableFormat tableBanding="rowBanding"/>
                                  
                                  <tableSelection>
                                    <singleSelection                                     
                                      data:selectedIndex="selIdxTarAvailTable@blkConfigData"
				      data:shortDesc="SELECT@commonBundle"
                                    />
                                  </tableSelection>
                                  
                                  <columnFormats>
                                    <columnFormat/>
                                    <columnFormat/>
                                    <columnFormat/>
                                    <columnFormat/>
                                    <columnFormat/>
                                  </columnFormats>
                                  
                                  <columnHeaderStamp>
                                    <sortableHeader data:text="text"
                                                    data:sortable="sortable"
                                                    data:value="value"/>            
                                  </columnHeaderStamp>
                                  
                                  <contents>                                   
                                      <styledText data:text="targetName"
                                                styleClass="OraPromptText"
                                                data:shortDesc="NAME@SDKBundle" />                                      
                                    
                                    <styledText data:text="typeName"
                                                styleClass="OraPromptText"
                                                data:shortDesc="TYPE@SDKBundle" />
                                                
                                   <styledText data:text="status"
                                                styleClass="OraPromptText"
                                                data:shortDesc="STATUS@SDKBundle" />
                                                
                                    <styledText data:text="from"
                                                styleClass="OraPromptText"
                                                data:shortDesc="FROM@blackoutBundle" />
                                      
                                    <styledText data:text="to"
                                                styleClass="OraPromptText"
                                                data:shortDesc="TO@blackoutBundle" />
                                    
                                    <formValue name="fromHidValue" data:value="fromHidValue"/>
                                    <formValue name="toHidValue" data:value="toHidValue"/>
                                              
                                  </contents>
                                </table>
                              </contents>
                            </cellFormat>
                          </contents>
                        </rowLayout>
                      </contents>
                    </tableLayout>
                  </contents>
                </header>        
              </contents>
            </rowLayout>
            
            <!-- Availability table is shown in case of error i.e. RBK start time less that Avail start time -->
            <header id="availDataErrorHeader"
                name="availDataErrorHeader"
                data:text="TARGET_AVAIL_DATA_ERR_HEADER@blackoutBundle"
                hAlign="left"
                required="uiOnly"
                styleClass="OraPromptText">
            
            <boundAttribute name="rendered">
              <if>
                <comparison type="equals">
                  <dataObject select="showAvailErrorTable" source="blkConfigData"/>
                  <fixed javaType="boolean">true</fixed>
                </comparison>
                <fixed javaType="boolean">true</fixed>
                <fixed javaType="boolean">false</fixed>
              </if>
            </boundAttribute>
              
              <contents>
                <table id="availDataErr" 
                       partialRenderMode="self" name="availDataErr"
                       showAll="yes"
                       data:summary="TARGET_AVAIL_DATA_ERR_HEADER@blackoutBundle"
                       data:alternateText="NO_AVAIL_DATA_FOR_TAR@blackoutBundle"
                       data:value="errorvalue@blkConfigData"
                       data:minValue="errorminValue@blkConfigData"
                       data:blockSize="errorblockSize@blkConfigData"
                       data:maxValue="errormaxValue@blkConfigData"
                       width="100%" 
                       data:tableData="errorrow@blkConfigData"
                       data:columnHeaderData="errorcolumn@blkConfigData"
                       >
                
                  <tableFormat tableBanding="rowBanding"/>                       
                  
                  
                  <columnFormats>
                    <columnFormat/>
                    <columnFormat/>
                    <columnFormat/>                            
                  </columnFormats>
                  
                  <columnHeaderStamp>
                    <sortableHeader data:text="text"
                                    data:sortable="sortable"
                                    data:value="value"/>            
                  </columnHeaderStamp>
                  
                  <contents>                                   
                      <styledText data:text="targetName"
                                styleClass="OraPromptText"
                                data:shortDesc="NAME@SDKBundle" />                                      
                    
                    <styledText data:text="typeName"
                                styleClass="OraPromptText"
                                data:shortDesc="TYPE@SDKBundle" />                                        
                  
                                
                    <styledText data:text="from"
                                styleClass="OraPromptText"
                                data:shortDesc="AVAIL_FROM@blackoutBundle" />                
                    
                              
                  </contents>
                </table>
              </contents>
            </header> 
            
            <!-- Current target state is in unsupported state -->
            <header id="unSupTarStateErrorHeader"
                name="unSupTarStateErrorHeader"
                data:text="UNSUP_CUR_TAR_STATE_ERR_HEADER@blackoutBundle"
                hAlign="left"
                required="uiOnly"
                styleClass="OraPromptText">
            
            <boundAttribute name="rendered">
              <if>
                <comparison type="equals">
                  <dataObject select="showCurUnSupTarStateErrorTable" source="blkConfigData"/>
                  <fixed javaType="boolean">true</fixed>
                </comparison>
                <fixed javaType="boolean">true</fixed>
                <fixed javaType="boolean">false</fixed>
              </if>
            </boundAttribute>
              
              <contents>
                <table id="unSupTarStateErr" 
                       partialRenderMode="self" name="unSupTarStateErr"
                       showAll="yes"
                       data:summary="UNSUP_CUR_TAR_STATE_ERR_HEADER@blackoutBundle"
                       data:alternateText="NO_UNSUP_CUR_TAR_STATE@blackoutBundle"
                       data:value="curStateErrorvalue@blkConfigData"
                       data:minValue="curStateErrorminValue@blkConfigData"
                       data:blockSize="curStateErrorblockSize@blkConfigData"
                       data:maxValue="curStateErrormaxValue@blkConfigData"
                       width="100%" 
                       data:tableData="curStateErrorrow@blkConfigData"
                       data:columnHeaderData="curStateErrorcolumn@blkConfigData"
                       >
                
                  <tableFormat tableBanding="rowBanding"/>                       
                  
                  
                  <columnFormats>
                    <columnFormat/>
                    <columnFormat/>
                    <columnFormat columnDataFormat="iconButtonFormat"/>
                    <columnFormat/>                            
                  </columnFormats>
                  
                  <columnHeaderStamp>
                    <sortableHeader data:text="text"
                                    data:sortable="sortable"
                                    data:value="value"/>            
                  </columnHeaderStamp>
                  
                  <contents>                                   
                      <styledText data:text="targetName"
                                styleClass="OraPromptText"
                                data:shortDesc="NAME@SDKBundle" />                                      
                    
                    <styledText data:text="typeName"
                                styleClass="OraPromptText"
                                data:shortDesc="TYPE@SDKBundle" />  
                                
                    <image data:source="imgSource"
                           data:shortDesc="statusMsg" />                                 
                  
                                
                    <styledText data:text="from"
                                styleClass="OraPromptText"
                                data:shortDesc="AVAIL_FROM@blackoutBundle" />                
                    
                              
                  </contents>
                </table>
              </contents>
            </header> 
            
          </contents>
        </stackLayout>          
      </contents>
    </stackLayout>  
  </contents>  
</dataScope>

