FillColor on the Click event in the table

Hi guys,.

I have a table with full text.

I need to create a form that will highlight the cell when you click on it and turn off highlight when decliques.

can't, true, trying to get this to work.

Currently, I put the cells to calculated read text fields alone so that they can have a click event.

Then I used this code:

If (this.fillColor = "255, 255, 255")

{

this.fillColor = "255, 255, 0;

}

If (this.fillColor = "255, 255, 0")

{

this.fillColor = "255, 255, 255;

}

But I get a bit of luck.

Any help would be appreciated!

In your statement, you must use == instead of =. == tests a while = value assigns a value.

If (this.fillColor == '255, 255, 255') {}

this.fillColor = "255, 255, 0;

}

else {}

this.fillColor = "255, 255, 255;

}

Tags: Adobe LiveCycle

Similar Questions

  • How to determine a specific line in the table clicked on

    Hello-

    I need to determine the specific line of a table control that is right-mouse-clicking.  I think that this is possible by using the context Menu Activation? event for the control of the table and get the vertical coordinate in the Coords filter options.

    He is performing experiments to determine the vertical amplitude of each row in the table, or maybe in determining the width of a line and using a linear relationship to determine the possible range of the following lines.  Do you feel it is the best strategy or is it maybe an another easier way to get this information?

    Thank you

    Don

    You can use the CtlRef with the Point in the array to the method line for the information.

    Ben64

    I was too slow to respond...

  • By the way a multicolumn Listbox double-click event line in a secondary

    What I have is a shell at a higher level with the configuration of equipment of high level, as well as common application functions as save the test report and exit/close.

    In this first level is a listbox multicolumn "Test selection".

    When a device is selected in the configuration, one of the many sub-panels charge based on the selected device.  When the secondary is loaded, the table of test selection on the front of the top is filled with items via a reference.  The listbox items differ according to high school who is responsible.

    Normally what we do is use a structure of the event with the event double-click to change States in the program.  Given that States I want to change are in the secondary, and the list box lies in the toplevel, I can't use the event structure to integrate this double click on the secondary line.

    What I want to do currently a property to read to the 'value' of this list box in the secondary in both cases the timeout of a structure of the event or within a parallel loop, then to the decision of the State based on the changing value of the indicator.  However, by doing this I lose the effect "queues" in the table of test selection (can double-click some line items and the structure of the event will be queued double click events).

    Is there a more elegant way to spend this line double-clicked in the secondary?

    It seems that you already pass a reference to the Listbox MC control to the Subvi.  You can use it to record dynamically for the double click event inside the Subvi.

  • Insert a row into the table on a button click

    Hi all

    I have a table called 'temp' with 4 columns such as seq, name, event, id and I have a GP with 3 text such as name, event id fields

    now my question is

    If I enter values in the 3 text fields on this page and a button, click on (for example create), I wanted the values of dose to get inserted into the table 'temp' and

    regarding, "seq" column I HAV created a sequence for it.

    so 1. How to insert values into the table by entering the values in the page

    2 wat shd b made to column seq... (shd b anyth made apex pages or wil automatically get values for each input line)

    pls help me...

    Thanks in advance

    1, it is up to you change your account to something more user-friendly than '8f4692cc-040e-48ee-b102-590cdd4303fc'.

    Then, it would also be a good idea to use proper English when you ask a question here...  Not broken English as "now comes to my" and "wat shd b"... More people will be willing to help you if you at least put forward in order to ask a good question...

    Which version of the database are you using? APEX version?

    Change the code above to this process:

    DECLARE

    v_seq NUMBER;

    BEGIN


    Select SEQUENCE_NAME. NEXTVAL INTO v_seq

    Double;


    INSERT INTO temp (seq, name, event, id)

    VALUES (v_seq,: P1_name,: P1_event,: P1_id);

    END;


    This allows it to be used in older versions of Oracle that do not allow direct access to the sequence.nextval in an assignment statement.


    Thank you


    Tony Miller

    Software LuvMuffin

  • No results displayed when you click on the following link in the table of the OFA

    Hi all

    We created a table OAF in the new Page of the OFA.
    It works very well. But he has a problem.
    If the records are more than 10 then the following link is displayed automatically.
    And when you click on the link next to the table of the OFA, no record displayed.
    It is very urgent. Any help will be much appreciated.

    Thank you

    1. you don't need to identify the event click on 'next', because you don't need to do any action on this.

    2. you call the AM method to run the query on the events of "SearchGoButton" and "SearchClearButton".
    Here's the code you need to write:

    If ("SearchGoButton".equals (s))
    {
    pPersonId = temp.toString ();
    Aserializable serializable [] = {pPersonId};

    Class aclass [] = {String.class};

    pageContext.getApplicationModule (webBean) .invokeMethod ("ExecuteDailyAttendanceVO", aserializable, aclass);
    }
    ElseIf ("SearchClearButton".equals (s))
    {
    pPersonId = "-1";
    Aserializable serializable [] = {pPersonId};

    Class aclass [] = {String.class};

    pageContext.getApplicationModule (webBean) .invokeMethod ("ExecuteDailyAttendanceVO", aserializable, aclass);
    }

    -Prince
    [email protected]
    http://princekapoor82.blogspot.com

  • Bean method < a4j:commandButton > backend is not called on the click event.

    I use code below. It seems back end bean method is not called when I click on the CommandButton. I think it has something to with the rendering.


    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    < html xmlns = "http://www.w3.org/1999/xhtml".
    xmlns:UI = "http://java.sun.com/jsf/facelets".
    xmlns:h = "http://java.sun.com/jsf/html".
    xmlns:f = "http://java.sun.com/jsf/core".
    xmlns:A4J = "http://richfaces.org/a4j".
    xmlns:rich = "http://richfaces.org/rich".
    xmlns:CDM = "http://mportal.com/cdm" >
    < ui:composition >
    < rich: panel >
    < a4j:form id = "RefreshPropertiesInstanceForm" >
    < id of the table = "RefreshPropertiesTable" width = "100%" border = "0" >
    < b >
    < td width = "35%" align = "right" >
    < div class = 'fieldLabel' > filename property: < span
    Class = 'requiredField' > * </span > < / div >
    < table >
    < style td = "margin-top: 15px;" "padding-left: 15px ' nowrap ="nowrap ".
    align = "left" > < rich: comboBox id = "combo".
    value = "#{testPropertyRefreshHelper.selectedPropertyFile} '"
    enableManualInput = "false" >
    < f: selectItems value = "#{testPropertyRefreshDetails.propertyFileNameList}" / > "
    < a4j:support = "onchange" event
    reRender = BypassUpdates "RefreshPropertiesInstanceForm" = "false".
    ajaxSingle = "true" action = "#{testPropertyRefreshHelper.getPropertyFileContentFromRemoteServer}" / > "
    < / rich: comboBox > < table >
    < /tr >
    < b >
    < style td = "margin-top: 10px;" "padding-left: 100px" align = "left".
    colspan = "3" > < h:inputTextarea id = value = "#{testPropertyRefreshHelper.propertyFileContent"firstTextArea"} '"
    lines = "21" cols = "150".
    style = "overflow-x: auto;" "Overflow-y: scroll '.
    rendered = "#{testPropertyRefreshHelper.selectedPropertyFile! =" choose from downstairs "} '"
    Disabled = "#{testPropertyRefreshHelper.selectedPropertyFile ==" choose from downstairs "}" >
    < / h:inputTextarea > < table >
    < /tr >

    < b >
    < style td = "margin-top: 10px;" "padding-left: 400px" align = "left".
    colspan = "2" >
    < a4j:commandButton id = "refreshPropertyButton" value = "refresh."
    image = "#{imageManager.imageMap ['REFRESH_BUTTON']}" "
    rendered = "#{testPropertyRefreshHelper.selectedPropertyFile! =" choose from downstairs "} '"
    action = "#{testPropertyRefreshHelper.updatePropertyFileContentInRemoteServer} '"
    reRender = "RefreshPropertiesInstanceForm" >
    < / a4j:commandButton >
    < table >
    < /tr >
    < /table >

    < / a4j:form >
    < / rich: panel >
    < / ui:composition >
    < / html >

    Everything works perfectly. But when I click on the command button "#{testPropertyRefreshHelper.updatePropertyFileContentInRemoteServer}" backing bean method is not called. Other components are working properly.

    try what it says the article linked: do your session bean scope.

    NOTE: when working with Ajax I tend to do the session bean to support extended to have fewer problems with partial and such updates. If you are using JSF 2.0, you could do it view extended to get the same result.

  • Change the button programmatically click event

    Hi all.  I would like to pass to the action click through my result event.

    For example, I have a table that creates buttons with a Repeater.

    Array = [{label: "Flex", action: ' navigateToURL (new URLRequest ("http://www.adobe.com/flex', '_blank'")); "" ""}, ]

    {label: 'Flash', action: "Alert.show ("I love Flash too!");"}

    And then my Repeater brings pimples like this

    < mx:Button label = "{repeater.currentItem.label}" "

    Click = "Alert.Show (Event.currentTarget.getRepeaterItem (.Act)); "/ >

    Now the above button works, but what I would like the button is the action itself, as in this example below:

    < mx:Button label = "{repeater.currentItem.label}" "

    Click = "Event.currentTarget.getRepeaterItem () .Act;" "/ >

    However, it does nothing.

    Any suggestions?  I have to be close...

    Thanks in advance!

    Hi mattcom,

    I don't think you can do it directly like that... but you can try something like this...

    Use another property in your table as shown below...

    Array = [{label: 'Flex', data: " " "http://www.adobe.com/flex: ' action: 'navigateToURL'http://www.adobe.com/flexhttp://www.adobe.com/flex},]

    {label: 'Flash', data: action "I love Flash too!": "Alert"}

    Click = "doAction (Event.currentTarget.getRepeaterItem ());" » />

    private void doAction(repeaterItem:Object):void

    {

    Switch (repeaterItem.action)

    {

    case 'navigateToURL '.

    navigateToURL (new URLRequest (repeaterItem.data, '_blank'));

    break;

    case 'alert '.

    Alert.Show (repeaterItem.Data);

    break;

    }

    }

    If you still want to go with your approach so you will have to use javascript using ExternalInterface call and send the expression in event.currentTarget.getRepeaterItem (.Act) to the javascript function, then use the Eval function, you must execute the javascript statement.

    Thank you

    Jean Claude

  • ActionScript to load captions in the table to the dynamic text when the user clicks the thumb

    I have this code under that I made using a tutorial... it loads txt file vars it splits then place in a table... once in a table he brings the photos from the table to create thumbnails and a larger image. My problem is that I have captions to go with it, and when I try to load captions nothing happens or can be seen to happen.

    I don't know where I'm wrong because I have no output or compiled errors

    
    var locVar = new Array();
    locVar = imgLoc.split(",");
    trace ( locVar );
    
    var tmbVar = new Array();
    tmbVar = tmbLoc.split(",");
    trace ( tmbVar );
    
    var capVar = new Array();
    capVar = imgCap.split(",");
    trace ( capVar );
    
    var NPICS:Number = locVar.length;     // number of pictures to load
    var PICX:Number = 32.8;               // x loc of big picture
    var PICY:Number = 24.9;               // y loc
    var THUMBHOLDERX:Number = 50;        // x location of thumbnail holder movieclip
    var THUMBHOLDERY:Number = 457;      // y location
    var THUMBW:Number = 100;             // width of each thumbnail
    var THUMBH:Number = 75;             // height
    var MARGIN:Number = 10;             // margin between thumbnails
    var TOTALBYTES:Number = 212000;     // approx sum of bytes in all jpgs (x 2)
    var MAXPIXELS:Number = 12;          // max number of pixels to move slider per frame
    
    // mask definition; mask is assumed to cover some part of the thumbnail slider (here the numbers
    // were chosen so that there are margins between the mask and the right and left edges of the movie
    // (which is 420 x 290), and enough space above and below the thumbs to show them when they 'grow'
    // on mouseover
    var MASKX:Number = 0;                    // start x location of mask
    var MASKW:Number = 600;                    // mask width
    var MASKY:Number = 447.9;                    // start y location of mask
    var MASKH:Number = 92;                    // mask height
    
    var totalloaded:Number = 0;         // running tally of bytes loaded from all pics
    
    // index into pictures array, used for loading
    var ipic:Number;
    
    // set up loader, an instance of MovieClipLoader
    var loader:MovieClipLoader = new MovieClipLoader();
    
    // use the main timeline to listen to and respond to loader's broadcast events
    loader.addListener(this);
    
    // function to move thumbnail slider ("this" = thumbs_mc)
    
    function sliderControl() {
       var w:Number = this._width/2;
       var hw:Number = mask_mc._width/2;
       var npixels:Number;
       // only do when mouse over slider mask
       if (_ymouse > mask_mc._y && _ymouse < mask_mc._y + mask_mc._height) {
          // mouse over left half of slider:
          if (_xmouse > mask_mc._x && _xmouse < mask_mc._x + hw) {
             npixels = (hw - _xmouse) / hw * MAXPIXELS;
             this._x += npixels;
             if (this._x >= 0) this._x = this._x - w;
          // mouse over right half of slider:
          } else if (_xmouse > mask_mc._x + hw && _xmouse < mask_mc._x + mask_mc._width) {
             npixels = (_xmouse - hw) / hw * MAXPIXELS;
             this._x -= npixels;
             if (this._x <= -w) this._x = this._x + w;
          }
       }
    }
    
    // thumbnail click (onrelease) handler
    
    function openPic() {
       pic_mc.loadMovie(locVar[this.i]);
    }
    
    function brightON(){
         this._alpha = 300;
    }
    function brightOFF(){
         this._alpha = 30;
    }
    function captionTXT(){
         _root.cap_txt = capVar;
    }
    
    // assign event handlers (called when all jpgs are loaded)
    
    function setupHandlers() {
       pct_txt.removeTextField();          // don't need loading indicator any more
       thumbs_mc.onEnterFrame = sliderControl;
       for (var i:Number = 0; i < NPICS*2; i++) {
          thumbs_mc["mc"+i].onRollOver = brightON;
          thumbs_mc["mc"+i].onRollOut = brightOFF;
          thumbs_mc["mc"+i].onMouseDown = captionTXT;
          thumbs_mc["mc"+i].onRelease = openPic;
       }
    }
    
    // listener function for broadcast 'done' message (for each pic)
    // onLoadInit gets executed when the movieclip has been loaded into _mc AND 
    //   its width and height data are available.
    //   (_mc = the movieclip being loaded into)
    // this routine sets the size and position of each thumbnail clip as its jpg
    //   is loaded and starts the next one loading.  When all have been loaded, 
    //   a random picture is loaded into pic_mc and setupHandlers is called to 
    //   assign handlers to each thumbnail movieclip
    
    function onLoadInit(_mc:MovieClip) {
       // this gets done when the jpg is completely loaded:
       _mc._width = THUMBW;
       _mc._height = THUMBH;
       _mc._alpha = 30;          // for image clarity
       // give the movieclip a property to remind it who it is
       // (used by openPic to know which big picture to open)
       _mc.i = (ipic >= NPICS ? ipic-NPICS : ipic);
         
       // add picture size to totalloaded variable
       totalloaded += loader.getProgress(_mc).bytesTotal;
    
       // now load the next one (if there are more) or set up handlers if done
       ipic++;
       if (ipic == NPICS * 2) {
          // start with a random photo displayed when all thumbs loaded
          pic_mc.loadMovie(locVar[Math.floor(Math.random()*NPICS)]);
          setupHandlers();
       } else if (ipic >= NPICS) {
          // load jpg into duplicate thumbnail (will already be cached)
          loader.loadClip(tmbVar[ipic-NPICS],  thumbs_mc["mc"+ipic]);
       } else {
          // load jpg into thumbnail
          loader.loadClip(tmbVar[ipic],  thumbs_mc["mc"+ipic]);
       }
    }
    
    // listener function to handle broadcast progress messages
    // make pct_txt show cumulative loading progress
    
    function onLoadProgress(_mc:MovieClip, loaded:Number) {
       var loadedsofar:Number = totalloaded + loaded;     
       pct_txt.text = Math.floor(loadedsofar / TOTALBYTES * 100) + "%";
    }
    
    function init() {
       // create holder for pictures
       createEmptyMovieClip("pic_mc", 1);
       pic_mc._x = PICX;
       pic_mc._y = PICY;
    
       // create (and draw) holder for thumbnails 
       createEmptyMovieClip("thumbs_mc", 2);
       thumbs_mc.beginFill(0, 100);     // black
       thumbs_mc.moveTo(0, 0);
          thumbs_mc.lineTo(2 * (MARGIN + THUMBW) * NPICS, 0);
       thumbs_mc.lineTo(2 * (MARGIN + THUMBW) * NPICS, THUMBH);
       thumbs_mc.lineTo(0, THUMBH);
       thumbs_mc.endFill();
       // drawing the thumb holder at 0, 0 and then moving it makes its reg point = upper left
       thumbs_mc._x = THUMBHOLDERX;
       thumbs_mc._y = THUMBHOLDERY;
    
       // create, draw and enable mask over thumbs (could use different variables to define mask
       // if desired)
       createEmptyMovieClip("mask_mc", 3);
       mask_mc.beginFill(0x0000cc, 100);
       mask_mc.moveTo(0, 0);
       mask_mc.lineTo(MASKW, 0);
       mask_mc.lineTo(MASKW, MASKH);
       mask_mc.lineTo(0, MASKH);
       mask_mc.endFill();
       mask_mc._x = MASKX;
       mask_mc._y = MASKY;
       thumbs_mc.setMask(mask_mc);
    
       // create loading textfield indicator
       createTextField("pct_txt", 4, 200, 100, 40, 100);
       var tf:TextFormat = new TextFormat();
       tf.align = "center";
       tf.size = 12;
       tf.font = "Verdana";
       tf.color = 0xFFFF00;
       pct_txt.setNewTextFormat(tf);
       
       // create loading textfield indicator
       createTextField("cap_txt", 0, 400, 200, 40, 100);
       var cf:TextFormat = new TextFormat();
       cf.align = "center";
       cf.size = 12;
       cf.font = "Verdana";
       cf.color = 0xFFFF00;
       cap_txt.setNewTextFormat(cf);
    
       // make empty movieclips in thumbs_mc for each pic to go into
       // make double the number so the slider can move continuously and show content
       for (var i:Number = 0; i < NPICS * 2; i++) {
          var mc:MovieClip = thumbs_mc.createEmptyMovieClip("mc"+i, i+1);
          mc._x = i*(MARGIN + THUMBW);
          mc._y = 0;
       }
         
       // set the pointer to the first jpg in the array picnames
       ipic = 0;
       // start loading jpgs (ipic is initialized to 0)
       loader.loadClip(locVar[ipic], thumbs_mc["mc"+ipic]);
    }
    
    init();
    stop();
    

    If you search the MovieClip.createTextField method in the Flash help documents, it will show you how to assign a textfield to a movieclip.

  • How can I change the "right click" menu for a table control?

    Hello

    How can I change the "right-click menu" of a table control. I would like to be able to remove the ability to add or remove columns and maybe more selections. I want to keep the possibility of

    Add or remove lines

    Right-click on your table.  Then go to advanced-> DURATION Shortcut Menu-> Edit.

  • Errors in 'Speed' while accessing the mouse click events?

    Hello

    I built a software where it has a CVI callback function registered on the Panel. The function tests whether two cases, the first EVENT_LEFT_CLICK and then EVENT_LEFT_CLICK_UP. The user is supposed to keep the click button for some time (~ 1 second), and there is no problem. However, I have found that if by mistake (that users commit often) multiple rapid clicks are made, sometimes the click down the piece of event (EVENT_LEFT_CLICK) of the code is not read. I reduced the likelihood of this problem of the speed setting of double click (on Windows) to the maximum.

    I think that if I could eliminate the double click event, this problem would be resolved almost completely and only limited by the speed at which the processor can update mouse events.

    Hope you understand my problem.

    Thank you!!

    AUTOSOLVED.

    Thanks to a guy who posted his own solution on a Windows forum, to 'disable' the double click. Just change the HKEY_CURRENT registry value > ControlPanel > mouse > DoubleClickSpeed to 1. What makes the double click speed so fast that you can access virtually every user actually simple clicks.

    After doing this, in order to apply the registry editing, I ended explorer.exe running and he raised through windows task screen. However, change, this applies to what I opened the mouse Panel (without change or apply anything from there).

  • Contact information for return pixel Imaq image with the mouse click event

    Hello

    I'm trying to get the coordinates in pixels of an image Imaq based on a mouse click event, similar to this post and this post. The problem is that with the first post, I get the coordinates in the image control and hesitate to trust them, they seem to have the Center origin, may return negative coordinates and do not represent the actual size of the detector that I use (512 x 512). It also returns the coordinates outside the actual data when it is clicked on the image control framework. The second method returns simply null coordinates. What I want are the coordinates of the pixel displayed when hovering the mouse imaq image control framework.

    What baffles me, is that I tried the second method with a png stock file and it works fine, it is only when I create an image from the data of my camera than the coordinates are returned null. Note data views of camera under control of image very well.

    Any ideas would be useful. Enclosed is a picture of the offending code and the Panel before displaying the camera data is coming (I know it needs some cleaning).

    Thank you

    Tyler

    for help, please send your vi

    but I think that this example vi is your solution

    check this vi

  • How to create the scroll to the menu icon click event bar

    How to create the scroll to the menu icon click event bar

    (as the "field of scrolling image")

    In my opinion, it is better for you to try something to help implementation of your solution to ask for the code.

    For example, create a few BitmapFields with icons that act as buttons.  There is source for this sort of thing on the forum if you look at, I think, looking FRO Image button, icon or Bitmap button.

    Once you have these buttons work, add these in a HorizontalFieldManager.

    Good luck.

  • Add images to the listfield on the click event

    Hello

    I'm trying to reproduce the "tableview with UITableViewCellAccessoryCheckmark" iPhone, IE, whenevever, I click on a line in the listfield, I want to display a check mark in the same row.

    In the click event, I am not able to get the graphics of the listfield object draw the check mark. Is there another way to do this?

    Any response is appreciated.

    Thank you

    http://www.BlackBerry.com/developers/docs/6.0.0api/NET/rim/device/API/UI/component/ListField.html#GE...

    (using the index you can retrieve the item from the underlying collection)

  • Add dynamically with the click event.

    I introduce several add button programmatically. I have sucessfully Add button but I can't able to get the button click event everything. I always click the last button added.

    Event for all I want to separately, click the button.

    I use this code for the Add button.

    ComponentDefinition {
                id: mComponentDefinitionSubmitButton
                Button {
                    id: mButtonID
                    horizontalAlignment: HorizontalAlignment.Center
                    onClicked: {
                        //My Click code. Always detect last button.
                    }
                }
            },
    
    var mButton = mComponentDefinitionSubmitButton.createObject();
    mButton.text = qsTr(title)
    mContainerButton.add(mButton)
    

    I did with signal...

    function checkClick(button)
        {
            console.debug("click..."+ button);
        }
        attachedObjects: [
            ComponentDefinition {
                id: mComponentDefinitionSubmitButton
    
                Button {
                    id: mButtonID
                    signal click(variant text);
                    horizontalAlignment: HorizontalAlignment.Center
                    onClicked: {
                        click(mButtonID.text);
                    }
                }
            }
        ]
    
    ----------------------------------------------------------------
    var mButton = mComponentDefinitionSubmitButton.createObject();
    mButton.text = qsTr("Button");
    mButton.click.connect(checkClick);
    btnContainer.add(mButton);
    
  • Capture the click event of the button 'back' on DateTimePicker

    How to capture the click event of the button "return" on the DateTimePicker control.

    Show us in the form DateTimePicker.doModal)

    I know that this response is late, but if someone else is asking about this.

    doModal() returns a Boolean value and returns false if the user clicks Cancel.

    I hope this helps.

Maybe you are looking for