الانتقال إلى المحتوى

adf how add scroll in table


ahmes_ali80

Recommended Posts

 

السلام عليكم

ازاري ياجماعة اقدر اثبت الهيدر بتاع جدول واعمل سكرول علي الجنب

علي صفحة jsf

Oracle JDeveloper Studio12

رابط هذا التعليق
شارك

  • بعد 2 أسابيع...

السلام عليكم 

ظهرت عندي مشكلة لما عملت fetchSize  15  

ان لما بدوس انتر علشان انزل علي الخانة اللي بعدها بتنزل لحد 15 بيوقف ولازم اقف علي الخانة اللي بعده ويرجع يحمل من جديد ولما تكون الدتا كتير مش بتعرف انت وقفت فين

 

رابط هذا التعليق
شارك

السلام عليكم وشكرا جدااا لحضرتك ياهندسة

 

ده كود الجزء بتاع الجدول

 

<f:facet name="second">
                                <af:panelGroupLayout id="pgl11" layout="scroll">
                                    <af:panelGroupLayout  id="pgl9">
                                        <af:panelHeader text="." id="ph1">
                                            <f:facet name="context">
                                                <af:panelGroupLayout id="pgl8" layout="horizontal">
                                                    <af:quickQuery label="Search" searchDesc="Search" id="qryId1"
                                                                   value="#{bindings.ImplicitViewCriteriaQuery.quickQueryDescriptor}"
                                                                   model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
                                                                   queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}">
                                                        <f:facet name="end">
                                                            <af:commandLink text="Advanced" rendered="false" id="cl1"/>
                                                        </f:facet>
                                                    </af:quickQuery>
                                                    <af:panelGroupLayout id="pgl7">
                                                        <af:spacer width="200" height="10" id="s1"/>
                                                        <af:button actionListener="#{bindings.CreateInsert.execute}"
                                                                   text="Add New"
                                                                   disabled="#{!bindings.CreateInsert.enabled}" id="b5"
                                                                   inlineStyle='font-size:medium; color:White; background-image:url("backgroud.png"); background-color:Purple;'
                                                                   rendered="#{sessionScope.gnUserType=='1' or sessionScope.gnUserType=='2' or sessionScope.gnUserType=='4'or sessionScope.gnUserType=='3'?'true':'false'}"/>
                                                        <af:button text="SAVE" id="b8"
                                                                   inlineStyle='font-size:medium; color:White; background-image:url("backgroud.png"); background-color:Purple;'
                                                                   action="#{SOTMessages.SaveDSot9_action}"
                                                                   rendered="#{sessionScope.gnUserType=='1' or sessionScope.gnUserType=='2' or sessionScope.gnUserType=='4'or sessionScope.gnUserType=='3'?'true':'false'}"/>
                                                    </af:panelGroupLayout>
                                                    <af:panelGroupLayout layout="horizontal" id="pgl1">
                                                        <af:button actionListener="#{bindings.First.execute}"
                                                                   text="First" disabled="#{!bindings.First.enabled}"
                                                                   partialSubmit="true" visible="true" id="b1"/>
                                                        <af:button actionListener="#{bindings.Previous.execute}"
                                                                   text="Previous" visible="true"
                                                                   disabled="#{!bindings.Previous.enabled}"
                                                                   partialSubmit="true" id="b2"/>
                                                        <af:button actionListener="#{bindings.Next.execute}" text="Next"
                                                                   visible="true" disabled="#{!bindings.Next.enabled}"
                                                                   partialSubmit="true" id="b3"/>
                                                        <af:button actionListener="#{bindings.Last.execute}" text="Last"
                                                                   visible="true" disabled="#{!bindings.Last.enabled}"
                                                                   partialSubmit="true" id="b4"/>
                                                        <af:button
                                                                   text="Delete" disabled="#{!bindings.Delete.enabled}"
                                                                   id="b6"
                                                                   inlineStyle='font-size:medium; color:White; background-image:url("backgroud.png"); background-color:Purple;'
                                                                   action="#{SOTMessages.b6_action}"
                                                                   rendered="#{sessionScope.gnUserType=='1' or sessionScope.gnUserType=='2' or sessionScope.gnUserType=='4'or sessionScope.gnUserType=='3'?'true':'false'}">
                                                            <af:showPopupBehavior popupId="p1"/>
                                                        </af:button>
                                                        <af:button actionListener="#{bindings.Execute.execute}"
                                                                   text="Refresh "
                                                                   disabled="#{!bindings.Execute.enabled}" id="b7"/>
                                                        <af:button actionListener="#{bindings.Rollback.execute}"
                                                                   text="Undo" immediate="true" id="b9">
                                                            <af:resetActionListener/>
                                                        </af:button>
                                                        <af:popup childCreation="deferred" autoCancel="disabled"
                                                                  id="p1">
                                                            <af:dialog id="d2"  title="تأكيد حذف الاخطــــار"  type="yesNo"
                                                                       inlineStyle="font-size:x-large;"
                                                                       affirmativeTextAndAccessKey="تأكيد الحذف"
                                                                       noTextAndAccessKey="تراجع"
                                                                       dialogListener="#{SOTMessages.Dilogaction}">
                                                                <af:outputText value="سوف يتم حذف الاخطار "  id="ot3"/>
                                                                <f:facet name="buttonBar"/>
                                                            </af:dialog>
                                                        </af:popup>
                                                        <af:popup childCreation="deferred" autoCancel="disabled"
                                                                  id="p2">
                                                            <af:dialog id="d3" type="yesNo"
                                                                       affirmativeTextAndAccessKey="تــــأكيد "
                                                                       noTextAndAccessKey="رجــــوع"
                                                                       title="تأكيد حذف الصنف"
                                                                       dialogListener="#{SOTMessages.Dilog2}">
                                                                <f:facet name="buttonBar"/>
                                                                <af:outputText value="سوف يتم حذف هذا الصنف" id="ot4"
                                                                               inlineStyle="font-size:x-large;"/>
                                                            </af:dialog>
                                                        </af:popup>
                                                    </af:panelGroupLayout>
                                                </af:panelGroupLayout>
                                            </f:facet>
                                            <f:facet name="toolbar"/>
                                            <f:facet name="menuBar"/>
                                            <f:facet name="legend"/>
                                            <f:facet name="info"/>
                                            <af:panelFormLayout id="pfl1" labelAlignment="start" partialTriggers="t1">
                                                <af:spacer width="10" height="10" id="s8"/>
                                                <af:panelLabelAndMessage label="رقـــــم الاخطــار" id="plam2">
                                                    <af:panelGroupLayout id="pgl3" layout="horizontal">
                                                        <af:inputText value="#{bindings.Stop09i4.inputValue}"
                                                                      showRequired="true"
                                                                      columns="#{bindings.Stop09i4.hints.displayWidth}"
                                                                      maximumLength="#{bindings.Stop09i4.hints.precision}"
                                                                      shortDesc="#{bindings.Stop09i4.hints.tooltip}"
                                                                      id="it2">
                                                            <f:validator binding="#{bindings.Stop09i4.validator}"/>
                                                        </af:inputText>
                                                        <af:spacer width="50" height="10" id="s7"/>
                                                        <af:selectOneChoice value="#{bindings.Stop09i12.inputValue}"
                                                                            label="#{bindings.Stop09i12.label}"
                                                                            shortDesc="#{bindings.Stop09i12.hints.tooltip}"
                                                                            id="soc1"
                                                                            labelStyle='font-size:medium; color:White; background-image:url("backgroud.png"); background-color:Purple;'>
                                                            <f:selectItems value="#{bindings.Stop09i12.items}"
                                                                           id="si1"/>
                                                            <f:validator binding="#{bindings.Stop09i12.validator}"/>
                                                        </af:selectOneChoice>
                                                        <af:spacer width="50" height="10" id="s2"/>
                                                        <af:inputText value="#{bindings.Stop09i1.inputValue}"
                                                                      disabled="true"
                                                                      required="#{bindings.Stop09i1.hints.mandatory}"
                                                                      columns="#{bindings.Stop09i1.hints.displayWidth}"
                                                                      maximumLength="#{bindings.Stop09i1.hints.precision}"
                                                                      shortDesc="#{bindings.Stop09i1.hints.tooltip}"
                                                                      id="it1" label="رقم المستند">
                                                            <f:validator binding="#{bindings.Stop09i1.validator}"/>
                                                            <af:convertNumber groupingUsed="false"
                                                                              pattern="#{bindings.Stop09i1.format}"/>
                                                        </af:inputText>
                                                        <af:inputDate value="#{bindings.Stop09i2.inputValue}"
                                                                      visible="false" disabled="true"
                                                                      label="تاريخ اليوم"
                                                                      required="#{bindings.Stop09i2.hints.mandatory}"
                                                                      columns="#{bindings.Stop09i2.hints.displayWidth}"
                                                                      shortDesc="#{bindings.Stop09i2.hints.tooltip}"
                                                                      id="id1">
                                                            <f:validator binding="#{bindings.Stop09i2.validator}"/>
                                                            <af:convertDateTime pattern="#{bindings.Stop09i2.format}"/>
                                                        </af:inputDate>
                                                        <af:spacer width="30" height="10" id="s3"/>
                                                        <af:inputDate value="#{bindings.Stop09i3.inputValue}"
                                                                      disabled="true"
                                                                      label="#{bindings.Stop09i3.hints.label}"
                                                                      required="#{bindings.Stop09i3.hints.mandatory}"
                                                                      columns="#{bindings.Stop09i3.hints.displayWidth}"
                                                                      shortDesc="#{bindings.Stop09i3.hints.tooltip}"
                                                                      id="id2">
                                                            <f:validator binding="#{bindings.Stop09i3.validator}"/>
                                                            <af:convertDateTime pattern="#{bindings.Stop09i3.format}"/>
                                                        </af:inputDate>
                                                    </af:panelGroupLayout>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="كــــود العقد" id="plam3">
                                                    <af:panelGroupLayout id="pgl4" layout="horizontal">
                                                        <af:inputListOfValues id="stop09i5Id"
                                                                              popupTitle="Search and Select: #{bindings.Stop09i5.hints.label}"
                                                                              value="#{bindings.Stop09i5.inputValue}"
                                                                              model="#{bindings.Stop09i5.listOfValuesModel}"
                                                                               showRequired="true"
                                                                              columns="#{bindings.Stop09i5.hints.displayWidth}"
                                                                              shortDesc="#{bindings.Stop09i5.hints.tooltip}"
                                                                              contentStyle="width:70px;">
                                                            <f:validator binding="#{bindings.Stop09i5.validator}"/>
                                                            <af:convertNumber groupingUsed="false"
                                                                              pattern="#{bindings.Stop09i5.format}"/>
                                                        </af:inputListOfValues>
                                                        <af:inputText value="#{bindings.Stop09i5NA.inputValue}"
                                                                      disabled="true"
                                                                      required="#{bindings.Stop09i5NA.hints.mandatory}"
                                                                      columns="#{bindings.Stop09i5NA.hints.displayWidth}"
                                                                      maximumLength="#{bindings.Stop09i5NA.hints.precision}"
                                                                      shortDesc="#{bindings.Stop09i5NA.hints.tooltip}"
                                                                      partialTriggers="stop09i5Id" id="it3"
                                                                      contentStyle="width:300px;">
                                                            <f:validator binding="#{bindings.Stop09i5NA.validator}"/>
                                                        </af:inputText>
                                                        <af:spacer width="10" height="10" id="s4"/>
                                                        <af:inputText value="#{bindings.Stop09i6NA.inputValue}"
                                                                      disabled="true"
                                                                      required="#{bindings.Stop09i6NA.hints.mandatory}"
                                                                      columns="#{bindings.Stop09i6NA.hints.displayWidth}"
                                                                      maximumLength="#{bindings.Stop09i6NA.hints.precision}"
                                                                      shortDesc="#{bindings.Stop09i6NA.hints.tooltip}"
                                                                      partialTriggers="stop09i5Id" id="it4"
                                                                      label="اســم العميـــل"
                                                                      contentStyle="width:300px;">
                                                            <f:validator binding="#{bindings.Stop09i6NA.validator}"/>
                                                        </af:inputText>
                                                    </af:panelGroupLayout>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="مهنــــدس المشـــــروع" id="plam5">
                                                    <af:panelGroupLayout id="pgl6" layout="horizontal">
                                                        <af:inputListOfValues id="stop09i7Id" showRequired="true"
                                                                              popupTitle="Search and Select: #{bindings.Stop09i7.hints.label}"
                                                                              value="#{bindings.Stop09i7.inputValue}"
                                                                              model="#{bindings.Stop09i7.listOfValuesModel}"
                                                                              
                                                                              columns="#{bindings.Stop09i7.hints.displayWidth}"
                                                                              shortDesc="#{bindings.Stop09i7.hints.tooltip}"
                                                                              contentStyle="width:70px;">
                                                            <f:validator binding="#{bindings.Stop09i7.validator}"/>
                                                            <af:convertNumber groupingUsed="false"
                                                                              pattern="#{bindings.Stop09i7.format}"/>
                                                        </af:inputListOfValues>
                                                        <af:inputText value="#{bindings.Stop09i7NA.inputValue}"
                                                                      disabled="true"
                                                                      required="#{bindings.Stop09i7NA.hints.mandatory}"
                                                                      columns="#{bindings.Stop09i7NA.hints.displayWidth}"
                                                                      maximumLength="#{bindings.Stop09i7NA.hints.precision}"
                                                                      shortDesc="#{bindings.Stop09i7NA.hints.tooltip}"
                                                                      partialTriggers="stop09i7Id" id="it5"
                                                                      contentStyle="width:300px;">
                                                            <f:validator binding="#{bindings.Stop09i7NA.validator}"/>
                                                        </af:inputText>
                                                        <af:spacer width="10" height="10" id="s6"/>
                                                        <af:inputText value="#{bindings.Stop09i9.inputValue}"
                                                                      label="#{bindings.Stop09i9.hints.label}"
                                                                      required="#{bindings.Stop09i9.hints.mandatory}"
                                                                      columns="#{bindings.Stop09i9.hints.displayWidth}"
                                                                      maximumLength="#{bindings.Stop09i9.hints.precision}"
                                                                      shortDesc="#{bindings.Stop09i9.hints.tooltip}"
                                                                      id="it6" contentStyle="width:300px;">
                                                            <f:validator binding="#{bindings.Stop09i9.validator}"/>
                                                        </af:inputText>
                                                    </af:panelGroupLayout>
                                                </af:panelLabelAndMessage>
                                                <f:facet name="footer">
                                                    <af:panelGroupLayout id="pgl10">
                                                        <af:button actionListener="#{bindings.CreateInsert1.execute}"
                                                                   text="ADD"
                                                                   disabled="#{!bindings.CreateInsert1.enabled}"
                                                                   id="b10"
                                                                   inlineStyle='font-size:medium; color:White; background-image:url("backgroud.png"); background-color:Purple;'
                                                                   rendered="#{sessionScope.gnUserType=='1' or sessionScope.gnUserType=='2' or sessionScope.gnUserType=='4'or sessionScope.gnUserType=='3'?'true':'false'}"/>
                                                        <af:button text="Upload Form Exce" id="b11"
                                                                   action="STO9-exlxls"
                                                                   rendered="#{sessionScope.gnUserType=='1' or sessionScope.gnUserType=='2' or sessionScope.gnUserType=='4'or sessionScope.gnUserType=='3'?'true':'false'}"/>
                                                        <af:button
                                                                   text="Delete" disabled="#{!bindings.Delete1.enabled}"
                                                                   id="b12" action="#{SOTMessages.b12_action}"
                                                                   rendered="#{sessionScope.gnUserType=='1' or sessionScope.gnUserType=='2' or sessionScope.gnUserType=='4'or sessionScope.gnUserType=='3'?'true':'false'}">
                                                            <af:showPopupBehavior popupId="p2"/>
                                                        </af:button>
                                                    </af:panelGroupLayout>
                                                </f:facet>
                                            </af:panelFormLayout>
                                        </af:panelHeader>
                                    </af:panelGroupLayout>
                                    <af:table value="#{bindings.Stop10jView2.collectionModel}" var="row"
                                              rows="#{bindings.Stop10jView2.rangeSize}"
                                              emptyText="#{bindings.Stop10jView2.viewable ? 'No data to display.' : 'Access Denied.'}"
                                              rowBandingInterval="0"
                                              selectedRowKeys="#{bindings.Stop10jView2.collectionModel.selectedRow}"
                                              selectionListener="#{bindings.Stop10jView2.collectionModel.makeCurrent}"
                                              rowSelection="single" fetchSize="10"
                                              id="t2" partialTriggers="::b10 ::b12 b14" width="1019">
                                        <af:column headerText="#{bindings.Stop10jView2.hints.Stop10j2.label}" id="c3"
                                                   visible="false">
                                            <af:inputText value="#{row.bindings.Stop10j2.inputValue}"
                                                          label="#{bindings.Stop10jView2.hints.Stop10j2.label}"
                                                          required="#{bindings.Stop10jView2.hints.Stop10j2.mandatory}"
                                                          columns="#{bindings.Stop10jView2.hints.Stop10j2.displayWidth}"
                                                          maximumLength="#{bindings.Stop10jView2.hints.Stop10j2.precision}"
                                                          shortDesc="#{bindings.Stop10jView2.hints.Stop10j2.tooltip}"
                                                          id="it7">
                                                <f:validator binding="#{row.bindings.Stop10j2.validator}"/>
                                                <af:convertNumber groupingUsed="false"
                                                                  pattern="#{bindings.Stop10jView2.hints.Stop10j2.format}"/>
                                            </af:inputText>
                                        </af:column>
                                        <af:column headerText="كــود الصنف" id="c4" width="120">
                                            <af:inputListOfValues id="stop10j3Id"
                                                                  popupTitle="Search and Select: #{bindings.Stop10jView2.hints.Stop10j3.label}"
                                                                  value="#{row.bindings.Stop10j3.inputValue}"
                                                                  model="#{row.bindings.Stop10j3.listOfValuesModel}"
                                                                  required="#{bindings.Stop10jView2.hints.Stop10j3.mandatory}"
                                                                  columns="#{bindings.Stop10jView2.hints.Stop10j3.displayWidth}"
                                                                  shortDesc="#{bindings.Stop10jView2.hints.Stop10j3.tooltip}">
                                                <f:validator binding="#{row.bindings.Stop10j3.validator}"/>
                                            </af:inputListOfValues>
                                        </af:column>
                                        <af:column headerText="اسم الصنف" id="c5" width="250">
                                            <af:outputFormatted value="#{row.bindings.Stop10j3NA.inputValue}" id="of2"/>
                                        </af:column>
                                        <af:column headerText="الوحدة" id="c6">
                                            <af:outputFormatted value="#{row.bindings.Stop10j3UN.inputValue}" id="of1"/>
                                        </af:column>
                                        <af:column headerText="الكمية " id="c7" width="80">
                                            <af:inputText value="#{row.bindings.Stop10j4.inputValue}"
                                                          label="#{bindings.Stop10jView2.hints.Stop10j4.label}"
                                                          required="#{bindings.Stop10jView2.hints.Stop10j4.mandatory}"
                                                          columns="#{bindings.Stop10jView2.hints.Stop10j4.displayWidth}"
                                                          maximumLength="#{bindings.Stop10jView2.hints.Stop10j4.precision}"
                                                          shortDesc="#{bindings.Stop10jView2.hints.Stop10j4.tooltip}"
                                                          id="it10">
                                                <f:validator binding="#{row.bindings.Stop10j4.validator}"/>
                                                <af:convertNumber groupingUsed="false"
                                                                  pattern="#{bindings.Stop10jView2.hints.Stop10j4.format}"/>
                                            </af:inputText>
                                        </af:column>
                                        <af:column headerText="ما تم تسليمة" id="c8" partialTriggers="c10" width="80">
                                            <af:inputText value="#{row.bindings.Stop10j5.inputValue}"
                                                          label="#{bindings.Stop10jView2.hints.Stop10j5.label}"
                                                          required="#{bindings.Stop10jView2.hints.Stop10j5.mandatory}"
                                                          columns="#{bindings.Stop10jView2.hints.Stop10j5.displayWidth}"
                                                          maximumLength="#{bindings.Stop10jView2.hints.Stop10j5.precision}"
                                                          shortDesc="#{bindings.Stop10jView2.hints.Stop10j5.tooltip}"
                                                          id="it11">
                                                <f:validator binding="#{row.bindings.Stop10j5.validator}"/>
                                                <af:convertNumber groupingUsed="false"
                                                                  pattern="#{bindings.Stop10jView2.hints.Stop10j5.format}"/>
                                            </af:inputText>
                                        </af:column>
                                        <af:column headerText="المتبقي" id="c10" width="80">
                                            <af:outputFormatted value="#{row.bindings.TOTO.inputValue}" id="of3">
                                                <af:convertNumber groupingUsed="false"
                                                                  pattern="#{bindings.Stop10jView2.hints.TOTO.format}"/>
                                            </af:outputFormatted>
                                        </af:column>
                                        <af:column headerText="ملاحظات" id="c9" width="120">
                                            <af:inputText value="#{row.bindings.Stop10j16.inputValue}"
                                                          label="#{bindings.Stop10jView2.hints.Stop10j16.label}"
                                                          required="#{bindings.Stop10jView2.hints.Stop10j16.mandatory}"
                                                          columns="#{bindings.Stop10jView2.hints.Stop10j16.displayWidth}"
                                                          maximumLength="#{bindings.Stop10jView2.hints.Stop10j16.precision}"
                                                          shortDesc="#{bindings.Stop10jView2.hints.Stop10j16.tooltip}"
                                                          id="it8">
                                                <f:validator binding="#{row.bindings.Stop10j16.validator}"/>
                                            </af:inputText>
                                        </af:column>
                                        <af:column id="c11" width="50" headerText="حذف">
                                            <af:button actionListener="#{bindings.Delete1.execute}" text="Delete"
                                                       disabled="#{!bindings.Delete1.enabled}" id="b14"
                                                       rendered="#{sessionScope.gnUserType=='1' or sessionScope.gnUserType=='2' or sessionScope.gnUserType=='4'or sessionScope.gnUserType=='3'?'true':'false'}"/>
                                        </af:column>
                                    </af:table>
                                </af:panelGroupLayout>
                            </f:facet>

رابط هذا التعليق
شارك

  • بعد 1 سنة...
  • بعد 2 أسابيع...

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية