AF:inputColor in af:table

Hi all

I use JDev 11.1.2.4.0

We have a database table in which RGB values are stored as 3 columns, red, green and blue. I want all of this in the inputColor for each line of the Bulletin Board.

How can I do this?

Kind regards

Deepti

Hi all

Referring to above solutions proposed, I have implemented in the way below:

1) created a feature and adds a transitional attribute.

(2) changed the data type of this attribute transitional "java.awt.Color" of the source as the data type dialog box lists only the classes that implements DomainInterface.

(3) created a VO based on this EO and RowImpl class created VO.

(4) in the methods getter and setter of transient attribute, added code to get and set the RGB values. (In our case, the RGB values are stored as integers in separate columns)

public Color getColorTA() {}

If (getRed()! = null & getGreen()! = null & getBlue()! = null) {}

Get values of red, green, blue column

Color c = new Color (getRed () .intValue (), () .intValue (), () getBlue getGreen .intValue ());

return c;

}

return (Color) getAttributeInternal (COLORTA);

}

{} public void setColorTA(color value)

System.out.println ("setColorTA-" + value.getRed () + "" + value.getBlue () + "" +)

value.getGreen ());

setRed (value.getRed ()); redColumnName

setGreen (value.getGreen ()); greenColumnName

setBlue (value.getBlue ()); blueColumnName

setAttributeInternal (COLORTA, value);

}

(5) dragged past the VO datacontrol as table & "converted" transitional field to also added inputColor converter () that we use to format R-G-B values.

Add, update & recovery works perfectly. :-)

Thank you best regards &,.

Deepti

Tags: Java

Similar Questions

  • screening of AF: inputColor and liaison to the field

    Hello.

    I use JDeveloper 11.1.1.7.0

    I have a table with F_ID, F_DESC, and F_COLOR fields.

    They are mapped in the entity and VO with FId, FDesc FColor.

    The values are:

    1 Desc1 - #FF0000

    2 Desc2 - #AA3322

    For example, mode of mi, in edit mode, I want to change FColor value as part of af: inputColor.

    So, how set (or preset) current color?

    If this color change, how can I get the new color?

    Thank you. Concerning

    Timo, thank you very much for your answer.

    I do not understand why, but your answer does not work for me.

    But he showed me the way, and it worked:

    Line selectedRow = getMyViewObject () .getCurrentRow ();
    getIc1 () .setValue (Color.decode ((String) selectedRow.getAttribute ("FColor")));
    RequestContext.getCurrentInstance () .addPartialTarget (getIc1 ());

    I hope this helps. Thank you once again

  • With the help of af: inputColor to save the color in DB

    I have a table with af:inputColor as one of the columns and the use case is to save the color to the db and show it to the user.

    Can someone send the solution to work with code snippets, please? I tried to find a solution to work on many forums but couldn't find something really useful.

    Hello

    You can update the ViewObject source and create a transitional attribute with the name AwtColor and then follow the code Steve, it should work.

    Here is the code example to add transitional java.awt.Color object source type attribute:

      
    

    Jean Lou

  • Implementation of Lookup Table (LUT)

    Hello

    I am trying to apply a shader of table lookup in PixelBender that needs to read the input RGB values and replace them for another set of RGB values based on a table of predefined choices.

    . that is to say

    Source-red ValRech

    1                         55

    2                         45

    3                         45

    4                         89

    ...

    255                     66

    and the same sort of thing for the blue and green channels.

    It would be great if I could build 3 berries and then just channel

    dstPix.r = redArray [srcPix.r]

    dstPix.g = redArray [srcPix.g]

    dstPix.b = redArray [srcPix.b]

    But as far as I know there is no tables in PixelBender.

    Anyone got any idea as to what would be the best approach to combat this. So far the only solution I can think of is to build 3 series of if-else blocks. But 3 x 255 pixel controls is a crazy amount of treatment, so advice would be welcome.

    Thank you

    Vackar

    You could try a bitmap of 256 x 3 with values, and just sampleNearest (indexImage, float2(srcPix.r, 0)) Pier for red, sampleNearest (indexImage, float2(srcPix.g, 1)) CI.g for the Green and the sampleNearest (indexImage, float2(srcPix.b, 2)) b for blue. In the shader, when you use large tables, you can simply use a texture (it even works for one-dimensional matrices, just use a texture Nx1)

    See the attached kernel [Hey, can not attach files pbk, so the source is below], tie just the first frame of the source and the second to something that looks like the attached png. The palette I've included is something almost reverses the image (is not quite, because it's a fast slope in photoshop and I put a little bit too dark at the end, so the contrast will be a bit more high; just compare the resulting image to a negative image if you are curios in this topic)

    
    
    kernel changePalette
    <   namespace : "";
        vendor : "seventh-shape.com";
        version : 1;
        description : "change the palette of the image"; >
    {
        input image4 src;
        input image4 src2; // new palette
        output float4 dst;
    
        void evaluatePixel() {
            float4 inputColor = sampleNearest(src, outCoord());
            dst.r = sampleNearest(src2, float2(inputColor.r * 255.0, 0.0)).r;
            dst.g = sampleNearest(src2, float2(inputColor.g * 255.0, 1.0)).g;
            dst.b = sampleNearest(src2, float2(inputColor.b * 255.0, 2.0)).b;
            dst.a = inputColor.a;
        }
    }
    
  • That the face is lit mode bedside table may be shortened? He remains too bright for too long

    That the face is lit mode bedside table may be shortened? He remains too bright for too long.

    Hello

    No, it is not currently possible to customize the duration for which the screen remains lit mode bedside table.

    If you want to send feedback or feature requests to Apple, you can do so here:

    https://www.Apple.com/feedback/watch.html

  • Table of contents for several sheet file...?

    It is possible to:

    1. Create a Table of contents listing all sheets in a file?
    2. Have these hyperlink worksheet titles to the sheets themselves?

    I build what will eventually be a fairly large file (read: 75 + leaves). Rather than scrolling all the leaves one by one by one manually to locate the correct table, it would be useful to have a table of contents or an Index that lists the in order... Ideally, allowing the connection of hypertext link to the leaves they reference. (I swear that this was part of a way-back-when number...)

    Instead, is it possible to auto-trier worksheets in alphabetical order? He would not give me the project view as a table of contents or an Index of 35,000 feet, but at least it would be a little easier to find what it takes.

    Looking forward to sharing the wisdom...

    HI stephanie,.

    The numbers 2 (' 09) and 3 support not the hyperlinks to locations within the current document. Both take in charge of hyperlinks that open a Web page in your default browser or which will open and send a new e-mail message.

    Command-F can be your friend here.

    Place an array of single cell on each sheet (or use a cell on the existing table). Enter a short text string that identifies the table or sheet. Each string must be unique in the document.

    To access the card containing one of the following strings:

    Press Control + F to open the Find dialog.

    Enough chain to identify the worksheet type.

    Number will draw this roadmap forward as soon as it can determine which table contains the cell containing this string.

    Tested with four sheets containing:

    able, baker, charlie and delta

    With this limit together (and any other tables in the document - quite an artificial situation!), type c or d was enough to bring me to sheet 3 or 4, sheets 1 and 2 required two letters (ab or ba) to identify the good sheet and bring it forward.

    With a document containing several tables (and more leaves), create (and remembering) a separate channel for each becomes more complicated.

    You can place a second copy of each in a table of Index or table of contents on a separate sheet. From the index table,

    Copy the entry for the table/worksheet you want to go.

    Open the dialog to find (command-V)

    Paste the entry in the search box. (What it will find and highlight the entry that you have copied to the index table)

    Click on the > button on the dialog to find the occurrence FOLLOWING this string (on your target table.

    Kind regards

    Barry

  • Automate the cells of the filter to another table based on two columns

    Hello

    What I'm trying to do is: filter multiple cells to a new table. In this example, I want that all students (column 'lidnr', 'city', then the first 7 columns) with 1 teacher in the 'First' column to be copied into the table 'teacher 1'. The same goes for students per 1 teacher in the column "second". I know it can be done with the help of the filter and the copy paste, but I would like to know if this can be automated, because there are many more tables in my actual document.

    I've been using maybe to think the search formula but he can't give me more than one result, the result must be unique.

    Thank you very much for your help.

    Kind regards

    Kim

    Hi Kim,

    The usual way to do this is to add an index for each table for which column the data is to be copied.

    Here is an example of preliminary. Improvements after return from the light of day.

    Triangles of error on the last row of T1 are thanks to the formula out of data to search for. Easily fixed.

    Order of the names is different from your example, which is grouped by day numbers. Build lists in the desired order, rethinking the index calculations.

    Course index calculations use the formula below, entered in Table 1::L2 and thre to the rest of the blue full cells filled.

    L2: = IF (OR (RIGHT($H2,1) = RIGHT (L$ 1.1) RIGHT($J2,1) = RIGHT (L$ 1.1)), MAX(L$1:L1) + 1"," ")

    Data recovery on the Table T1 is well done by the following formula, entered in A2 and down and B2 and filled and down-filled.

    A2: = INDEX (array 1::A, CORRESPONDENCE (LINE (−1, 1 Table): $L, 0))

    B2: = INDEX (array 1::B, CORRESPONDENCE (LINE (−1, 1 Table): $L, 0))

    More tomorrow (actually, later today).

  • Need help with table

    I have a spreadsheet that has about 40 different sheets with each of them being a person that lists information about each of them and if they participated in a given event.

    Is there a way to create a table that spans all of the leaves and can show participation based on the event? A bit like a portal into a database. My struggle is to be able to drag the formula down to automatic change sheets. I don't want to have to individually type an if then formula with offset to connect the number for each field.

    You mention a portal on a database. I think you're on the right track. It is easier to gather information in a table that it is from the dozens of tables. Why not keep your data in a database table and 'extract' information for a person of this table.

    If you could give more details one you are trying to do someone here will be able to give more specific suggestions.

    SG

  • How to change the default alignment of text in the cells in a table on the demand for numbers?

    I'm new to Mac. I own a MacBook pro MF839HN/A and currently using the 3.6.2 release NUMBERS (2577). I want to know if I can change the default alignment of text in the cell in a table of NUMBERS application? Also, when I select all the cells in a table to change their alignment, I can only change the horizontal alignment of the text and not the vertical alignment. To change the vertical alignment of the text in a cell, I have to select them individually. Help me with two questions.

    The only way I know is to create a table that is set up as you like, then save the empty document as a template customized by using the menu item "file > save as template:

  • iBooks author - TOC shows the empty entries for table - how to stop this?

    Hello

    I spent hours trying to find an answer to this.

    My book has a few tables - nothing wrong with that.  I have a front cap of the table - that's what I want in the table of contents.

    iBooks author shows instead, empty entries whenever he comes across a table, that is hopeless.

    I just want the topic as indicated above - 2.1.  I don't want 2.2 which is the table.

    Does anyone have an idea how to do this, please?

    If this isn't the case, iBooks author is desperate for any book that contains the tables.

    See you soon,.

    Mike

    Hello

    I found an article from Apple which may help to answer your question and I pasted the link below. I think that you will have to 'say' iBA this is or is not part of the Table of contents (TOC) and's done it with the Inspector tool, Document tab, section TOC. Look down at the bottom of this window to the sign and arrow down to allow the addition of other document settings in the table of contents, or remove some.

    I hope that this help =)

    iBooks author: Customize the table of contents

  • Match color of series for a table and a chart?

    I created a table with 4 sets of data.  Then, I created a graphic line with this information.  I noticed that when I select the line graph the data in the table becomes highlighted with a lighter version of colors used in the chart.  Each series Gets a corresponding really nice color to match the graph.  As soon as you select any where else these colors disappear.

    Is there a way to automatically match line chart series color color of the card?  If this isn't the case, I see this as the colors that appear in the table so that I can put in manually?

    Select the series by clicking on the graph, then any "point":

  • Table of contents don't link to pages in a doc Pages

    Info entry:

    1. a .pages document
    2. blank template
    3. presentation of two columns

    The problem:

    Table of contents generated refuses to do interactive links to the corresponding pages. Styles is ok (so that's why I was able to compose the TOC).

    What is the problem and how to operate?

    4.2 pages (iWork ' 09)

    The document itself (a link to download, editable).

    https://drive.Google.com/file/d/0Bwsy7q2Qc3TCOElPVG02TWFqV3c/view?USP=sharing

    I forgot to mention that my document consists of many sections. While my other document that has its main contents in a cot, a great section working very well in this regard, for example, I am able to go to any title by clicking an appropriate fake (the pointer is active as opposed to the doc above).

    Much appreciate any input on this.

    Thank you

    I.S.

  • Paging in the poorly aligned table of contents

    As you can see in the screenshot below, the pagination is right-aligned, sometimes in the table of contents, and sometimes it seems all wrong. What should I do to fix this?

    Hello joachim,.

    Pages 5.6.2 on OS X El Capitan 10.11.5

    Menu > view > show rules.

    You can select (click) each level (Style) of the Table of contents and view the parameters of the rule.

    With the second level selected, look in Control Panel of Format > text > tabs

    Please call with questions.

    Kind regards

    Ian.

  • stop the email addresses in the table in the spreadsheet to launch mail

    I am compiling of data in a worksheet Numbers and many cells in the table into them from the e-mail addresses.

    Whenever I tap on the cell that contains an e-mail address, he jumps to my Mail application and launches a new mail with the email address. It's so irritating cos I have to type on any address in the table and I DON'T WANT my Mail App to launch. How can I stop this madness? Help, please!

    Hi helix.

    Drag the column wide (or Panel Format > table > column)

    Click on the white space to the right of the link to select this cell without activating the link

    Now, edit

    Tested on a MacBook Pro with numbers under Mac OS X El Capitan 10.11.5 3.6.2

    Kind regards

    Ian.

  • How to adjust the tabs in TextEdit tables

    I have a basic table with two columns in a file of TextEdit in which a simple text using tabs to align nicely:

    As you can see, the text becomes crab down right where numbers lie.

    Normally, I just select the entire block of text and then drag the indicators of the tab on the ruler to spread out the stops to provide enough additional space. Imagine my surprise when I discovered that do not have controls on the tab on the squat within the table rule!

    I'm sure I could do this work several major versions ago, but I forgot the thing. I think there may have been a dark control for a leader of the separate tab pop up inside the table.

    Can someone help me? Thank you.

    Never mind--on more than experimentation, I found myself in the solution.  You will need to set the tab stops on the left only, column that will affect both columns.  I was trying to set the tab stops on the right column, which does absolutely nothing (failure of WYSIWYG).

Maybe you are looking for