Get a specific line of an iterator when loading of the page

Hi all
I m new on JDeveloper/Adf and I have a problem with that:
I have an iterator that contains a few lines extracted from the base and I want to show the information of a specific line when I load the page. I get the values that identifies my line of parameters.
What I want is to define an action such as 'Next' or 'Previous' in the definition of page my .jsf that I can use to get a specific line. Then invoke this action using 'invokeAction.
I appreciate if anyone can help.
Thanks in advance...

Just played around with it. The carousel component does not set the current line automatically. You must add a spinListener as

public void onSpin(CarouselSpinEvent carouselSpinEvent) {
               List currentSelectedKey = (List) carouselSpinEvent.getNewItemKey();
RichCarousel carousel = (RichCarousel) carouselSpinEvent.getSource();
                CollectionModel componentModel =
                              (CollectionModel) carousel.getValue();
JUCtrlHierBinding carouselTreeBinding =
                   (JUCtrlHierBinding) componentModel.getWrappedData();
                JUCtrlHierNodeBinding selectedCarouselItemNode =
               carouselTreeBinding.findNodeByKeyPath(currentSelectedKey);
                DCIteratorBinding dcIterBinding =
                             carouselTreeBinding.getIteratorBinding();
                dcIterBinding.setCurrentRowWithKey
                   (currentCarouselItemKey.toStringFormat(true));
}

to set it by code.

Timo

Tags: Java

Similar Questions

  • Get NPES trying to create a line of the iterator of table on the loading of the page.


    Hi all

    I'm new to ADF and try to learn from its concepts. I've created a workflow with the train and using 7 jspx pages as the train stops. When I move from one stop to the next stop, the data are made to the database.

    My use case is, I want to fill an iterator of table on the loading of the page based on the data provided on the previous stop.

    I tried to use the code to find the iterator and create the line the view object in support Builder bean as well as file impl application module(call the executable action method) but every time I got the same null pointer exception.

    The code used for creating line iterator:

    BindingContext bindingContext = BindingContext.getCurrent ();
    BindingContainer DCBindingContainer = (DCBindingContainer) bindingContext.getCurrentBindingsEntry ();
    IdIterator DCIteratorBinding = bindingContainer.findIteratorBinding("iteratorName");

    ViewObject vo = idIterator.getViewObject ();

    Line rw = vo.createRow (); It is the line where I'm getting null pointer exception.

    Trace of the exception:

    at oracle.adf.model.bean.DCDataVO.initFKs(DCDataVO.java:621)

    at oracle.adf.model.bean.DCDataVO.createInstance(DCDataVO.java:592)

    at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1993)

    at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2492)

    at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2533)

    at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:2514)

    at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:11079)

    Please correct me if I'm wrong, but that's what I think I understand that, iterator links are not initialized correctly on appeal by Builder or application module impl of the file that I use.

    I will need to create a listener of phase of page for the task flow and and use the method afterPhase to call my method for line creation and insertion in the table iterator. ?

    But this approach causes the phase listner class to call for each workflow page I don't want I need to fill out the table only for a single page and not to other pages of six.

    Please help me in this problem by providing suggestions and pointers.

    My version of JDev is 11.1.1.6.

    Thanks in advance.

    ~ Abhishek

    Hi Ben,

    Thanks for your reply. But it did not solve my problem.

    To solve my problem, what I did is mentioned below:

    In my support for this page two, I create a listner beforePhase method and named her beforePhase displaying page jspx tag property.

    when the phaseId is RENDER_RESPONSE, so I call my method to set the extracted database of the values in the table iterator. and it updated the iterator with new values.

    Thank you all for your answers.

  • I have wscont.apps in my story, when I clik the page I get blank page

    * O.T. > wscont.apps

    I have this on my story when I clik the page I get blank page. wscont.app/winstore/osupgradenotification/Produ/ at the end of logond5

    Can anyone tellme what is.

    Hello

    wscont.apps can be a file, process, or service related to store every time that you start Windows Store. It is not exactly a Web site which is the reason why you are unable to visit any web page.

    • Are what story you referring?

    If you are referring to the history in Internet Explorer, you can delete the history.

    Step 1: If you use Internet Explorer, you can check the following settings:

    a. open Internet Explorer

    b. click on Tools , then click Internet Options

    c. under browsing history, click settings tab and then click on the history tab and look for number of days History to be saved in Internet Explorer. You can change the settings according to your requirement.

    d. click OK if/after changes

    Step 2: You can also delete the history of the site, that you have already visited by these steps and check.

    a. open Internet Explorer

    b. click on Tools , then click Internet Options

    c. under browsing history, click delete tab

    d. Click to select history - list of visited Web sites , and then click Remove

    e. close and restart Internet Explorer and check

    If you are using another browser (Firefox, Google Chrome etc.) I recommend you post your question in the forum of support relevant to this specific browser.

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

  • When you play FarmVille, my computer crashes or I get a notice that "bits have been lost" and refresh the page... usually don't work and I have to start all over again.

    When you play FarmVille, my computer crashes or I get a notice that "bits have been lost" and refresh the page... usually don't work and I have to start all over again.

    I think that there is a prob with this game, it does not matter if you use firefox or IE. Or another browser. It blocks something. Or causes probs.

    FB needs to fix it. There are a lot of people (in a Google search), who are having probs. One way or the other

  • The CC icon on my desktop has a blue disc with two vertical lines in it. When I open the Panel, it is completely empty?

    The CC icon on my desktop has a blue disc with two vertical lines in it. When I open the Panel, it is completely empty? How can I access the apps?

    The solution seems simpler than city above: reinstall the creative Cloud application. When he finally set in the Finder (Mac) you ' he's opinion - down under - that "synchronize file is paused. Click on the small triangle on the right and the problem is solved - or it was for me.

    Concerning

  • How to get a form empty when we run the page?

    Hi all!

    Hope you are well

    My question is, How to get empty a form at run time? means that when we run the page, text fields is filled with white... Could someone please help me with this...

    Thanks in advance,

    Nanda.

    Hi Nanda,

    Just follow these steps:

    (1) create a stubborn taskflow (uncheck create with fragments box)

    (2) drag the CreateInsert operation on your narrow-minded taskflow and mark it as the default activity

    (3) drag a view and the CreateInsert a link to the component view using a case of control flow

    (4) double click on the view to create the page

    (5) slide the view object in the page as a form of ADF

    6) back to your narrow-minded taskflow and the general tab make sure you under visibitliy you select "url-invoke-enabled.

    You run tasfklow and your form will be rendered in insert mode.

    Concerning

    Antonis

  • Go to a specific line on the loading of the page

    i was working on JDeveloper 11.1.2.3

    How I navigate to a specific line on the loading of the page

    Concerning

    inside the workflow task Insert method call before your page and inside the method, you can set the line

  • ADF Table retrieves all lines during the loading of the page

    Hello

    We have a requirement where we need run the query programmatically by giving the query column and its value.

    I used the code below in the AMimpl.java and calling this method during the click on the button Search my Search Page.

    I am able to get the features you want on the search page by clicking the search button.

    The question now is when the page initially loads, the table fetches all rows of the VO by default.

    Can you please let me know where I need to change so that the table will get no line on the initial load of the page?

    ' public void setVoParams (String columnName, String columnValue) {}

    ViewObject mapVO = this.getFusionSapMapping1 ();

    String whereClause = "MappingEO." + columnName + "" as: colValue ";"

    mapVO.setWhereClause (whereClause);

    mapVO.defineNamedWhereClauseParam ("colValue", null, null);

    mapVO.setNamedWhereClauseParam ("colValue", columnValue);

    mapVO.executeQuery ();

    }

    Hello

    You don't tell us your version of JDeveloper.

    An easier approach to implement your condition is to use the property refreshCondition of your iterator. Here is an example of how do: https://blogs.oracle.com/shay/entry/delay_method_execution_when_us

    Antonis

  • Normally, when you open the page palette in InDesign, it is divided into two. The upper part is where is the master page (and a page named none), while the lower part is where are the actual pages of documents. Unfortunately, when I opened my palette of p

    Normally, when you open the page palette in InDesign, it is divided into two. The upper part is where is the master page (and a page named none), while the lower part is where are the actual pages of documents. Unfortunately when I opened my palette (InDesign CS 6 on a Mac), there is no upper and lower part of the page-only the lower part is displayed. When I put my cursor on my pages, it tells me that I "Applied A-master".

    Why not my top shows (A-master and none)? The pages that I don't "Act" like master pages - for example, I can't get past page numbering.


    Any help is appreciated. Thank you!

    It looks like the upper part may be in a State reduced - the line was pulled up.

    Just of the cursor on the line that separates the upper and lower sections, and drag it to the bottom.

  • My Home Page is about 1 inch to the top of the lower Task Bar when I open the Page - how the 1 inch can be eliminated?

    I have an OptiPlex 9030 AIO with Windows 7. The opening page is about 1 inch above the bar when I open the page of the low spots, I get there, and when I open it again it is placed in the 1 inch upward. There must be a setting to lock the position full page, but I can't.

    Your help would be appreciated. Thank you.

    Correction - harvest must be drop.

  • Problem with the Accordion widget open flashing and closed when the loading of the page

    Why do my flashes of accordion, widget open and close during the loading of the page (see http://vincentballmusewebsite2013test.businesscatalyst.com/digital-illustration.html#.UVDr Ehx7JyII) tried everything to solve this, and Adobes customer service is terrible, they don't get back to you when they say they will.

    Please help me someone,

    Thank you

    We have a difficulty which will be included in the process of testing for version 5.0. Except for a few unexpected correction main side effect, it will be part of 5.0.

    Private for 5.0 beta program will probably start in a few weeks or more. To try the fix and/or to provide feedback on the new features and bugs that you encounter, you can join the program of private beta (Non-disclosure Agreement required) via the Help menu of Muse. Members of the program will be notified when Muse 5.0 Beta 1 is available.

  • How can I empty my trash? When I opened the page & click on file, deletes not available. (WHY?)

    My computer is slow real. I was told that it could be due to my trash. Go through a lot of junk in there. As I said when I open the page and click on delete file is not available. WHY?

    Hi gregUP,

    Follow the steps in this link to delete the files from the Recycle Bin.

    To remove or restore files in the Recycle Bin

    To empty the Recycle Bin, see:

    Empty the trash

  • I can't download anything, when I have the page with four blue square bit he never move forward. Maybe, someone know why? Thank you!

    I can't download anything, when I have the page with four blue square bit he never move forward. Maybe, someone know why? Thank you!

    Please try another web browser, or delete the browser history and cookies and the same retry.

    Hope this will help you.

    Kind regards

    Hervé Khare

  • When you view the page in a browser, the sides were white bands, what to do?

    When you view the page in a browser, the sides were white bands, what to do?

    zNViE-dOcu4.jpg

    The embedded html code seems to create this problem. Try to remove only once and check.

  • Navigating ADF Train until a specific stop on the loading of the page

    Hello friends,

    I'm working on the GUI of an ADF web application, requiring the use of train components. It is possible to navigate through the component to train at a specific stop by programming once the page containing the component of train is loaded, but according to our business scenario, I need navigate the train at a specific stop (say 3rd stop for example) while the page is loading.

    Is it possible to do?

    I use JDeveloper 11.1.1.7.0.

    Best regards

    Anshul

    try to use the method call activities

    Shri

Maybe you are looking for

  • Canoe find modem Driver for my Satellite U400 - 12 p

    Hello, I'm tryng to get a modem online driver but I'm not able to find it. I have a toshiba Satellite U400 - 12 p Help, please Thank you Sam

  • How to compress images in an attachment in Hotmail

    I can't find the function of compression of the images as attachments Hotmail more. I have Vista and IE 8. Before I have a question to download some kind of compression program that allowed to select several photos at the same time in the cabinett fi

  • Windows 7 Ult has suddenly and bad start showing a message "non-genuine copy".

    Since I used it last there two days, my copy of Windows 7 Ultimate has suddenly and bad start showing a message "not real".  Enter the correct product key Activation menu causes the message that Microsoft has blocked this key.  It's infuriating and t

  • Backup RADIUS server

    Hello Anyone know if you can configure a PIX to use another RADIUS server if the primary one fails? For example, a customer authenticates their VPN clients using a RADIUS server with the command of PIX: AAA-server ISA SERVER (host 10.222.180.10 b1bby

  • c: overwritten with the new xp pro operating system. Need to retrieve the d: partition.

    My brother installed Windows XP Pro installation disc from my other computer on my desktop HP Pavilion 754n without my permission and I can not access the system restore to perform a non-destructive recovery with the recovery d: partition.  How can I