Consolidation of multiple columns by using the statement box

Hello

I have 4 columns

Column_A, Column_B, Column_C, Column_D

I created Column_E IE

ALTER Table My_Table
ADD)
Column_E varchar2 (100)
)

Data in columns A - D are either 'Y', ' no or (null)

What is necessary is the following: if it is a 'Y' in ONE of the columns A to D then place 'Y' in Column_E place in the case "n" in Column_E. This must be done for all the lines of my_table

Thank you!!!

Banner:
Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production
PL/SQL Release 11.2.0.2.0 - Production
"CORE 11.2.0.2.0 Production."
AMT for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
SQL> with test_data as
  2      (
  3      select 'N' a, 'N' b, 'N' c, 'N' d from dual union all
  4      select 'N' a, null b, 'Y' c, 'N' d from dual union all
  5      select null a, 'N' b, 'N' c, null d from dual union all
  6      select 'N' a, 'Y' b, 'N' c, 'N' d from dual union all
  7      select null a, null b, 'N' c, 'Y' d from dual
  8      )
  9  select t.*,
 10      case when instr(a||b||c||d,'Y') > 0 then  'Y' else 'N' end
 11  from test_data t;

A B C D C
- - - - -
N N N N N
N   Y N Y
  N N   N
N Y N N Y
    N Y Y

Please note that it helps if you provide test data as shown in this example.

Tags: Database

Similar Questions

  • I have the table of 3 columns A, B, C. I want to store the sum of columns A B in the C column without using the DML statements. Can anyone help please how to do. ?

    I have the table of 3 columns A, B, C. I want to store the sum of columns A B in the C column without using the DML statements. Can anyone help please how to do. ?

    11.1 and especially you have virtual column

    SQL> create table t
      2  (
      3     a number
      4   , b number
      5   , c generated always as (a+b) virtual
      6  );
    
    Table created.
    
    SQL> insert into t (a, b) values (1, 2);
    
    1 row created.
    
    SQL> select * from t;
    
             A          B          C
    ---------- ---------- ----------
             1          2          3
    

    Before that, a front insert - trigger

    SQL> create table t
      2  (
      3     a number
      4   , b number
      5   , c number
      6  );
    
    Table created.
    
    SQL> create or replace trigger t_default before insert on t for each row
      2  begin
      3    :new.c := :new.a+:new.b;
      4  end;
      5  /
    
    Trigger created.
    
    SQL> insert into t (a, b) values (1, 2);
    
    1 row created.
    
    SQL> select * from t;
    
             A          B          C
    ---------- ---------- ----------
             1          2          3
    
  • How to load a multiple column table in the coherence of caches?

    How to load a multiple column table in the coherence of caches?
    I want to load a multi-column (about 20 columns) table in cache coherence. How to change the following code (spatially how to change the SQL SELECT statement)?
    Is the following select statement enough: Select the key, the value of EMPLOYEES ?
    public static void bulkLoad(NamedCache cache, Connection conn)
        {
        Statement s;
        ResultSet rs;
        
        try
            {
            s = conn.createStatement();
            rs = s.executeQuery("select key, value from table");
            while (rs.next())
                {
                Integer key   = new Integer(rs.getInt(1));
                String  value = rs.getString(2);
                cache.put(key, value);
                }
            ...
            }
        catch (SQLException e)
            {...}
        }

    First of all, you need a class to hold your 20 fields:

    public class Data {
    
        private String field1;
        private String field2;
        private String field3;
        private String field4;
        private String field5;
        private String field6;
        private String field7;
        private String field8;
        private String field9;
        private String field10;
        private String field11;
        private String field12;
        private String field13;
        private String field14;
        private String field15;
        private String field16;
        private String field17;
        private String field18;
        private String field19;
        private String field20;
    
        public Data() {
        }
    
        public String getField1() {
            return field1;
        }
    
        public void setField1(String field1) {
            this.field1 = field1;
        }
    
        public String getField2() {
            return field2;
        }
    
        public void setField2(String field2) {
            this.field2 = field2;
        }
    
        public String getField3() {
            return field3;
        }
    
        public void setField3(String field3) {
            this.field3 = field3;
        }
    
        public String getField4() {
            return field4;
        }
    
        public void setField4(String field4) {
            this.field4 = field4;
        }
    
        public String getField5() {
            return field5;
        }
    
        public void setField5(String field5) {
            this.field5 = field5;
        }
    
        public String getField6() {
            return field6;
        }
    
        public void setField6(String field6) {
            this.field6 = field6;
        }
    
        public String getField7() {
            return field7;
        }
    
        public void setField7(String field7) {
            this.field7 = field7;
        }
    
        public String getField8() {
            return field8;
        }
    
        public void setField8(String field8) {
            this.field8 = field8;
        }
    
        public String getField9() {
            return field9;
        }
    
        public void setField9(String field9) {
            this.field9 = field9;
        }
    
        public String getField10() {
            return field10;
        }
    
        public void setField10(String field10) {
            this.field10 = field10;
        }
    
        public String getField11() {
            return field11;
        }
    
        public void setField11(String field11) {
            this.field11 = field11;
        }
    
        public String getField12() {
            return field12;
        }
    
        public void setField12(String field12) {
            this.field12 = field12;
        }
    
        public String getField13() {
            return field13;
        }
    
        public void setField13(String field13) {
            this.field13 = field13;
        }
    
        public String getField14() {
            return field14;
        }
    
        public void setField14(String field14) {
            this.field14 = field14;
        }
    
        public String getField15() {
            return field15;
        }
    
        public void setField15(String field15) {
            this.field15 = field15;
        }
    
        public String getField16() {
            return field16;
        }
    
        public void setField16(String field16) {
            this.field16 = field16;
        }
    
        public String getField17() {
            return field17;
        }
    
        public void setField17(String field17) {
            this.field17 = field17;
        }
    
        public String getField18() {
            return field18;
        }
    
        public void setField18(String field18) {
            this.field18 = field18;
        }
    
        public String getField19() {
            return field19;
        }
    
        public void setField19(String field19) {
            this.field19 = field19;
        }
    
        public String getField20() {
            return field20;
        }
    
        public void setField20(String field20) {
            this.field20 = field20;
        }
    }
    

    Then you can use it to store data in you original code

    public static void bulkLoad(NamedCache cache, Connection conn)
        {
        Statement s;
        ResultSet rs;
    
        try
            {
            s = conn.createStatement();
            String sql = "select key, value, value2, " +
                    "value3, value4, value5, value6, " +
                    "value7, value8, value9, value10 " +
                    "value11, value12, value13, value14, " +
                    "value15, value16, value17, value18, " +
                    "value19, value120 from table";
    
            rs = s.executeQuery(sql);
            while (rs.next())
                {
                Integer key   = new Integer(rs.getInt(1));
                Data data = new Data();
                data.setField1(rs.getString(2));
                data.setField2(rs.getString(3));
                data.setField3(rs.getString(4));
                data.setField4(rs.getString(5));
                data.setField5(rs.getString(6));
                data.setField6(rs.getString(7));
                data.setField7(rs.getString(8));
                data.setField8(rs.getString(9));
                data.setField9(rs.getString(10));
                data.setField10(rs.getString(11));
                data.setField11(rs.getString(12));
                data.setField12(rs.getString(13));
                data.setField13(rs.getString(14));
                data.setField14(rs.getString(15));
                data.setField15(rs.getString(16));
                data.setField16(rs.getString(17));
                data.setField17(rs.getString(18));
                data.setField18(rs.getString(19));
                data.setField19(rs.getString(20));
                data.setField20(rs.getString(21));
                cache.put(key, data);
                }
            ...
            }
        catch (SQLException e)
            {...}
        }    
    

    Of course your data object would need the appropriate field names and you will have no channels for all types. It must also implement equals and hashCode and ideally PortableObject.

    JK

  • How to view the line of columns without using the pivot keyword

    Hello
    could someone help me how to display lines in columns without using the keyword pivot and actuall is my scenario, iam having two tables with names and examples of data is shown below

    MIDDLE MINAME TASKID TASKNAME IDENTIFICATION PROJECT

    1 PROJ1 1 AA 100 PR1_TASK1
    1 PROJ1 3 CC PR1_TASK3 102
    1 PROJ1 DD 4 103 PR1_TASK4
    1 PROJ1 EE 5 104 PR1_TASK5
    1 PROJ1 6 105 FF PR1_TASK6
    2 PROJ2 EE 5 114 PR2_TASK1
    2 PROJ2 6 115 FF PR2_TASK2
    2 PROJ2 GG 7 116 PR2_TASK3
    2 PROJ2 HH 8 117 PR2_TASK4
    2 PROJ2 9 118 PR2_TASK5 JJ
    2 PROJ2 KK 10 119 PR2_TASK6
    2 PROJ2 1 AA PR2_TASK7 120


    The output should show the project and County of tasks at a given stage as shown below

    project AA BB CC DD EE FF GG HH JJ KK
    1 2 0 1 5 3 2 0 2 1 0
    2 1 2 0 2 1 0 2 4 3 1


    Thanks in advance,
    VVR
    CREATE TABLE pivot_test (
    ID           NUMBER,
    PROJECT      VARCHAR2(10),
    MID          NUMBER,
    MINAME       VARCHAR2(5),
    TASKID       NUMBER,
    TASKNAME     VARCHAR2(10)
    );
    
    INSERT INTO pivot_test VALUES (1, 'PROJ1', 1,  'AA', 100, 'PR1_TASK1');
    INSERT INTO pivot_test VALUES (1, 'PROJ1', 3,  'CC', 102, 'PR1_TASK3');
    INSERT INTO pivot_test VALUES (1, 'PROJ1', 4,  'DD', 103, 'PR1_TASK4');
    INSERT INTO pivot_test VALUES (1, 'PROJ1', 5,  'EE', 104, 'PR1_TASK5');
    INSERT INTO pivot_test VALUES (1, 'PROJ1', 6,  'FF', 105, 'PR1_TASK6');
    INSERT INTO pivot_test VALUES (2, 'PROJ2', 5,  'EE', 114, 'PR2_TASK1');
    INSERT INTO pivot_test VALUES (2, 'PROJ2', 6,  'FF', 115, 'PR2_TASK2');
    INSERT INTO pivot_test VALUES (2, 'PROJ2', 7,  'GG', 116, 'PR2_TASK3');
    INSERT INTO pivot_test VALUES (2, 'PROJ2', 8,  'HH', 117, 'PR2_TASK4');
    INSERT INTO pivot_test VALUES (2, 'PROJ2', 9,  'JJ', 118, 'PR2_TASK5');
    INSERT INTO pivot_test VALUES (2, 'PROJ2', 10, 'KK', 119, 'PR2_TASK6');
    INSERT INTO pivot_test VALUES (2, 'PROJ2', 1,  'AA', 120, 'PR2_TASK7');
    
    SELECT ID as PROJECT,
           SUM(DECODE(miname, 'AA', 1, 0)) AS AA,
           SUM(DECODE(miname, 'BB', 1, 0)) AS BB,
           SUM(DECODE(miname, 'CC', 1, 0)) AS CC,
           SUM(DECODE(miname, 'DD', 1, 0)) AS DD,
           SUM(DECODE(miname, 'EE', 1, 0)) AS EE,
           SUM(DECODE(miname, 'FF', 1, 0)) AS FF,
           SUM(DECODE(miname, 'GG', 1, 0)) AS GG,
           SUM(DECODE(miname, 'HH', 1, 0)) AS HH,
           SUM(DECODE(miname, 'JJ', 1, 0)) AS JJ,
           SUM(DECODE(miname, 'KK', 1, 0)) AS KK
    FROM   pivot_test
    GROUP BY ID;
    
    PROJECT AA BB CC DD EE FF GG HH JJ KK
    ------- -- -- -- -- -- -- -- -- -- --
          1  1  0  1  1  1  1  0  0  0  0
          2  1  0  0  0  1  1  1  1  1  1 
    
  • Use the Click Box several times

    Hi all

    I have seen several posts on very similar topics but I'm looking for advice on my particular problem. I have a slide that contains multiple images. I would like to have the learner click images and an explanation of the image both written and spoken. I finished this ok using the standard box click a speech of fixation to the legend of success on. I would like to provide several opportunities to see the content of the learner. Out of the box, click boxes seem to work only once. I saw a few other messages that refer to advanced actions and the ability to reset the time that the object was used. Can you please direct me to either a lesson on this particular issue, or post a solution here...? I discussed intensively on the internet and found nothing so far. I use 6 Captivate.  Thank you!

    Daniel

    Very well, if you think that this question is answered, could mark you like that?

    Lilybiri

  • Try to build the form using the check boxes - need help

    I am creating features using a region on the left to contain what I want (and it is stopped), an area on the right that contains all the rest I might add, with buttons in the middle to get things back (Add/Remove). I try to use the collections and APEX_ITEM. CHECKBOX and everything just do not have luck using the check boxes at all. Can someone tell me please a tutorial or an example that works in the way to read a collection by using the checkboxes and manipulate? Normally, I uses a FRONT of Validations process to update the collection with the changes that the user has provided, then follow up with any validations, then run any what DB written/modifications/deletions in a page AFTER VALIDATION process.

    Here's what I have so far:

    Area to the left (list of items already included in the package)

    (On the process of loading Page (before header) -: P182_PKG_ID is passed as input)
    apex_collection.create_or_truncate_collection
      (p_collection_name => 'DOCWIZ_CHKLST');
    
    declare
      v_lnid      NUMBER;
      v_ordr      NUMBER;
      v_pkg       NUMBER;
      v_type      NUMBER;
      v_typenm    VARCHAR2(47);
      cursor c_prepop is
        select a.ID, a.DOC_ORDER, a.DOC_PKG_ID, a.DOC_TYPE_ID, t.DOC_TYPE_NM
          from DOC_ASSIGN a, DOC_TYPE t
         where a.DOC_TYPE_ID = t.DOC_TYPE_ID
           and a.DOC_PKG_ID = :P182_PKG_ID
         order by a.DOC_ORDER;
    begin
      OPEN c_prepop;
        LOOP
          FETCH c_prepop into v_lnid, v_ordr, v_pkg, v_type, v_typenm;
          EXIT WHEN c_prepop%NOTFOUND;
          APEX_COLLECTION.ADD_MEMBER(
              p_collection_name => 'DOCWIZ_CHKLST',
              p_c001 => 0,          --CHKBX
              p_c002 => v_lnid,     --ID
              p_c003 => v_ordr,     --DOC_ORDER
              p_c004 => v_pkg,      --DOC_PKG_ID
              p_c005 => v_type,     --DOC_TYPE_ID
              p_c006 => v_typenm    --DOC_TYPE_NM
           );
        END LOOP;
      CLOSE c_prepop;
    end;
    Report area (column 2)
    SELECT apex_item.DISPLAY_AND_SAVE(1, SEQ_ID) SEQ_ID,
        apex_item.CHECKBOX(2, c001, 'UNCHECKED') CHKBX,
        apex_item.DISPLAY_AND_SAVE(3, c002) ID,
        apex_item.TEXT(4, c003, 3, 3) DOC_ORDER,
        apex_item.DISPLAY_AND_SAVE(5, c004) DOC_PKG_ID,
        apex_item.DISPLAY_AND_SAVE(6, c005) DOC_TYPE_ID,
        apex_item.DISPLAY_AND_SAVE(7, c006) DOC_TYPE_NM
      from APEX_COLLECTIONS
     where COLLECTION_NAME = 'DOCWIZ_CHKLST'
    Area to the right (complete list of topics already in the package possibilities)

    (On the process of loading Page (before header) -: P182_PKG_ID is passed as input)
    --Prep collection
    ---------------------------------------------
    apex_collection.create_or_truncate_collection
      (p_collection_name => 'DOCWIZ_TYPLST');
    
    declare
      v_lnid      NUMBER;
      v_ordr      NUMBER;
      v_pkg       NUMBER;
      v_type      NUMBER;
      v_typenm    VARCHAR2(47);
      cursor c_prepop is
        select 0, 0, :P182_PKG_ID, t.DOC_TYPE_ID, t.DOC_TYPE_NM
          from DOC_TYPE t
         where t.DOC_TYPE_ID not in (select DOC_TYPE_ID from DOC_ASSIGN
                where DOC_PKG_ID = :P182_PKG_ID)
           and t.DOC_TYPE_ID > 0;
    begin
      OPEN c_prepop;
        LOOP
          FETCH c_prepop into v_lnid, v_ordr, v_pkg, v_type, v_typenm;
          EXIT WHEN c_prepop%NOTFOUND;
          APEX_COLLECTION.ADD_MEMBER(
              p_collection_name => 'DOCWIZ_TYPLST',
              p_c001 => 0,          --CHKBX
              p_c002 => v_lnid,     --ID
              p_c003 => v_ordr,     --DOC_ORDER
              p_c004 => v_pkg,      --DOC_PKG_ID
              p_c005 => v_type,     --DOC_TYPE_ID
              p_c006 => v_typenm    --DOC_TYPE_NM
           );
        END LOOP;
      CLOSE c_prepop;
    end;
    Report area (column 2)
    SELECT apex_item.DISPLAY_AND_SAVE(1, SEQ_ID) SEQ_ID,
        apex_item.CHECKBOX(2, c001, 'UNCHECKED') CHKBX,
        apex_item.DISPLAY_AND_SAVE(3, c002) ID,
        apex_item.TEXT(4, c003, 3, 3) DOC_ORDER,
        apex_item.DISPLAY_AND_SAVE(5, c004) DOC_PKG_ID,
        apex_item.DISPLAY_AND_SAVE(6, c005) DOC_TYPE_ID,
        apex_item.DISPLAY_AND_SAVE(7, c006) DOC_TYPE_NM
      from APEX_COLLECTIONS
     where COLLECTION_NAME = 'DOCWIZ_TYPLST';
    Process - before validation page:
     Update Collection
    ---------------------------------------------
    declare
      i pls_integer := 0;
    begin
      for c1 in (
        select seq_id from apex_collections
         where collection_name = 'DOCWIZ_CHKLST'
         order by seq_id) loop
        i := i+1;
        --CHKBX
        apex_collection.update_member_attribute (p_collection_name=> 'DOCWIZ_CHKLST',
            p_seq=> c1.seq_id,p_attr_number =>1,p_attr_value=>wwv_flow.g_f02(i));
        --DOC_ORDER
        apex_collection.update_member_attribute (p_collection_name=> 'DOCWIZ_CHKLST',
            p_seq=> c1.seq_id,p_attr_number =>3,p_attr_value=>wwv_flow.g_f04(i));
      end loop;
    end;
    If anyone has a better way of doing things, I'm ready for it. The standard tabular forms appear not to be the right thing, because there will be TWO shapes on the page, that's why I went with a collection.

    Hello

    I just have a quick look and see what you're trying to do.

    One thing, you might want to consider, is that you use to identify each item (those who become G_F01, G_F02 etc.), index numbers can be any number you like up to a maximum of 50. So, your region on the left could use numbers from 1 to 25 and those rights could use 26 to 50 - little matter if there are gaps in the numbers.

    I'm actually about to close for the day because he went from 19:00 here now, so can't not consider this news right now - but if the above does not do, just update the thread and I'll have another look tomorrow.

    Andy

  • I got a notification saying "password requirement: you must change your secret code in 56 minutes"I panicked and entered my access code using the little box? ". I ' t mess up?

    I got a notification saying "password requirement: you must change your secret code in 56 minutes"I panicked and entered my access code using the little box? ". I ' t mess up?

    Yes. You may be victim of a scam, except if you are connected to your business with this requirement.

    Change your password immediately below:

    https://appleid.apple.com.

  • WIN 7 cannot find cmd or command prompt on WIN 7. Using the search box

    Cannot find cmd or command prompt on WIN 7. Using the search box

    Shirley

    You do not search to access the command prompt. Select Start, all programs, accessories, right-click right-click command promptand click run as administrator on the menu drop down.

  • How to transpose the rows in multiple columns by using PivotTable

    I have 1 line containing 12 columns with the value "JAN", "FEB", "MAR", "J-1","F-1","M-1","J-2","F-2","M-2","J-3","F-3","M-3"

    I want to display like

    JAN J - 1 F - 1 M - 1
    FEB J - 2 F - 2 M - 2
    MAR F - 3 J - 3 M - 3

    How to achieve the foregoing?

    Today, you have only 3 months JAN, Feb, Mar. Is it always the same number of columns. What happens if several months ago we added this line?

    Your data is really coming from relational source or some sort of text file?

    There is a better way to do this in narrative using HTML mode, if your condition is just to show them in several lines and do some math.

    Go to Narrative display;

    In the prefix, use

    In the text box 'Story' add something like that



    As a suffix, use

    @1@4@7
    @2@5@8
    @3@6@9

    You can also add simple calculations like sum etc at the bottom of these lines as the overall totals.

    Kris

  • Problem with update of a column by using the procedure of database and refreshing or put in value programmatically

    Dear all,

    I am a beginner in the ADF and am under Jdeveloper Studio Edition Version 12.2.1.0.0.

    I have a page that consists of two taskflows.

    First workflow has a fragment which is to have a table based on view object salespersons (not editable)

    Second task flow contains a form of ADF from the same view object Salespersons.

    As the user selecting a line in the table of the same record is displayed as no problem.

    Now, I have added two buttons Activate and Deactivate that is to change the status of the sales.

    I tried to use two ways an updated using the procedure of database and then put in value by programming and I have different questions with two of them:

    Now, here's the code of the Java bean for activation:

    Option A - the problem with this is the value of the column in the list (the first task rate displayed) is not synchronized

    and Activate and Deactivate buttons are not disabled and active properly.

    {} public void confirmActivation (DialogEvent dialogEvent)

    If (dialogEvent.getOutcome () == DialogEvent.Outcome.yes) {}

    DBSequence vId;

    vId = dcId.getValue ((DBSequence));

    Links BindingContainer = getBindings();

    OperationBinding operationBinding;

    operationBinding = bindings.getOperationBinding ("changeSalespersonsStatus") (OperationBinding);

    operationBinding.getParamsMap () .put ("pId", vId.getValue ());

    operationBinding.getParamsMap () .put ("pStatus", "A");

    Object result = operationBinding.execute ();

    dcStatus.setValue ("A");

    } else {}

    return;

    }

    }

    Option B - the problem with this is that the value of input for status text appears in the Active form for all records in form regardless of its database.

    {} public void confirmActivation (DialogEvent dialogEvent)

    If (dialogEvent.getOutcome () == DialogEvent.Outcome.yes) {}

    -no doubt this two lines are not needed here

    DBSequence vId;

    vId = dcId.getValue ((DBSequence));

    dcStatus.setValue ("A");

    BindingContainer links = getBindings();

    OperationBinding operationBinding;

    the operationBinding = bindings.getOperationBinding("Commit") (OperationBinding);

    Object result = operationBinding.execute ();

    } else {}

    return;

    }

    }

    Here's the code from the Fragment of shape for used buttons.

    "< af:button text = 'Activate' id ="bActivate' icon="/icons/activate.png ' iconPosition = 'top '.

    partialTriggers = "Bcreer bSaveInsert bCancelInsert dDeactivate dActivate".

    Binding = "#{pageFlowScope.salespersonsForm.buttonActivate} '"

    Disabled = ' #{bindings. " Status.inputValue! {= ' n '} ">"

    < af:showPopupBehavior popupId = "pActivate" / >

    < / af:button >

    "< af:button text = 'Disable' id = 'bDeactivate' icon="/icons/deactivate.png ' iconPosition = 'top '.

    partialTriggers = "Bcreer bSaveInsert bCancelInsert dDeactivate dActivate".

    Binding = "#{pageFlowScope.salespersonsForm.buttonDeactivate} '"

    Disabled = ' #{bindings. " Status.inputValue! {= 'A'} ">"

    < af:showPopupBehavior popupId = "pDeactivate" / >

    < / af:button >

    Here's matching Popups for each of the buttons Activate and Deactivate.

    < childCreation = "deferred" autoCancel af:popup = "disabled" id = "pActivate" >

    < af:dialog id = "dActivate" type = "YesNo" title = 'Status of salespersons' closeIconVisible = 'false '.

    affirmativeTextAndAccessKey = "& amp; Yes"cancelTextAndAccessKey ="& amp; (Cancel)

    noTextAndAccessKey = "& amp; No '.

    dialogListener = "#{pageFlowScope.salespersonsForm.confirmActivation}" >

    < f: facet = 'buttonBar' name / >

    < af:outputLabel value = "Are you sure you want to enable the seller?" id = "ol1" / >

    < / af:dialog >

    < / af:popup >

    < childCreation = "deferred" autoCancel af:popup = "disabled" id = "pDeactivate" >

    < af:dialog id = "dDeactivate" type = "YesNo" title = 'Status of salespersons' closeIconVisible = 'false '.

    affirmativeTextAndAccessKey = "& amp; Yes"cancelTextAndAccessKey ="& amp; (Cancel)

    noTextAndAccessKey = "& amp; No '.

    dialogListener = "#{pageFlowScope.salespersonsForm.confirmDeactivation}" >

    < f: facet = 'buttonBar' name / >

    < af:outputLabel value = "Are you sure you want to disable the seller?" id = "ol2" / >

    < / af:dialog >

    < / af:popup >

    Thanks in advance.

    Best regards

    Arif Khadas

    If you bind components to a range of flow page bean. You must complete that it saves the State of the component longer than the life of the component.

    To change the value of the GET value of the component of the link layer and change it.

    In this way the changes are captured by the framework and you should see them.

    Timo

  • Merge using the statement

    Version: Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    Hello

    I Merge statement that throws an error that it's an invalid statement, but I do not understand why.

    The statement is:

    MERGE INTO tbs_forecasts_archive tfa
    USING  (SELECT  pub_fc.forecast_id
                   ,pub_fc.last_approved_date
                   ,pub_fc.resource_id
                   ,pub_fc.project_id
                   ,pub_fc.cme_system
                   ,pub_fc.role
                   ,pub_fc.forecast_type
                   ,pub_fc.last_updated
                   ,pub_fc.last_updated_by
                   ,pub_fc.old_forecast_id
                   ,pub_fc.start_date
                   ,pub_fc.end_date
            FROM   published_forecast pub_fc
            INNER JOIN tbs_projects ON tbs_projects.project_id = pub_fc.project_id
            LEFT JOIN tbs_areas ON tbs_areas.area_id = tbs_projects.area_id
            INNER JOIN resources ON resources.resource_id = pub_fc.resource_id
            INNER JOIN tbs_teams ON tbs_teams.team_id = resources.tbs_team_id
            WHERE ( tbs_projects.group_id = :P0_GROUP ) AND
                  ( tbs_projects.area_id = :P86_AREA OR :P86_AREA = 0 ) AND
                  ( tbs_projects.project_id = :P86_PROJECT OR :P86_PROJECT = 0 ) AND
                  ( tbs_teams.team_id = :P86_TEAM OR :P86_TEAM = 0 )
           ) pf
    ON     ( tfa.forecast_id = pf.forecast_id AND
             TRUNC(tfa.baseline_name) = TRUNC(pf.last_approved_date)
           )
    WHEN MATCHED THEN
        UPDATE SET  tfa.resource_id     = pf.resource_id
                   ,tfa.project_id      = pf.project_id
                   ,tfa.cme_system      = pf.cme_system
                   ,tfa.role            = pf.role
                   ,tfa.forecast_type   = pf.forecast_type
                   ,tfa.last_updated    = pf.last_updated
                   ,tfa.last_updated_by = pf.last_updated_by
                   ,tfa.old_forecast_id = pf.old_forecast_id
                   ,tfa.start_date      = pf.start_date
                   ,tfa.end_date        = pf.end_date
    WHEN NOT MATCHED THEN
        INSERT (
                 forecast_id
                ,baseline_name
                ,resource_id
                ,project_id
                ,cme_system
                ,role
                ,forecast_type
                ,last_updated
                ,last_updated_by
                ,old_forecast_id
                ,start_date
                ,end_date
               )
        VALUES (
                 pf.forecast_id
                ,pf.baseline_name
                ,pf.resource_id
                ,pf.project_id
                ,pf.cme_system
                ,pf.role
                ,pf.forecast_type
                ,pf.last_updated
                ,pf.last_updated_by
                ,pf.old_forecast_id
                ,pf.start_date
                ,pf.end_date
                );
    
    

    Can someone explain what's wrong with this statement? It seems that it is a syntax error, but I was not able to find an example that uses multiple tables in select it like that.

    Do I need to provide data and tables?

    Can what additional information I give?

    Thank you

    Joe

    Would be - this pf.baseline_name in your VALUES clause is an invalid reference. TRUNC (pf.last_approved_date) is maybe what you mean?

    Kind regards

    Bob

  • First group title below displays under the column headers using the model 23 classic report with the help of repeat titles on break

    Hello

    I am migrating an application from 3 APEX APEX 4.2 on a thing I noticed with the classic reports when I put them in the model 23, it's that the first section break has break notch under the headings of columns for this section of line while the remaining lines properly have it display above the headers on the subsequent sections of group.


    When I look at firebug code I saw that all the tables but the first, the break line is included in the last line of the previous table, so I can see how it did not work for the holidays since.

    I have tow questions.

    1. is it really intentional because it seems not terribly elegant and my users to zero immediately above as a perceived bug.

    2. is there a reasonable job around always use headers repeat on break? I have multiple reports on the same page in places so switch to interactive reports is not a quick fix for me in this case.

    Example of a question can be seen at apex.oracle.com at home

    Thank you

    Brad

    Roadling wrote:

    Hello

    I am migrating an application from 3 APEX APEX 4.2 on a thing I noticed with the classic reports when I put them in the model 23, it's that the first section break has break notch under the headings of columns for this section of line while the remaining lines properly have it display above the headers on the subsequent sections of group.

    1. is it really intentional because it seems not terribly elegant and my users to zero immediately above as a perceived bug.

    The Standard report template definition in issue 23 contains thead and tbody elements:

    Before the column header

    
    

    Column title template

    #COLUMN_HEADER#
    

    After the title column

    
    
    

    After the lines

    
    
    
    
    
    
    #PAGINATION#
    
    
    
    

    This is intentional, the best practice for marking up HTML tables. What is not expected is the problem that arises when this model is used with the break of repeat titles on break formatting option. The repeated headings result table consisting of soup of tags containing several poorly constructed tbody and thead, which is not valid elements.

    2. is there a reasonable job around always use headers repeat on break? I have multiple reports on the same page in places so switch to interactive reports is not a quick fix for me in this case.

    Create a copy of the report model Standard in Standard (break formatting) for use with reports of the break, remove the thead and tbody definitions of template tags and the breakdown of the reports to use the new model of change. (Or, if you use mainly break reports using the Standard template, keep the tags in the copy and remove them from the original in order to minimize the number of reports, you need to change.)

    Personally, I would create a report model of line custom to break complex reports in order to be able to have complete control over the structure and presentation.

  • Use the state machine to fill cluster

    Hello

    I am trying to create a state machine that is running two States, each State has two items up to a Bundle function and in the cluster. I want the two elements of the State first across, then the second State should run and pass the last two items. Currently, I get only the data of the final State. I have one the vi attached.

    Thank you

    Chris

    You don't actually have a state machine.  What you have is a simple loop, and nothing of what is happening in the previous iterations of the loop is spent in later iterations.

    You must create the cluster in the loop itself and maintatin into a shift register.  Use the bundle by name to update the respective elements of the cluster in each picture of the structure of the case.

  • Tips to remember when using the state machine in queue

    I was able to work through the convert my architecture of State Machine for a BAU, thus eliminating the use of nodes of property/local variables to send data values to my machine of the State, but rather to send through queues.

    I would like some advice/tips on taking to serve perfectly. Especially, "is not to make" things with queues and how to effectively release a queue, etc.. What is the convention when using queues? Thank you!

    V


  • using the statement and pagebox to spend

    I am very new to javascript, but I'm trying to write a small script to provide automation based on the size of the page.

    I know that my current document is one of the cases listed, but I can't get the switch statement below to acknowledge.

    Any help would be greatly appreciated. I use Acrobat Pro 9. Thank you

    function test() {}

    var pSize = this.getPageBox ("Crop");

    App.Alert (pSize, 3);

    {Switch (psize)}

    case '0,612,792,0': //A

    App.Alert ("Page size", 0);

    break;

    case '0,792,1224,0': //B

    App.Alert ("B size Page", 0);

    break;

    case '0,1224,1584,0': //C

    App.Alert ("C size Page", 0);

    break;

    case '0,1584,2448,0': //D

    App.Alert ("D size Page", 0);

    break;

    by default:

    App.Alert ("size of the Page Not Found!", 0); / / do this if all else fails

    break;

    }

    }

    You can try to convert the table to a string using the switch statement:

    var pSize = this.getPageBox("Crop");
    pSize = String (pSize);
    // Now, use switch statement as you have it.
    

Maybe you are looking for

  • Satellite L10-333: screen stays black, until I hit the edge of the screen

    I have a Satellite L10-333, which is about 3 years old, it has suddenly started having screen problems.It started with a white screen instead of the normal and a black line all downstairs in the middle. Now when I turn on the pc, the screen remains b

  • the Splitter label text

    I decided to play with verticle separator bars today and I have a question on labels for them.  Is it possible to have the text of the label on the split bar, but not being able to select durning runtime? I have attached a VI that showa what I'm talk

  • Drucker installieren

    Wie kann ich mein Drucker Canon Pixma MP500 auf Windows 8 installieren, er wird vom nicht condition system. Danke!

  • Problem load BlackBerry BB - Q10 Q10

    Salvation; I have a problem with my BB - Q10 that some time when I connect the magazine with her, she sees good but some time, a message that "this charger charge the battery fast. Original use provided with device charger"and abandoned load. Kindly

  • Windows 7 starts up I get this message pop - up - incompatible software says

    When I start up I get this message ' \? \C:\Windows\INSTALLER\{2B81872B-A054-48DA-BE3B-FA5C164C303A}\_94E3C704FE82FBF49A6. "EXE" Cannot start or run due to incompatibity with 64-bit Windows version What software that relate to I need to find to unins