Make current issue

Hello Gurus,
I have tried ways of setting the current row for an object that is populated via backing bean and which does not have a binding file in jsf page. Please find below the code for backing bean and JSFX.
On click of a tab, I invoke DisclosureEvent which sets the bean and populate it in an arraylist.
public void EditorsDisclosureListener(DisclosureEvent disclosureEvent) {
     // Add event code here...
if(disclosureEvent.isExpanded()){
editorBookLst = booksForEditors();
In the private method of booksForEditors, I get all the rows from and set it in a bean which in turn is added to a list
bookVO.setEditorid(extSystem.getID());
bookVO.setEditorName(extSystem.getName());
editorBookLst.add(bookVO);
The JSF page:
<af:table var="editor"
value="#{pageFlowScope.masterBean.editorListModel}"
emptyText="No data found"
rowBandingInterval="1"
columnBandingInterval="1"
filterVisible="true"
varStatus="vs"
rowSelection="single" id="eBooks"
width="930"
inlineStyle="color:Black; font-family:Arial, Helvetica, sans-serif; font-size:medium;"
allDetailsEnabled="true"
columnSelection="multiple"
displayRow="selected"
selectionListener="#{pageFlowScope.masterDataBean.onTableListSelect}"
binding="#{pageFlowScope.masterDataBean.bookTable}">
I have tried various ways of invoking the selection listener but to no avail. Please note that there is no bindings in the jsf page as it retrieve it programmatically. Also, this is a Master Detail page. Please help me to find out a way to invoke a selectionlistener.
Thanks,
Sarma

Thank you so much for the prompt reply. Actually, this is a single selection table. I guess I was not clear in explaining the issue.
I have a Master Detail table. On select of the master table, the detail table gets populated. The master table is populated through a bean. The bean method returns an arraylist which has a VO object. I iterate through the results and set it in the VO. The VO is set in a list.
bookVO.setEditorid(deliveryValues[deliveryIndex].toString());
bookVO.setEditorName(deliveryValues[deliveryIndex].toString());
editorBookLst.add(bookVO);
The table is getting displayed properly. But when I select any of the rows, the selectionListener should be invoked to display the detail page.
I cannot use the below code from ADF 11g: Table select first row by default as mine returns an ArrayList instead of CollectionModel.
<af:table var="editor"
value="#{pageFlowScope.masterDataBean.editorListModel}"
emptyText="No data found"
rowBandingInterval="1"
columnBandingInterval="1"
filterVisible="true"
varStatus="vs"
rowSelection="single" id="eBooks"
width="930"
inlineStyle="color:Black; font-family:Arial, Helvetica, sans-serif; font-size:medium;"
allDetailsEnabled="true"
columnSelection="single"
displayRow="selected"
selectionListener="#{pageFlowScope.masterDataBean.onTableListSelect}"
binding="#{pageFlowScope.masterDataBean.bookTable}">
In the jsf page, I have the SelectionListener as selectionListener="#{pageFlowScope.masterDataBean.onTableListSelect}"
public void onTableListSelect(SelectionEvent selectionEvent) {
     RichTable _table = (RichTable)selectionEvent.getSource();
// Here I dont know how to set the current row for a model that returns an array list. All the examples have CollectionModel as a returned object.
//Source ADF 11g: Table select first row by default
// tableIteratorBinding.setCurrentRowWithKey(rwKey.toStringFormat(true));
Thanks a lot!,
Sarma
}

Similar Messages

  • Invoke Node - Make current values default

    I have an issue similar to many postings regarding the use of an invoke node to set control values and then to make those values default in that I get an error message: "Error 1000 ( The VI is not in a state compatible with this operation)."
    The catch is that it is not all the time.
    I am trying to set up a configuration utility which allows configuration or modification of settings of channels and serial ports. This top level VI pulls values from a configuration file using a mid-level VI which, in addition to loading the configuration file, also calls a further sub VI which initialises and sets as default front panel objects on a number of VI's using Invoke Nodes. Thus there is a heirachy of three VI's
    with the lowest level VI doing the Invoking.
    The only time I get the Error 1000 is when I try to run everything from the top level VI. From any lower level the VI's run with no problems and the defaults are set as desired.
    Any suggestions as to the origin of the problem?
    Ross.

    To complement the other answer that explains why it not always works, I would again and again stress that !! make current values default !! is not the way to go when you want initial values to be changed.
    For changing startup values you should use .ini files !
    greetings from the Netherlands

  • My proposal to Apple to make antenna issue right

    This is not a gripe post and is only a suggestion of what I think Apple could do to make this issue right. I hope this post isn't removed.
    I finally bought a bumper to fix my antenna issue as Apple has instructed. I really do like the bumper. It's nice. Here is what I would do if I were Apple. Since a bumper is needed to correct the issue I would include a black bumper in the box. Only black would come with the phone. This way everyone has a way to keep the issue from happening right out of the box. If anyone wanted a different color or another black one, they would have to buy it. This way Apple can still make money from their bumpers. Throwing in the black bumper would definitely take the heat off of the issue. I think people would be more inclined to buy a different color since they aren't feeling like they have to in order to fix the issue. Another upside is that once people see how nice the included bumper is, they will most likely want to buy one if there is another color that they really like.
    This sounds like a good compromise to me. It would probably be cheaper for Apple in the long run also. Better to cut into bumper profits than to spend money and resources trying to fix the current phone (if they are even considering this). They can just work to make sure this doesn't happen with the next iPhone.
    Message was edited by: Stevenam81

    b_boult wrote:
    I don't think this goes nearly far enough though. The bumper provided no redress as far as my situation was concerned. Instead, I was left with a phone that continued to drop calls at home where this had never happened before with any of my older handsets, despite their using the same network.
    That suks, you may have a different issue then. My issue was specifically touching the black line which caused the antennas to connect. I was able to repeat the test over and over with the exact same results every time. With the bumper on, my hand is no longer making that connection. My signal no longer drops due to this specific issue.
    On a positive note, I would imagine that any other issues can be fixed with software. The only hardware issue I see is the external antenna. They did say that the method for choosing a tower has been changed. This could be affecting some users in a negative way. I'm betting most other issues will be cleared up with 4.1 or 4.0.1.
    Message was edited by: Stevenam81
    Message was edited by: Stevenam81

  • Current issues with my Nokia Lumia 1520

    Hi all,
    I just wanted to list the current issues that I am having with my Nokia Lumia 1520:
    - Phone freezing and restarting on double tap
    - Click on scroll
    - 256 color when unlocking the phone (need to turn off the screen to resolve it)
    Do you think I should send it for repair or do you all have those issues?
    Thanks!

    I did a hard reset many times, but it fix the other bugs than click on scroll.
    I updated to GDR1 and it helps to have folders for the click on scroll issue.
    Had only 1click on scroll so far...

  • How to handle make current for programmatic VO

    I have a view object that populates row-sets based on a procedure. The procedure returns an oracle object list, which I am able to convert to the View Object's row.
    The executeQueryForCollection() runs my procedure stores my data using
        protected void executeQueryForCollection(Object qc, Object[] params,
                                                 int noUserParams) {
            Object[] bind_variable = null;
            String qry =
                "begin hr.PROC_test(:1); end;";
            try {
                    CallableStatement stmt =
                        getDBTransaction().createCallableStatement(qry,
                                                                   getDBTransaction().DEFAULT);
                    stmt.registerOutParameter(1, OracleTypes.ARRAY,
                                              "hr.TEST_REC_TABLE");
                    stmt.execute();
                    Array arr = stmt.getArray(1);
                    Object[] array = (Object[])arr.getArray();
                    ROW_COUNT = array.length;//my way to get estimated row count, since the row count for my result set is unpredictable. max of 3000 records
                    rs = arr.getResultSet();
                    storeNewResultSet(qc, rs);
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                super.executeQueryForCollection(qc, params, noUserParams);//I don't know whether this is really required
        private void storeNewResultSet(Object qc, ResultSet rs) {
            ResultSet existingRs = getResultSet(qc);
            // If this query collection is getting reused, close out any previous rowset - got from below link
            if (existingRs != null) {
                try {
                    existingRs.close();
                } catch (SQLException s) {
                    s.printStackTrace();
            setUserDataForCollection(qc, rs);
            hasNextForCollection(qc); // Prime the pump with the first row.
        }The View object is used in a page as a readonly table.
    Now the problem I am facing is :
    When I select a row, the make current property of table gets fired. This will call executeQueryForCollection with an additional param (bind variable) with name "fbkKy__0" (i believe it is find by key) and value : my current row's key value.
    Since my executeQueryForCollection is called, the procedure gets executed again(This is also not required because, the procudure does takes time, and is not required to re-execute always).
    The UI table will show the selection, but my iterator is pointing to the first row. And as a result am not able to get the current row in the bean.
    I developed the above VO based on below link and the fusion middle ware developer's guide.
    ref : http://adfpractice-fedor.blogspot.in/2011/01/adf-bc-programmatically-populated-vo.html
    ADF 11.1.1.3.

    executeQueryForCollection can be executed because of passivation/activation process. When you're selecting a new row in the table, the AM is going to be activated and VO instances are going to be refreshed. So, in case of passivation/activation, it's ok if your executeQueryForCollection is being executed again. But the strange fact is that you loose the VO's current row. The current row should be passivated as well and after the activation process the VO instance should have correct current row. That's why I asked about primary key. Actually, I emulated the situation and everything works fine, the current row is correct after the activation.

  • I purchased a one year subscription to Rolling Stone magazine . I got two issues and now it will not allow me to view the current issue, I have to pay again. Can someone help me, how do I get my purchase. I have the automatic download turned on.

    I purchased a one year subscription to Rolling Stone magazine . I got two issues and now it will not allow me to view the current issue, I have to pay again. Can someone help me, how do I get my purchase ? I have the automatic download turned on.

    Try contacting apple

  • VI to make current values default

    Hi, I've used this website:
    http://www.originalcode.com/SavDef.htm  to create a method that
    will call the "Make current values default" at the end of my program.
    Here are my Save defaults.vi and Save defaults core.vi
    The latter works but the former gives me a bad input error... I admit I
    am not advanced enough in Labview to fully understand these two
    programs so I just built them both visually from the website, as I need
    my larger program to save the current defaults when it's done running.
    Thanks for any help!
    Attachments:
    Save defaults.vi ‏37 KB
    Save defaults core.vi ‏35 KB

    It's difficult to explain (and unfortunately I don't have much time)..  but the 'Set Control Value' methods in the Save Defaults.VI  are actually setting the values for the controls in the Save Defaults Core VI.  You instead had constants.  I changed these to Controls and named them accordingly (i.e., "occurrence" and "VI to save").  See attachments.
    I am guessing "Relative position.vi" is your VI where you wants the defaults to be saved.  So, you will add the Save Defaults VI as a sub VI in this VI.  You do not have to explicitly give its path anywhere as that is obtained from the call chain. 
    I have not tested this.. but it should work now.  You will have to rename these to the original names, including spaces, etc.  (or change the names on the diagrams).
    Hope this helps.
    -Khalid
    Message Edited by Khalid on 11-15-2005 01:51 AM
    Attachments:
    Savedefaults_1.vi ‏38 KB
    Savedefaultscore_1.vi ‏36 KB

  • Can't find 'Make current properties default' in Text Tool

    Acrobat XI Pro
    11.0.06
    Win 8.1, 64 bit
    I'm trying to change the default font size for my Add Text tool.
    What I've been trying is creating a text box and adding some text in it.
    Then I try right clicking in the box, on the text, after doing a Select All.
    None of the boxes that pop up give me the option to 'Make Current Properties Default'.
    What's the right way to change the defaults to Add Text?
    Thanks.

    Unfortunately there is no way. I'd also like this to have. But you need to remind yourself that Acrobat is not a text editor.
    All you can set in the preferences is font and font height for comments.

  • How to make current value to default to all controls at once

    Choosing "Data Operation" -> "Make Current Value Default" to multiple controls requires a lot of clicking. Is it possible to do this with one click?
    Solved!
    Go to Solution.

    Yes.  If you select no controls, it says "Make current values default", and it does all the controls at once.  If you have a control selected, then it does only the selected controls.
    Reinitialize current values to default works the same way.  Select nothing, it does all the controls at once.
    Bob Schor

  • Reversing the Make Current Values Default command

    Hi,
    I was working with a labview program this evening and had been using the 'Reinitialize all to default' command under the operate menu to clear all of the waveforms on my screen.  However, I accidentally chose the 'Make current values default' command and cannot erase what shows up in the waveforms.  I am sure there is a simple fix to my problem but I couldn't figure it out.  I tried rewiring parts of my block diagram do exclude the waveform graphs with the hope that the waveforms would go away but realized that the graphs weren't wired so nothing was going to change.  Any help would be appreciated.
    Thank You,
    bsteinma
    Solved!
    Go to Solution.

    There are a few simpler ways than closing and reopening the VI.
    If you realized the mistake right (or soon) after you did it, a ctrl+z will undo the operation and you have your old defaults back.
    If you are past that stage, a simple "menu...file...revert" will revert the VI to the last saved version. No need to exit and reload.
    If you accidentally saved it with the new defaults, "right-click the graph...data operations...clear graph", make default, save VI again.
    Good luck!
    LabVIEW Champion . Do more with less code and in less time .

  • "Make current properties default"

    I have accidentily clicked the setting to make current properties the default on one of the tools in Acrobat, how can I turn it off so it resets back to default settings before I clicked this?

    It is the area measuring tool so I don't want there to be a default. I want it to measure the area I select each time I select it. But as I accidentily clicked this button it is now remembering that shape everytime I try to measure an area. Is there a way to reset it so there is no pre-determined area and it measures it each time like it did before?

  • Make current value default - Undo action

    Hi,
    A simple question - when selecting with the right mouse button a control and pressing "Data Operations/Make Current Value default" how I can undo this operation? Imagine I set some control default value to something and after some time I changed my mind and I want to return the control to its initial value (as it comes when you place the control from the pallete -  "Set to factory value").  I was not able to figure out how to do this. Cntr - Z is not an option since it works only in the close vicinity of the operation (you can't Cntr-Z this operation after 2-3 hours of intensive work over the VI). 
    For example I set numeric control default value to 22, after some time I want to return it to initial state (in this particular case the "factory value" is 0). Well, I can reinitialize the value to 0 but it's different from setting it to "factory" settings.
    Thank you

    I disagree with the idea that the default value is not a valuable tool.
    One example is let's say you have a subVI that had a hardcoded constant, but in new applications, this value is to be fed in from the outside - i.e., the constant is to become a control connected to the connector pane.  This subVI is in a common library so it needs to maintain compatibility with older applications.
    So you right-click on the constant to make it a control with the default value already set to the original constant value, connect it to the connector pane and set the connector to anything but required.  Now the new software has a connector to hook up to while, even though the old code will have to be recompiled, it won't break because, even though there is nothing wired to the control, the default value works just fine.
    I can think lots of other things, but that is among the most useful thing I've done with default values.
    [edit] Maybe I took things a little out of context? [/edit]
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Ok, i am not terribly familiar with the program premiere elements 12 as of yet, i am having some difficulty at times, current issues...when in play mode, the timeline marker? hiccups backwards then forward as it plays, some of my image clips freeze and do

    ok, i am not terribly familiar with the program premiere elements 12 as of yet, i am having some difficulty at times, current issues...when in play mode, the timeline marker? hiccups backwards then forward as it plays, some of my image clips freeze and don't play while the marker keeps going, this also happens when on full screen mode...what do i need to do to correct this problem...currently i am working this on my mackbook 2009.  thankyou for your reply.

    <moved from Downloading, Installing, Setting Up to Premiere Elements>

  • Make current values default

    Hello ng,
    Can anyone tell me how to programatically make
    the current values of all controls on a panel the
    default values?
    Furthermore, can I set all controls back to their
    default state programatically?
    Thanks!
    Charlie Solomon
    Raytheon Systems Co.
    [email protected]
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    Are we talking about LabVIEW 5 here? If so check out the VI Server
    functionality.
    In the Functions palatte under Application Control you can open a VI
    reference to
    a VI with Open VI Reference and then using the Invoke Node you have both
    "Make Current Values Default" as well as "Reinitialize All to Default
    available".
    These functions match exactly the same commands in the Operate menu.
    [email protected] wrote in article
    <7qkdgv$di6$[email protected]>...
    >
    > > For every control you want to set back to a default value, make a copy
    > > of it on your front panel, and set the default value. Now, when you
    > > want your control to go back to default, set it via a local variable
    > > ("Copy of Control A" -> 'Write' local of Control A
    >
    > Thank
    s Rick,
    > That would work for resetting controls to the same default values every
    > time...I should explain my app better: I have a subvi that pops up
    > a "setup" panel, allows the user to change some controls, then gives
    > the option to Save or Cancel. Save button should make the current
    > panel values the new default, so that next time the app is closed and
    > reopened these new values will be in place. Cancel button will undo
    > the changes and reset the controls back to the default state.
    >
    > Only thing I could find in the Help was some reference to
    > a "Make_Current_Values_Default" DLL, but no info on how to find it or
    > access it.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • First battery charge and current issues?

    Hi!
    I just bought a new MacBook (2.0 GHz, 160 GB). I have two quick questions:
    1. I plugged in my AC adapter, turned on the notebook for about 5 minutes to make sure it works fine, etc, then shut it down to let the battery charge. Would I have lost any battery capacity by not fully charging the battery first? And do I need to let the battery run through a full cycle when I first use the computer to ensure full capacity?
    2. Are there any updates/best practices for the 2008 (December) MacBook batteries? I know there was an issue in 2007, but for the new line am I set to go? And is it still best practice to put shut the Mac down instead of putting it to sleep to save wear and tear on the hard-drive/battery?
    sorry for all the questions: it has been 5 years since I bought my last notebook so I am a bit rusty/excited!

    See the following:
    About Batteries in Modern Apple Laptops
    Apple - Batteries - Notebooks
    Extending the Life of Your Laptop Battery
    Apple - Batteries
    Determining Battery Cycle Count
    Calibrating your computer's battery for best performance
    Battery University

Maybe you are looking for

  • How read a pdf ebook document in my ipod?

    i have an ipod touch, exist an aplication to read an ebook or pdf document. thanks

  • How do I sort by employee last name when grouped by employee id?

    Hi, The first Group is: Employee ID. The second Group is: Employee Last Name. I wish to sort the entire report by Employee Last Name; however, standard crystal reports sorting functionality doesn't present me with this ability. As a result, the repor

  • Report problem when show attribute only Characteristic text master data

    I want to show the attribute only Characteristic in report. In report, it shows "Not assigned" for the Char row, but other data show properly. I checked the Char text master data. It looks fine. I don't what's problem?

  • Missing 10% bonus trade in credit

    Just traded unity and advance warfare and realize after I had left the store that the 10% credit did not apply. The rep who assisted me has process many of my previous trade ins and is overall a great employees at the store I frequent but I guess som

  • Update version 7.1.0 bundle 1149

    Help I can't download the update version 7.1.0 bundle 1149 a message pops up saying 'insufficient memory to download files. 86.0 mb of personal data from device memory is required but there is only 74.6 mb Delete 11.3 mb of personal data and the resu