Using IIR to default values

I try by default a drop based on the division of the user (part of the user profile). I'm having some trouble


First of all, when I validate the following expression I get an error "IFF is not valid with 3 parameters.

IIF (UserValue ("< Division >") = "MENA", ValRech ("OCC_CUST_LOV_OPTY_5", "MENA"), ValRech ("OCC_CUST_LOV_OPTY_5", "USA"))


Second, you can have the part "else" of the IIR being a Virgin? Using the above, if the division is default LED to MENA, if the division is USA by default in the USA, otherwise leave blank. I think it looks something like:

IIF (("< Division >") = UserValue "MENA", ValRech ("OCC_CUST_LOV_OPTY_5", "MENA"), (IIF (UserValue ('< Division >') = 'USA', ValRech ("OCC_CUST_LOV_OPTY_5", "USA")))


Thanks in advance

Why do you use an IIF statement? Looking at your question, you can probably use the UserValue function. If you use by default: UserValue ('')

This defines the division of the user profile in the drop-down list you want by default. If choice lists match you won't need an iif statement.

Tags: Oracle

Similar Questions

  • Using the 'current default values do' as a control on the front panel

    Hello

    I'm building a VI that uses a lot of digital controls. I want to use "do current default values" as a control Boolean on the front panel for the user.

    Is it possible to implement when the program is running? What would be an alternative, if this was not possible?

    Thank you

    Mhaque


  • Dealing with a URL parameter to be used for a default value

    I have a page of results of detail (the CONTACTS Table Recordset), identified by the CONTACTID

    In the same page, I also have another dynamic relational table, showing all the associated notes that contact record (recordset CONTACTNOTES identified using CONTACTS. CONTACTID = CONTACTNOTES. NOTESCONTACTID)

    It works fine and I can update CONTACTS without any problem.

    My problem is to insert a new record CONTACTNOTES (of a simple URL link) also associated with the same record.

    The primary field (NOTEID) is an AutoNumber but I need to carry out CONTACTS. CONTACTID variable to use as the default value for the CONTACTNOTES url. NOTESCONTACTID.

    I think something like that...

    in the dynamic table on the initial results page, using (/ insertnote.php?) CONTACTID = <? PHP echo $row_recordlookup ["NOTESCONTACTID"];? >) as the link, setting the URL parameter.

    The page insertnote has a recordset insert form, related to the CONTACTNOTES table.

    Now, I don't know how to add this URL parameter as the default field value. Is it as simple as putting the $HTTP_GET_VARS ["CONTACTID"] in the field of the Init val in the property inspector?

    Sorry - worked on...

    On the new page of note insertion, I first created a Recordset, duplicate on the initial results page.

    When you create the form, it was easy then to insert {CONTACTS. CONTACTID} as a default value.

  • When we use alta as default value of skin and then how to change this default skin table selectors?

    Mr President.

    Me using ALTs as my skin by default as follows

    <?xml version="1.0" encoding="UTF-8"?>
    <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
      <skin-family>alta</skin-family>
      <skin-version>default</skin-version>
    </trinidad-config>
    

    Now, I want to change the width and height of the table added to a page jsff.

    How to change the source code of this file skin.

    Concerning

    Dear all!

    I get the solution to my question how to change the default alta of the skin as follows:

    
    
      altaSkin
      v1
    
    
    
    
      
        altaSkin.desktop
        altaSkin
        alta-v1.desktop
        org.apache.myfaces.trinidad.desktop
        skins/ADFSkin/ADFSkin.css
      
    
      
        altaSkin.desktop
        altaSkin
        alta.desktop
        org.apache.myfaces.trinidad.desktop
        skins/ADFSkin/ADFSkin.css
        ash.view.skinBundle
      
    
    

    If any body finds it useful and correct answer if you please points to fix in my favor.

    Concerning

  • Default values &amp; javascript in tabular form manual

    Hello!
    I have a table that shows a new line in the upper part of the report... my sql statement is in the form of:
      SELECT 
      NULL EMPNO, 
      NULL ENAME, 
      NULL MGR, 
      NULL SAL, 
      NULL COMM, 
      0 SORTITEM, 
      'N' STATUS, 
      '' MD5_VALUE 
    FROM 
      DUAL
    UNION ALL
    SELECT...etc
    I used to have default values defined in the report attributes but those lost when I started using the approach above.
    How to reference the value of an element on the page, a default value for the line empty? For example, if the element: P60_EMPNO contains the employee ID for work, I want the EMPNO field in the empty line is pre populated with this value.

    Also, I used to have a javascript function which ran "onkeypress" for a field in the new row, but now I don't know how to implement with the new tabular form.

    Thank you!
    Tammy
    (currently using APEX 3.1.2)

    Hi Tammy!

    You can replace all NULL values in the SQL statement by your default values. The only condition would be that you should have at least one field that is NULL so that the code in the process knows that the user has not completed registration. In my example, I check:

    IF vSTATUS = 'N' AND vENAME IS NOT NULL THEN
    

    Yes, as long as the status is ' only and the user has not completed the ENAME field, the record will not be created - if, however, I put a default to ENAME, IF this test would be satisfied and, therefore, a new record would be created each time the page has been sent.

    What does javascript code? The APEX_ITEM. Text() function allows the inclusion of additional attributes for the INPUT tag that will be generated. See: http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_item.htm#CHDCDHJI

    In my example, I have:

    APEX_ITEM.TEXT(5, SAL, 7, 7, 'style="text-align:right;"') "Salary"
    

    Which adds the attribute "style" to the issue of the STARTING salary. You could do something like that to add in "onkeypress =" javascript:yourfunction (...); » "

    Andy

  • Plugin deleted Adobe. Default values defined for the Standard Adobe. I have Firefox ask to install the plugin. How can I force Adobe to use the standard?

    Adobe Reader won't open some Adobe (large) files.
    > I updated Adobe Standard all of Firefox's default values. Firefox continues to use Adobe Reader.
    > Uninstalled Adobe Reader. Uninstalled Firefox Adobe plugin.
    > When I try to open a file "Adobe", Firefox now says to install the Adobe Plugin.
    ... catch - 22.
    What can I do to force Firefox to use Adobe Standard? (none of the moderator seems to work)

    These steps can help as well:

    Delete the mimeTypes.rdf file in the Firefox profile folder to reset all the actions file.

    Set the pref pdfjs.disabled true on the topic: config page to disable the build-in the PDF Viewer.

    Check the value of pref plugin.disable_full_page_plugin_for_types on the topic: config page and delete the application/pdf if it is present, or reset the default pref via the context menu.

  • my firefox keeps reseting whenever I close all the options, I changed to this topic to reset to the default values, why? is this some kind of error? IM using windows xp

    Well whenever I use firefox I have watch some youtube vids watch stuff on jtv, maybe even play some runescape and then after that I have quit firefox everything resets to the default values, and I don't know why it does this I have scanned my computer with anti virus/malware/spyware and nothing seemed

    These steps help?

    • Rename the * prefs.js in the profile folder in * prefs_2.js (for backup, but Firefox would not be able to see them).
    • Exit Firefox via file - Exit menu;
    • Restart Firefox, look for the question.
  • Still need mass of compilation by default values.llb in BT using TS4.2.1?

    I use 4.2.1 TestStand and LabVIEW 2009. Re-reading (new combination of software OR) "Using LabVIEW and LabWindows/CVI with TestStand I fell on this paragraph.

    Using a LabVIEW 8.6.x or advancement system

    When you install a version of LabVIEW later than LabVIEW 8.6.x and you

    to use this version of LabVIEW with TestStand, you must complete

    the following steps to update TestStand - 86 llb default values

    to enable LabVIEW adapter retrieve the default parameter values

    the screw.

    1. create a copy of TestStand - 86.llb to the default values.

    2. rename the copy TestStand - xx.llb default values, where

    XX is the version of LabVIEW, with a revision number, you

    you want to use with TestStand.

    3 mass compile TestStand - default values using the xx.llb the

    version of LabVIEW, you want to use with TestStand.

    I still do with LabVIEW 2009 and TestStand 4.2.1?

    Hi GovBob,

    You don't need to do it with LabVIEW 2009 and TestStand 4.2.1. If you access this location: C:\Documents and
    All Users\Documents\National Instruments\TestStand
    4.2.1\AdapterSupport\LabVIEW, you will see that there are already documents llb 90.l in default values.

  • Why can I not use Get LV class Default Value in a dynamic VI?

    I'm trying to substitute a VI that uses 'Get default class LV value' and get an error that I do not understand.  My parent, 'Message class of ANT' class, has two children - "Class ANT from the command" and "ANT-class response.  Children participate a lot of data and features, including the factory pattern that implements 'Load Message class' VI of the superclass (see image).  I would replace this VI with a version of command and a version of the response, which would simply call the version of the Message with their respective classes of the substitution of dynamic input and output terminals.  However, I get the error "Front Panel"ANT Out class Message"Terminal: type of execution do not spread of dynamic input to dynamic output.»

    Don't know how to get around it.  Any ideas?

    Thank you

    -Jamie

    That sounds like a strange thing to do - what you will do is to return the default value for the entry class. What is the reason for the class loader of the disc? You SHOULD have already loaded the class in memory, because the output type MUST be the same as the input type (this is a requirement of dynamic distribution work, because the error is telling you). Since you already have the class that is loaded in memory, there is an easier way to get the default value: wiring a loop For iteration 0, and the entry class through wire directly to the output class, with tunnels on the inputs and outputs (NOT shift registers). As the loop never executes, the output is the default value for this class (see https://lavag.org/topic/15354-testing-for-the-same-class/#entry92502).

    Replace "to more specific class" with "class of Run-Time to preserve" will also work, but still, I can't understand why you try to do it at all.

  • I can't have my Subvi simply use the default values for some of its entries?

    I use the code for a DS345 machine, using the sample code from here: http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E9149659CE034080020E748...

    I use version 7.0 (because I'm in 7.1).

    Anyway. I managed to get the proper waveform I wanted, just stored waveform in the default values and frequency input, so I can some frequency I want input. When I run the example VI itself, it displays the waveform for the machine just that very well, however, when I use this example VI as a Subvi, it didn't come out of the machine data.

    Any ideas?

    Thank you

    Edit:

    When I say defaults for some of its entries, I mean the values that are usually connected by a user, controls that are not 'inputs' in VI.

    I understood the question, and I must say that I am embarrassed. If you look at the code, I'm feeding a resource VISA name, when the Subvi needs just a chain with the GPIB address number.

  • How to use a UUID type number instead of sequence as a default value in the attribute of the view object?

    Hi all.. I want to use a type UUID number in an attribute of the object from view as default value to generate the unique field... so, how can I generate random uuid?

    Well, the UUID looks like as follows:

    Example 1: 067e6162-3b6f-4ae2-a171-2470b63dff00

    Example 2: 54947df8-0e9e-4471-a2f9-9af509fb5889

    You can play withgetMostSignificantBits() and getLeastSignificantBits() , this is the long values and you can combine them in order to generate BigInteger, as described here:

    https://gist.github.com/berezovskyi/2c4d2a07fa2f35e5e04c

    Then just use this value in the constructor number:

    http://docs.Oracle.com/CD/E12839_01/apirefs.1111/e10655/Oracle/JBO/domain/number.html#number%28Java.math.BigInteger%29

  • Mr President, how can I enter two rows at the same time with different default values that only the first line to use see?

    Mr President.

    My worm jdev is 12.2.1

    How to enter two rows at the same time with different default values that only the first line to use see?

    Suppose I have a table with four fields as below

    "DEBIT" VARCHAR2(7) , 
      "DRNAME" VARCHAR2(50),
      "CREDIT" VARCHAR2(7) , 
      "CRNAME" VARCHAR2(50),
    

    Now I want that when I click on a button (create an insert) to create the first line with the default values below

    firstrow.png

    So if I click on the button and then validate the second row with different values is also inserted on commit.

    The value of the second row are like the picture below

    tworows.png

    But the second row should be invisible. It could be achieved by adding vc in the vo.

    The difficult part in my question is therefore, to add the second row with the new default values.

    Because I already added default values in the first row.

    Now how to add second time default values.

    Concerning

    Mr President

    I change the code given by expensive Sameh Nassar and get my results.

    Thanks once again dear Sameh Nassar .

    My code to get my goal is

    First line of code is

        protected void doDML(int operation, TransactionEvent e) {    
    
            if(operation != DML_DELETE)
                 {
                     setAmount(getPurqty().multiply(getUnitpurprice()));
                 } 
    
            if (operation == DML_INSERT )
                       {
                               System.out.println("I am in Insert with vid= " + getVid());
                           insertSecondRowInDatabase(getVid(),getLineitem(),"6010010","SALES TAX PAYABLE",
                            (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                           }
    
            if(operation == DML_UPDATE)
                              {                                                    
    
                                 System.out.println("I am in Update with vid= " + getVid());
                             updateSecondRowInDatabase(getVid(),
                                 (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                              }                      
    
            super.doDML(operation, e);
        }
        private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "Insert into vdet (VID,LINEITEM,DEBIT,DRNAME,AMOUNT) values " +
                 "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "')";  
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }
                  }  
    
                  private void updateSecondRowInDatabase(Object value1, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "update vdet set  AMOUNT='"+ value5+"' where VID='" + value1 + "'";                     
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);  
    
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }                  
    
                  }
    

    Second line code is inside a bean method

        public void addNewPurchaseVoucher(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator");
                   RowSetIterator rsi = dciter.getRowSetIterator();
                   Row lastRow = rsi.last();
                   int lastRowIndex = rsi.getRangeIndexOf(lastRow);
                   Row newRow = rsi.createRow();
                   newRow.setNewRowState(Row.STATUS_NEW);
                   rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow);
                   rsi.setCurrentRow(newRow);
    
                   BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator");
                   RowSetIterator rsi1 = dciter1.getRowSetIterator();
                   Row lastRow1 = rsi1.last();
                   int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1);
                   Row newRow1 = rsi1.createRow();
                   newRow1.setNewRowState(Row.STATUS_NEW);
                   rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1);
                   rsi1.setCurrentRow(newRow1);
        }
    

    And final saveUpdate method is

        public void saveUpdateButton(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindingsBC = BindingContext.getCurrent().getCurrentBindingsEntry();      
    
                   OperationBinding commit = bindingsBC.getOperationBinding("Commit");
                   commit.execute(); 
    
            OperationBinding operationBinding = BindingContext.getCurrent().getCurrentBindingsEntry().getOperationBinding("Commit");
            operationBinding.execute();
            DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("VdetView1Iterator");// write iterator name from pageDef.
            iter.getViewObject().executeQuery();  
    
        }
    

    Thanks for all the cooperation to obtain the desired results.

    Concerning

  • Block initialization parameter default value of the session variable used in default prompt as "(toutes les valeurs de colonne)" "

    Hello

    I have a business requirement for a dashboard that we built location to get the users that belong to a certain geographic location to the default view of the dashboard with guests together in their geographic area.  He is just giving them a default view to enhance their experience when they connect each day.   Because of the way that we put the default value for the period of time they watch, with the HELP of SAUVÉ the CUSTOMIZATIONS IS NOT AN OPTION.

    I created the default values for the prompt called "area" in a block of initialization. This variable is called V_USER.

    My problem is that only about 80% of users have a value of 'Area' in the hierarchy of our employees.   I would like to someone else by default "(toutes les valeurs de colonne)". "  I was unable to understand how and where do.

    Some of the things I've tried:

    (1)Setting the default value in the initialization of an empty space block ("in SQL)
    (2)Setting the default value in the initialization "(toutes les valeurs de colonne) block '"
    (3)Setting the default value in the initialization block 'null '.

    None of them have worked and the result is that the user who does not have an area ends with a load of zombie dashboard, and while the guest gave rise to fashion "- select value -", the user must press "Apply" again to get the dashboard to display the data.

    The text which lies behind the encircled area in green below correctly becomes the value of the variable to V_USER (it is empty as default and I don't have a box).

    For @{biServer.variables ['NQ_SESSION.]} {[USERS ']} the default zone must be @{biServer.variables ['NQ_SESSION.]} {[V_USER']} {}

    In the red circles below you can see that the guest actually becomes a value: *) nqgtu(* )


    The illustration below indicates the default value for a user without a box. the second quick block is not updated until you press on apply again...

    Thanks for your comments.  I was not able to make this work for my needs.  I have however to solve the problem by changing using a 'SQL result' for my default selection.  Then I created a query that returns rows NULL unless there is a correct answer:

    SELECT 'Service Delivery MOS '. "' Organizational hierarchy. "" Area ".

    "MOS DELIVERY."

    WHERE ("organisational hierarchy". ("" Area number "> 0) AND ("Service Delivery MOS". "Organizational hierarchy" "." " Zone' = ' @{biServer.variables ['NQ_SESSION.]} {[V_USER']} {} ")"

    The "returns no line' I mentioned above resulted in all values being selected.

  • Is it possible to use the default value as sql expression in obiee 11g report?

    Hi all

    Is it possible to use the default value as sql expression in obiee 11g report?. Actually what I'm trying to make is that we send an ibot users. They want the same default values that are assigned in the command prompt in the report. So when we send the ibot it shows the report for default values assigned in the report criteria which is obsolute. As a solution, I kept the report in a dashboard page and send the dashboard like ibot page. But the problem here is that I can send only pdf format. Is it possible to do so at the level of the report (without using session variables). I want something like that

    Date between Date ' @{PV1} {Timestampadd (SQL_TSI_DAY,-90, CURRENT_DATE)} and Date ' @{PV2} {CURRENT_DATE}

    Thanks in advance

    Thank you

    AJ

    http://www.w3.org/2001/XMLSchema-instance"container ="http://www.w3.org/2001/XMLSchema"xmlVersion ="201201160' xmlns:sawx="com.siebel.analytics.web/expression/v1.1" > "

    "Question time '." Date '.

    "Question time '." Date '.

    BOX WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 1) THEN TIMESTAMPADD (SQL_TSI_DAY,-2, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 2) THEN TIMESTAMPADD (SQL_TSI_DAY,-3, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 3) THEN TIMESTAMPADD (SQL_TSI_DAY,-4, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 4) THEN TIMESTAMPADD (SQL_TSI_DAY-5 (, cast (max (CURRENT_DATE) date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 5) THEN TIMESTAMPADD (SQL_TSI_DAY,-6, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 6) THEN TIMESTAMPADD (SQL_TSI_DAY, 0, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 7) THEN TIMESTAMPADD (SQL_TSI_DAY-1, cast (max (CURRENT_DATE) date)) END

  • Guest of dashboard: setting default value using CASE?

    Hello

    I have the SQL script according to which fills the drop-down list in a table of edge-guest:

    SELECT "-calendar". " YearWeek' TO 'orders' WHERE ("-calendar". "") (YearWeek)"BETWEEN VALUEOF("CurrentYearWeek-4") AND VALUEOF ("CurrentYearWeek")) ORDER BY '-calendar". " YearWeek' DESC

    Note: CurrentYearWeek-4 and CurrentYearWeek are variable repository

    In order to have filled with the most recent YearWeek promt, I entered the following SQL script to set the default value for the prompt of the dashboard:

    SELECT MAX ("-calendar". "") YearWeek') TO 'Orders' WHERE ("-calendar". "") (YearWeek)"BETWEEN VALUEOF("CurrentYearWeek-4") AND VALUEOF ("CurrentYearWeek"))

    It fills the combo correctly with 5 YearWeek numbers in descending order and defaults to the last YearWeek.

    Now, I want to achieve is that if CurrentDate (= an another variable repository) is a Monday, I want to set the default value for the prompt show the value of the CurrentYearWeek-1 * (since there is no data yet for CurrentYearWeek).

    I tried the default using following Expression Variable, but without success:

    CASE WHEN DAYOFWEEK (VALUEOF ("CurrentDate") = '0', THEN ANOTHER VALUEOF ("CurrentYearWeek") END VALUEOF("CurrentYearWeek-1")

    In my view, it must be possible, but I'm stuck now. Any suggestions?

    Thank you!

    OK, I'm happy for you. Don't forget to put points for the correct answer. If you are a new user comes first read this:

    http://forums.Oracle.com/forums/Ann.jspa?annID=939

    Concerning
    Goran
    http://108obiee.blogspot.com

Maybe you are looking for

  • Firefox always crashes when started upward.

    I open Firefox, and 5 seconds later, it blocks. During these five seconds, I click on 'Restore', and then it crashes always. After a few accidents, I have the option to start mode without failure or reboot, when I opened in safe mode it still crashes

  • Double click is on same if voiceover is off

    Phone now requires double tap to exit the apps even if voibe more died. I tried voice switching on and off without result.

  • CNU90813MW: password for CNU90813MW

    Could someone tell me what is the password of reset thing?

  • HP Pavilion HPE-110 t: HP Pavilion HPE-110 t Windows 10 Upgrade

    I have a problem with the upgrade to Windows 10. My desktop computer HP Pavilion HPE - 110 t with Windows 7 Professional 32-bit installed does not pass the test of software Windows 10 Upgrade.  He reported an "unsupported CPU error.  What can I do to

  • No icon network & no updates with errors

    When I try it it alls disapires just and nothing happens? (Windowx XP Pro 32-bit) (OEM Windows XP pro sp3 cd) computing personalized, I myself built about 6 years ago. Was installing IE8 & all other updates 09/01/2011. I've had Bitdefender total secu