Programmatically control the value in the table according to two attributes

I have a query with Table Panel, built from a display object. I want to include a column in the table whose value is based on the value of the two attributes, say Attribute1 and attribut2. Basically something like:

If attribute1 == 'Y' and attribut2 == 'Y': display "One"
If attribute1 == 'Y' and attribut2! = 'Y': show "Two"
If attribute1! = 'Y' and attribut2 == 'Y': "Three" display
If attribute1! = 'Y' and attribut2! = 'Y': show "four."

Is this possible? I use JDeveloper 11.1.1.5.0

You can use a transitional attribute using groovy to do the math:
http://docs.Oracle.com/CD/E26098_01/Web.1112/e16182/bcentities.htm#BABHGCAH

Tags: Java

Similar Questions

  • set the height of the rows in the table according to the integer value

    Hello.

    jdev version - 11.1.2.3

    My requiremnt is that I have an integer input value, when I provide a value for it assumes that 10, then only 10 lines should be visible on the rest of the table should come when scroll us. Basically, I want to adjust the height of the lines on the change in value of my entry value providied.

    Thank you

    If the counter returns a number, you can convert entire

    public void button(ActionEvent actionEvent) {
    Number n = spinbox.getvalue();
    table.setFetchSize(n.intValue());
    }
    

    Timo

  • disorder affecting the values in the table according to cfscript

    I try to pass an array to a function, cfscript and assigning values to it. When I see if the value has been assigned to the right, I get an error saying I'm trying to dereference a scalar.

    function g (q, recsq, arr) / / q is a query name, recsq is the number of lines in q, arr is an array name

    {

    evaluate (arr &'[1] [1] ='& q &'.code [1]');
    WriteOutput(a[1][1]);
    }
    g('qpr','#recsqpr#','apr');

    The allocation already works if I don't mean to call a function, but I would like to know what I'm doing wrong.

    This "disorder" have you passing the table in?

    There is no difference in passing an array as a parameter of function in any other kind of data type:

    myArray = arrayNew();
    myArray [1] = 'something ';
    myArray [2] = "something";

    myArray = myFunction (myArray);

    writeOutput ("here is the new value: #myArray [3] #");

    Function myFunction (someArray) {}
    arrayAppend (someArray, 'new value');
       
    return untableau;
    }

    Do you understand how everything works?

    --

    Adam

  • Changes programmatically to the tables of the ICM

    We use IPCC 6.0 (0) with Office CTIOS sr3. We have about 500 agents and skills ~ 40.

    We try to write a web application to allow supervisors to agents to recycle without remote control in an AW (too complicated and unwieldy by their report). Certainly, we can make changes to the table on the AW and even the loggers (in the laboratory, of course). However, the changes do not seem to be reflected in MCI and ITAS. They appear in the Configuration Manager well.

    What do we lack? Is there an additional procedure, we have to do to get the committed change, or a security procedure to allow the change to be taken?

    Any help is appreciated. Snatching the this will be a big victory for my team.

    Dave Wolgast

    HealthNow New York Inc.

    See if I can explain what happens when you make a change with ICM set up on an Admin workstation and you will see why your idea will not work.

    As you probably know, you can not run ICM set up on a distributor AW if it does not flow in real time. You've probably seen cela when CIM (RTDist, RTClient, UpdateAW, Logger) services had not been started and you pulled up to the graphical interface of configuration and it hung for a minute before reporting that he could not get the feed in real time.

    On a client Admin work stations, it is run through the Distributor AW, and a proxy configuration applies. However, there is a real time stream.

    Assuming that you have the running configuration tool and you change the skills of the agent group.

    1. the configuration tool sends the request to the DBAgent processes running on the router.

    2 DBAgent confirms the credentials of the user on the domain controller.

    3 DBAgent sends the request to the router process (rtr).

    4. the rtr process informs the process lgr running on the recorder the Canal of MDS.

    5. the lgr updates the SQL from Microsoft Central controller database.

    6. once the change has been introduced to the DB, the lgr informs the rtr that the update was successful, and now the rtr is updating its configuration in memory. To do this, after the validation was successful - should the commit SQL failed, the rtr config does not change.

    7. the rtr process informs the DBAgent process.

    8. the DBAgent updates GUI Config CIM on the stream in real time, and it shows that the skills group has changed.

    9. at the same time, the rtr process tells the RTServer processes running on the router to tell the Distributor AWs (you probably have two) that there has been a change in the configuration.

    10. the RTDist process running on the AW Dist means change and all the RTClients that changed the config.

    11 RTDist also said the UpdateAW process running on the Dist AW that the configuration has changed.

    12 UpdateAW queries the central command database for the configuration change and tells the processes running on the AW Dist lgr.

    13. the lgr process writes the data in the DB of AW.

    If someone opens the Config anew ICM tool they read information from the database of AW, but it has been updated with the change as the last element in a chain complex.

    The result of all this is - do not!

    What you want to do is upgrade to ICM 7.0 and you will get two elements that will make you happy:

    * a Web interface to the evolution of the powers of jurisdiction.

    improving agents to sign, and then reconnect to get calls about the new skill, they have just received - it is dynamic (as it should).

    There you go - a big win for your team at the cost of an upgrade of the ICM. ;-)

  • Disable an entry to build the table according to the user input

    Hello

    I'm using labview to perform a mass spectrometer.  I made a program to monitor up to five masses, where it sends mass to mass spec (DAC) and then receives data (analog signal) and the locations / records, it is then repeated for the next four masses before returning to the first.

    I have five controls on the front panel, where the user can enter and then the five masses that they wish to follow.

    My problem is how to disable some of the masses, if I only want to follow masses 1,2,3 or 4 instead of five.  Because obviously, it takes more time to complete each cycle with the masses more.  How can I disable the entries if the user upgrades to zero for example?  Or have a way to control the masses to follow.  Who will stop the five tensions sent through DAC and send only 1,2,3 or 4 depending on what is selected?

    I enclose my vi.

    I don't see a Structure of the event in your vi. It is the best and easiest way to capture the change event and manipulate. Search Help on the Structures of the event and you will find many examples. You need the full version of LabView to have access to the Structure of the event.

  • To calculate the elapsed time between two attributes of timestamp

    Hello
    I have two timestamp (create_tmstmp & elapsed_tmstmp) attributes in a table.
    It has two rows and I need the difference in seconds between these two attributes.
    The following query returns the negative value and an incorrect value.
    Any help is appreciated.

    1st row:

    Create_tmstmp: 2010-02-02 9:53:15.832 PM
    Elapsed_tmstmp: 03/02/2010 9:49:47.527 AM

    Line 2:

    Create_tmstmp: 03/02/2010 5:35:47.614 AM
    Elapsed_tmstmp: 03/02/2010 11:03:15.937 AM

    Select
    ((extract(day from elapsed_tmstmp)-extract(day from create_tmstmp)) * 86400 +)
    (extract(hour from elapsed_tmstmp)-extract(hour from create_tmstmp)) * 3600 +.
    (extract(minute from elapsed_tmstmp)-extract(minute from create_tmstmp)) * 60 +.
    ((extract(second from elapsed_tmstmp)-extract(second from create_tmstmp)) * 1000) completed_tmstmp
    From table_a;


    The result is:
    completed tmstmp_
    74655
    -11997

    Thank you.

    Published by: solsam on February 4, 2010 11:57
    with t as (
               select to_timestamp('2/2/2010 9:53:15.832 PM','mm/dd/yyyy hh:mi:ss.ff pm') Create_tmstmp,
                      to_timestamp('2/3/2010 9:49:47.527 AM','mm/dd/yyyy hh:mi:ss.ff pm') End_tmstmp
                 from dual
              )
    select (cast(End_tmstmp as date) - cast(Create_tmstmp as date)) * 86400  + to_char(End_tmstmp,'.ff') - to_char(Create_tmstmp,'.ff') elapsed_seconds
      from t
    /
    
    ELAPSED_SECONDS
    ---------------
          42991.695
    

    SY.

  • Programmatically control the values displayed in a form

    I have a form that is created from a display object. For a particular domain, I don't want to show exactly the value of this field. If the value is "O", I want to display "Yes" in the form, and if the value is "N", I want to display 'No' in the form. How can I do?

    Published by: 942131 on June 28, 2012 11:22

    According to the guidelines of your entries, the lines are NOT editable. I guess, you display in the user interface in the form of output text.
    If so, follow these steps:

    **

    Thank you
    Nini

  • How to pass data to the tables according to the value of the first 4 digits of 7 strings of numbers

    I want to sort incoming data, in several bays based only on the first 4 digits of each string.

    For example, a hexadecimal string may be 41322033333533 which is A1 3353.

    A1 is a sensor. particularly, and I want to send all data from the A1 to a table. I have 8 sensors data and want to send the data to separate the bays of sensor. My sensor names are A1, A2, A3, T1, T2, T3, W1

    I will use a structure of the matter, for loop and a comparison of '=' for the data. However, I want to only compare the first 4 digits of the string and I can't find an operator for this. Any advice on how to proceed would be appreciated.

    With a thread like this

  • Programmatically control the connection to a VPN profile

    Hi all

    I wonder if it is possible to connect and disconnect a VPN set on the device by program profiles.

    I went to the library of Extensions of VPN, also done a search on the forum for other people seeking the same question. Looks like the answer is negative. Just thought to ask if anything has changed.

    Thank you.

    Your results are correct.  It is not possible for a third party application to connect or disconnect a VPN connection.

  • How to set the default value of the component selectOneChoice in the table to the ADF

    Hi all

    I use jdev 11.1.1.6.0 version.

    I used an adf table in which an attribute is selectOnceChoice.

    To create the table and selectOneChoice I used the data control java bean.

    and drag and drop a table and after that I have drag and drop one of the attributes as selectonechoice and linked with the return of the method list as < key, value > pair.

    I want the default value to select only one option in each attribute rows.

    I checked with simillar issue on post next, but not yet resolved.

    
    
    
    
    

    My jspx code is

    
    <af:column id="c11"
                                             headerText="Invoice To" >
                                        <af:outputText value="#{row.invoiceTo}" id="ot19"/>
    <af:selectOneChoice value="#{bindings.invoiceTo.inputValue}"
                                                        label="#{bindings.invoiceTo.label}"
                                                        required="#{bindings.invoiceTo.hints.mandatory}"
                                                        shortDesc="#{bindings.invoiceTo.hints.tooltip}"
                                                        id="soc3"
                                                        autoSubmit="true"
                                                        valuePassThru="true">
                                      <f:selectItems value="#{bindings.invoiceTo.items}"
                                                     id="si4"/>
                                    </af:selectOneChoice>
    </af:column>
    
    
    

    where invoiceTo is the table attribute and the invoiceTo attribute is dragged and dropped as a SOC function list Source data mapped data value with the List attribute

    and the display attribute

    Data value = invoiceTo List = lovMasterKey attribute

    Display attribute = lovMasterValue

    that list is maintained at < lovMasterKey, lovMasterValue >

    According to the value of invoiceTo line, it should show as default value is selectOneChoice, but its showing no not as a default value.

    Please, help me how set the default value of selectOneChoice in the table according to each value line invoiceTo.

    Thank you all for the help on this issue.

    Problem has been resolved.

    Reason for this was used

    It is solved using code used for the list built for selectoneChoice more

      List lovMasterList = new ArrayList();
    
    SelectItem siItem = new SelectItem();                      
    
    siItem.setLabel(objAfCmnLovMasterListVO1.getLovMasterValue());
    
    siItem.setValue(objAfCmnLovMasterListVO1.getLovMasterKey());
    
      lovMasterList.add(siItem);
    

    Now, I used the code where the line below. InvoiceTo is the key and row.invoiceToItems are the list of articles for selectOneChoice.

    
    
    
      
    
    

    Thank you very much...

  • The table display looks faded

    I use a table on the façade as an indicator to display rows of data periodically on average.

    The color table is washed out and I can't change them.  I don't speak of cells; I mean the line bar and scroll border.

    There must be a way to get a table to display them with decent contrast.

    Any ideas.

    Post your real VI and not just a partial screenshot that does not look as if it were even a part of LabVIEW.

    How did you create this?  Is it possible that you have changed some colors of fonts within the façade?  Anything you might have done in the Windows system settings?

    In fact, I think you just need to check the properties of the table, according to me, it looks like you have set it to disabled and Greyed.

  • Add the new column to the desired location in the table through customization?

    Hello world

    I made a few standard on oaf page customizations.
    I added 2 new columns to the existing table, but they were added at the end of the table.
    But I want a column to be the first and a column in the middle of the table.

    How can I achieve this?

    Please give me your valuable suggestions...

    Thank you.

    Hello

    Customize page, there is another icon for just before reorganization create icon.

    You can use and organize all the elements in the region of the table according to your requirement.

    Sushant-

  • Choice of the message can be changed in the table of search results Simple query region?

    Hi friends,

    I have a Simple search query region in 11i.

    I created the SearchVO and bound to the query Table Region.

    I have two attributes MessageStyleText and a MessageChoice attribute in the simple search criteria.

    Search results show very well for all attributes.

    But when I search with the criteria of MessageChoice, in the table of results, this attribute MessageChoice is indicated as editable, display the drop-down list.

    I did this attribute ReadOnly = True but then it becomes readonly in search also. So this dosent help.

    I need to this drop-down list of MessageChoice be modifiable in the search criteria, but read in the table of results.

    Please help me with the resolution. Its kinda urgent.

    Would appreciate any help.

    Thank you

    Rajesh

    He solved.

    Added programmatically in code.

    Kept the attribute as MessageChoice in the query Table Region.

    Added to the controller

    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processRequest (pageContext, webBean);

    OAM OAApplicationModule = pageContext.getRootApplicationModule ();

    OAMessageChoiceBean = processFlagMessageChoice

    (OAMessageChoiceBean) webBean.findChildRecursive ("AttributeId");

    processFlagMessageChoice.setReadOnly (true);

    }

  • The table layout where the new line can be inserted / updated rest is read only

    Jdev Studio Edition Version 11.1.1.3.0.

    I have a (JSF) page that has table. My requirement is I need make the line as read only with the exception of the newline (created with the new button) as update / insert able. Please suggest a way around so that the user can only add records to the table but couldn't change all existing records in the table.

    Please advice.
    Thank you.

    S Chatterji.

    S. Chatterji,

    If you are using ADF business components, just go to the VO on which is based the table and brand every attribute as "Editable when new" only.

    John

  • Get the current index value of the table control

    I have a table control 1 d on a panel that contains a value of temperature curve that I send to a temperature controller. The values in the table are not unique, because for example 40.5 degrees in the table could represent 40.5 degrees on the cycles of cooling or heating. I could have severat heating/cooling cycles programmed into the table. I would like a way to read the array index of the currently displayed item in the array in the up/down control of index on the left of the table control. I could then run curves partial temperature easily by neutrophilia a starting point on the curve in the table control.

    I don't see a property that I can use to get this index value. Anyone have any ideas?

    Thank you

    J

    Use the property 'index values. It will be the first item of the output of a 1-d array.

Maybe you are looking for