الانتقال إلى المحتوى
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.

برجاء شرح تعريف متغير Inputdate فى Java

Featured Replies

بتاريخ:

 

السلام  عليكم و رحمة الله و بركاته 

 

عندي برنامج هايتنفذعن طريق زرار بس بياخد متغير من inputdate  

المفروض المتغير هيكون ازاي

 

بمعني

 

 

    public  String  cb1_action() {

        // Add event code here...

          

         ـــــــــــــــ v_d1 =  id1........

        ــــــــــــــــ  v_d2 =  id2........

        

        

        insertCustomer(v_d1 ,v_d2 );

        

      

        return null;

    }

 

 

id1 ده اسم inputdate

id2 ده اسم inputdate

 

 

بتاريخ:

 

السلام  عليكم و رحمة الله و بركاته 

 
عندي برنامج هايتنفذعن طريق زرار بس بياخد متغير من inputdate  
المفروض المتغير هيكون ازاي
 
بمعني
 
 
    public  String  cb1_action() {
        // Add event code here...
          
         ـــــــــــــــ v_d1 =  id1........
        ــــــــــــــــ  v_d2 =  id2........
        
        
        insertCustomer(v_d1 ,v_d2 );
        
      
        return null;
    }
 
 
id1 ده اسم inputdate
id2 ده اسم inputdate

 

 

 

وعليكم السلام ورحمة الله وبركاته 

 

لعل هذه الanswered thread تفيدك  في حل احد المشاكل حصلت خلال الحصول على الvalues من الJSF ومن ثم عمل insertion في الDatabase

https://community.oracle.com/message/13236285#13236285

 

ودمتم بخير وعافية

تم تعديل بواسطة محمود ربيع

  • بعد 2 أسابيع...
بتاريخ:

اليك هذا الكود مشابه وتمت تجربته

 

v_date    = id1

 

 private String v_date_st   ;
 
 
 v_date_st=v_date.toString();
 
 
                    String sql=
                    "Begin\n" + 
                    "Update Fin_Year F\n" + 
                    "Set F.Sys_Date=to_date('"+v_date_st+"','yyyy-mm-dd')\n" +                     
                    "Where \n" + 
                    "F.Date_Id="+v_id +";\n" +                 
                    "Commit;\n" + 
                    "End;" ;                   
                      try {          
                          
                        FacesContext context =  FacesContext .getCurrentInstance(); 
                        DriverManager.registerDriver(new OracleDriver());
                        Connection conn = DriverManager.getConnection(thinConn,username,password);                  
                        Statement   stat=conn.createStatement();
                        stat.execute(sql)  ;                                                             
                               conn.close();
                               stat.close();                                                                               
                               DCBindingContainer DCB = (DCBindingContainer)getBindings();
                                DCIteratorBinding iterator = DCB.findIteratorBinding("FinYearView1Iterator");
                                    iterator.executeQuery();    
                       
                       
                           } catch (SQLException e) {
                               // TODO: Add catch code                         
                               e.printStackTrace();
                               System.out.println("xxxxx "+sql+"yyyyy "+e);                               
                               FacesMessage msg = new FacesMessage(" لم يتم تعديل التاريخ");
                               FacesContext.getCurrentInstance().addMessage(null, msg); 
                           }

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

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

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

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

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

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.