Placing a Button inside a TextBox - RadioButtons inside a Datagrid

Hi,
I would like to place a small button inside a textbox, so that when the button is clicked it will popup a window showing a Datagrid. I will be using an arrayCollection to supply the data to the grid's dataProvider. I would like to have as the 1st column radiobuttons for each row of data in the grid. When any radiobutton is selected that row's data is populated into the textbox that the button is in. Is this functionality feasible? Any code to inplement this would be appreciated.
Thanks,
J

OK so I have managed to create the Datagrid with 3 columns the 1st is called Select, 2nd is Subject and 3rd is Message. I used a TitleWindow in a separate mxml file to create the popup window that contains the Datagrid. As I want the 1st column of my grid to have RadioButtons for all rows that have data, how do I now get these appearing under the Select Column? When a RadioButton is selected and the popup window closed the selected row's data should be populated into a couple of textbox;s one for each of the columns data.
I have not yet managed to get the button to sit inside a Textbox. As the textbox is among a number of controls displayed on the same line in a HBox, I can only get the button to sit along side the textbox, but would prefer it to be sitting inside the textbox.
Any help would be appreciated?
Thanks,
J

Similar Messages

  • Button no longer works when inside a Movie Clip?

    Again I turn to the almighty Adobe forums for help...
    So basically, I've had this problem for over a day now, and I've posted on Experts-Exchange.com... to no avail really.
    So here we go:
    I have a button in a Flash project I've made. It's used to jump to another place on the root timeline, labelled "Why". It used to work perfectly.
    I have now placed the button inside a movie clip (it has to be in an animated sequence), but now it no longer works. It appears to work fine, the rollover state works and all. But when clicked it does nothing.
    The code I use to work the buttons goes on the main timeline, the code for this button is:
    mc_anim_backdrops_menu.btn_subsection1.onRelease = function() {
    gotoAndStop("Why");
    _global.swfloaded = "";
    Why does it no longer work? and what can I do to fix it?
    The question is posted here over at Experts Exchange - http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Act ionScript/Q_24888850.html
    what we've tried there is tracing the problem. The code seems to be pointing to the right place, but none of the actual function works.. as you'll be able to see if you open up the attached file (and change it's extension from .txt to .fla to get it working)
    So would someone be able to open it up, have a look and tell me what's wrong? Because I'm stumped. And frustrated.

    My guess is that you have a scope problem. By putting the button inside a movieclip you have made the buttons scope the same as that clip.
    So if you add a trace inside the release event handler, what do you get?
    trace("My current scope is: "+this);
    I'm guessing it is "_level0.mc_anim_backdrops_menu," right?
    So since you are using the global function of gotoAndPlay() it is looking for that label in the current timeline and not finding it.
    You should probably use the MovieClip method and specifiy which timeline it should look in.
    _root.gotoAndPlay("Why");
    _level0.gotoAndPlay("Why")
    _parent.gotoAndPlay("Why");
    both would probably work. I would never use the first two, other than to make sure that there wasn't something else going on...

  • How to get textbox text inside Repeater based on specific row dropdownlist selection using JavaScript

    Hi All,
    I have dropdownlist and textbox controls inside repeater control. Suppose when i select specific dropdownlist i want get the value of selected item and mean while i want to get the textbox text which in the same row.
    <script type="text/javascript">
    var ddlType;
    function ddl(ddl) {
    ddlType = ddl.value;
    alert(ddlType);
    </script>
    <asp:Repeater ID="RepterDetails" runat="server"
    onitemdatabound="RepterDetails_ItemDataBound"
    onitemcommand="RepterDetails_ItemCommand" >
    <ItemTemplate>
    <tr>
    <td>
    <asp:DropDownList ID="ddlTypeName" runat="server" onchange="ddl(this)"></asp:DropDownList>
    </td>
    <td>
    <asp:TextBox ID="txtCode" runat="server" Text='<%#Eval("otaRoomTypeCode") %>' />
    </td>
    </tr>
    </ItemTemplate>
    </asp:Repeater>
    Using the javascript i got the selected dropdownlist selected value, how to get the textbox text which is in the same row.
    Please give me advice and please find the repeater control screenshot.
    Thanking You, Nagendra.

    This forum if for C# issues, please move your post to asp.net forum:  http://forums.asp.net/
    Thanks
    Fouad Roumieh

  • Is it possible to add a string inside a textbox with a value of another textbox for Acrobat Forms?

    Is it possible to add a string inside a textbox with a value of another textbox?
    ex.
    Textbox1 = Happy
    Textbox2 = Sad
    Textbox3 = "I am Happy therefore I am not Sad"
    "I am (value of textbox1) therefore I am not ( value of textbox2)"

    Use this code as the custom calculation code of Textbox3:
    event.value = "I am " + getField("textbox1").value + " therefore I am not " + getField("textbox2").value;
    Notice that the field names are case-sensitive.

  • Detect closed buttons and vi from VIs inside subpanel

    Hi I have a problem regarding the closed buttons and frontpanel from vis inside the subpanel.
    I am using Labview 7.1. Pls see the attached. Inside the attached, they are main, first, second and subpanel.
    First, second and main are supposed to be inside the subpanel. First and second vis are closed by means
    of their own close buttons while the main vi is closed by means of delay.
    I thought of using the F.P.state property to tell the states of Vi inside the subpanel. But it does not seem to work.
    Please help.
    And secondly as a thoughts on separate issue , building the main.vi that would be reponsible for opening first and second vi, by means of open vi property and open vi function.
    When it works, then I run subpanel to open main vi inside . But somehow first and second vi open outside subpanel. Do do you think putting all vis in the subpanel would be better than putting the main inside the subpanel, where the main vi would later open other vis?
    Thanks
    Clement
    Attachments:
    subpanel.zip ‏23 KB

    Hi Clement,
    For VIs in subpanels the value of Front Panel Windowtate is always Hidden.  I modified your code to use the Executiontate VI property.  Hopefully you'll find the attached subpanel.vi useful. 
    Jennifer R.
    National Instruments
    Applications Engineer
    Attachments:
    subpanel.vi ‏33 KB

  • Getting squish to work on IE inside accordion which is inside a table

    Greetings all. I'm having trouble getting Squish to work
    inside an accordion, on IE only. Everything works fine in Firefox.
    Now, technically, this isn't a Spry problem; it's a problem with
    the lame HTML I'm currently stuck with. See, everything works fine
    when isolated in its own page. But when I drop the stuff into our
    existing HTML, on IE the squish stops working. What happens is that
    the div the squish is to open simply doesn't open up. it stays
    hidden.
    I've narrowed it down to this: it stops working when I put
    the accordion divs inside a table cell. Yes, I'm stuck with using
    tables for layout at this point and I can't change that. So the
    question is, Is there a way I can get the squish to work in IE with
    the accordion divs inside a table cell?
    Here's the code:
    <TABLE CLASS="bodyTable" cellpadding="0" cellspacing="0"
    width="820">
    <TR>
    <TD CLASS="middleCol" align="left" width="100%"
    id="middleCol">
    <div class="library_Accordion" id="library">
    <div
    id="library_AccordionPanel_1"class="library_AccordionPanel">
    <div
    id="library_AccordionPanelTab_1"class="library_AccordionPanelTab"
    onclick="accordionSetSelectedTabCookie('_accordion_library',0)"><h3>Search
    Library</h3></div>
    <div id="library_AccordionPanelContent_1"
    class="library_AccordionPanelContent">
    <div>
    jjjj
    </div>
    </div>
    </div>
    <div
    id="library_AccordionPanel_2"class="library_AccordionPanel">
    <div
    id="library_AccordionPanelTab_2"class="library_AccordionPanelTab"
    onclick="accordionSetSelectedTabCookie('_accordion_library',1)"><h3>Add
    Custom PDF</h3></div>
    <div id="library_AccordionPanelContent_2"
    class="library_AccordionPanelContent">
    fff
    <input type="checkbox" name="AddToLibrary" value="1"
    onclick="effect.start();resizePanel()">Add upload to Library?
    <div>
    <div id="AddToLibraryDiv" align="left"
    style="visibility:hidden;display:none">
    <p>blah blah blah</p>
    <p>blah blah blah</p>
    <p>blah blah blah</p>
    <p>blah blah blah</p>
    <p>blah blah blah</p>
    </div>
    </div>
    <script type="text/javascript">
    var effect = new Spry.Effect.Squish("AddToLibraryDiv",{from:
    "0%", to: "100%", duration: 100, toggle: true, fps: 90,
    scaleContent: false});
    function resizePanel(){
    document.getElementById('library_AccordionPanelContent_2').style.height="auto";
    document.getElementById('library_AccordionPanelContent_2').style.display="block";
    document.getElementById('library_AccordionPanelContent_2').style.visibility="visible";
    </script>
    </div>
    </div>
    </div>
    <script language="JavaScript" type="text/javascript">
    var library = new
    Spry.Widget.Accordion("library",{enableAnimation:true,steps:10,duration:200,defaultPanel: 0,useFixedPanelHeights:false});
    </script>
    </TD>
    </TR>
    </TABLE>
    Thanks to all for any advice!
    Marc E.

    now this is interesting: it appears that the problem is in
    the construction of the effect widget. if I do this:
    <input type="checkbox"
    onclick="startIt();resizePanel();">check me
    <script>
    function startIt(){
    new Spry.Effect.Squish("AddToLibraryDiv",{from: "0%", to:
    "100%", duration: 200, toggle: true, fps: 90, scaleContent:
    false}).start();
    function resizePanel(){
    document.getElementById('library_AccordionPanelContent_2').style.height="auto";
    document.getElementById('library_AccordionPanelContent_2').style.display="block";
    document.getElementById('library_AccordionPanelContent_2').style.visibility="visible";
    </script>
    Then the div will show up. now, the behavior is wrong in that
    it never disappears because of the way i'm doing it. still, this at
    least leads me to believe that showing/hiding the div inside of an
    accordion inside of a table cell is possible. So I can't use the
    constructor in the normal manner... question is, is there a way to
    do it otherwise?
    thanks all!

  • Accessing buttons on main stage from inside of a movie clip

    Greetings...
          here is the scenario:
                 - I have buttons on main stage, and a swf file which is loaded to scene using a LOADER in AS3
                 - this is a website, so the problem rises when user moves its cursor around the page and now  buttons in main stage,
                    are still active since they are behind the loaded swf file.
                 - i would like to learn, how can i CODE inside the loaded SWF file, to either remove the buttons in main page, or remove
                    the event listeners. not sure if my case has anything to do with .Parent or .roo, (I want to access those main stage
                    buttons from the SWF file which is loaded)
                 - The general case is, i have SWF files loading inside another SWF files, is it possible to access items on each stage from
                    inside of loaded SWF files on that specific stage. Similarly i would be interested to learn about accessing main stage from inside
                    of movieclips running on stage. how can i access something not in present FLA file yet, in FLA file that is loading the page as SWF.
                    Thanks.

    If you load an swf into another using the Loader class, then the Loader itself is the parent of the loaded swf., so MovieClip(parent.parent) might help you to target the timeline that the Loader was born from.  The more proper way to have a loaded file talk to a parent file is thru dispatching events that the parent assigns listeners for after the file has loaded.  Here's a link to a posting that might help explain how to implement this.
    http://forums.adobe.com/thread/470135?tstart=120
    As for the buttons that you want to disable, you could either use the removeEventListener() method to remove the listeners you have assigned, or you could set their mouseEnabled property to false, or you could set their visible property to false.

  • Referencing a button on main stage from inside a movieclip

    I am banging my head against the wall on this.
    On the main stage I have a button that I have made invisible once the file is loaded.  Inside a movieclip I have on frame 15 the following actionscript 3 code
    button_mc.visible = true;
    I want the button to become visible at the end of this movieclip.  I am not using an external as3 file, I am putting the as3 code in its own layer on the first frame.
    I know it has something to do with the path to the button, but I cannot figure it out.  If there is anyone who can point me in the right direction for referencing instances by instance name that reside on the main satge from inside a movieclip I would be very grateful.
    Thanks
    Thepopguy

    Try:
    MovieClip(this.parent).button_mc.visible = true;

  • Configure Acrobat Reader tool buttons when Reader is started inside SAP GUI

    Hi,
    we have deployed some registry keys in "HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\AVGerneral\cToolbars" to show some tool buttons in Acrobat Reader. This works fine when starting Acrobat Reader as standalone application.
    But in SAP GUI the Acrobat Reader starts with default tool buttons.
    Is there a chance to configure the Acrobat Reader tool buttons when the Reader is started inside a SAP GUI session?
    thanks
    Albert

    These are the settings in the registry to show/hide tools in the Adobe Reader 9 toolbar.
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\AVGeneral\cToolbars\cBasicTools\cInternalButtons]
    "a0"="Select"
    "a1"="Hand"
    "a2"="Zoomin"
    "a3"="ZoomDrag"
    "a4"="endBasicToolsGroup"
    "a5"="ZoomViewOut"
    "a6"="ZoomViewIn"
    "a7"="ZoomTo"
    "a8"="Zoom100"
    "a9"="FitWidth"
    "a10"="FitPage"
    "a11"="endZoomTypeGroup"
    "a12"="PanAndZoom"
    "a13"="Loupe"
    "a14"="SelectGraphics"
    "a15"="endZoomToolsGroup"
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\AVGeneral\cToolbars\cCommenting\cStamp]
    "bInternalExpanded"=dword:00000001
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\AVGeneral\cToolbars\cFile\cInternalButtons]
    "a1"="Print"
    "a2"="Save"
    "a3"="SaveFileAs"
    "a4"="FindDialog"
    "a5"="endDialogGroup"
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\AVGeneral\cToolbars\cPageDisplay\cInternalButtons]
    "a0"="endLayoutZoomTypeGroup"
    "a1"="Fullscreen"
    "a2"="endPageLayoutViewGroup"
    "a3"="RotateCCW"
    "a4"="RotateCW"
    "a5"="Wireframe"
    When starting Adobe Reader standalone this works fine.
    But starting Adobe Reader from a SAP GUI Session (for example in transaction CV03N) the default tools will be shown.
    Is there a chance to configure the Acrobat Reader tool buttons when the Reader is started inside a SAP GUI session?
    thanks
    Albert

  • Buttons not working within movieclip inside scrollpane

    hey I have a couple buttons that work outside of the ScrollPane but dont work within it. This is my exact code, how do i get them to work?
    scrollPane.source = myContent;
    scrollPane.setSize(173,500);
    K1Button.addEventListener(MouseEvent.CLICK, playVid);
    function playVid(e:MouseEvent):void{
    myVideoPlayer2.myFLV2.source = "video/K.mp4";
    myVideoPlayer2.myFLV2.play();
    T1Button.addEventListener(MouseEvent.CLICK, playVid2);
    function playVid2(e:MouseEvent):void{
    myVideoPlayer2.myFLV2.source = "video/T.flv";
    myVideoPlayer2.myFLV2.play();

    still cant get this any ideas?
    cant seem to get the buttons within the content movieclip to work.
    they are supposed to play a video when clicked.
    they do exhibit the rollover glow action, just not the down action of playing the movie.
    if i take them outside the scrollpane they work fine.

  • Referencing _root.Button  from a movie loaded inside another movie

    I have the following situation
    MainMove.swf is doing a loadmovie of SecondMovie.swf
    The Button that loads SecondMovie.swf also disables other buttons in MainMovie.swf
    on (release) {
        _root.intro_btn.enabled = flase;
        loadMovieNum("SecondMovie.swf", 2);
    How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???
    Using AS2 is this current project
    Thanks

    You might be able to use the same line of code setting the enabled value to true.  If you have not locked the root of the loaded swf, the _root should till be pointing at the main movie.
    _root.intro_btn.enabled = true;

  • RadioButton Inside Datatable, Getting Undefined Error

    Hello,
    I have a JSF page with datatables and in each row I have radiobutton.
    I would like to deselect radiobutton when user select the next row radiobutton.
    To achieve this I have the following code.
    function radioButton(radio) {
        var id = radio.name.substring(radio.name.lastIndexOf(':'));
        var el = radio.form.elements;
        for (var i = 0; i < el.length; i++) {
            if (el.name.substring(el[i].name.lastIndexOf(':')) == id) {
    el[i].checked = false;
    radio.checked = true;
    And in my jsf page I am calling the javascript like
    <h:selectOneRadio valueChangeListener="#{dataBean.setSelectedItem}"
                    onclick="radioButton(this);">
                    <f:selectItem itemValue="" />
                </h:selectOneRadio>The issue I am having is I am getting the following error
    radio.name is undefined
    var id = radio.name.substring(radio.name.lastIndexOf(':')); How can I resolve this issue?
    Thanks

    That's a Javascript question and this is a Java forum. Locking this thread.

  • Buttons "Drawing Behind" and "Drawing Inside" disappeared!

    I can not find those buttons. I am newbie in Photoshop!
    Sorry guys!

    I want to do this:
    http://www.deke.com/content/dekes-techniques-65-creating-leafy-letters-photoshop

  • Problem to set the path of browser button in a textbox in JSF

    Hai guys I have a page which has a textbox and a command button. When I click the command button, a save dialogue box opens through which I can navigate to only DIRECTORIES and save my content. Therefore in the backend bean I have used a JFileChooser to invoke, I get the folder path, now my problem is to place this path into the textbox. How can I do that?
    I have used the fileUpload tag but in this it select only the files but not the folder? Can anyone suggest me the solution?

    AsishAnandAsha wrote:
    Hai guys I have a page which has a textbox and a command button. When I click the command button, a save dialogue box opens through which I can navigate to only DIRECTORIES and save my content. Not possible with HTML and thus also not with JSF.
    Therefore in the backend bean I have used a JFileChooser to invoke, I get the folder path, now my problem is to place this path into the textbox. How can I do that? Java runs at the server side, so also Swing components. The client will only see the JFileChooser if it runs at the same machine as where the server runs. Which wouldn't occur in real world.
    I have used the fileUpload tag but in this it select only the files but not the folder? Can anyone suggest me the solution?This is not possible with HTML or any other client side code. As JSF just wraps and renders HTML, it can also do nothing for you. Best what you can do is to write a signed applet or Web Start application which can select directories and send it to the server side.

  • HT1338 Has anyone successfully installed Windows XP Mode and Windows Virtual PC software inside Windows 7 Pro inside Parallels 8 inside Mountain Lion running on a Mac Pro built in 2013?

    I wanted to ask if anyone using a Mac Pro running Mountain Lion, Parallels 8, and Windows 7 Pro could run XP Mode? 
    My experience has not been encouraging in that I progress to the end of the final mile, that is configuring XP Mode for first use, then an error message appears saying I should try again, that is I should attempt to configure XP Mode again for the first time use.  An endless loop, with no visibility into the nature of my configuration failure.
    I understand my problem is a narrowly focused, microsoft-centric issue, however, I would imagine this XP behavioral Mode running inside Windows 7 Pro is a common goal for many users, so I thought this question was reasonable to ask our group.
    Please advise, and thank you.

    Hello FatMac,
    I wanted to let you know that your "requires a patch" feedback looked--at first--like the piece of the puzzle I was missing.  Turned out, however, when I downloaded the 64 bit version of the patch, then attempted to install it under Windows 7 Pro, my installation was first searched, then my patch installation returned a message saying this patch was not applicable to my system. (BTW:my Windows 7 install is 64 bit) This failure to install surprised me because, based on an earlier evaluation for hardware virturalization support, my MacPro does not have virturalization hardware support.  I mean, based on this no hardware support feedback, and based on the nature of this patch, it looked as if the patch should install and set my problem right.
    Nevertheless, the patch won't install, and I don't know a way to query or coerce it.  I'm approaching the point of diminishing returns with this problem.  I have two applications (Adobe Illustrator 10 and Framemaker 7.0) which will run, but they don't behave properly, under Windows 7.  BTW: I did make somewhat extensive use of the Windows compatibility tool early on, but nevertheless, FrameMaker 7 simply quits at the worst possible moment, and Illustrator 10 graphics are very often blank black areas where pallettes should be. 
    Thanks again for your thoughts and help.  I believed we were heading down the right track, but for reasons not visible to me, (the user), the patch that should fix this problem will not install...
    If there is any saving grace to this situation, my problem is repeatable.  I mean, it's not on-again/off-again.  When I attempt to configure XP Mode for its first use, the progress bar turns red at the final second, then complains that it could not complete its setup.  Please Try Again recouts its final advice.  (Famous words marking the beginning of an endless loop:-)
    Were it not for Illustrator and FrameMaker, I would not have taken us down this dark road. 
    So long for now, and hope to talk to you all again soon...

Maybe you are looking for