Tabular Report Question

Hi There,
I am in the middle of developing a tabular report my report format is the following and following parameters are passed. Its basically a LEDGER of a particular account therefore requrired to calculate the opening balance as well.
1. Account code
2. Start Date
3. End Date
Account : 3301001
Name : Bank of America
Start Date : 01-01-07 ..................End Date : 01-12-07 ..................
Acc_code.......Name ................Debit.........Credit...........Balance......................
...........Opening Balance of (Bank of America :)--------------> 800000 ..................
1.................Company 1.........5000.............................805000.......................
2.................Company 2.........2000.............................807000.......................
3.................Company 3.............................12000.......795000.......................
so based on that scenario I dont know how to do following things.
1. I need to pick current balance from main accounts table and put it on balance field at first line where it says "opening balance of (bank of america)
2. and add the balance into DEBIT or CREDIT which will act as a running balance.
3. User can leave the End date so how to teckle this...following is the query.
SELECT V_NO,VD_ENTRYDATE,V_VALUEDATE, ACC_CODE,ACCNAME,DEBIT,CREDIT FROM V_POOL
WHERE ACC_CODE <> &ACCODE AND COMPANYID = '01'
AND V_NO IN (SELECT DISTINCT V_NO FROM V_POOL WHERE ACC_CODE=&ACCODE AND COMPANYID=01 AND V_POSTED='T'
and TO_DATE(VD_ENTRYDATE,'DD-MM-YY') >= TO_DATE(&SDATE,'DD-MM-YY')
AND TO_DATE(VD_ENTRYDATE,'DD-MM-YY') <= TO_DATE(&EDATE,'DD-MM-YY')) order by v_no;

Hi,
try the following code for 2.
DECLARE
    vError VARCHAR2(32767);
BEGIN
    FOR i IN 1.. HTMLDB_APPLICATION.G_F03.COUNT
    LOOP
        IF HTMLDB_APPLICATION.G_F03(i) IS NULL
        THEN
            vError :=
                vError ||
                'Please enter a date on line ' || i ||
                '<br/>';
        END IF;
    END LOOP;
    FOR i IN 1.. HTMLDB_APPLICATION.G_F04.COUNT
    LOOP
        IF HTMLDB_APPLICATION.G_F04(i) <> ^[[:digit:]]{8}$
        THEN
            vError :=
                vError ||
                'Please enter an account number on line' || i ||
                '<br/>';
        END IF;
    END LOOP;
    FOR i IN 1.. HTMLDB_APPLICATION.G_F06.COUNT
    LOOP
        IF HTMLDB_APPLICATION.G_F06(i) IS NULL
        THEN
            vError :=
                vError ||
                'Please enter a quantity on line' || i ||
                '<br/>';
        END IF;
    END LOOP;
    RETURN vError;
END; BTW, are you sure that the regular expression "^[[:digit:]]{8}$" works that way in PL/SQL? Haven't used it very often yet, but I don't think you can specify it that way in PL/SQL.
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

Similar Messages

  • Radio button column in the tabular report

    Hi everyone,
    I have a tabular report. I wanted to have radio button and check box some of the field. Please take a look at my sample application.
    http://apex.oracle.com/pls/otn/
    Workspace ==> SHYIN
    username ==> SHY
    password ==> shy
    Application ID : 29879 - TabularForm
    On page 2, of the detail form, I want to have radio button in Primary Contact column and check box in status column. I would appreciate any suggession. Thanks.
    SHY

    Hi Andy,
    I surely come back with new question!
    Now, I am trying to change the status column to check box. I can see the correct status the check box in the form. But when I tried to add new rows or update anything, I am getting "No data found" error.
    here is my query
    SELECT
    APEX_ITEM.HIDDEN(1, SEQ_ID) || APEX_ITEM.HIDDEN(2, C001) || APEX_ITEM.RADIOGROUP(3, C001, NULL, NULL, 'onclick="javascript:$x(''P2_SELECTED_ID'').value=' || C001 || '"') PRIMARY_CONTACT,
    apex_item.text(4,C002) name,
    apex_item.text(5,C004) phone,
    APEX_ITEM.HIDDEN(6, C006) || apex_item.checkbox(7,C001, null, C005) INACTIVE
    from apex_collections
    where collection_name = 'C_CONTACT_INFO'
    this is the updated Contact_Collection
    begin
    IF NOT APEX_COLLECTION.COLLECTION_EXISTS('C_CONTACT_INFO') THEN
    apex_collection.create_or_truncate_collection(p_collection_name => 'C_CONTACT_INFO');
    for y in (select ID,
    NAME,
    PRIMARY_CONTACT,
    PHONE,
    decode(STATUS, 'I', ID, null) status,
    CUSTOMER_ID
    from CONTACTS
    where CUSTOMER_ID = :P2_CUSTOMER_ID)
    LOOP
    apex_collection.add_member(
    p_collection_name => 'C_CONTACT_INFO',
    p_c001 => y.ID,
    p_c002 => y.NAME,
    p_c003 => y.PRIMARY_CONTACT,
    p_c004 => y.PHONE,
    p_c005 => y.STATUS,
    p_c006 => y.CUSTOMER_ID);
    end loop;
    END IF;
    end;
    here is my updated Update_Collection process
    DECLARE
    V_C003 CHAR(1);
    V_C001 NUMBER;
    V_C005 CHAR(1);
    BEGIN
    FOR X IN 1..APEX_APPLICATION.G_F01.COUNT
    LOOP
    V_C001 := APEX_APPLICATION.G_F02(X);
    IF V_C001 = :P2_SELECTED_ID THEN
    --HTP.P('YES');
    V_C003 := 'Y';
    ELSE
    --HTP.P('NO');
    V_C003 := 'N';
    END IF;
    if APEX_APPLICATION.G_F07(X) = APEX_APPLICATION.G_F02(X) THEN
    V_C005 := 'I';
    ELSE
    V_C005 := 'A';
    END IF;
    APEX_COLLECTION.UPDATE_MEMBER (
    P_COLLECTION_NAME => 'C_CONTACT_INFO',
    P_SEQ => APEX_APPLICATION.G_F01(X),
    P_C001 => APEX_APPLICATION.G_F02(X),
    P_C002 => APEX_APPLICATION.G_F04(X),
    P_C003 => V_C003,
    P_C004 => APEX_APPLICATION.G_F05(X),
    P_C005 => V_C005,
    P_C006 => APEX_APPLICATION.G_F06(X));
    END LOOP;
    END;
    I did not make any changes to Save_Contacts process.
    Thanks
    SHY

  • Updateable Report Question.

    Updateable Report Question.
    Currently I am developing an XE application, so I think that is apex 2.0.
    Here is an example of what I wish to achieve.
    Suppose I have an emp table with columns
    dept, id, name and comment.
    I create an SQL report as
    SELECT * from emp;
    I only wish to see the name and comment columns, so in the report attributes I un-tick show the columns dept and id.
    I want the user to be able to update the comment column, So I edit the comment column and in “Tabular Form Element” I change the “Display As” from “Standard Report Column” to “Text Field”
    This now lets me edit the data in the column in the report.
    Now want to add in an on change event to call a javascript routine that will use ajax to do the actual update.
    My problem is that I need to pass in the “hidden” dept and id column values as well as the modified text, thus
    In “Tabular Form Element” – “Element Attributes” add in
    onchange="updateRemarks(#DEPT#, #ID#, this.value)"
    Unfortunately this does not work, apex does not expand the #DEPT# & #ID#, and just passes in the literal text.
    So how can I achieve this?
    Thanks,
    GP>

    The columns and rows have a set format for the Id, so if you know one Id you know the row and the ids of all the other columns.
    As an example, this will show the value of column 6 when you click on any column with the function call in the Element Attributes:
    Script:
    <script type="text/javascript">
    function showCol6(col){
      var col6 = document.getElementById("f06_" + col.id.substr(4,4));
      alert(col6.value);
    </script>Element Attributes:
    onclick=showCol6(this);You could also use a Named Column template, specific to this region, to include the column values directly in the function call, but I think it's best to stick with the ApEx defaults if possible.

  • Tabular Report and Conditionals

    Hi,
    I have a tabular report with the following source:
    select
    "RISK_SEQ",
    "RISK_SEQ" RISK_SEQ_DISPLAY,
    "RISK_PRIORITY",
    "RISK_INFO",
    "RISK_MITIGATION",
    "ONGOING_FLAG",
    "RISK_DATE",
    "WEEK_GROUP_SEQ",
    "CREATED_ON",
    "CREATED_BY",
    "LAST_MODIFIED_ON",
    "LAST_MODIFIED_BY"
    from "#OWNER#"."RISK"
    What I'd like to do is create a conditional so that the items pulled are only items that follow this condition:
    WEEK_GROUP_SEQ = select week_group_seq from week_group where project_seq = :P14_PROJECT_ID and week_index = 0;
    So my question is when I set up my conditional is it similar to what I wrote above? I tried that with Expression 1 = Expression 2 but it didn't work, meaning it didn't return any rows.
    Thanks!
    Jon

    Jon,
    If it was me, I'd simply do it in the WHERE clause for your tabular form.
    Of course you're the only one who can decide how to handle when there is no value in your :p14_project_id item - show all rows or show none.
    For example:
    bq. SELECT "RISK_SEQ", \\ "RISK_SEQ" risk_seq_display, \\ "RISK_PRIORITY", \\ "RISK_INFO", \\ "RISK_MITIGATION", \\ "ONGOING_FLAG", \\ "RISK_DATE", \\ "WEEK_GROUP_SEQ", \\ "CREATED_ON", \\ "CREATED_BY", \\ "LAST_MODIFIED_ON", \\ "LAST_MODIFIED_BY" \\ FROM "#OWNER#"."RISK" \\ WHERE "WEEK_GROUP_SEQ" = NVL((SELECT week_group_seq \\ FROM week_group \\ WHERE project_seq = NVL(:p14_project_id, -1) \\ AND week_index = 0), \\ -1)
    This would show no rows when the item was empty, assuming the values can't be negative.
    Good luck,
    Stew

  • Change table data without tabular report

    Hi,
    I am very new the APEX, and PL/SQL for that matter, but hope this is not too newbie.
    I am trying to make a page with a report where I can change table values by ediiting text in report columns. I have tried to use tabular report but since my source pl/sql includes a search etc I am not able to write SQL which is accepted as SQL updatable report.... this is my source which works with search:
    declare
    q varchar(32767);
    begin
    --Search with no text
    if(:p1_report_search IS NULL) then
    q := 'select * from tpd_delivery_detail';
    --Search According to criteria
    else
    q := 'select *
    from tpd_delivery_detail
    where upper(trim(:p1_report_search)) '||:P1_OPERATOR||' upper(trim('||:p1_in||')) ';
    end if;
    return q;
    end;
    So my first question is if it is possible to write this as SQL updatable report, and if how?
    Then I have a process which start when a button is pressed which is:
    declare
    l_colA tpd_delivery_detail.status%TYPE;
    l_colB tpd_delivery_detail.usr_comment%TYPE;
    begin
    for i in 1..apex_application.g_f01.count
    loop
    select status
    , usr_comment
    into l_colA
    , l_colB
    from tpd_delivery_detail
    where id = apex_application.g_f01(i);
    if l_colA != apex_application.g_f12(i) or l_colB != apex_application.g_f13(i) then
    update tpd_delivery_detail
    set status = apex_application.g_f12(i), usr_comment = apex_application.g_f13(i)
    where id = apex_application.g_f01(i);
    end if;
    end loop;
    end;
    In the process I try to to see if any of the two updatable columns are changed and needs updating, and if so update. Here my problem is the apex_application.g_f01(i) which when i is a number refering to the row...cant get the apex_application.g_f01(i) to refer to the data in the report.
    My question is how I can use the apex_application.g_f (suspect you can only use for tabular report) or if there is another easy way to do the updates I want?
    Best regards
    Alex

    Is it common to implement TDMS without scrambling sensitive data? => This depends on the customer situation , if you feel that you have very sensitive data in sender system and do not want to expose this data to users in receiver system , then for sure scrambling is the way else leave it .
    Or to change table auth groups in one system and not in another?=> I do not understand the need of doing this , can you elaborate a bit more .

  • Creating a tabular report comparing two measures based on accounts

    Hi,
    I'm trying to create a simple GL report but i'm getting stuck. Using BIP with OBIEE 10.1.3.4.
    What i have is some GL data: debit amount (De), credit amount (Cr) and account number (acc). I would like to create a simple tabular report, comparing debit and credit transactions based on accounts, like this:
    ___________LabelA____________LabelB______________ LabelC_______________ Difference(LabelA - LabelB - LabelC)
    Label1___Cr if acc=760___De if acc=400 and 401___De if acc like 30_____________________Calculated value (A-B-C)
    Label2___Cr if acc=750___De if acc=410,411,412___De if acc between 31 and 35__________Calculated value (A-B-C)
    Total (SUM) for A, B, C and Diff
    Sample XML file:
    <ROWSET>
    <ROW>
    <Acc>760</Acc>
    <Debit>7.8248741841E8</Debit>
    <Credit>8.9404379158E8</Credit>
    </ROW>
    <ROW>
    <Acc>750</Acc>
    <Debit>133217.03</Debit>
    <Credit>133217.03</Credit>
    </ROW>
    <ROW>
    <Acc>400</Acc>
    <Debit>4.096061012E7</Debit>
    <Credit>4.094870039E7</Credit>
    </ROW>
    <ROW>
    <Acc>401</Acc>
    <Debit>9018837.64</Debit>
    <Credit>9018837.64</Credit>
    </ROW>
    <ROW>
    <Acc>410</Acc>
    <Debit>1.472907204E7</Debit>
    <Credit>2.945814408E7</Credit>
    </ROW>
    <ROW>
    <Acc>411</Acc>
    <Debit>1.022005997E7</Debit>
    <Credit>1.022005997E7</Credit>
    </ROW>
    <ROW>
    <Acc>412</Acc>
    <Debit>4.908581602E7</Debit>
    <Credit>6.1676647725E8</Credit>
    </ROW>
    <ROW>
    <Acc>30</Acc>
    <Debit>241861.14</Debit>
    <Credit>240128.14</Credit>
    </ROW>
    <ROW>
    <Acc>301</Acc>
    <Debit>6344057.99</Debit>
    <Credit>6344057.99</Credit>
    </ROW>
    <ROW>
    <Acc>310</Acc>
    <Debit>1.4462687928E8</Debit>
    <Credit>1.4462687928E8</Credit>
    </ROW>
    <ROW>
    <Acc>312</Acc>
    <Debit>2.512200946E7</Debit>
    <Credit>2.511277993E7</Credit>
    </ROW>
    <ROW>
    <Acc>350</Acc>
    <Debit>1.4682048826E8</Debit>
    <Credit>1.4682048826E8</Credit>
    </ROW>
    </ROWSET>
    Is that possible? I would appreciate any tips.
    Thank you,
    Jandi

    Hi Luis,
    According to your description, you create a Reporting Services report using Analysis Service Tabular Model as the datasource, now what you want is sum the months value on year level, right?
    In your scenario, you can add the Month field to column group, add a parent group using Year Field and then add a Total on Month group. In this case, Reporting Services will sum the months value on Year level. I have tested it on my local environment, the
    screenshot below is for you reference.
    Reference:Lesson 6: Adding Grouping and Totals (Reporting Services)
    If this is not what you want, please describe your dataset structure, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Tabular Report for Update a single column

    Hello Everyone,
    I have a tabular report which will display 1 column (apart from primary key),
    1. I will display a edit icon (on primary key)
    2. when the user selects this icon, this only row must become updatable (only one column must become text item, so that user can modify the value).
    3. Next this text item, i would like to display save button and cancel button so that user can click one of these buttons next to that particular row.
    Any help would be appreciated.
    Regards
    Anil

    There is no easy way to do this without some incredibly lengthy javascript. Tabular forms still do not give much declarative control to the developer.
    If you are looking to click a button and update one column on one row, it's easiest to change your design to two pages using report and form. Make the first page the report with an Edit button, click the button (nothing more than a link) and it goes to a basic form with only one updateable field. After submit, branch back to the first page. Easy.
    For the end user, there are no more mouse clicks involved in this than what you described originally so it's likely it'll be an acceptable application design change.

  • How to decrease the column size in a tabular report

    Hi ,
    How can i reduce the column size in a tabular report in oracle apex.
    my report is having 90 coulmns and i want that should come in once sceen so i want to decrease the size of columns as well as the font size of values + column_name..
    any suggestion ?
    Thanks
    Nitin

    Hello,
    Oracle APEX OTN Forum is here : Oracle Application Express (APEX)
    Regards

  • How to set the Background Color of a Text Field in a Tabular Report.

    Hello,
    I tried to set the Background Color of a Text Field in a Tabular Report.
    But I was not able to change this colur.
    In the report attributes --> column attributes
    I tried already:
    1. Column Formating -- >CSS Style (bgcolor: red)
    2. Tabular Form Element --> Element Attributes (bgcolor: red)
    but nothing worked.
    Can anybody help me?
    I Use Oracle Apex 2.2.1 on 10gR2
    thank you in advance.
    Oliver

    in "Report Attributes" select the column to move to the "Column Attributes" page. In the "Element Attributes" field under the "Tabular Form Element" region enter
    style="background-color:red;"
    I will also check if there is a way to do this via the template and post here again
    edit:
    in your template definition, above the template, enter the following:
    < STYLE TYPE="text/css" >
    .class INPUT {background-color:red;}
    < /STYLE >
    (remove the spaces after the < and before the >)
    change "class" to the class that the template is calling
    (I'm using theme 9, the table has: class="t9GCCReportsStyle1" so I would enter t9GCCReportsStyle1)
    A side-effect of using this second version is that ALL input types will have a red background color--checkboxes, input boxes, etc.
    Message was edited by:
    TheJosh

  • Validation on Date Field in tabular Report

    Hi All,
    I have manually created the Tabular report and in that I have TWO DATE field
    1)Start Date
    2)End Date
    Now i want to put validation on start date as - Start Date Should Be More than sysdate.
    and validation on End date as - End Date should be More taht Start Date.
    How to put the validation ?

    Manish Jha wrote:
    What is the error you are getting ? Try executing the process in SQL workshop with hard coded values of apex_application.g_f03 and debug the error.
    Thanks,
    Manish
    >What is the error you are getting ? Try executing the process in SQL workshop with hard coded values of apex_application.g_f03 and debug the error.
    Thanks,
    Manish
    Hi manish ,
    I have Used the following code to validate end date should be more less than start date;
    DECLARE
    l_error VARCHAR2 (4000);
    BEGIN
    IF TO_DATE(apex_application.g_f05 (i), 'DD-MON-YYYY ') > TO_DATE (apex_application.g_f04 (i),'DD-MON-YYYY'
    THEN
    l_error :=l_error
    || '</br>'
    || 'Row '
    || i
    ||' ,TEST';
    END IF;
    END LOOP;
    RETURN LTRIM (l_error, '</br>');
    END;
    it's giving the error like :
    ORA-06550: line 16, column 6: PLS-00103: Encountered the symbol "RETURN" when expecting one of the following: begin function pragma procedure The symbol "begin was inserted before "RETURN" to continue. ORA-06550: line 16, column 24: PLS-00103: Encountered the symbol "BEGIN"
    Error ERR-1024 Unable to run "function body returning text" validation.
    What to change in the code?
    Edited by: N.K on Jun 23, 2009 11:43 PM

  • Pie chart to a tabular report

    I have develop a pie chart for Category Sales. If i click on one of the pie (Category) it should open a tabular report where it shows the sale of products in that category. How can i implement this in OBIEE dashboard?

    Hi,
    For your senario you can use Master Detail event feture to implement your solutions.
    Master-detail linking of views allows you to establish a relationship between two or more views such that one view, called the master view, will drive data changes in one or more other views, called detail views.
    More detail refer below linke;
    http://gerardnico.com/wiki/dat/obiee/master_detail
    Mark Helpful/Correct as applicable.
    Regards,
    Kashi

  • Grand Total not coming correctly in Tabular report

    Hi,
    When I extract in Answers the following information:
    Dimension 1
    Dimension 2
    Dimension 3
    Metric 1 (sum)(sum i defined in RPD)
    Metric 2 (count distinct)(count is defined in RPD)
    When doing this, I get the right result for every value of the dimension, but the total of the summation metric is not correct in tabular report
    Can someone help me, please?

    Hi,
    Try this........
    Add this <ReportAggregateEnabled>true</ReportAggregateEnabled> somewhere inside your <ServerInstance> and </ServerInstance>
    on instance config and restart the presentation services.
    Cheers,
    Aravind

  • Calling PL/SQL anonymous block from href in tabular report

    apex 2.2.
    I've got a tabular report where I've added some img columns with a href to call diff processes
    for example
    "<a href="f?p=&APP_ID.:22:&APP_SESSION.:BRANCH_TO_PAGE_ACCEPT|NEW_PROXY:NO:::22,ABCDEF ><img src="/i/asyl.gif" border="0" alt="Runprocess"></a>"
    When clicking on an image column in row x then I would like to run the process - no page submit.
    The pl/sql anonymous block process source calls package.storedproc(p1,p2) - two in parameters
    I'm struggling with the syntax and is wondering if there's a smarter way to achieve the same function
    Any ideas most welcome
    Thanks
    Peter

    &lta href="f?p=&APP_ID.:22:&APP_SESSION.:BRANCH_TO_PAGE_ACCEPT|NEW_PROXY:NO:::22,ABCDEFG" &gt&ltimg src="/i/asylogin.gif" border="0" alt="Process"&gt&lt/a&gtQuestion is how can you pass values from a row in a tabular report to the application process ?

  • Set value for textarea field in tabular report

    Hi all,
    I need some help setting textarea values in a tabular report. The tabular report is for users to be able to build their own ad hoc report, by specifying which columns should be included and filtered. Here are the example tables:
    -- Table that holds all of the data for the report.
    create table vehicle (
      make varchar2(50),
      model varchar2(50),
      type varchar2(50),
      year number);
    insert into vehicle values ('Toyota','Camry','Sedan','2008');
    insert into vehicle values ('Toyota','4Runner','SUV','2008');
    insert into vehicle values ('Honda','Civic','Compact','2011');
    insert into vehicle values ('Honda','Accord','Sedan','2010');
    insert into vehicle values ('Ford','F150','Truck','2011');
    -- Table that holds the columns that are available to be filtered in report.
    create table vehicle_cols (
      col_id varchar2(50),
      col_label varchar2(50));
    insert into vehicle_cols values ('make','Vehicle Make');
    insert into vehicle_cols values ('model','Vehicle Model');
    insert into vehicle_cols values ('type','Vehicle Type');
    insert into vehicle_cols values ('year','Vehicle Year');
    -- Table that holds filters saved by user.
    create table vehicle_user_saved (
      saved_rpt_name varchar2(50),
      col_id varchar2(50),
      col_value varchar2(50));
    insert into vehicle_user_saved values ('Saved Report One','make','Toyota');
    insert into vehicle_user_saved values ('Saved Report One','make','Honda');
    insert into vehicle_user_saved values ('Saved Report One','model','Sedan');
    insert into vehicle_user_saved values ('Saved Report Two','make','Honda');
    insert into vehicle_user_saved values ('Saved Report Two','year',2010);And below is the source query for the region. The textarea value is initially set to null.
    -- Region Source for specifying query parameters.
    select
      col_label,
      apex_item.checkbox(1,'#ROWNUM#','CHECKED') as include_cols,
      apex_item.hidden(2,col_id)
      || apex_item.textarea(3,null,2,100) as filter_cols
    from
      vehicle_cols;When a user clicks the button to load the parameters for a report they have previously saved, I'd like to change the values in the textarea field from null to the saved values from the vehicle_user_saved table so the user can see the parameters and run the report, or modify the parameters if necessary.
    I thought I could run a PL/SQL process (After Footer) when the button is clicked to populate these textarea fields, but the test below doesn't do anything:
    begin
      apex_application.g_f03(1) := 'Hello';
    end;For example, when a user selects to load "Saved Report One," the following parameters should be loaded into the textarea fields:
    Column >> Filtered Columns
    Vehicle Make >> Honda, Toyota
    Vehicle Model >> Sedan
    Vehicle Year >> Null
    Vehicle Type >> NullCan someone help me out? I wouldn't think I need Ajax for this since it's ok to be processed after the button click. But if I do need to use Ajax, I definitely could use some help with it, as I've never used Ajax before. I've setup this example in my hosted account to help.
    Site: http://apex.oracle.com
    Workspace: MYHOSTACCT
    Username: DEVUSER1
    Password: MYDEVACCT
    Application: report parameters
    Thanks in advance!
    Mark
    APEX 4.1, Oracle 11g

    Hi, thanks for your response.
    I'm not adding any new rows, I'm just trying to change the values of the textarea fields in the tabular report when the user chooses to load his/her saved parameters. The default for the textarea field in all rows is null, because I assume users will want to start building the report from scratch. However, when the user clicks the button to load his/her saved values, I want to overwrite the null values with new values. How can I do that?
    Thanks,
    Mark

  • How to assign a default value on a Tabular Report?

    version 3.2.1
    I have a column in a Tabular Report (SQL Query (updateable report) ) that I would like to default to a value every time that the Add Rows button is clicked. This column needs to have the same value for every row.
    How do I set a default value on the column?
    Thanks,
    Joe

    I've run into the same problem. The 'Default' value isn't even appearing in the form, let alone getting stored.
    I'm not 100% certain (I'm still new to Apex too), but I think that the 'Default Type' and 'Default' value fields of the 'Tabular Form Element' might only apply to new records, ie when using the Tabular Form to create new records.
    In my case, I'm displaying existing records and I've been trying to enter a default new value for a particular field, ie change the value in the field for existing records from null to today's date. I couldn't get it to work and the more I think about it the more I realise that it is probably not the right way to do it.
    One alternative would be to put the SYSDATE into the source SQL (noting that changing an existing tabular form definition would cause an error, so I would have to create a new tabular form). But another (and I think preferable for me) option is to create a trigger that will put the SYSDATE into the field as each record is updated.
    Regards,
    Peter

Maybe you are looking for