الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Invalid Column Index

Featured Replies

بتاريخ:

من ال Log screen

 

proc_b_no_exp_date_nnnnnnnnnnnnnnnnnnnnnnnnn
<oracle.adf.view> <Utils> <buildFacesMessage> <ADF: Adding the following JSF error message: Invalid column index> 
java.sql.SQLException: Invalid column index
 
والكود اللى بيجى منه الخطأ
 
    public ViewRowImpl createInstanceFromResultSet(QueryCollection queryCollection, ResultSet resultSet) {
            System.out.println("proc_b_no_exp_date_nnnnnnnnnnnnnnnnnnnnnnnnn");
            ViewRowImpl  row = super.createInstanceFromResultSet(queryCollection, resultSet);             
            if (row.getAttribute("OutId")!=null){
                System.out.println("proc_b_no_exp_date_mmmmmmmmm");
                  boolean result4=true;     
                       String PlSQLCode4 ="BEGIN\n" + 
                       "SELECT NVL(B_STOCK,0)+NVL(QUN_IN,0)-NVL(QUN_OUT,0)  \n" + 
                       "INTO ?\n" + 
                       "FROM PRODUCT\n" + 
                       "WHERE PROD_ID=?\n" + 
                       "AND COM_ID=?;\n"   +                
                       "END ;";          
                       CallableStatement stat4=null;                                         
                                       try {          
                     stat4=getDBTransaction().createCallableStatement(PlSQLCode4,getDBTransaction().DEFAULT);
                     System.out.println("row.getAttribute(ProdId)"+row.getAttribute("ProdId"));                 
                     stat4.registerOutParameter(1, Types.NUMERIC);                     
                     stat4.setObject(2, row.getAttribute("ProdId"));                                                     
                     stat4.setObject(3, row.getAttribute("ComId"));                                            
                     result4=stat4.execute(); 
                     row.setAttribute("BAL",(BigDecimal)(stat4.getBigDecimal(1))) ;   
                    System.out.println("BAL "+stat4.getBigDecimal(1));                       
                     stat4.clearParameters();
                                                 } catch (Exception e4) {
                                                     // TODO: Add catch code                                     
                                                     System.out.println("proc_b_no_exp_date"+e4);    
                                                     System.out.println("proc_b_no_exp_date"+PlSQLCode4);
                                                     e4.printStackTrace();
                                                 } finally {
                                                   try {
                                                         stat4.close();     
                                                     } catch (Exception e4) {
                                                         // TODO: Add catch code
                                                         e4.printStackTrace();
                                                     }                                       
                                                 }  
                                
            }
            return super.createInstanceFromResultSet(queryCollection, resultSet);
        }

 

بتاريخ:

أي سطر بالضبط؟

بتاريخ:
  • كاتب الموضوع

 

 

            ViewRowImpl  row = super.createInstanceFromResultSet(queryCollection, resultSet);             

 

بتاريخ:

تأكد أن جملة الاستعلام متوافقة مع خصائص view object

بتاريخ:
  • كاتب الموضوع

شكرا يا باشمهندس كان فيه عمودى transient  لغيته واضافته مرة اخرى واتصحح الخطأ

بتاريخ:

العفو

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

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

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

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

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

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.