How to select a specific column in a bean method?

Hey everybody,

I am trying to select a specific column in my table of the adf so that I can hightlight those I can after that, with a pod of method that only one game from another table. I use JDeveloper 12.1.2.0.0.

Here is my table at the moment (this is a static list that Alejandro and Timo helped me to create, thanks to them once again!):

< af:table value = "#{bindings." Var Anos1.collectionModel}"="row ".

lines = ' #{bindings. " Anos1.rangeSize}.

emptyText = "#{bindings." Anos1.viewable? "{'No data to display.': 'Access Denied.'}".

rowBandingInterval = '0' fetchSize = "#{bindings." Anos1.rangeSize}.

filterModel = "#{bindings." Anos1Query.queryDescriptor}.

queryListener = ' #{bindings. " Anos1Query.processQuery}.

filterVisible = 'false' varStatus = 'vs' id = 't5 '.

styleClass = "AFStretchWidth" columnSelection = "multiple".

inlineStyle = "" max-width: 100%; "columnStretching ="multiple""

columnSelectionListener = "#{ControlBean.onAnoColumnSelect} '"

disableColumnReordering = 'true '.

Binding = "#{ControlBean.dimAnos}" >

< af:column sortProperty = "#{bindings." Anos1.hints.A2011.name}.

filterable = "true" sortable = "false".

headerText = "2011".

ID = "c54" width = "16%" >

< af:outputText value = "#{rank." A2011}.

shortDesc = "#{bindings." Anos1.hints.A2011.ToolTip}.

ID = "ot54" >

< af:convertNumber groupingUsed = "false".

model = ' #{bindings. " Anos1.hints.A2011.format}"/ >

< / af:outputText >

< / af:column >

< af:column sortProperty = "#{bindings." Anos1.hints.A2012.name}.

filterable = "true" sortable = "false".

headerText = "2012."

ID = "c55" width = "16%" >

< af:outputText value = "#{rank." A2012}.

shortDesc = "#{bindings." Anos1.hints.A2012.ToolTip}.

ID = "ot55" >

< af:convertNumber groupingUsed = "false".

model = ' #{bindings. " Anos1.hints.A2012.format}"/ >

< / af:outputText >

< / af:column >

< af:column sortProperty = "#{bindings." Anos1.hints.A2013.name}.

filterable = "true" sortable = "false".

headerText = "2013".

ID = "c56" width = "16%" >

< af:outputText value = "#{rank." A2013}.

shortDesc = "#{bindings." Anos1.hints.A2013.ToolTip}.

ID = "ot56" >

< af:convertNumber groupingUsed = "false".

model = ' #{bindings. " Anos1.hints.A2013.format}"/ >

< / af:outputText >

< / af:column >

< / af:table >

I deleted some of the columns, because they are all equal, and in doing so, you have fewer problems in reading.

In my method, I have a matchEm, but I'm trying to select a column using this line:

dimAnos.setColumnSelection ("A2012");

dimAnos is the link to my table Anos (years in Portuguese). I even tried other values FRO the columnSelection but I just couldn't do it selected. I'm doing something wrong?

Please help me or give me an idea how I can do this.

Kind regards

Frederico.

Hi Frederico,

The setColumnSelection method is intended to define whether or not your table supports the selection of columns. It does not select the column. In order to select the column, you must set the attribute column selected to true. So I don't know if its an option for you, but you can create a link to all the columns that you have in you bean and then call the method A2012.setSelected (true) and then add a partial target table for makes re and display the selected column.

Hope this helps

Tags: Java

Similar Questions

  • How to select a specific channel in another file?

    Hello

    I have several tdv-files (~ 100) I want to analyze for a specific channel. All files have the same structure with the same channels. With tiara, I can load all the files at once to see the files in my dataportal.

    What I want to do is to select a channel x for each folder and view data in a graph or using. It works if I select each channel by hand, but it's a lot of work if I have about 100 cases. Is there an easy way to select a specific channel for all my files at once?

    Thanks in advance

    Hello

    I don't know a file with the extension tdv format. There is also no use on the site of National Instruments, so I think that it's a typo.

    If you are able to open the files, you are also be able to use the tiara serche.

    Take a look at this screenshot:

    I search for all files named TR_M17_QT data *, the name of the Group * superior and the name Temp_B channel. If you display only the channels, you can select all strings in the list of results a trail of the channels in the data portal.

    Best regards, Stephan

  • How to select rows whose column contains specific characters?

    It is a telling of the T1 table with say column C1

    Either the C1 field values:

    1st row) OF/SPT/A/FWD
    line 2) G/SPT/DE/OF/SPT
    rank 3) R/FWD/SPT/A/FWD/FWD
    rank 4) A/A/OF/SPT/FWD
    rank 5) FWD/SPT/E/OF/A


    How to get only the lines whose C1 column contains FWD last?

    We can solve this problem with the simple use of a wildcard character:

        select *
        from t1
        where c1 like '%FWD'
        /
    

    Note that this query runs a full table scan, because any index you can have on C1 will be ignored: the indexes are organized on the main characters.

    Cheers, APC

  • How to select a specific portion of the worksheet?

    Hello

    I have 8 sensor of color and form that I'm getting the information as shown below.

    /S0 = 0 s1 = s2 2 = 4

    /////////////////////Sensor 6////////////////////// /////////////
    / Sensor_6_rot? 74.08
    / Sensor_6_blau? 18.13
    / Sensor_6_gruen? 0.00
    /S0 = 1 s1 = s2 2 = 4
    /////////////////////Sensor 7////////////////////// /////////////
    / Sensor_7_rot? 68,92
    / Sensor_7_blau? 12.19
    / Sensor_7_gruen? 13.63
    /S0 = 0 s1 = s2 0 = 0
    /////////////////////Sensor 0////////////////////// /////////////
    / Sensor_0_rot? 63.72
    / Sensor_0_blau? 14.06
    / Sensor_0_gruen? 13.14
    /S0 = 1 s1 = s2 0 = 0
    /////////////////////Sensor 1////////////////////// /////////////
    / Sensor_1_rot? 55.20
    / Sensor_1_blau? 33,52
    / Sensor_1_gruen? 19.53
    /S0 = 0 s1 = s2 2 = 0
    /////////////////////Sensor 2////////////////////// /////////////
    / Sensor_2_rot? 70,65
    / Sensor_2_blau? 16.57
    / Sensor_2_gruen? 12 h 30
    /S0 = 1 s1 = s2 2 = 0
    /////////////////////Sensor 3////////////////////// /////////////
    / Sensor_3_rot? 67.94
    / Sensor_3_blau? 14.50
    / Sensor_3_gruen? 12.23
    /S0 = 0 s1 = s2 0 = 4
    /////////////////////Sensor 4////////////////////// /////////////
    / Sensor_4_rot? 59,74
    / Sensor_4_blau? 10.83
    / Sensor_4_gruen? 0.00
    /S0 = 1 s1 = s2 0 = 4
    /////////////////////Sensor 5////////////////////// /////////////
    / Sensor_5_rot? 61,77
    / Sensor_5_blau? 22.86

    Sensor_5_gruen? 12.90

    I wanted to ask you how can I select for example sensor 1 and all its data separately and even for the other sensor.

    I want to compare the decay all value Blau and Lee for detect color.

    Please guide me.

    Thank you very much in advance youv.

    Kind regards

    Akki.

    Hi Stephanie,.

    could you suggest me

    You can:

    -Remove question marks in your input string to simplify the analysis of the chain subsequently

    -use the sensor as a parameter instead of string constants number purely

    -

  • APEX 5 tabs containing - how to select a specific tab

    Hi all

    At APEX 5.0, I have a page with a tab container model.

    Under certain conditions in the page based on the interaction of the user, I want to force a specific TAB to show/getting to the point and hide that is active.

    Basically, I want to replicate the standard click on this TAB event automatically.

    Is it possible by URL, javascript? I can't find a valid solution.

    Thank you

    Mario Rui Romero

    Hello

    I found the way to control the tab selected on the container of tabs (region selector display) to the loading of the page or refresh.

    Just replace the standard session setting that stores which is the active tab. This parameter is used by the standard "Remember active tab" option.

    So if we assign the value of the tab, we want to load/refresh of page that we will be able to open the tab we want to automatically show.

    I used this command:

    sessionStorage.setItem (".99999.100.Tabs.activeTab", "#CR_SR_ArticleTab");

    99999 is application id and page id 100.

    And that's all!

    Hope this helps,

    Best regards

    Tino.

  • Virtual WiFi - how to select a specific WiFi adapter as "hostednetwork.

    Is it possible to choose on which adapter wifi will be created the hosted virtual network?  Because I use an external USB adapter with antenna stronger but windows prefer the interneal. I use both of them which makes it more difficult, if this isn't the case, I might just turn it off, you will choose the externeal automatically... one advises?  Thank you!

    I tried to do the same thing, it's my solution.

    Open Notepad and type this in, his replacement by Wi - Fi for the name of your card, let him «»

    netsh interface set interface name = 'WiFi' admin = off
    netsh wlan set hostednetwork mode = allow
    netsh wlan start hostednetwork
    netsh interface set interface name = 'WiFi' admin = on

    Save this as a batch file, so put it in any name you want and put .bat on the end.

    Run as administrator every time batch file or it won't work.

    This should do what you asked

    In addition, if you want to stop the network when you want to then add this below the last line.

    pause

    netsh wlan hostednetwork stop

    This will leave the prompt command open and waiting for any key be pressed to execute the command.

    Don't forget to share the connection of the adapter that has internet hosted network or the devices that you connect will not have access to the internet.

  • How to disable filtering on specific columns


    Hey everybody,

    In the virtual computer objects tab the filter box top right only supports columns Name and State. All the other columns are not available in the drop-down list of filter "Select columns" (see attachment)

    How can I do this in my own personal opinion?  I have some columns (i.e. in plugin.xml) that do not support filtering on.  Thanks in advance

    -Mike

    The mechanism to remove the specific column from the drop-down list filter is not exposed in the SDK but filtering won't work in all cases for a column if you implement the corresponding method of processPropertyConstraint() for this property in your data adapter (see samples/chassis-app/chassisRackVSphere-services/src/main/java/com/vmware/samples/chassisRackVSphere/ChassisRackVSphereDataAdapter.java)

  • Flash AS3 Pro: How can I change a font for a specific column?

    I would like to use a font for a specific column in a DataGrid.

    Thank you

    Yes, you can set individual policies for cells in a datagrid control. Look at this tutorial: text formatting changes to cells in the DataGrid control. This will give you the basic idea for the outer class, you need to write. In the example, you will see that there are three cells that have changed their color of the text. To change the font, you must first import the new font in your file library and set a name for Actionscript police liaison. Then, you add just a line to set the font for a single cell:

    case "pending":

    TF. Color = 0xFF0000;

    TF.font = 'Times '.

    for example.

  • How to display the database column value in a component of choice selected?

    Hello everyone;

    I use Jdeveloper 11.1.1.4 and right now I have the .jspx UI page that includes < af:selectonechoice / > components and according to the requirment I have to fill one of the column in the table in this drop-down list.

    can someone tell me how to fill the database column value in this drop-down list. I know I need to create the VO for the same thing, but I'm new to this technology. Then please suggest.

    Thanks in advance.,

    This will help u

    https://blogs.Oracle.com/prajkumar/entry/create_lov_in_adf_application

    How to create LOV in ADF 11 g | Techartifact

    Oracle Fusion Middleware Technologies: 11G: how to create a list of Values (LOV)?

    http://www.baigzeeshan.com/2010/03/creating-lov-in-ADF-application.html

    http://husaindalal.blogspot.de/2010/05/How-to-default-lov-with-its-first-value.html

  • How to open the pdf 3D with selection of specific models of url link

    I assumed that this feature is not supported, but let me ask you one thing.

    I'm looking for a way to open the pdf 3D with selection of specific models of url link.

    For example, the following link is opened, if LC to open 3d.pdf with automatic selection of the model 'abc' in the model tree?

    http://example.org/3D.PDF#model=ABC

    If this can be done in javascript, it is really useful.

    Impossible. There are only very limited for the Acrobat family command line options and you cannot change the.

  • How to select a value to a maximum value of another column in the same line?

    pVersion pdate pcount
    11 1/6 / 2011 1
    06/11/2011 0, 25
    11 1/6 / 2011 24

    How to select for a maximum pcount pversion, in this case count max is 25 and version will be 0?

    tcode wrote:
    pVersion pdate pcount
    11 1/6 / 2011 1
    06/11/2011 0, 25
    11 1/6 / 2011 24

    How to select for a maximum pcount pversion, in this case count max is 25 and version will be 0?

    WHERE PCOUNT = (SELECT MAX (PCOUNT) FROM TABLE1)

  • create a materialized with sizes of specific columns view

    Hi all

    I am creating a materialized with a specific column size view. Something like
    create materialized view test_mv
    refresh force on demand
    as
    select id, 
           cast(my_compound_field as nvarchar2(50))
    from ( select id, 
                  field1 || field2 my_compound_field
           from   my_table);
    But Oracle seems to ignore the cast and takes the maximum size it finds for field1 | Field2 in the select query. The resulting table has a nvarchar2 (44) instead of nvarchar2 column (50).

    Which can be a problem when the display is updated... There could be new data that exceeds the current size, which is where length(field1 || field2) > 44.

    How can I change the size of the column to a field in a materialized view?

    Edit: Some extra info to clarify my case:
    Field1 and Field2 are defined as nvarchar2 (25). Field1 | Field2 can theoretically have a length of 50, but currently there is no data in my table that results from this length, the max is 44. I fear that in the future there is data that is greater than 44, which results in an error when the MV is refreshed!

    Published by: Pleiadian on January 25, 2011 14:06

    Try the substr function.

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/functions181.htm#i87066

  • How to select the two variables of Recordset

    Parse error: parse error in C:\wamp\www\dotweb\access\agreement_handbook.php on line 72
    I get the above error when I try to run the above page. I do not know how to select a variable that is the compid I get from the url and a specific name of another column called documentname. I know it's a very simple thing and I could do very well with ASP pages, but it's my first time with PHP. Help, please!

    Tuesday, February 17, 2009 20:56:30 + 0000 (UTC), "kmlohr".
    wrote:

    > $query_rsAgreements = sprintf ("SELECT * FROM agreements WHERE the CompId = %s and")
    (' > = 'Manual' DocumentName ", GetSQLValueString ($colname_rsAgreements,"int"));

    Change the line above to:

    $query_rsAgreements = sprintf ("SELECT * FROM agreements WHERE the CompId = %s")
    (and "manual" = DocumentName", GetSQLValueString ($colname_rsAgreements,)
    'int'));

    Gary

  • Select only basic columns of table user_tab_columns

    Hi all

    How to select onlt those tell of the table columns from all_tab_columns for a specific table 'TAB' with the exception of a few columns.

    for example a "TAB" of USE_TAB_COLUMNS table

    columns mandatory only K1, col2, col3
    not necessary col4, col5

    How to write a query to select only required columns, excluding those not requd.

    SELECT column_name FROM USER_TAB_COLUMNS
    WHERE table_name = 'TAB '.
    AND column_name... not in / exists?

    In fact, I need to write a dynamic query based on the i / parameter p which will be table_name for the procedure.

    something like

    -------------------------------------------------------------------------------------
    procedure proc_abc
    (ip_tab_name varchar2)

    Start

    SELECT column_name FROM USER_TAB_COLUMNS
    WHERE table_name = 'TAB '.
    AND column_name... not in / exists?

    end;
    -------------------------------------------------------------------------------------
    Help, please...


    Rgds,
    Aashish

    OK, it works on my database:

    create or replace function f1 return sys_refcursor
    is
      cols varchar2(300);
      type c1 is ref cursor;
      c c1;
    begin
      for rec in
       (select column_name from user_tab_columns where table_name='XXXX'
        and column_name not in ('DT','MSG'))
      loop
        select nvl2(cols,cols||',',cols)||rec.column_name into cols from dual;
      end loop;
      open c for 'select '||cols||' from XXXX where rownum < 2';
      return c;
    end;
    
    declare
      cc sys_refcursor;
      l_id integer;
    begin
      cc:=f1;
      fetch cc into l_id;
      close cc;
    end;
    
  • How to read the two columns of data from the Port series

    Hello

    I'm reading two columns of data from the serial port.

    Example:

    52439 52430

    52440 52437

    52209 52214

    51065 51070

    52206 52390

    I use the serial of Visa service and I can read the first column of data from the serial port, but I can't understand how to read the second column.

    I want to both sets of chart data.

    I enclose my VI.

    Thank you for your help.

    The analysis of string function takes a "Format string" on top (with the right button of the function and choose Help, which explains all the entries).  In particular, you can say 'Give me two numbers separated by a tab' and the output will be two numbers (whole or floating, depending on the chosen format).  In particular, %d\t%d specifies a decimal integer, , whole decimal.

Maybe you are looking for