updating columns by using variables substitiution dataform

Hi all

I would like to know if there is any chance to update columns in the form of data using proxy.
As if I need to create a form of data from jan to & currmonth. (June), so changing the value subvar say August, I'll be able to get the columns dynamically in the change of form of data until August. ?

Thank you

Hi, yes you can create a hierarchy of alternative for periods. For more information, see rolling forecast Web Form

You can then use the descendants function of your other rollups

Another way to define your period as sparse. Periods a link to an attribute fades with 1... 12 for the month and try to use fewer function selector Member dataform

As you can see, none of them is easy

Tags: Business Intelligence

Similar Questions

  • Updated column by using a previous record value

    I have data in a table as follows:

    sequence ID
    1 100
    2 101
    102 3
    4 103
    4 104
    5 105
    6 106


    I need increment the value of the sequence of + 10 sequence of the previous record.
    Even if the first value of record sequence will start at only 1.
    i.e.
    sequence ID
    1 100
    10 of 101
    20 102
    30 of 103
    40 104
    50 of 105
    60 106

    Is it possible in a single query.

    Hello
    DDL and DML:

    CREATE TABLE test(col1 NUMBER, col2 NUMBER) 
    
    INSERT INTO test SELECT 100 col1, 1 col2 FROM DUAL UNION
    SELECT 101, 2 FROM DUAL UNION
    SELECT 102, 3 FROM DUAL UNION
    SELECT 103, 4 FROM DUAL UNION
    SELECT 104, 5 FROM DUAL UNION
    SELECT 105, 6 FROM DUAL UNION
    SELECT 106, 7 FROM DUAL
    

    The query:

    UPDATE test a SET col2=NVL((SELECT col2*10 FROM test b WHERE a.col2-1=b.col2),1)
    7 Rows Updated.
    
    SELECT * FROM test
    COL1 COL2
    100 1
    101 10
    102 20
    103 30
    104 40
    105 50
    106 60 
    

    Kind regards
    Lakshmi.

  • Select the column by using Session variables

    I set a session variable to contain the name of a bound column that is the user. Is it possible to use a session variable to select a column in a database table? If so, how? Does need a statement where clause?

    Something like that? :

    < cfquery name = "rsSelectColumn" datasource = 'Test' >
    SELECT column 1, column 2, column 3 is Variable from Session
    OF tbl_data
    < / cfquery >

    Thank you
    Dave

    I think you want to do this, if the value in the session variable is the actual column name:


    SELECT column 1, column 2, #Session Variable # AS Col3
    OF tbl_data

    in this way, you can call any column stored in the session variable, and it will still be usable from the QUERY as COL3 regardless of which column you used.

    If that's what you want to do - it OF as simple as that.

    :-)

    Sometimes we have to think of things too.

  • Update of column DB using a calculation

    No guy to see for a long time
    IM back again APEX and I just cant knew how to do this.

    I have a form with all 50 elements from a DB table
    The loading of the page, I do a complex SQL data manipulation and possibly lead to a code to two digits that appears as a page at the bottom of the page element.

    I need to be able to save this value in the database of the form.
    Because it is a SQL querey it cannot be a DB column

    I thought I was doing a text element hidden source is the DB column and using the page item as the default source, but that dident work.

    Any ideas?

    You can do a process whith a hint of the element of page as updated statement

    Update db_table
    point Set =: P (n) _ page_item
    where... =: _Id P (n)

    Try to run this process in an onload before or after the process of the page

    GR
    Hugo

  • You will need to insert update column with the username?

    Hi all

    I'm new to this forum of the apex. New to apex as well.

    My question is do we have a form and a single column is editable by the user. whenever an update to this column, I need to write their name in the update column.

    I heard that we can do with trigger using the variable app_user. But in our project, they made authentication ldap for this form and when an employee login with their company login id they can see only this form of apex. no other option.

    In the same form, they were able to show the user name. I checked how they did it. they used * & user * variable for this. , It makes sense for you gentlemen?

    all I have to do is insert this & user in the column value.

    How to do this. I'm started working in the apex for the past four days alone. willing to bare with me if im a very stupid question.

    Thank you
    knani

    PS: I know that what im asking is the user name for the Web page the user name of the apex.

    Published by: kart on May 26, 2010 11:45

    Hello

    You can use: APP_USER substitution string.
    If you like to use that in the syntax of database trigger is v('APP_USER') for example

    :NEW.CHANGED_BY := NVL(v('APP_USER'), user);
    

    BR, Jari

  • Another chart update rate issue (using a state machine)

    Hi all!

    I'm develiping a pilot for a new instrument.  I have the basics of work based on the vi tree tutorial.  Now, I'm creating a basic example.  I started by watching a tutorial of State machine (a soda dispenser).  I have 3 States, basically init/reading data/check buttons & writing. Everything works great, reading and display of data. I would now like to add a chart for one of the data (SAP in this case).  Try to implement the method using the loop counter.  Loop cycles at 100 ms for now updating in 5 seconds (later must be user input).

    So basically, I have a simple state machine that updates the values on the screen in a certain State.  I need these data at the top level for trace or possibly turning most of these (less graphic) in a self-contained vi.

    Anyway, I have a Boolean LED in the main loop that flashes every 5 seconds. So far so good.  Except that the graph updates apparently at random?  Put the prog in sleep mode and I have seen the updated table when the data has been read (inside the red box). He has every time.  I'm just creating a local variable inside the red zone...  I see sporadic updates in the charts, maybe 5-10 updates every 5 seconds.  What Miss me?  If I change the iterations of the loop to a faster number (e.g. 10 ms) graph updates like crazy (although the CASE is false).

    Hi Steven8R,

    The chart will update any update a fact local variable refers to the table.  If the chart should be updated each time the code in red box runs.

    The code you have in the structure of the business is not doing anything.  It's just whatever data, the graph contains the reading and writing in itself.

    Something you might try to do instead is wiring the output of the amp VI get directly to the table AMPS inside the 5 second delay of the case structure.  This will update the chart as the most recent data point every 5 seconds.  Is that what you want?

    Best,

  • Updated column by max - not where it is null

    Hi all

    I have the following table and the date with I want to update the column containing NULL values
    different date, these data are the maxmium number in the same column.
    create table test (id number(9), name number(9));
    
    insert into test values(1,2);
    insert into test values(2,2);
    insert into test values(3,2);
    insert into test values(4,2);
    insert into test values(5,2);
    insert into test values(6,null);
    insert into test values(7,null);
    insert into test values(7,null);
    I used this but this update columns with same value. So, it's not what I want
    update test set name=(select max(name)+1) from test) where name is null;
    I want the result like this
    id     name
    1       2
    2       2
    3       2
    4       2
    5       2
    6       3
    7       4
    7       5
    Note: the Id column may double
    Thanks in advance

    Published by: Isabelle November 23, 2012 23:51
    SQL> select  *
      2    from  test
      3  /
    
            ID       NAME
    ---------- ----------
             1          2
             2          2
             3          2
             4          2
             5          2
             6
             7
             7
    
    8 rows selected.
    
    SQL> update  test t1
      2     set  name = (
      3                  select  name
      4                    from  (
      5                           select  rowid rid,
      6                                   max(name) over() + row_number() over(order by name nulls first,id,rowid) name
      7                             from  test
      8                          ) t2
      9                    where t2.rid = t1.rowid
     10                 )
     11    where name is null
     12  /
    
    3 rows updated.
    
    SQL> select  *
      2    from  test
      3  /
    
            ID       NAME
    ---------- ----------
             1          2
             2          2
             3          2
             4          2
             5          2
             6          3
             7          4
             7          5
    
    8 rows selected.
    
    SQL> 
    

    SY.

  • Update the query using nulls update box

    I need to update a column according to the conditions that I've used below, the update query, I used is updated as well to null values. How can I stop this and keep the old values when no match was found for the case.
    create table sample (name varchar2(10),eno number(10),salary number(10));
    insert into sample (name,eno,salary) values ('emp1',1,100);
    insert into sample (name,eno,salary) values ('emp2',2,200);
    insert into sample (name,eno,salary) values ('emp3',3,300);
    select * from sample;
        
    update sample 
    set salary = 
    case when salary = 100 then 10000 else 
    case when salary = 150 then 15000 else 
    case when salary = 200 then 20000 end end end
    where name is not null;
           
    Actual o/p:
           emp1     1     10000
           emp2     2     20000
           emp3     3     
    
    Required o/p:
            emp1     1     10000
           emp2     2     20000
           emp3     3      300

    Hello

    The updated control WHERE clause lines.
    If you do not have a WHERE clause, then updates all rows in the table.

    update  sample
    set      salary = case
                          when salary = 100 then 10000
                   when salary = 150 then 15000
                   when salary = 200 then 20000
               end
    where   salary   IN (100, 150, 200)
    ;
    

    Note that you do not need to nest BOX icies expressions (or almost anywhere else). If the 'salary = 100' condition is true, then its correspondent WHEN the value is returned, and the remaining terms will not be evaluated. If the first condition is not true, then only will be the "salary = 150" condition to be evaluated. (The terms are mutually exclusive in this example anyway, so it does not matter.)

    Published by: Frank Kulash, June 5, 2012 13:09

  • issue update a table using a function in pipeline

    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for HPUX: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    OK, I have an example simplified below what is happening
    I try to make updates or inserts in the tables and I use a function pipeline for this bed of the same tables of the to do.
    and it gives me
    ORA-04091: table DSAMSTRC.T is mutating, trigger/function may not see it
    ORA-06512: at "DSAMSTRC.GET_T_ARRAY", line 6
    My solution was to do a slider and update record row by row, but I was wondering if there is a way around this error?


    Here's my example
    DROP TABLE t;
    ------------------------------------------------------------------------------------
    
    CREATE TABLE t
    AS
           SELECT LEVEL id, 'A' txt
             FROM DUAL
       CONNECT BY LEVEL <= 10;
    
    -------------------------------------------------------------------------------------
    
    CREATE OR REPLACE TYPE t_table_type AS OBJECT
                      (id NUMBER, txt VARCHAR2 (200));
    ------------------------------------------------------------------------------------
    
    CREATE OR REPLACE TYPE t_array AS TABLE OF t_table_type;
    -----------------------------------------------------------------------------------
    
    CREATE OR REPLACE FUNCTION get_t_array (v_txt IN t.txt%TYPE)
       RETURN t_array
       PIPELINED
    IS
    BEGIN
       FOR EACH IN (SELECT id, txt
                      FROM t
                     WHERE t.txt = v_txt)
       LOOP
          PIPE ROW (t_table_type (EACH.id, EACH.txt));
       END LOOP;
    
       RETURN;
    END;
    ---------------------------------------------------------------------------------------
    
    UPDATE t
       SET txt = 'B'
     WHERE id IN (SELECT id FROM TABLE (get_t_array ('A')));
     

    You can create a global temporary table that has the same columns that use your function to insert in there, and then use it to update t.

    CREATE GLOBAL TEMPORARY TABLE t_temp
    (id    INTEGER,
     txt  VARCHAR2(100))
    ON COMMIT DELETE ROWS;
    
    INSERT INTO t_temp
      (SELECT id, txt FROM get_t_array('A'));
    
    UPDATE t
       SET t.txt = (SELECT txt FROM t_temp
                     WHERE t_temp.id = t.id)
     WHERE t.id IN (SELECT id FROM t_temp);
    
  • Cannot use variables

    Hello:

    I have a simple question that I can't solve everything. I can run a simple query:

    $sql = "SELECT name, ARTIST OF nationality where nationality = 'USA" ";

    but when I tried to use a variable as:

    $n = "USA";
    $sql = "SELECT name, ARTIST OF nationality where nationality = $n;

    The query runs, but does not work. I can't use variables for insert or update. Any help is appreciated!

    Try to put the variable in single quotes:
    $sql = "SELECT name, ARTIST OF nationality where nationality ="$n "";

  • I want to update the verson using celluler data how is possible

    I want to update the verson using celluler data how is possible

    WiFi or iTunes > update the iOS on your iPhone, iPad or iPod touch - Apple Support software

  • Unfortunately I couldn't find another option in Firefox to describe the problem. I use Windows 7. Since the Firefox update (now I use 16.0.2) when I

    Unfortunately I couldn't find another option in Firefox to describe the problem.
    I use Windows 7.
    Since the Firefox update (now I use 16.0.2) when I use the Google Translator in Firefox, I can't copy and paste into Microsoft Word.
    But when I use it in Internet Explorer, I can't use the copy paste it to Microsoft word (MS Word 2010).
    my e-mail address: [email protected]

    Hello
    Thank you very much for quick help
    It's work with the instruction of Ctrl + C.
    perditer

  • Thus, it has been some time since iOS 9.2.1 happened, but I still have not downloaded it. What is the consensus on this update, is it useful to download or should I wait until 9.3?

    Thus, it has been some time since iOS 9.2.1 happened, but I still have not downloaded it. What is the consensus on this update, is it useful to download or should I wait until 9.3?

    Yes.

    Yes/No - up to you.

  • After that the BIOS update can not use Debian

    I upgraded to v3.70 Bios and now my Debian has following problem:
    at the start of the adage about stucks kernel:
    PCI: BIOS Bug: f0000000 MCFG area isn't E820 - reserved.

    Did I screw the upgrade (Win startup, run the bios update and follow the instructions)? Or is this normal?
    How can I know Toshiba, they have the bug in the BIOS?

    Stepan

    Hello

    After the BIOS update you can use delivered and supported operating system (recovery image)?

  • BIOS update allows the use of modules of 2 GB RAM DDR on Satellite P10 554?

    Hello

    I have a satellite p10 554 and want upgrad my RAM.
    By default, the maximum that you can install's two Kits of GB 1.
    Are there any - update Bios, that allows 2 GB kits?
    Thank you very much!

    Ron

    Hello Ron

    The same situation with my P20! Unfortunately there is no BIOS update allows the use of the RAM more.

Maybe you are looking for