Image button displaying single image

Hi,
I am getting multiple images from picture library and displaying in the Imagebutton to display.
But Last image is getting displayed i.e. there are 3 images that i am getting from picture library.
I am getting image 3 in the image button even though when i am assigning the value in the loop as below
for(i=0;i<results.count;i++)
ImageButton1.ImageUrl = SPContext.Current.Site.Url+"/"+"/"+item.Title.ToString()
Please let me know if i am making any mistake.
Regards,
Sudheer
Thanks & Regards, Sudheer

Hi,
My requirement is 
To get images from Picture library and to display those images in the form of Image buttons.
Regards,
Sudheer
Thanks & Regards, Sudheer

Similar Messages

  • Two button with single function

    I want to create two buttons for single function and one button for one function. For example, I click button1, the screen will show "clicked1"
    If I clicked button2, the screen will show "clicked2". If I click button1 and then click button2, it will show "two button are clicked". However, it does not work in two button with single function. What is the problem? Here is the code.
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var button1:MovieClip=new Button1();
    button1.x=200;
    button1.y=200;
    addChild(button1);
    var button2:MovieClip=new Button2();
    button2.x=300;
    button2.y=250;
    addChild(button2);
    button1.addEventListener(MouseEvent.CLICK, onClick);
    button2.addEventListener(MouseEvent.CLICK, onClick2);
    var isClicked:Boolean;
    var isClicked1:Boolean;
    function onClick(evt:MouseEvent):void{
              isClicked=true;
              trace("clicked1");
    function onClick2(evt:MouseEvent):void{
              isClicked1=true;
              trace("clicked2");
    if (isClicked&&isClicked1){
              trace("two buttons are clicked");

    It works but I want the screen only shows the "isClicked" only when I click button1. But now when I click button1, "isClicked" and "two buttons are clicked" show at the same time.
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var button1:MovieClip=new Button1();
    button1.x=200;
    button1.y=200;
    addChild(button1);
    var button2:MovieClip=new Button2();
    button2.x=300;
    button2.y=250;
    addChild(button2);
    var isClicked:Boolean;
    var isClicked1:Boolean;
    button1.addEventListener(MouseEvent.CLICK, onClick);
    button2.addEventListener(MouseEvent.CLICK, onClick2);
    button1.addEventListener(MouseEvent.CLICK, onClick3);
    button2.addEventListener(MouseEvent.CLICK, onClick3);
    function onClick(evt:MouseEvent):void{
              isClicked=true;
              trace("clicked1");
    function onClick2(evt:MouseEvent):void{
              isClicked1=true;
              trace("clicked2");
    function onClick3(evt:MouseEvent):void{
              trace("two buttons are clicked");

  • In Security, clicking on the "Saved Password" button displays your current saved password for each site. It does not allow you to change a password. How would you do that?

    In Security, clicking on the "Saved Password" button displays your current saved password for each site. It only allows you to view and delete site passwords. It does not allow you to change a password. How would you do that?

    If you enter a new password Firefox should offer to change the password.
    *You may not need to delete the old password. Try "Refreshing" the page, entering the site again, you may need to let Firefox fill in the old password, then enter the new password, and Firefox should ask to save the new password. See:
    **http://kb.mozillazine.org/Deleting_autocomplete_entries
    *If you delete the old password, you may need to "Refresh" the site after deleting the old password.
    If you want to delete the password that has been saved do the following:
    #In the Tools menu select Options to open the options window
    #Go to the Security panel
    #Click the "Saved Passwords" button to open the passwords manager
    #Select the site in the list, then click Remove
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe PDF Plug-In For Firefox and Netscape 8.3.0 (''Note: this is a very old version and installing the current version may not delete it or overwrite it. To avoid possible problems with having 2 versions installed on your system, you may want to remove the old version in Windows Control Panel > Add or Remove Programs before installing the new version'').
    *Shockwave Flash 10.3 r181 (''this may be current but a new version was released on 2011-06-14 with a ".26" after the "181". You can use the Plugin Check below and/or look in Add-ons > Plugins for the version of Shockwave Flash that you have installed. The newest version will be shown in Add-ons > Plugins as "Shockwave Flash 10.3.181.26"'').
    *Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • Button Display Symptom

    I have 3 regions on a page and the 2nd region has 4 buttons and an SQL query report which displays data from EMP.
    There are two page item:
      HIDE_SHOW -- which is Show to show the data and Hide to hide the data.
      P1_SAL_LIMIT -- which limits the employees shown by salary: 0 (default), 1500 or 2000
    The buttons are:
      Show -- which, when pressed, shows the report (Not the entire region just the data lines of the report.)
                  (The Show button displays when  :HIDE_SHOW = 'Hide'. Note the data is hidden when this button displays.)
      Hide -- which, when pressed, hides the report
                  (The Hide button displays when  :HIDE_SHOW = 'Show' and the data is being displayed.)
      SAL > 1500 -- Which show only employees with sal > 1500
      SAL > 2000 -- which show only employees with sal > 2000
    The Query is
      select ename,job,sal
        from emp
       where :HIDE_SHOW = 'Show' and SAL > :P1_SAL_LIMIT
    What works:
      Show, Hide and Sal > 1500 work fine together.  Note: the Sal > 1500 button sets :HIDE_SHOW to 'Show' so one can see the data.
    But I need to do a computation when a Sal button is pressed, so here is what I tried.  The SAL > 2000 button is set up with Dynamic Actions (PL/SQL block and page refresh).  Note: I need to do a branch to (the same) page or a refresh rather than a page submit because of activity which may be pending in the other regions on the page. 
    What I need /expected when Sal > 2000 is pressed: Tthe Hide button will display because :HIDE_SHOW is set to 'Show' and data is being displayed.
    Problem when Sal > 2000 is pressed:  Even though I set :HIDE_SHOW to 'Show' in the computation, pressing Sal > 2000 has no effect on the Show button.
    It's a Session State problem, right?  But I'm not sure how to solve it without a Submit.   I added a Set Value to the DAs but that did not solve the problem.
    How do I get the "Show" button to react to the change in the value of :HIDE_SHOW?
    You can see it set up here:
    WS:  APEX_EXAMPLES_01
    demo / demo
    Application 16604 (Button Control), p. 1
    Thanks,
    Howard

    Yes, you're right, the Show buttons were not quite working, sorry, I was concentrating on the filters.  I fixed the hide show for the first region.  Region 2 is mostly there and you can replicate the functionality for that one. However, the Sal filter buttons for region 2 do work and you can see how it all works independently.  Please concentrate on the techniques.
    The basic steps for the filters are:
    1. Set the filter limit
    2. Set the Hide_Show variable
    3. Hide the Show button
    4. Show the Hide button
    5. Refresh the report.
    Notice the computations. They are needed to initialize the values.
    I also changed things so they don't trigger off the change of value of an item.  That just seems obscure to me when the user cannot directly change the item.  It seems better to trigger off button clicks. That's what the "Report 1 SHOW button" and "Report 1 HIDE button" DA are for.  If you look at them I think they are really easy to follow (Show button, Hide the other button, Set the Hide_Show filter, Refresh report)
    When you break it down into individual steps and give meaningful names to your elements (items, regions, da, etc..) I think it all becomes a lot more maintainable.
    I have definitely seen unmaintainable applications since I started with APEX way back on HTMLDB 1.6.  That said, they are mostly easy to maintain when things are well thought out and steps are broken down into easy understandable actions.
    Good luck!
    Thanks
    -Jorge

  • How to control custom button display or hide in toolbar

    I had been added four buttons in Acrobat Tool bar.
    Now I find a function AVToolButtonSetComputeEnabledProc in SDK that this function only control the button enable or disenable.
    Now I want to control the custom button display or hide, how can I to do?
    Does this SDK have a API to achieve my  need?

    As of Acrobat X, we no longer support dynamic hiding/showing – only enable/disable.

  • Condition For Button Display

    Hi All,
    I have new requirement that create push button to reject all line items in complaint page.
    I have done all changes.  Now button is functioning as expected.
    Issue is button display by default in the initial page even we have not entered any order number in that page. Here i need to set some conditon that if item list is not empty then need to display the button.
    Component : ICCMP_BT_BUTTON
    View          : ButtonBar
    Context Node : BTADMINI
    Item List from Another Component & View
    Component : ICCMP_BTITEM
    View          : ItemList
    Context Node : BTADMINI
    How can i set condition in HTM page whether Node(BTADMINI) is empty or not. How can i access here.
    Note : Button Component as well have Contextnode (BTADMINII).
    Hope you got the detailed issue.
    Thank you,
    Cha

    Hi Andreai,
    Thank you, as per your suggestion, created bound in "WD_USGE_INITIALIZE" method, initially in this method for Button usage only  "BTADMINH" bound was there. Now added BTADMINI as well.
    BTADMINI Entity gets populated now. Issue is backend is not updated with the value we are passing from UI.
    We have a button in frontend which is used to reject all items of the order.
    But if we click the button, item (BTADMINI) entity get filled now, using the entity, calling the execute method with the value of "SetRejectReason" but if we look at the beckend item status still in Open and not "Reject".
    Event handle method Code (In Button Component)
    lr_entity ?= me->typed_context->btadmini->collection_wrapper->get_current( ).
    ls_param-name = 'REASON'. "#EC NOTEXT
    ls_param-value = iv_rejection_code.
    APPEND ls_param TO lt_param.
    lr_entity->execute(
    iv_method_name = 'setRejectionReason'
    it_param = lt_param ).
    Button COMP : ICCMP_BT_Button
    Main COMP    : ICCMP_BT_COM ( Which has Item Structure as well, here Button component has been called)
    My assumption, BTADMINI instance only might be populatuing without value. Can you please suggest what is the issue
    Thank you,
    Cha

  • Play button displaying on all slides

    When I view a published project in SCORM cloud or in Moodle the play button displays on every slide. This doesn't happen when i view the project locally.
    Does anyone know how to stop this? I can't use auto play as this is not compatible with html5 output.

    Please upgrade to 8.0.1.242: http://blogs.adobe.com/captivate/2014/10/a-free-update-to-adobe-captivate-8-is-now-availab le.html
    I posted links in my latest blog post: Captivate 8.0.1 Install? Keep your Customisation! - Captivate blog

  • "Save Search" button displays above SubTab region for QueryRN

    I've created a subTab layout and on the first tab, a QueryRN with resultsBasedSaearch, I've enabled simple, views, and advanced panels. The QueryRN is on the first tab, I have other details on the subsequent tabs.
    The "Save Search" button displays above the subTab bean. This means that when I navigate to another subTab, I still see "Save Search".
    Can I move this button declaratively? or do I need to show and hide it with controller code?
    thank you,
    Jerry.

    hmm. the other tabs do not have query beans. It seems this button defaults to a page level button even though I do not have a page level button layout. btw, I'm using the OASubTabBarBean declaratively.
    --Jerry.                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Button displayed among this region's items clears fields

    I've created a Button displayed among this region's items clears fields that's in the middle of my form, set to Submit Before...
    When click the button, it submits and the field items above the button clear off the form.
    I don't need it to submit, I just need it to make three fields appear on the form if needed, hence the use of the button.
    Thanks in advance!

    Hi,
    userRRRYB wrote:
    The user is cataloging documents. On the form she enters document number, title, owner, and document type (Work Instruction, Verification Sheet, Pallet Layout, etc.) If the document type is a Product Label, there are three more fields that need to be populated. Because the Product Label is one of over ten types and it's the only type that requires these extra fields, I got the bright idea to create a button that, when clicked, displays the fields.
    The problem is that the button is 'among the region's items' and submits when clicked (Request = Go) so it submits and clears the fields that have been populated prior to the fields in question.Assuming you are on Apex 4.0+ Instead of using buttons to display 3 extra fields when document type is product label use dynamic action to hide and show items, Here is how you create it
    1) Create standard dynamic action
    2) Selection type (item) -> item(s) -> :PXX_DOCUMENT_TYPE -> Value (20) Assuming you have created select list for document type field
    3) Specify true action -> show -> item(s) (select the three items you want to display) -> create false action (checked)
    By using DA your field values will not clear out.If you are on 3.0 you can do this with javaScript.
    It would be easier to help you out if you provide APEX version or recreate your problem on apex.oracle.com
    Regards,
    -Senthil

  • I need to have both Next & Back buttons displayed for viewing 20 records at

    Hi Everybody,
    I have a JSP page which has 2 part: The header (Selection for search with the SEARCH button) and a search result table.
    Is it possible to remember the last record printed & start from the next record when I click on "Next" button? When I click on the "Next" button will it create new page? I need to have both Next & Back buttons displayed for viewing 20 records at a time.
    The current JSP is using "session.removeAttribute("XXXWorkItemVector") to print out records.
    I'm very new to JAVA and JSP, so please help me with my assignment and send me e-mail to [email protected]

    Check this:
    http://forum.java.sun.com/thread.jsp?forum=45&thread=188239
    This should be of help to you.

  • Volume button displays randomly on screen

    volume button displays randomly on screen

    It sounds like you have some sort of Backup software that mounts an external drive or network drive periodically.
    Generally Macs become less responsive during backups -- and that might explain the jerky mouse movement.

  • Same button on single frame to display/hide movie clip?

    Hi, can a button on a single frame be coded to both display a movie clip on its first click and, after a second click, hide the movie clip?  Thanks

    Yes, assuming you make the movieclip invisible to start with, in the event handler function just use...
    mc_name.visible = !mc_name.visible;

  • Pop-up to display single button with some text

    Hi gurus,
    I need a pop-up to be displayed when MIGO is posted using an exit EXIT_SAPMM07M_001 .The pop-up window should contain the following .
    line 1: TEXT1 with <variable1 in run time>
    line 2 : TEXT2 with <variable2 in run time>
    line 3: one push button (OK button)
    Please help me to find any suitable function module is available .Or any other solution(like screen design).
    Thanks in advance.
    Anupama.

    Why dont you use Informational message which does exactly what you want to do.
    Just take 1 or 2 variables with type string and get the information (text1, text2) run time - Concatenate them into a message then display message like
    Message i000(message class) with <variable with text>.
    instead of having a button for OK - just userhas to press enter - this will serves the purpose. When you want to 2 buttons go forr function module POPUP_TO_CONFIRM.

  • Mouse clicking in blank area destroying all button display

    Hello,
    I have created one small application using JFrame, Jbutton and Panel. whenever i click on root button it create one more button etc etc.. and display properly but when i click on blank page it on the panel it destroy the display and not show more created button.. i have tried with panel.repaint() but it is not working... code goes like...
    JFrame frame = new JFrame("MouseEventDemo");
    JButton button = new JButton("Test");
    panel.add(button);
    applic.getContentPane().add(panel);
    frame.pack();
    frame.setSize(600,400);
    frame.setVisible(true);
    // call subclass for creating button.. and in subclass i also set the frame
    Please help
    R's
    Binny

    here is the code.... JButton, JPanel, ButtonViewer all this classes are resize into com.tree package i m trying to create root -> child button tree
    import java.awt.AWTEvent;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Frame;
    import java.awt.Image;
    import java.awt.Event;
    import java.awt.event.MouseEvent;
    import java.awt.Container;
    import java.awt.FlowLayout;
    import com.tree.*
    import java.sql.*;
    import java.util.ArrayList;
    import javax.swing.JApplet;
    //import javax.swing.*;
    import javax.swing.BorderFactory;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import javax.swing.JComponent;
    public class ButtonTestViewer extends Object implements MouseListener
         JFrame frame;
         ButtonViewer viewer = new ButtonViewer();
         JButton root;
         Panel panel;
         ButtonTestViewer()
              //super();
              frame = new JFrame("MouseEventDemo");
              viewer.setOrientation(Orientation.VERTICAL);
              viewer.setAlignment(Alignment.CENTER);
              panel = viewer.getPanel();
              panel.setBorder(BorderFactory.createTitledBorder("Visualizer Button"));
              root = new JButton("1");
              panel.add(root);
              JScrollPane jScrollPane1 = new JScrollPane();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              jScrollPane1.setAutoscrolls(true);
              jScrollPane1.setViewportView(panel);
              frame.getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
              //panel.addMouseListener(this);
              viewer.add(root, null );
              root.addButton( JButton.ACTIVATE_CALLBACK, new ButtonChild(viewer,null,frame,root.getText()) );
              frame.pack();
              frame.setSize(600,400);
              frame.setVisible(true);
              viewer.getPanel().repaint();
              viewer.getPanel().validate();
         public static void main(String argv[])
              new ButtonTestViewer();
    public void mousePressed(MouseEvent e) {
              //frame.repaint();
              //repaint();
         public void mouseReleased(MouseEvent e) {
              //frame.repaint();
              //repaint();
         public void mouseEntered(MouseEvent e) {
              //frame.repaint();
              //repaint();
         public void mouseExited(MouseEvent e) {
              //frame.repaint();
              //repaint();
         public void mouseClicked(MouseEvent e) {
              System.out.println("mouse clicked");
              //panel.repaint();
    class ButtonChild extends CallButton
    static private int count = 0;
    private ButtonViewer viewer;
    private Image image;
    private JFrame frame;
    private int node;
    private ArrayList nodeList = new ArrayList();
    private ResultSet rs = null;
    private String sql = "";
    private int nodeid;
    private int position;
    private boolean nodeFlag = false;
    public ButtonChild( ButtonViewer viewer, Image image, JFrame frame, String label )
         System.out.println("label is:"+label);
    this.viewer = viewer;
    this.image = image;
    this.frame = frame;
    this.node = Integer.parseInt(label);
    this.nstmt = stmt;
    //this.container = container;
    //frame.show();
         public boolean activate(Event event)
              System.out.println("b");
              return false;
         public boolean activate(MouseEvent me)
              System.out.println("c");
              JButton child;
              try
                   for(int i=0; i<nodeList.size(); i++)
                        if(node == Integer.parseInt(nodeList.get(i).toString()))
                             nodeFlag = true;
                             break;
                   if(nodeFlag == false)
                        int k=3;
                        for(int i=2; i<=k; i++)
                             String name = ""+i;
                             //node = i
                             viewer.add(child = new JButton(name), (Widget)me.getSource() );
                             child.addButton( JButton.ACTIVATE_CALLBACK, new ButtonChild(viewer,image,frame,name) );
                             //container.add(child);
                             nodeList.add(name);
                        nodeList.add(""+node);
                        frame.repaint();
              }catch(Exception e)
                   e.printStackTrace();
              return true;
    }

  • Next and Previous buttons in  Single Row View

    Hi All,
    How can we add Javascript function call to Next and Previous buttons in IR Single Row View. Any ones help is much appreciated.
    Thanks

    They make a call to JavaScript, I'm guessing you knew that?
    I'm 96.7% JS illiterate, so I'm incapable of explaining it.
    You have to download the Spry Framework, unpackage it, look
    in the Demos folder, then look in the Gallery folder. Gallery.js, i
    think, is where that JS call goes to in order to switch out the
    next/prev image.
    the download is here:
    http://labs.adobe.com/technologies/spry/

Maybe you are looking for

  • Newbie: How can I store a previous value??

    I am trying to figure out how to do the following: int xcoor=0, ycoor=0, hstep, vstep; while true do update_step(hstep, vstep); // essentially have a big while loop to generate the necessary hstep/vsteps xcoor = xcoor + hstep; // I need to add a new

  • Importing Video w/ Camcorder

    So I just bought Final Cut Express and a new JVC Everio HDD Hard Disk Camcorder yesterday. Basically I couldn't find any step by step instructions on how to import the video onto FCE without screwing up anything. I tried looking in the manuel etc. et

  • TPC 2012 - Problems with shared variable

    Hi, I tried to program simmilar thing to this one http://zone.ni.com/devzone/cda/tut/p/id/5548 on TPC 2012. But it doesn't work.I can see that both programs on my laptop and TPC are working(I've added an additional counter with display), but I cannot

  • Java client for microsoft passport

    hi, i wonder if it is possible to build a java client for microsoft passport services on mobile phones. do i need any kind of middleware to communicate between a java phone and a server? thanks in advance Dirk

  • How to close a apple store account

    how do you close a itunes account