How to set a row as default row in adf table

Hi,
I have a requirement: when page is launched there are multiple records with different status displayed on the page and i had to make the first record with Status = XXX as default selected row in adf table. How to code it?
Thanks!
Susan

Hi Frank,
Thanks a lot for your quick response!
We are using Jdev 11g. After received your response, i went through all of your responses in ADF coner and OTN for the related topics (setting detail row) and got some ideas(Specially, i got your detail coding for moving makeCurrent expression into selection listener method into backing bean, etc ) and was ready for coding this function. But our PM changed their mind and we dont need this function. So, I had to move to another area......
Your articles and your responses really help me!
Thanks again for your help!
Susan

Similar Messages

  • How to set focus on the last row of JTextPane

    how to set focus on the last row of JTextPane?
    import javax.swing.*;
    import javax.swing.text.html.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MyGUITest extends JPanel implements ActionListener
    {   public static void main(String[] args)
        {   SwingUtilities.invokeLater(new Runnable()
             {   public void run()
              {    JFrame f = new JFrame("My GUI");
                  MyGUITest GUI = new MyGUITest();
                  GUI.setOpaque(true);
                  f.setContentPane(GUI);
                  f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                  f.pack();
                  f.setLocationRelativeTo(null);
                  f.setVisible(true);
        JTextPane txtP;
        JButton add;
        HTMLEditorKit hek;
        HTMLDocument hd;
        String txt;
        MyGUITest()
        {     this.setLayout(new BorderLayout());
         this.setPreferredSize(new Dimension(400,200));
         txtP = new JTextPane();
         txtP.setEditable(false);
         txtP.setContentType("text/html");
         txtP.setText("");
         hek = new HTMLEditorKit();
         txtP.setEditorKit(hek);
         hd = new HTMLDocument();
         txtP.setDocument(hd);
         JScrollPane sTxtA = new JScrollPane(txtP);
         add = new JButton("add");
         add.addActionListener(this);
         sTxtA.setBorder(BorderFactory.createTitledBorder(""));
         this.add(sTxtA, BorderLayout.CENTER);
         add(add, BorderLayout.SOUTH);
         new Thread(new Runnable()
         {   public void run()
             {   while(true)
              {   try
                  {     Thread.sleep(100);
                  }catch(InterruptedException ex)
                  {     ex.printStackTrace();
                  appendText("This is <b>HTML</b> text");
                  //add.doClick();
         }).start();
        public void actionPerformed(ActionEvent e)
        {     txt = "<b>asd</b>";
         try
         {   hek.insertHTML(hd, hd.getLength(), txt, 0, 0, null);
         }catch(Exception ex){   ex.printStackTrace();   }
        public void appendText(String txt)
        {     try
         {   hek.insertHTML(hd, hd.getLength(), txt, 0, 0, null);
         }catch(Exception ex){   ex.printStackTrace();   }
    }thanks~

    anIdiot wrote:
    im not sure what is the caret location...So don't youthink you should have looked for it in the API?
    anyway, i want the scroll bar to scrolled down automatically when the output is displayed.
    normally, the scroll bar is scrolled down automatically when a new text is inserted, but it doesnt work on this timeGo through camockr's http://tips4java.wordpress.com/2008/10/22/text-area-scrolling/
    db

  • My HP Officejet Pro 8600 Plus prints emails as landscape only; how to set to A4 as default?

    All of a sudden my printer has set to landscape printing of emails; how to set it portrait as default for printing?

    Hi there @OB1214 , welcome to the forums
    I understand your emails are printing in landscape. If the issue is only when printing emails, there may be a setting within your email settings to change the print settings.
    If all of your programs are printing in landscape, check the print settings on your computer.
    Changing Print Settings in Mac OS X
    Changing Print Settings in Windows 7
    I hope that helps!
    If the problem continues, please let me know the details and also which OS you are running.
    Thank you
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • How to set a platform's default character encoding

    Hi,
    Does anybody know how to set how to set a platform's default character encoding in Java? Thank you.
    Yugang
    [email protected]

    You do 0mean for Java, not from Java? (The latter would make absolutely no sense at all.) If so, pass it to the runtime using the -D switch (you've got SUN's java, right?):
    java -Dfile.encoding=the-encoding-i-like the.name.of.YourClass

  • [LENOVO Y50-70] How To Set NVIDIA Card as Default Graphic Adapter

    I have just bought Lenovo Y50-70. But i wonder how to set NVIDIA Card as default Graphic Adapter instead using Intel Card. Thanks

    hi monx,
    Welcome to the Forums.
    The Y50-70 uses Nvidia Optimus Technology to automatically switch between the Intel GPU (for power saving) and Nvida GPU (for maximum performance).
    To manually set the default graphics adapter, you will need to set this inside the Nvidia Control Panel > Manage 3D Settings.
       - Sample image
    More info:
    http://support.lenovo.com/us/en/documents/ht071337
    Regards

  • How to eliminate  select message  after Radio button in ADF tables

    how to eliminate select message after Radio button in ADF tables
    example <f:facet name="selection">
    <af:tableSelectOne>
    </af:tableSelectOne>
    </f:facet>
    output:
    radobutton select
    radiobutton select
    please help me regarding this issue.

    Hi,
    this usually has a text String in the header saying "Select and .." which can be changed through the property inspector for the TableSelectOne component
    Frank

  • [REPORTS BUILDER] How to set different colors on every row?

    Hi all,
    I am building a report with a lot of rows. What i would like to do is give every row a different colour.
    Such as:
    Row 1 : None
    Row 2 : Lightblue
    Row 3 : None
    etc..
    Does anybody know how to do that?
    Thanks in advance,
    Daniel

    Hello,
    Highlight every alternate row
    Regards

  • How to get selected row from a non-bind ADF table

    Hi,
    I have an ADF table that is based on a collectionModel built programmatically. The collectionModel is this:
    model = new SortableModel(new ArrayList<ArrayList>());
    Hence, it is not a binding table. My question is how to get the selectedRows from a non-bind table.
    I am used to building binding ADF table and I know we can get it from voiterator.getCurrentRow, since the selectionListener is set to the binding....collectionModel.makeCurrent
    <af:table value="#{bindings.ItasLookupTypesVO1.collectionModel}"
    selectedRowKeys="#{bindings.ItasLookupTypesVO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.ItasLookupTypesVO1.collectionModel.makeCurrent}"
    </af:table>
    I am thinking maybe I need to write my own selectionListener, but need more advice/ideas of what's the codes in the customer selection Listener to get it from my SortableModel.
    Please help.
    Thanks
    -Mina

    I'm not sure if this works in your case, but check out the selection listener I write in this blog http://wp.me/pcBZk-eu
    You should use the selection event and check the added set. This should give you access to the selected row.
    Timo

  • I am on itunes on my iphone, i bought a ringtone but i cant figure out how to set it as my default.

    I bought a ringtone using my itues store on my iphone, and bought a rigntone. How can I set it as my default. I cannot find the option to get it set up

    Hey kashaenaparisi,
    Thanks for the question. The following resource outlines how to change your default ringtone for all calls:
    Change your ringtone - Phone - iPhone Basics - Apple Support
    http://support.apple.com/kb/TI8
    If you wish to have a ringtone for a specific contact, see this resource:
    Set a special ringtone for a contact - Phone - iPhone Basics - Apple Support
    http://support.apple.com/kb/TI16
    Thanks,
    Matt M.

  • How to set the user's Default joboptions directory?

    Hello Experts,
    When we installed Acrobat Pro 8.x on our Win XP Pro systems our systems were NOT in a Windows Domain.  At that time the default location for user-created/customized joboptions files was:
    C:\Documents and Settings\<Username>\Application Data\Adobe\Adobe PDF\Settings
    where <Username> is the name of the LOCAL Windows user.
    A few years ago we migrated to a Windows Domain and converted our LOCAL users to domain users and disabled, but did not delete, the LOCAL user's account.  We did not remove the LOCAL user's Documents and Settings directory structure either.
    Our users now log into a DOMAIN rather than the LOCAL account.
    As a result of that process the user's Documents and Settings directory structure changed to;
      C:\Documents and Settings\<Username.DOMAINNAME>
    where DOMAINNAME is, of course, our Windows Domain Name.
    Now we are beginning to use Acrobat Distiller joboptions and I notice that when Acrobat/Distiller goes to save a user-created/customized joboptions file the default location has remained;
      C:\Documents and Settings\<Username>\Application Data\Adobe\Adobe PDF\Settings
    which is NOT the user who is logged in
    Acrobat/Distiller should use the Documents and Settings directory of the user who is actually logged in which is;
      C:\Documents and Settings\<Username.DOMAINNAME>\Application Data\Adobe\Adobe PDF\Settings
    This anomaly has created some confusion and appears to have created a dependency of the old LOCAL user's Documents and Settings directory preventing us from deleting it.
    Question:
    How can we force Acrobat/Distiller to use the Documents and Settings directory of the logged in user (eg: the Domain user)?
    In other words, how do we set the user's default joboptions directory?
    Pointers/tips/and tricks are most welcome.

    if the user is the one running the program, you can always get the home directory using System.getProperties ("user.home");
    If you are trying to get the properties of another user, you could try using setProperties to change the user name first, before getiting the home directory, but it probably won't work because of the security manager. You could read the /etc/passwd file and parse the path out, but once again, the user of the code would have to have appropriate permission.

  • How to make row selection by checkbox in ADF table

    hello,
    using jdev11g TP4 , fusion web application
    when i drag my view object as ADF table into jsf page,
    i want to know how to make row selection by checkbox
    thanks
    greenApple
    Edited by: greenApple on Nov 10, 2008 11:33 AM

    Hi,
    the tree component has changed compared to 10.1.3. You no longer have a tableSelectmany component that renders as checkboxes. Instead you use the ctrl key and select the table rows
    Frank

  • SQ01 (How to set Global Area as default)

    Hi All
    In SQ01, i find 2 environments in Query Areas - Global Area & Standard Area. Everytime i execute SQ01 transaction, it takes me to Standard Area, then i have to change it to Global Area & then select the user group. I would like to know how i can set Global Area as default & also a particular user group, so that everytime i run SQ01, it directly takes me to Global Area & the particular user group, so i can execute my query directly instead of having to change it each time.
    Hope my problem is clear, await inputs.
    Vivek

    Hello Vivek,
    You need to maintian some default parameters in your User master record.
    Parameter ID :
    AQB for User Group
    AQW for Query Area.
    Select the AQB from the drop-down and give your default user group in the parameter value.
    Regards,
    Naimesh Patel

  • How to set group name as default value in People Picker in Infopath 2010

    How to set group name (shareoint Groupname)  as default value in People Picker in Infopath 2010

    Under the Developer tab in Infopath you can manage Loading Events, unfortunetly i dont have Visual Studio on this PC so i cant laborate, but i believe it's rather simple to figure out.
    Edit: Found a easier way, through Data > Default Values.

  • HT2506 How to set outlook as the default mail client for Preview

    When I try to us Preview to email PDFs the Apple Mail client is the default mail client that opens. I use Lion and would like to set Outlook as my default. Does anyone know how to do this? It has been suggested that you click command-P, select PDF and add Outlook there but there are no options to do this. I am stuck and would like some help. I am using outlook:mac2011 version 14.1.4 and Preview 5.5.1
    Cheers

    I did not find a way to change the target application for the "New Email with Attchment" service for files and folders. However, you can follow this instruction here to create ANOTHER service, that will use Outlook: http://www.officeformachelp.com/2010/11/create-a-service-to-attach-files-to-a-ne w-outlook-for-mac-mail-message/
    Hope this helps. Sebastian.

  • How to set local help as default in ID CS5?

    Just received a replacement laptop w/CS5 installed & cannot figure out how to disable/turn off community help...I want it to default to local help whether connected to the net or not.
    Thanks
    Update Info:
    Or, if setting local help as default is not possible, what about turning off or disabling internet sensing by the program?  This will be used in the field and sometimes slow connections are the only thing available.  Testing it on a dial-up connection, it just set there trying to access community help without allowing access to the local help until the dial-up connection was closed.

    Thanks Peter...I'd already found that, but when I first found it, the last section was not in that screen and in playing around, I found that Air was not installed proprly, uninstalled & re-installed that & that last section with the 2 ticks showed up & selected local help.
    Next, I get a message that there is no PDF reader installed...but a working copy of AR7 is & it works...I'm thinking that CS5 should be uninstalled & re-installed, however, that will have to wait until I can get the laptop back to the company we're working for.
    The community help window indicated the local help file to be 40Meg, but a search found no PDF that large on this machine.
    Is this PDF available for direct download & I'll just access it outside of the help screen if necessary.
    Laptop/program owner is in Canada, I'm visiting in Georgia & have an overseas flight on Wednesday...

Maybe you are looking for

  • Windows does not recognize ipod touch

    Windows does not recognzie my iPod Touch.  This happened recently as it was recognized previously.  Any suggestions?

  • Complex Element with Mixed Content problem!!!!1

    Hi All, I have a scenario where complex XSD element has mixed content.i.e  it has text and elements. How to deal with it in XI.When i create any complex type in XI i cannot add text to it,i will be able to add only elements enclosed by that complex n

  • Setting up, populating and printing a fixed layout sheet from the prowser

    HI Gentlemen: Can you help me in my problem? Given a fixed, customer-defined form layout with boilerplate text intermixed with variables, I have to generate it, populate it from my relational Oracle tables and print it locally on the customer's print

  • Dock frozen, taking 100% CPU, 50gb swap

    My dock is frozen and shows 100% cpu use (that is, 100% of one core).  It gradually takes more and more memory until I run out of hard disk space.  Killing the process does nothing - it immediately comes back at 100% of cpu and starts eating the memo

  • Oracle Beehive Communicator error on BlackBerry

    Hi, I've installed Oracle Beehive Communicator 2.0.1.3.0 on my BlackBerry. And the problem is that it just works if I have a WiFi connection enabled. If I'm not connected to a WiFi network I'm not able to connect to Beehive communicator. Any idea abo