Hide columns in Table B, based on values LOV in another row of the table:

Hello

Jdev 12.2.1.0

I have two tables A and B and I hide columns b based on the value of row of table A LOV. For example, I have a line in A table that has a column with the x, y, z values lov. Now, if I select the row in the table has and change the LOV to x, I had to hide some of the columns in the table (B) is there a way to get this feature? Any help would be appreciated.

Thank you

Assume:

1 table a call "DepartmentId" column this column has LOV.

B 2-table a column "ColumnInB" this column will be visible depending on the value of "DepartmentId".

Try to do the following:

1 - from data controls, drag "DepartmentId" attribute and drop it on the page as inputText then together make this inputText to false (you can remove it, but don't forget the corresponding binding in pageDef. not deleted).

2. copy the value of the inputText which will be as "#{bindings." DepartmentId.inputValue}"and go to the"ColumnInB"column and visible property beyond the copied value.

3 - the ColumnInB visible will be the condition as:

4-set DepartmentId autoSubmit = 'true '.

5-set table partialTriggers table B has id and id of DepartmentId LOV

Tags: Java

Similar Questions

  • Several elements of manipulation based on values LOV

    Gentlemen.

    need your suggestions.

    Location:

    a. LOV with 2 values.

    2. If the value of lov = A and then disable item1

    to enable another item1

    3. If the value of lov = B and then disable item2

    enable other value item2

    the best I could come is to create 2 dynamic actions (one per each value). But it is a little "ugly" and all but scalable - what happens if I have 10 points in the future?

    what I want:

    It would be nice to have a single DA who would deal with all the values as LOV a. so I have one place to make the change.

    Hi AZZ.

    It seems that you will have to manage your logic with JavaScript DA type and use JS API functions. apex.item getValue() (pNd), then some if then else block (or maybe even better the Instruction Switch JavaScript) and apex.item (NDP). enable() and. disable() apex.item (NDP).

    https://docs.Oracle.com/CD/E37097_01/doc.42/e35127/javascript_api.htm#AEAPI29463

    Kind regards

    Pavel

  • Need a script to select the update the row to another row in the same table

    I have a table with the columns and values
    KeyID       EffectiveDate     InactiveDate
    1              01/01/2013
    1              01/02/2013
    1              01/03/2013
    2              12/31/2012
    2              01/02/2013
    2              01/03/2013
    I need to update the InactiveDate of a line with the EffectiveDate of a line with the EffectiveDate newer than the update line and the even KeyID.
    KeyID       EffectiveDate     InactiveDate
    1              01/01/2013      01/02/2013
    1              01/02/2013      01/03/2013
    1              01/03/2013
    2              12/31/2012      01/02/2013
    2              01/02/2013      01/03/2013
    2              01/03/2013
    I want to have a select script that shows
    KeyID       EffectiveDate        InactiveDate    New_InactiveDate
    1              01/01/2013                              01/02/2013
    1              01/02/2013                              01/03/2013
    1              01/03/2013
    2              12/31/2012                              01/02/2013
    2              01/02/2013                              01/03/2013
    2              01/03/2013
    Thanks for any help.

    Published by: 881656 on January 3, 2013 17:57

    Published by: 881656 on January 3, 2013 18:15

    Published by: 881656 on January 3, 2013 18:20

    Hello

    881656 wrote:
    I have a table with the columns and values

    KeyID       EffectiveDate     InactiveDate
    1              01/01/2013
    1              01/02/2013
    1              01/03/2013
    2              12/31/2012
    2              01/02/2013
    2              01/03/2013
    
    I need to update the InactiveDate of a row with the EffectiveDate of a row with the newer EffectiveDate than the row to be updated and with the same KeyID.
    
    KeyID       EffectiveDate     InactiveDate
    1              01/01/2013      01/02/2013
    1              01/02/2013      01/03/2013
    1              01/03/2013
    2              12/31/2012      01/02/2013
    2              01/02/2013      01/03/2013
    2              01/03/2013
    

    This sounds like a job for the analytical function of LEAD:

    MERGE INTO table_x     dst
    USING (
         SELECT  keyid
         ,     effectivedate
         ,     LEAD (effectivedate) OVER ( PARTITION BY  keyid
                                           ORDER BY         activedate
                                         )            AS inactivedate
          )               src
    WHEN MATCHED THEN UPDATE
    ON    (    src.id          = dst.id
          AND  src.effectivedate     = dst.effectivedate
          )
    SET     dst.inactivedate     = src.inactivedate
    ;
    
    I want to have a select script which shows
    
    KeyID       EffectiveDate        InactiveDate    New_InactiveDate
    1              01/01/2013                              01/02/2013
    1              01/02/2013                              01/03/2013
    1              01/03/2013
    2              12/31/2012                              01/02/2013
    2              01/02/2013                              01/03/2013
    2              01/03/2013
    

    Once that you have done the above MERGER, it is simply:

    SELECT    *
    FROM      table_x
    ORDER BY  keyid
    ,         effectivedate
    ;
    

    If you do not have sthe FUSION, then see the query in the USING clause of the MERGER.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.
    In the case of a DML (UPDATE), for example, the sample data should show what looks like the tables before the DML, and the results will be the content of the table changed after the DML.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • Values LOV to be stored in the database

    Hi all

    I have a LOV with 2 values (display attributes) in this lov
    In the region, I want to show the attribute 1 and table of lov I want to store the attribut2.

    Have we not all the same criteria that there in the list of choices like the drop-down list display attribute and the attribute value list drop-down list to specify a value (view attribute) and to store another value in the database.

    Your help is thanksful


    Ajay

    Just to be clear, LOV does not store the values of the DB. The basic page will be VO/EO.

    So when the user selects a record in the result LOV, make the employee id, the name of the employee to basic page to display the name of the employee of the VO. on the page id and the employee to be hidden.

    One way to try is to put the name of the employee as an attribute transient in base page VO so that it is used that for the purpose of display (IE not to associate any DB column to it). So when you post data, name of the employee does not get inserted. Other attributes associated with the DB columns must be inserted.

    I would like to know if it works.

    Thank you

  • Independent LOV in each row of the table

    Hello

    I use Jdev 12 c, my requirement is, I want to ask a LOV a table in every row and want to get its value in my grain of java against the selected line. Snapshot is attached for clarity.

    acceptReject.PNG

    Help, please

    Kind regards

    Crusher

    Add a transitional attribute to the object of the entity that holds the value selected from the lov.

    Create a static view object to contain possible values to select for the lov. Then, build a model piloted by lov on the transitional attribute using the static vo.

    An example of this approach is presented here https://tompeez.wordpress.com/2013/04/05/using-one-viewobject-for-global-lookup-data/

    It's using a global table to get the data to search instead of a static vo.

    Timo

  • Insert values LOV selection after you click the button: oracle apex 5.0

    mail1.JPG

    I have this lov where I select Qty and after I click on cart then it inserts in basket on change event his works very well, but for the button click works not

    So basically it will check all lines and that one has 1 amount it will insert only.

    Apex. Oracle.com

    testdump/developer/Office

    page 6

    Hi Dominique,.

    Change your java script function,

    var arr_f01 = [];
    var arr_f02 = [];
    var arr_f03 = [];
    var arr_f04 = [];
    var arr_f05 = [];
    
    function generate_array_data(pThis) {
    var id;
    var name;
    var type;
    var price; 
    
    if($(pThis).val() > 0)
    { 
    
      id = $(pThis).closest('tr').children('td[headers="ID"]').text() ;
      name = $(pThis).closest('tr').children('td[headers="NAME"]').text() ;
      type = $(pThis).closest('tr').children('td[headers="TYPE"]').text() ;
      price = $(pThis).closest('tr').children('td[headers="PRICE"]').text() ;
    
    arr_f01.push($(pThis).val());
    arr_f02.push(id);
    arr_f03.push(name);
    arr_f04.push(price);
    arr_f05.push(type);
    }
    }
    
    function insert_changed_data() {
    apex.server.process (
      "Update"
    , {  f01: arr_f01, f02: arr_f02, f03: arr_f03, f04: arr_f04, f05: arr_f05
      }
    , { dataType: 'text',success: function(pData){alert('Data Inserted in Product Table'); }
    });
      arr_f01 = [];
      arr_f02 = [];
      arr_f03 = [];
      arr_f04 = [];
      arr_f05 = [];
    }
    

    Hope this helps you,

    Kind regards

    Jitendra

  • Amount based on certain letters in another column values

    Hello

    1. I would like to help to design a formula that sums values based on the presence of "coding" letters in another cell.

    Basically, I have an information line that contains several different values in individual columns. Then, I want to have a cell "coding" that relates to that particular line, when I hit a certain letter or more likely letters. These letters say provide more information on the values of the row. I want to summarize some columns that depends on the presence of certain letters in the "coding" cell, but my current use the SUMIF formula (e.g. SUMIF (g4:g6, "m =", A4: A6 "totals only values in A4: A6, if ONLY the letter am' is located in g4:g6 - while I need the formula for hunting the letter'm ' even if there is no other letters in the same cell with him - for example g6 cells which")) contains 'Sir'

    2. in addition, I would like to have the spreadsheet sum up occurrences of places (frequency) and sales of each place. I have maybe up to 40 locations to manage - so, how do I write a SUMIF formula that takes everywhere? Should be a long embrace formula that lists all of the 40 locations?

    I hope someone can help!

    Thanks in advance

    Matthew

    PS - It's just a spreadsheet example - real is normally 100 long lines for each month, so I have to get as automated as possible summary functions!

    You can use wildcards in SUMIF and SUMIFS, like this:

    = SUMIF(G,"*m*",A)

    BTW, your layout seems very "Excel-like". Suggest that you break your table to enjoy the design of the numbers. Here, my tier 6 is defined as a footer line.  This way I can simply reference to column G without worrying about which define a particular range.

    SG

  • Hide column based on the State in BI Publisher Excel Template

    Hello

    I have a requirement to hide a column based on certain conditions in the Excel of BI Publisher model. I am newbie for BI Publisher excel template. Anyone can provide some advice on this?

    I need this emergency. Any kind of help would be very appreciated.

    Thank you

    Renu

    Hi Renu,

    Recently, I came across a similar requirement, and I went to without BEEP features to hide and show columns during execution, unlike the RTF.

    But I did it in Excel model with the help of the Macro. It works fine for me.

    Please see below

    1. based on a cell value 'A', I have to hide the column

    2 written a simple if statement in macro to get the value of 'A' and do the hide/show

    3. you need to do this only in "ThisWorkbook" macro is executed when the excel output is open.

    Thank you

    Mani

  • My requirement is, if we click on the POP UP LOV element so I want the dependent value of this item in column of the text element in a table.

    My requirement is

    If we click on the POP UP dot LOV button then I want the dependent value of this item in column of the text element in a table.

    How do I get this as a table?

    Hi Dan,.

    I have a table, in the first column is popup LOV.and second column key is text element.

    So my question is if we click contextual key lov and select employee name, then I want to show the email address of this employee in the second column of tabular presentation.

    This can be done with AJAX. Write a JavaScript function on the onchange event of popup LOV item (Employee) key and pass the number of the employee selected to your AJAX call, go get the employee email and assign it to your entry corresponding to the key LOV popup text has changed.

    As your dealing with Form (Wizard Based/APEX_ITEM Based-not specified) in a table, you take insofar as each column is the table of elements mapped to APEX_APPLICATION input. G_FXX tables and therefore to write JavaScript to locate the item to update.

    I hope this helps!

    Kind regards

    Kiran

  • Sort by select a choice column of Table ADF display value

    Hi team,

    We use an ADF with EJB application.

    I have an ADF table, which has a choice of a select into it. (The elements of a list of Select choices are filled with a java bean).

    Presetnly, when we perform sorting on this column of the SOC, the table is getting sorted based SOC value not on the label.

    How to sort this column based on the Lable SOC filed.

    Please help us.

    Thank you

    Keshav Ch

    Hi Frank,.

    I took a transitional column in the entity and populated this column with the label LOV value.

    In the file ADF added this column to the table and it is rendered false.

    Set the sortable property of the column to the new column trasient lov.

    Now the sorting will work with the label filed (transitional column)

    Thank you

    Keshav ch

  • display / hide column of the table running

    Are there known issues with display / hide a column of the table at run time?

    I have a table that contains a column with a check box and another with a radio button.  If the user is allowed to select more than one row in the table (as indicated by a form variable), then I want to hide the column of radio and checkbox column.  If not, I want to show / hide the contrary.

    I show / hide the column header too.  When I preview the form, however, the data in the table appears "scoot" left and placed in the column that is hidden, so to speak.

    Here is a view of the design of the table:

    tableDesignView.jpg

    And a view of the execution of the table.  You can see the radio is hidden, but the "account number" column wants to crush in the (hidden) radio column,

    tableRunTimeView.jpg

    Here is the script, I'm very confident in this small snippet of code because the lines of account were filling wonderfully until I added the column of radio buttons and the script to show/hide.

    Put the account data in the table

    function

    setAccountData (objAccountRow, objAccountItem) //Pass in the line and data to complete line

    {

    stuff the line

    objAccountRow.accountNumber.rawValue

    = objAccountItem.accountNumber;

    objAccountRow.accountName.rawValue

    = objAccountItem.accountName;

    objAccountRow.accountBalance.rawValue

    = objAccountItem.accountBalance;

    display the check box or radio button, depending on the number of accounts they are allowed to select (as specified by the form variable)

    var searchNumAccounts = objFragment.resolveNode("searchNumAccounts").value; Variable //Form

        if (searchNumAccounts==1)

    { //show the column of radio buttons and hide the checkbox column }

    hideObject (objResultsSubform.accounts.HeaderRow.txtSelect);   <-it's exaggerated here, to hide the table for each row header column,...

    hideObject (objAccountRow.accountSelected);

    showObject (objResultsSubform.accounts.HeaderRow.txtRadioSelect);

    showObject (objAccountRow.radioSubform.radioGroup.selected);

    }

    on the other

    { //show the checkbox column and hide the column of radio }

    hideObject (objResultsSubform.accounts.HeaderRow.txtRadioSelect);

    hideObject (objAccountRow.radioSubform.radioGroup.selected);

    showObject (objResultsSubform.accounts.HeaderRow.txtSelect);

    showObject (objAccountRow.accountSelected);

    }

    }

    OK I got it. The table object implements a container to contain the fields. You hid the ok fields, but you then never reset the row in the table to have only two columns. I copied the parameter of the XML source so that I would have the exact width and then deleted the one I wanted to hide. Now everything works fine.

    See the example updated the.

    Paul

  • request to retrieve the value of the column and use in the other rows of the table

    Hi all

    I have a table where I maintain pairs name / value of a particular job.  Now, I would like to see some of the values of the rows passed to other rows in a table for example

    create job_name_value

    (

    VARCHAR2 (100) job_name,.

    name varchar2 (100),

    value varchar2 (100)

    );

    job_name name value
    TRGJOB% FPATH/ USR/LOCAL/TRGJOB
    TRGJOB% FDATECALDATE + 1
    TRGJOB$FNAME1%%FPATH.mywatchfile1.%FDATE
    TRGJOBFNAME2%%FPATH.mywathcfile2.%FDATE
    TRGJOB% FNAME3%FPATH.mywatchfile3.%FDATE

    can we write a sql query to produce output as below the objective is to use the value of fdate and fpath in the remaining lines. If there is no fdate and fpath then value should return such what or we need to use the stored procedure to achieve

    / usr/local/trgjob/mywatchfile1. CALDATE + 1

    / usr/local/trgjob/mywatchfile2. CALDATE + 1

    / usr/local/trgjob/mywatchfile3. CALDATE + 1

    Hello

    Since it cannot be '% FDATTE' or '% FPATH' (or both) then you need to replace each of them separately.  If the other does not, there 'replacement' will do nothing, but this will not affect the result of the other.

    Here's a way to do it:

    SELECT REPLACE (REPLACE (n.value

    '% FPATH.'

    p.value | '/'

    )

    , '% FDATE '.

    d.value

    ) AS output_value

    OF job_name_value n

    LEFT OUTER JOIN job_name_value p ON p.name = '% f '.

    LEFT OUTER JOIN job_name_value d ON p.name = '% FDATE '.

    WHERE n.name AS '\%FNAME%' ESCAPE ' \'

    ;

    I hope that answers your question.

    If this isn't the case, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.

    Report when the above query is to give erroneous results and explain, using specific examples, how to get the correct results of data provided in these places.  If you change the query at all, your postal code.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • Getting values of input columns, a table before to commit that table

    Hello


    My scenario:

    I dragged a table on the page, such as certain columns are output values and some are input values.
    This table is initially to have null lines, after an operation for that I will insert rows into the table running in per program that to output columns and the user will enter in the input columns.

    Now my qstn is, how to get these entered into the input bean values which to before committing, according to which the table...?


    your answers will be significant.


    Kind regards.

    You can simply use a forEach loop statement

    for(Row row : data){
     // do some action with Row
    }
    
  • In the column of table when the values are grater that maximum linear axis it does not show the bar

    Hi guys,.

    In the column of table when the values are grater than there maximum linear axis it does not show the Bar.But I want to display the bar up to the maximum limit of the axis is linear without changing the limit max.

    Consider following the example:

    The values are 80 90 200 300

    and here is the result:

    Left: when I don't put maximum property of linear axis.

    Right: when I put in maximum property of linear axis to 200.

    Untitled.jpg

    Law 4th bar is not visible because the value of this bar is 300 which is excedding maxium. But I want the 4th bar to appear identical to 3 bar.

    How can I do this?

    Thanks in advance.

    Then you should change the value of Y to the maximum value.

    Another option, you should consider is changing the Render item column to reflect that the value is greater than the specified maximum value.

  • Remove/hide column in a specific table header(1st row)

    Hi, is it possible and how to remove/hide header(1st row) column in a specific table?

    Thank you!

    Go to the tab results-> change Table-> Table View Properties display-> select 'no table or column heading' under 'display column and Table topics - click OK.

Maybe you are looking for

  • How can I erase the data on my laptop before I give it away?

    How can I erase the data on my laptop before I give it away?

  • iPhone 6 photos deleted. memory not released

    I used Windows Explorer to delete the photos on my iPhone6.  He is there not pictures here when you look in windows Explorer or on the phone itself.  However, it is not that the memory has been released. Windows Explorer shows: internal storage > > D

  • Toshiba BDX1500 using FAT32

    Hi all. Any help would be appreciated. Y at - it a way to get the Toshiba BDX1500 section to read from USB drives not formatted in FAT32, I am sure you are all aware that FAT32 is restrictive because you cannot save a file to a USB like 4.3 GB USB. T

  • Cannot restore my Satellite A55-S1063

    Hello I tried to do a restore on my laptop without success.I've done before and worked fine, but now I have problems. I put the recovery dvd in and hold the button C F2 or F12 (all work) to start the DVD.It goes to a screen that says the following: S

  • How can Windows Checker work - I get rid of him?

    In order to access the computers of mu (has been locked) was to order an audit of the Windows work that has a Microsoft Logo, but I understand is a scam. I've already warned my credit card company, but the questions are: 1. How can I get rid of the p