How to stop row.setAttribute changing iterator?

Hi gang
I really could do with some help here please!
We have a data-action which creates a new row, then executes the following code:
protected void findForward(DataActionContext actionContext) throws Exception
  DCBindingContainer bc = actionContext.getBindingContainer();  
  DCIteratorBinding iterator = bc.findIteratorBinding("ClinicalDataElementSetsView1Iterator"); 
  HttpSession session = actionContext.getHttpServletRequest().getSession();
  String cesId = session.getAttribute("CESCesId") != null ? session.getAttribute("CESCesId").toString() : null;   
  Row row = iterator.getCurrentRow();  
  row.setAttribute("CesId", cesId);  // SUSPECT LINE
  super.findForward(actionContext);   
}When navigating to an UIX input-form which displays ClinicalDataElementSetsView1Iterator, if I comment out the SUSPECT LINE from above, the new record is correctly displayed.
However if I leave this line in, when navigating to the UIX page, the iterator is reset to the first record, not the newly created record.
How do I stop this from happening such that the new record is displayed?
Any help greatfully appreciated.
Cheers,
CM.
PS. JDev 10.1.2

I could really do with some help with this one please.

Similar Messages

  • How to stop the auto change of the desktop background picture ?

    How to stop the auto change of the desktop background picture ?

    Well . . thanks, but I already have done that and I still have the problem. The background changes to the standard picture galaxy not to one of the options. Sorry my question wasn't clear enough.
    Thanks. 

  • How to stop material description changed after changing customer on SO

    I have updated material description on a SO. However after changing the Sold-to, the material description refreshed back to original.
    Anyone knows how to stop system to change material description back to default?

    Hi
    In standard SAP when we change sold to party in sale order system redetermine prices and taxes but this is new thing for me that system also redetermines material description. Amitesh Anand I have also chcked this in my system and material description is getting changed after changing the customer.
    Field is VBAP-ARKTX and you can ask your ABAPER to write the code in userexit MV45AFZZ and 
    USEREXIT_PRICING_PREPARE_TKOMP. I have checked this system is calling this exit. Give it a try and update the status.
    Thank$

  • How to stop screen from changing size every time I touch cursor

    how to stop screen from changing size every time I touch cursor

    If you're using Windows 8 it has to do with the mouse. Go to Control Panel - Mouse - Click Pad Settings. Uncheck pinch zoom then appy.

  • How to stop internal pricing changing in invoice.

    Dear All,
    I have taken internal price as an condition in Sale order.
    if material price changes before actual delivery, then the internal price also changes in invoice.
    how can i stop from hapenning this.
    Please help.
    regards,
    GHS.
    Please update.
    Edited by: GHS on Jun 4, 2008 10:36 AM

    Hi Utpal,
    Thanks for answer,
    Actually i have taken Internal price condition.
    So the Pricing type suitable was ...E.
    Thnks , my problem is solved.
    regards,
    GHS.

  • How to persist rows in ADF iterator using JPA

    I am using Jdeveloper 11g R (11.1.2.3) & weblogic 10 G
    In my pages I use JSF & Facelet
    When using ADF face + EJB3 session beans and JPA , how I can find the rows inserted , updated or removed from Iterator on the
    page that then use persist,update or remove for related entity in EJB session beans?
    Is there any pattern for that?
    Thanks

    I would suggest adding CSS style classes. 1 for the 'good' students and 1 for the 'normal' students.
    Then use the EL in like you provide but use the name of the styleclass (in the styleClass prop).
    This should be added to every column value.

  • CodedUI : How to stop the TestMethod from iterating in a csv file?

    Hello All,
    I have a [TestMethod] which use a csv file. Now this csv file have some 20 rows in that. For one [TestMethod] I need to select one row from that csv, I am able to extract that row. No problem so far. 
    Once my [TestMethod] finished execution with this particular row I need to stop that. It should not take the next row from csv and execute the [TestMethod] with new set of values.
    What should I do to stop the execution after that single iteration?
    Thanks a tonne in advance.
    Thanks and Regards, Sajeev.

    Hi Sajeev,
    You may not be surprised to hear that this question (or something similar) comes up a lot.
    There are a number of basic solutions out there using if statements or loops with only one iteration (this one for example:
    https://social.msdn.microsoft.com/Forums/en-US/7571dbe5-495b-4e47-b012-1c09fbb40a4b/coded-ui-data-driven-test-limiting-the-number-of-iterations?forum=vsautotest)
    You can also ad named ranges to your CSV file and refer to these in your data source configuration instead of the sheet (this post has a lot of detail https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/79c9f86a-a223-4ab6-84af-a7c4baed4951/taking-data-from-single-excel-sheet-for-multiple-test-methods?forum=vstest)
    The drawback of the first type of solution is that all of the "empty" executions for the other iterations will still have results recorded, which makes analysis more difficult. The drawbacks of the second solution are that it is more complicated
    to implement and takes as much work as just creating a new sheet with the single row added (which might be the best option).
    Regardless, I recommend giving both solutions a go if you have time, purely from the point of view of having your own opinion of them.
    Hope this helps,

  • How to stop keyboard lighting change?

    Ok so my question is pretty straight forward, I want to know how I can stop the illuminated keyboard from changing lighting levels when I go from a dark room to a lit room.
    For example, lets say I'm in a dark room and I illuminate the keyboard on the MBP by about two levels, if I take my laptop to my bathroom and switch the light on the keyboard illumination level jumps to like the 8th level. I want to make it so that when I go in between the lit room and dark room that the keyboard lighting does not change levels.

    It is unchecked, and I think the setting your talking about has to do with the keyboard illuminating by itself when it's in the dark, what I am trying to fix is the illumination levels on my keyboard from changing from low to high when I take my MBP from a low lit room to a bright room.
    I'm starting to think theirs no setting to change what is going on.  :/

  • How to perform row level changes in a region of table type

    Hi Gurus,
    I am having a region of type table. In this table I have added a details section. In the details section I want to display an item only when its not null. So I have changed the code in controller to make the render as false for this field when it is null. But this is applied to the item present in all the rows in the table.
    For example: If there are two rows in the table and first has some value in X item while second has null value for the same item. Then both the rows do not show the item X (render is set as false by controller).
    Is there any way to have the item visible in first row and invisible in second row?
    Thanks,
    Manish

    You have to go for SPEL binding. Create a transient attribute in the same VO of the table and set the value of the each row to true or false depending on the value of the attribute of the first, say using decode statement ( DECODE(firstattr, null, false, true)) and then bind this attribute to the RENDERED_ATTR attribute of the second item using SPEL binding. Please refer Dynamic User Interface section of the Chapter 4 of OA Framework Dev. Guide.
    Regards,
    Guru.

  • How to stop Preview from changing resolution when converting JPEGs into PDF

    I am combining several JPEGs of identical resolution into a PDF using Preview, using either the sidebar or Automator action (http://discussions.apple.com/thread.jspa?messageID=11893607). For some reason, Preview changes the resolution of the PDF so viewing it at actual size (100% zoom) is bigger and pixellated. Example: a 960x600 JPEG becomes approx 1355x845. I figured it had something to do with dpi and indeed if I do the calculation and open up each JPEG in Photoshop and resize (without resampling, i.e. without changing pixels) to 101.5, the resulting PDF is pretty close to what it should be. (Calculation = 1355/960 * 72dpi.) But the slight resize and recompression lowers quality, plus it's a huge pain to go through all of that for every image.
    This issue is the same for simple saving a single image, the combining and use of Automator script has no impact.
    My question, in summary: how do I get Preview to save a JPEG as a PDF without changing its resolution?

    I have the same problem. I have a bunch of scanned documents (jpeg), and have been trying to make them a multi page document, instead of 20+ images.
    Using the Automator "New PDF from Images" preview action v1.0, supplied by Apple with Snow Leopard, and I am able to convert the images to a PDF.
    Using these images, the first page being 1032 x 1600 pixels, and telling the automator action to +size each page to fit image+, I convert them into a PDF.
    Converted PDF is viewable here.
    The original JPG is clearly higher resolution than the PDF, and the PDF loses the crispness of the original scan. Even using "+size each page to fit image+" does not make the page the original image size.
    What's happening here, and does anyone know a better way to convert Jpegs to PDF on the Mac - and keep the image resolution? I don't care about files sizes here, but keeping resolution and maintaining quality.

  • To access my login page, firefox changes the address and shortens "pms2" to just "pms" and it screws up my login procedure. Any hints on how to stop it from changing the address?

    To pull up my login page for my reservation software, I have an icon on my desktop. https://apps.gracesoft.com/pms2/login.asp. However it keeps shortening the "pms2" to "pms" and that makes the login info invalid. The page pulls up just fine, but that one space saver invalidates the security

    It appears that the URL is being redirected by the website, and not being changed by Firefox. I think you'll find that the URL will be changed if you try to visit the website in another web browser, too.

  • How to stop automatic date changes when opening an old document?

    I use Pages to create my invoices. The problem I'm having is this:  when there is a question about an invoice and I need to reopen it the date changes from the original date (which I need) to today's date.  I understand why it does this, and I want it to do this when I create the thing, but is there a way to keep it from happening from saved documents?
    As a follow up question:  it must be very simple to find the date the document was created.  Could someone please tell me where to find this?
    Thanks in advance

    You likely put a date stamp on your invoice via the menu hiearchy, Insert > Date & Time. Highlight the date string, then from a right-mouse button menu, choose Edit Date & Time... You will see another pop-up that gives you some control over your newly inserted Date & Time.

  • How to stop Imesh from changing my homepage automatically?

    I have this application Imesh to download music. But it keeps on changing my home page to http://search.imesh.com/
    I want my home page to be google.co.uk
    I want to block this site from changing my home page.

    I figured it out!...Look for a file/program that iMesh installed on your computer called Winmediacore .... I can't remember the exact name ... I disabled it and iMesh took a hike. I would get a pop up window that says this program has blocked changes in my homepage. This happens when you try to revert your homepage back to what you want it to be. Somehow, I clicked on that pop up and got options to disable it. It worked!!!!

  • How to stop iTunes creating a new library on my hard drive when it can't find the one I have created and told it to use on an external drive?

    I have quite alot of music etc so to save hard drive space I have created my iTunes library on an external hard drive. If I ever accidentaly open iTunes when that external hard drive isn't attached iTunes makes a whole new library from scratch on my computers hard drive. I find this highly frustrating as I often open Itunes to find no music as it have changed librarys and I have to re-load my actual library: very frustraiting and time consuming.
    I would like to know if it is possible to lock iTunes some how to stop it from changing folders when it can'f find the library, or atleast give me a warning that it can't find the library before creating a whole new one????

    Tunes works through a database file which has a list of your tracks.  When you click on a track it looks up in the database which file it needs to play, then plays the file.  If something breaks this link then you get !  The two main ways to get ! are to move a file from where iTunes expects it to be, or to delete it altogether.  I don't know which has happened in your case.  You can try using Spotlight to find a file for the one referred to in a broken link.  If the files have been moved then they need to be moved back.  If they were deleted completely you will have to restore them from a backup or download them again from the iTunes Store and rebuild your library.

  • How do I stop GoLive from changing the location of my CSScriptLib.js file?

    How do I stop GoLive from changing the location of my CSScriptLib.js file?
    I am making rollovers and want my CSScriptLib.js to be in the same folder as my HTML files.
    Every time I edit the rollovers GoLIve recreates the path of the CSScriptLib.js to file:///Users/xxx/Library/Preferences/Adobe/GoLive/Settings8/JScripts/GlobalScripts/CSScr iptLib.js so it won't work when uploaded. I always need to edit my HTML before uploading. All I want it to say is src="CSScriptLib.js" as the default.

    The site file is a database that keeps track of all your assets (and much more), including the scriptLib file. As soon as the page is saved (when you use the site file and it's open) the link will be change to the correct path that will work on the server.
    If you're not using the site file you might as well use a text editor, since most of GL functionality is gone.

Maybe you are looking for