Inserting a record when we have a mixture of Session and web page values...

Hi
I just want to ask whether my solution is correct or not.
I should insert some rows into database table, each row has a userID field which i have in a Session Scope bean for each user.
now when i want to insert a row into those specific tables that has userID field i do the following:
-create a form with all required field (using adf faces components), all elements has binding in backing beans, so i can access its values in backing bean
-put a save button in the form.
-create action for that button
-in the action i use ViewObject for that specific component to insert the new row from Form values and that specific value from session scope bean.
but i feel that it is not the correct way, I think ADF BC + Faces components should have a better solution for this.
in case that you have better solution for this, please let me know.
thanks

Hi
Thank you for reading my post.
At the first step when i read you comment i create that method and drop it into the page as a command button and i get the result that i described.
at the second step made some editing to aaPabeDef.xml .
-First i tried and create a new invokeAction under the executables node. I gave it an ID (Exec2) and set the refresh condition to what you said.
Also i select createRowWithUserID as Binds for this InvokeAction.
Now i tried to create an Action under the bindings node, but when i select Action from pop-up menu and i select the required Data Collection, i can not see exec2 in actions combo box.
Now i drop the method into my page from Data Control plate and run the application
result is not what i want, this time it shows too many messaes in my browser about
required fields (fields that i used on the page and are manedatory)
After i press the button and page refreshs all values are gone from the input boxes.
here are images :
before adding invokeAction:
http://i7.tinypic.com/2ep4x2b.jpg
http://i7.tinypic.com/2yluy4l.jpg
after adding invokeAction:
http://i9.tinypic.com/2vtob5d.jpg

Similar Messages

  • How do I uninstall Mavericks and recover Lion?  I have a brand new iMac and web pages stall or freeze since I installed Mavericks.  I can't get it to download software for my printer when I connect it.

    I have a brand new iMac.  It was working fine until I downloaded Mavericks.  Now I have web pages that freeze while trying to load.  The blue in the address bar stalls and freezes.  If I try to load from page 1 to a later page, or reverse that, I also have the same problem.  I tried to connect my printer for the first time, and again, the blue progress bar froze.  Then I got the yellow  triangle telling me there was a connection problem.  My internet connection is via an Air Card as that is my only option where I live.  I packed up the whole new iMac and took it to my Air Card provider, where they also have very fast Wifi, and they had the same problem with Wifi.  I use my Air Card with my MacBook and it works JUST GREAT!  I really want to return to Lion.  HELP.

    The only way to retutn to Lion is to format your drive (erase, lose all) and either:
    1. clone back the clone copy i hoep you have, or
    2. first backup your files, then format and install Lion again
    But really, mavericks works great. You have a problem. Find out why. First, what unusual software do oyu have installed that may be conflicting with it? Virus, system modifiers, etc?  Second what OLD software do you have that might be the problem.  finally, you might need to do a re-install if something errored during install.
    Grant

  • Images  have question mark e-mail and web pages

    Why are half of all images not there,replaced with blue box with question marks. Anything on line , like emails ,web sights. No rime or reason. Please help me out. I am new with apple, not computers.... Thank You, kimbr

    at the top of this forum you should see your locaton, (change)  Welcome USERNAME Sign Out
    IF you click My Verizon do you see a quick signing on page (you should) then you should see xxx emails and be able to click that link to see emails. Once in a while It shows signed out (before the 2 weeks are up) and I have to click the link a second time to connect. I always use the "stay logged in for 2 weeks option"
    At any point do you see this  screen? http://www22.verizon.com/content/sso/signin.aspx?goto=http%3A%2F%2Fforums.verizon.com%3A80%2Fvrzn%2F...
    Once you get this fixed, the email client should easily be resolved (what client do you use? )
    If a forum member gives an answer you like, please give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem. Thanks !!!
    http://forums.verizon.com/t5/Verizon-net-Email/Fix-for-Missing-Inbox-sent-folders-etc-with-Internet-Explorer-11/m-p/647399

  • When we have to go for session method, when we have to go for call transact

    when we have to go for session method, when we have to go for call transaction method if i have a 3000 records in flat file. which is better? why

    Data Transfer
    During the process of data transfer, data is transferred into the SAP R/3 System. This transfer is from an external system to SAP R/3 system. Whenever you transfer data from an external system into an R/3 System, you can use data transfer because it is installed and regularly transfers data from an external system into an R/3 System.
    As discussed, with the help of BDC, you can transfer the required data from a non-SAP system to an SAP system. For this kind of data transfer you are required to write an ABAP program. This ABAP program would help to export the concerned data to a sequential dataset file. The data in this file has to be stored. This should be stored in a format, which is acceptable to SAP batch input program. But, to transfer data from a SAP system to another SAP system, you can take the aid of RFC or CPI-C.
    SAP application supports the data transfer of numerous SAP business objects. The said data transfer program specifies the data format definition, which is necessary to import the data into the R/3 System. There are three methods available for transferring data:
    Direct Input:
    In this method the SAP function modules execute the consistency checks. However, there are other means of checking with the help of screens. The Direct Input Method has considerable performance advantages.
    Call Transaction:
    In this method you can check the data consistency with the help of screen logic.
    Batch Input Session:
    In this method data consistency is checked with the help of screen logic.
    Direct Input Method
    Among the methods of data transfer through BDC, direct input method is the one that is used, especially in case of transferring large amount of data. In order to enhance the batch input procedure, the system offers you with the direct input technique.
    There is a distinction between the batch input technique and this technique. Unlike batch input technique, this technique does not create sessions. Instead, it stores the data directly. Moreover, it does not process screens. The data has to be entered directly into the corresponding database tables. The system calls a number of function modules which execute necessary checks, if any required. In the case of errors, the direct input technique has a facility to restart the entire mechanism. However, if you want to restart the entire mechanism in case you faced an error, then direct input programs must be executed in the background only. One has to use program RBMVSHOW or Transaction BMV0 to maintain and start these programs.
    Call Transaction Method
    Call Transaction method is another method used for Data Transfer. In this type of method your program will use the ABAP statement CALL TRANSACTION USING in order to run a SAP transaction. In this type external data need not be deposited in a session for being processed later on. Instead, the entire batch input process takes place inline in your program.
    Here, the data transfer program must convert the data that has to be transferred into the SAP system. This is as per requirement by the SAP data structure or the transaction which is using it. It is to be remembered that a conversion of the data types may be necessary at different times during the process.
    Suppose there is a data type mismatch then you have to convert the data types to type C. In this regard the data transfer program should be capable of exporting the data in SAP format to the sequential file. At the time of uploading the data into the SAP system, the BDC program reads the data from the abovementioned sequential file.
    Batch Input Session Method
    This is the third method for data transfer. If you use the batch input method to transfer data, then you should remember that an ABAP program has to read the external data which is to be entered in the R/3 System. Subsequently, it stores the concerned data a "batch input session." The batch Input session records the actions which are required in the process of transferring data into the system. This can be done by using normal SAP transactions.
    As soon as the program generates the said session, you will be able to run the session in order to execute the SAP transactions in it. Moreover, you can start the session, and at the same time, can monitor a session with the help of batch input management function. For this you have to choose:
    System à Services à Batch input. Moreover, you can have the session run in the background processing.
    Writing a Data Transfer Program
    If you want to write a data transfer program, you have to follow the steps mentioned below.
    Firstly, you will analyze the structure of the existing data. Subsequently, your job is to specify the conversions, which are essential to fill the SAP data structures.
    Secondly, you have to generate the SAP data structure. In case the program is written in ABAP, you will require only the required tables in the concerned program with the help of TABLES statement.
    Thirdly, you will have to initialize the SAP data structure.
    Fourthly, fill the structure with data, performing any conversions and error checking that are required.
    Finally, you will write the sequential file. In the SAP system this sequential file is typically required for making the data available to the batch input program.
    Batch Input Method
    Batch input method is a type of data transfer method. It is used for bulk data transfer; it is one of the primary ways by which data can transferred into the R/3 System. This method is not for near real-time data transfers.
    There are various typical uses of batch input. One of the ways includes the one-time import of data. This import of data is from a legacy system into a newly installed R/3 System. In addition to it, another typical use is for periodic (i.e. hourly, daily..., and so on) transfers of data. These transfers are from external systems or legacy systems which are still in use into R/3 system where all enterprise data is consolidated.
    The R/3 applications deliver different programs for batch input, which are ready to be used. However, in some cases a customer has to write his or her own batch input program. This is required in order to convert the concerned data from a legacy System or from a proprietary format into an R/3 data format.
    The process flows for a batch input are discussed below.
    Data Transfer Decision-Making: It is with a decision to transfer data from an external source into R/3 that the process of batch input begins. It is probable that the external source may be a legacy system that is being replaced. A one-time bulk data transfer is foreseen in this regard. Alternatively, the external source may be an external system that is to remain in use. In this case, a regularly recurring bulk data transfer is foreseen.
    Setting up Batch-Input for Data Transfers: If R/3 standard one-time or regular data transfers are required, then by means of customizing settings in the R/3 Customizing System in SAP ASAP set up will occur. You must set up custom batch input procedures by hand, which means the system administrator must schedule the data conversion program that creates the batch input session. The system administrator and the batch input programmer must determine the following: how frequently data is made available from the external system, how frequently the conversion program should run, and whether the conversion program runs in R/3 (ABAP program) or in a host system (external program).
    Processing Batch Input Sessions: When a batch input session is processed, then the actual transfer of data into R/3 takes place. Little attention is required in processing of batch input sessions by the system administrator. Usually, the starting of batch input sessions is automated by the system administrator. If necessary, the administrators can also start batch input session explicitly from transaction SM35.
    Checking Batch Input Sessions: For a system administrator the routine activity is to check daily or more frequently in transaction SM35 whether all batch input sessions have been completed successfully. It is the schedule for running batch input sessions on which the schedule for checking sessions depends upon. For doing this check the R/3 System provides easy-to-use batch input management tools.
    Analyzing Errors: It is the duty of the system administrator to analyze the problem if one or more transactions in a session end in errors. Usually, the assistance of the affected data entry specialist or department for this analysis will be needed by the system administrator. In the situation where the problem was caused by incorrect data conversion or incorrect generation of the batch input session then the programmer who wrote the data conversion program may also need to be involved.
    Error Handling in Batch Input Method
    It is found that most problems usually fall into one of the following two categories discussed below.
    In this case either required data is missing from the batch-input session or invalid data has been included in the session. Errors in the data conversion program or the presence of unexpected types of data or incorrect data in the legacy database are the possible external causes of this type of problem. Within R/3, the causes for this type of problem include incorrect or incomplete customizing in an application. For example, a legacy data type may not have been foreseen in the check table entries made in application customizing.
    This case mainly includes technical/programming problems. The data is entered by a batch input session by running R/3 transactions non-interactively. Therefore, a typical technical or programming problem is the incorrect identification of one of the data fields in a transaction. Thus, the conversion program may not fill a required data field or may have provided invalid values.
    Conclusion
    I have gone through the details of batch data communication and various methods used to transfer data. One can make use of BDC to transfer data from a SAP to SAP system. In addition, it can transfer data from a non SAP system to SAP system too. I have discussed the various methods of BDC and the error handling in the respective methods.
    Thanks,
    Shankar

  • I have just upgraded from CS 6 (Dreamweaver) and now when I click on a picture on a web page in Dreamweaver it doesn't go to the folder where the photo is stored anymore.  If this continues I'll have to go back to CS 6 as I have to put in alot of photos.

    I have just upgraded from CS 6 (Dreamweaver) and now when I click on a picture on a web page in Dreamweaver it doesn't go to the folder where the photo is stored anymore.  If this continues I'll have to go back to CS 6 as I have to put in alot of photos.

    I am using dw cc and I just double click picture I want to change in dreamweaver cc and my image folder opens, select new photo and then it updates and I am good to go, I am using a mac

  • When I have the downloads window open and I close the browser window, how can I get the browser to open the homepage the next time I start it while the download window is still open?

    When I have the downloads window open and I close the browser window, the next time I reopen the browser while the downloads are still going, it returns me to the last page I was on. All previous versions of Firefox would return me to my homepage which I would prefer. Please let me know if this is possible.

    When you re-open Firefox and choose Restore Session, by default it picks up your most-recently-open window, and the other windows should then show up in Recently Closed Windows.
    The Firefox add-on Session Manager lets you manage how many closed windows and closed tabs are saved, in case it's not enough.

  • HT201493 How can I add my daughter to Find my friends when we have the same itunes account and that's how they make us log in?

    How can I add my daughter to Find my friends when we have the same itunes account and that's how they make us log in?

    1) You asked "Does she need to reconnect to that itunes/computer and if so what do we need to do to remove this folder of pics from her ipod?" Yes, you have to connect the iPod to that computer and go to the Photos pane for the iPod in iTunes and uncheck sync photos and the click on synce/apply. In the future do not check sync photos.
    iOS and iPod: Syncing photos using iTunes
    2)
    Create a NEW account for using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    Then on the iPod go to
    - Settings>Messages>Send and receive and sign out your ID and sign into hers. Make sure that only her ID email address is listed.
    - Settings>FaceTime sign out of your ID and sign into hers. Make sure that under You can be reached at only her ID email address is listed
    - Settings>iCloud and sign out and sign in with hers
    Contnue to use the commpn ID/account for Settings>iTunes and App stores.

  • When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???

    When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???  All of the songs that were put on there from a CD will sync, but the songs that were purchased.. "cannot be found"   How can we merge them?? or how can we share all songs.. purchased or not!

    When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???  All of the songs that were put on there from a CD will sync, but the songs that were purchased.. "cannot be found"   How can we merge them?? or how can we share all songs.. purchased or not!

  • How do I export the music from my itouch when I have recently lost my computer and cd's?

    How do I export the music from my itouch when I have recently lost my computer and cd's?

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • MacBook Air intermittently has issues connecting to websites when wireless shows connected to the internet. The pages show that I am offline, but I can ping Google DNS. Windows PC, iPhone and Android phone have no issue displaying the same web pages.

    MacBook Air intermittently has issues connecting to websites when wireless shows connected to the internet. The pages show that I am offline, but I can ping Google DNS. Windows PC, iPhone and Android phone have no issue displaying the same web pages.How do I solve this issue?

    Go step by step and test.
    1. Power off the router. Unplug it from the wall. Wait a while.
        Plug it back to the wall. Power the router on. Wait until all the lights are lit properly. It will take a while.
        Restart the computer.
        Start up in Safe Mode.
        http://support.apple.com/kb/PH14204
    2. Empty Caches
        Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        Develop menu will appear in the Safari menu bar.
        Click Develop and select "Empty Caches" from the dropdown.
    3. Deselect Proxies if selected.
        System Preference > Network > Advanced  > Proxies Tab
        Under "Select Protocol", uncheck any box if selected.
        Click "OK" then  "Apply”.

  • When I have my "iMessages" turned on, and I text my friends with iMessage as well, when they reply to my message their reply comes to my phone and my husbands phone as well. Why is this?

    When I have my "iMessages" turned on, and I text my friends with iMessage as well, when they reply to my message their reply comes to my phone and my husbands phone as well. Why is this?

    You may find this link of interest...
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • I am unable to open another Firefox4 window when I have the Error Console open and I can't open the Error Console when I have two Firefox4 windows open. Is anyone else having this problem?

    I am trying to debug the jQuery to a micro site I've created and I am unable to open the Error Console when I have two Firefox windows open and I am unable to open a second Firefox window when I have the Error Console open.
    I am using Mac OS X 10.6.7 and I am using Firefox 4.0.1

    I personally haven't experienced much of the "reverberation/feedback" when using a headset on the i4S...
    Yes, I have near-perfect hearing too (for scope, squeaky brakes hurt my ears) I come from many conversations on many phones and types and first off, CDMA technology is great for coverage, terrible for voice quality. HD Voice in Europe made for some of the best phone conversations I've ever had.
    Back on track, feedback is most noticable (similar to the landline phone) when using the iPhone without a headset, but for me it's not an absolute criticality mainly because I use VoIP apps alot, so maybe it has desensitized me some over the past year.
    But whenever I'm on a call, and the other person has me on speakerphone, I have alot of trouble talking because of the feedback loop caused. So the less of my voice I hear the better I can talk.
    Have you tried a bluetooth headset yet?

  • My iPod show that my battery is receiving energy and that it is "charging," but it doesn't actually charge. The battery never increases; it only decreases. Even when I have it physically plugged in and charging, it loses battery whenever I am using an APp

    My iPod shows that my battery is receiving energy and that it is "charging," but it doesn't actually charge. The battery never increases; it only decreases. Even when I have it physically plugged in and charging, it loses battery whenever I am using an APP or anything. I'm thinking that the chip that receives the energy is damaged or worn out. Is there anyway to fix it without going to the store? My USB chords is fine. It charges other iPods fine. Including a second generation iPod which means my 4th generation iPod should not have an physical battery problem. Any suggestions? Thank you so much!

    - See:      
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar                          

  • I have deactivated my CS6 on my old computer and now when I have downloaded a trial version and enter the serial number it says not valid? I have only used my license on one computer before? Does anyone know the problem?

    I have deactivated my CS6 on my old computer and now when I have downloaded a trial version and enter the serial number it says not valid? I have only used my license on one computer before? Does anyone know the problem?

    Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    OR
    Asked to sign in after paying may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    or
    http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
    Membership and Payments http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html

  • I have been trying to get my daughter's iPod Facetime to work. But when we log on it won't let us. When we put in our ID and password it attempts to verify but fails and when we have create a new account and had confirmation email it still wont verify???

    I have been trying to get my daughter's iPod Facetime to work. But when we log on it won't let us. When we put in our ID and password it attempts to verify but fails and when we have create a new account and had confirmation email back it still wont verify???

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems
    http://tinyurl.com/32drz3d
     Cheers, Tom

Maybe you are looking for

  • ITunes 8 visualizer

    Besides all the discontent around iTunes 8's failure to 'connect' to remote speakers, here's another curiosity. This update now includes the 'visualizer' icon back on the main screen, placed second from the lower right corner. It looks like a 'flower

  • Re: QM Usage Decision

    Hi All, Is it possible to trigger automatic transfer posting once a QM-usage decision is saved. Please advice. Regards, Vivek

  • How to enter permissions password via Reader

    Hi, I protected my pdf in LiveCycle Designer (File -> Form Properties -> PDF Security) , so that now to open the document a password is needed (document password) and also to print it (permission password). When I try to open the document using the f

  • Attach Network to a WBS Element

    Hi, I have created a network having activity and its milestone using BAPI bapi_network_maintain, and a project and its wbs elements using bapi_project_maintain. Now i've to attach the network to the wbs element using a bapi.How to achieve this??

  • Draw a rectangle from a flex app

    Hello, GRAND CHALLENGE (should be "hello world" that anyone should easily find): 1) - a flex app with a button 2) - when clicked the button draw the rectangle PROPOSED NON WORKING SOLUTION: draw.mxml: <?xml version="1.0" encoding="utf-8"?> <mx:Applic