Setting fields defined in SQL updateable report with a process

I have SQL statement defined in a SQL updateable report with hidden fields. I want to be able to update these hidden fields with values from other displayed fields on the page. How do I reference these hidden items - I have referencign them as :my_field but get and error telling me thats its underfined.

But, the reason I am doing this is because I want to format the page with 6 columns in one <TD> cell with some extra text and formatting etc - I don't want 1 column per <TD>. Thats why I am using the APEX_ITEM.TEXT so I can format the 1 <TD> the way I want it (with 6 columns it there).
In the short term can you tell me how to reference hidden fields please.
I will create the case in apex.oracle.com in the next few days to make it clearer.
P.S. see my previous post: SQL QUERY updateable report with APEX_ITEM fields to update hidden columns

Similar Messages

  • SQL Query updateable report with row selector. Update process.

    I have a SQL Query updateable report with the row selector(s).
    How would I identify the row selector in an update process on the page.
    I would like to update certain columns to a value of a select box on the page.
    Using the basic:
    UPDATE table_name
    SET column1=value
    WHERE some_column=some_value
    I would need to do:
    UPDATE table_name
    SET column1= :P1_select
    WHERE [row selector] = ?
    Now sure how to identify the [row selector] and/or validate it is checked.
    Thanks,
    Bob

    I don't have the apex_application.g_f01(i) referenced in the page source...In the page source you wouldn't find anything by that name
    Identify the tabular form's checkbox column in the page(firebug/chrome developer panel makes this easy)
    It should be like
    &lt;input id=&quot;...&quot; value=&quot;&quot; type=&quot;checkbox&quot; name=&quot;fXX&quot; &gt;we are interested in the name attribute , get that number (between 01 and 50)
    Replace that number in the code, for instance if it was f05 , the code would use
    apex_application.g_f05
    --i'th checked record' primary keyWhen you loop through a checkbox array, it only contains the rows which are checked and it is common practice to returns the record's primary key as the value of the checkbox(available as the the i'th array index as apex_application.g_f05(i) , where i is sequence position of the checked row) so that you can identify the record.

  • Is there a way to create SQL Dev reports with validated binds?

    Is there a way to create SQL Dev reports with validated binds similar to the way user defined extensions can have <prompts> with a <value> that is a SQL statement returning a list of possible values?
    This sure would make select appropriate values for binds in reports easier and less error prone.

    Maybe a forum search on "Windows registry" would turn up some useful things. You're not the first to ask this. You might save yourself and everyone else some time if you'd simply do that.

  • Wwv_flow_item.popupkey_from_query in combination  SQL updateable report

    Hi,
    I found out that wwv_flow_item.popupkey_from_query in combination 'SQL updateable report' does not work. It does not display the popup. It creates a extra column with the message below.
    In combination with 'SQL query' it works. Is it possible to make it work in combination with updatable reports? If so can you tell me how?
    Thanks in advance,
    Patrick
    Message:
    <NOSCRIPT>JavaScript not supported</NOSCRIPT><SCRIPT LANGUAGE="JavaScript1.1"> <!-- Comment out script for old browsersfunction genList0_f05_0() {           w = open("wwv_flow_utilities.gen_popup_list" +                       "?p_filter="  +                       "&p_name=" + escape('f05') +                       "&p_element_index=" +  escape ('0') +                       "&p_hidden_elem_name=" + escape('f04') +                       "&p_form_index=" + escape('0') +                       "&p_max_elements=" + escape('') +                       "&p_escape_html=" + escape('') +                       "&p_ok_to_query=" + escape('YES') +                       "&p_flow_id=" + escape('2648') +                       "&p_page_id=" + escape('8') +                       "&p_session_id=" + escape('276014029277327813') +                       "&p_eval_value=" + escape('') +                       "&p_return_key=YES" +                       "&p_translation=" + escape('NO') +                       "&p_lov=select+short_name,+id+from+rio_reps",                       "winLov",                       "Scrollbars=1,resizable=1,width=400,height=450");           if (w.opener == null)             w.opener = self;           w.focus();         }//--> </SCRIPT><div nowrap><INPUT TYPE="hidden" NAME="f04" VALUE="" id="0" ><INPUT TYPE="hidden" NAME="p_arg_names" VALUE="0"><INPUT TYPE="text" NAME="f05" id="0" disabled onfocus="this.blur()" ><IMG SRC="/i/list.gif" alt="LIST" border="0" align=bottom></div>

    you're seeing that error because those project marvel updatable report regions expect a regular query that they then turn into an updatable report for you at runtime. you're kind of confusing things when you try to provide it with your own calls to wwv_flow_item in there. the way to really take control of the way your updatable report will render is to code it as a regular report region in which you make your own wwv_flow_item calls. an easy way to generate that region code would be to step through our updatable report wizard and let marvel do it for you. the first screen of that updatable report wizard presents you with the option of having the flow builder "Use flows built in updatable query page process" or "Generate PL/SQL logic directly into page process". if you use this second option, your resulting query will have those calls to the wwv_flow_item package in it. so let's say you step through the wizard to generate an updatable report for the SCOTT.EMP table. you'd probably get something like this...
    select
    wwv_flow_item.hidden(1,EMPNO)||
    wwv_flow_item.text(2,EMPNO) EMPNO,
    wwv_flow_item.text(3,ENAME) ENAME,
    wwv_flow_item.text(4,JOB) JOB,
    wwv_flow_item.text(5,MGR) MGR,
    wwv_flow_item.text(6,HIREDATE) HIREDATE,
    wwv_flow_item.text(7,SAL) SAL,
    wwv_flow_item.text(8,COMM) COMM,
    wwv_flow_item.text(9,DEPTNO) DEPTNO
    from #OWNER#.EMP
    ...as your query in that report region. you could then tweak your wwv_flow_item calls to generate other item types like so...
    select
    wwv_flow_item.hidden(1,EMPNO)||
    wwv_flow_item.text(2,EMPNO) EMPNO,
    wwv_flow_item.text(3,ENAME) ENAME,
    wwv_flow_item.textarea(4,job) JOB,
    wwv_flow_item.text(5,MGR) MGR,
    wwv_flow_item.date_popup(4, null,HIREDATE) HIREDATE,
    wwv_flow_item.text(7,SAL) SAL,
    wwv_flow_item.text(8,COMM) COMM,
    wwv_flow_item.popupkey_from_query (1,deptno,'select dname, deptno from dept') DEPTNO
    from #OWNER#.EMP
    ...so now you'd have the an updatable report that used a date picker, a text area, and a popup key LOV as opposed to the one with straight text areas that was generated by default. take a look at the docs for the wwv_flow_item api at http://marvel.oracle.com/pls/otn/f?p=4200:58 to see just how much control you'd have.
    hope this helps,
    raj

  • Disabling the dropdown LOV for existing records in SQL updateable report

    Hi All -
    I have a SQL updateable report which has 3 columns. One of the column is a named-LOV. This report also provides the functionality of inserting new rows.
    Is there a way to only show the named-LOV dropdown list for only the new records to be inserted i.e. when we click on "Add Row". For existing records, I donot want to show the dropdown.
    Please provide your thoughts.
    Thanks,
    -Seenu

    Thanks Robert -
    I guess I didn't put my question right in my earlier posting.
    Basically this report provides updates and inserts both (Its a SQL Updateable report)
    One of the column is a Named-LOV (select list dropdown). For the existing records shown in this report, this select list should be disabled. But for the new records while inserting a new row into this report, the select list dropdown should be shown to the user with an option to choose values from selectlist.
    Thanks,
    -Seenu

  • Sql Query(Updateable Report) with pagination

    Hi,
    We're on APEX 3.2 I have a question on Sql Query(Updateable Report) and pagination. I have an updateable report which we have set to show 20 rows. When the userwhi has more than 20 rows enters the data and clicks next the data disappears. I have been reviewing other posts, but haven't come to a clear conclusion on how to prevent this from happening. I have been trying to use javascript to show a save popup when clicking 'Next' Any help is appreciated.
    Thanks,
    Joe

    any ideas?

  • Conditional display of a column link in sql updateable report

    Hi There,
    I've attempted to look thru the Apex forum about using an Authorization Scheme in an SQL Query (Updateble Report) where I can conditionaly enable (display) a column link based upon a value in the report but alas I cannot find a solution.
    What I have is a SQL Query (updateable report). What I want to achieve is dependant on the value of one of the columns in the report query conditionaly display a column link for the row being displayed. For example if the report dispayed the data from emp, dept only display a column link for rows where the deptno = 100 otherwise don't display the column link. Is this possible to achieve?
    I've tried to define in the authorizatuon scheme in the where clause of an SQL Statement to reference the report column as #deptno# but this doesn't work.
    TIA

    Boketi,
    I was unsuccessful yesterday in demoing what I believe you want to achieve. It appears that an authorization scheme will not process row by row within a standard report so as to allow a conditional display of a link or any other column attribute. You can conditionally display a column by the use of a page item but this method appears to be all or nothing.
    I was successful when I coded the return of the empno via a Case statement but the Link still appeared even though there was no value (empno) to link with. So essence the link to you to a blank for with no PK to read the database by.
    SELECT CASE WHEN deptno = 10 THEN empno ELSE NULL END empno,
           ename,
           job,
           hiredate,
           sal,
           comm,
           deptno,
           phone_nbr
    FROM   empJeff

  • Updateable report with javascript calculation

    Hi all,
    I have an updateable report where the user fills in one column. I then need a simple multiplication based on the user filled in column and another column to populate into the final column.
    I have managed to do this using the following javascript in the page header
    <script language="JavaScript" type="text/javascript">
    <!--
    function calcit(pThis)
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    html_GetElement('f03_'+vRow).value = html_GetElement('f02_'+vRow).value * html_GetElement('f01_'+vRow).value;
    //-->
    </script>Column f01 is a value in a table based on the SQL to create the report (AQLSCORE)
    Column f02 is what the user fills in (AQLERRORS)
    Column f03 is where the calculation is populated (AQLTOTAL)
    With AQLERRORS element attribute = onchange="calcit(this);"
    The problem I am having with the above is that it only works when f03 is a text field (i.e. the user can change the value) I would like the column to be non-editable (the user should not be able to change this field). If I make the column Display as text (saves state) the calculation returns a NaN error.
    When I change the calculation from a * to a + the value returned is 1undefined showing that the value from f01 is undefined
    Demo app
    http://apex.oracle.com/pls/apex/f?p=15328
    username: demo
    password: demo
    There are 2 pages one where the calculation is working but with AQLSCORE as a text field and another where it is returning NaN but with AQLSCORE as Display as text (Saves state)
    Any ideas how I can perform the calculation and protect the AQLSCORE column from the user
    Kind regards,
    Alex
    Edited by: user10942729 on 30-Jul-2010 08:12

    Thank you for your response.
    I have corrected the code as you suggested however it still causes the same error.
    I have very limited knowledge of java and html (probably not a good start I realise) but it seems that the javascript cannot see(??) the value in the AQLScore (f01) column when it is Display as Text(saves state)
    If I change the calculation to just make the value = the AQLScore (f01) without the parseInt syntax 'undefined' is returned. With the parseInt 'NaN' is returned.
    I will keep looking for an answer
    Cheers,
    Alex

  • Updateable  report  with CHECKBOX - Error in MRU: row= 1, ORA-01403:

    Hi All,
    Lets say I have a table tab_1 with column return_flg
    I have an updateable report - tabular form.
    For the return_flg column I have:
    I have Tabular Form Element attribs:
    Display As Standard Report Column
    Default Type No Default
    Default
    Reference Table Owner - no reference selected
    Reference Table Name TAB_1
    Reference Column Name RETURN_FLG
    But there is no CHECKBOX display type..so I used HTMLDB_ITEM.CHECKBOX in the SQL...
    Select ID, .....
    HTMLDB_ITEM.CHECKBOX(1,RETURN_FLG) "RETURNED"
    from tab_1 where order_id = '1'
    How do I get it to update with the MRU?
    I get Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01403: no data found, update TEMP_USER.TAB_1 set "ID" = :b1
    Thanks for the help, BillC
    Message was edited by:
    bcarlis_2000

    No, I had an updateable report that works great..
    Lets say
    Select ID, item_name
    from TAB_1 where ID = '1'
    Updates great!
    then added column to the table to track if item was returned.
    RETURNED_FLG
    changed select of same form to:
    Select ID, item_name
    from TAB_1 where ID = '1'
    HTMLDB_ITEM.CHECKBOX(1,RETURNED_FLG) "RETURNED"
    Now, it updates great IF the checkbox is not checked but gives the error if checked.

  • How to fix a report textbox aggregate expression error in SQL server reporting with multiple datasets?

    I have a SQL Server Reporting Services report that has a textbox within a Report with variations of the following expression 
    =Sum(IiF(Fields!RegisterID.Value = 6000, 1, 0) 
    and 
    Iif(Fields!PointID.Value = 500, 1, 0)) / Sum(Iif(Fields!PointID.Value = 500, 1, 0)) 
    I see the following error when I try to preview the report: 
    The Value expression for the text box ‘Textbox2’ uses an aggregate expression without a scope. A scope is required for all aggregates used outside of a data region unless the report contains exactly one dataset. 
    What am I missing in this this expression to make it run incorrectly

    Can you include dataset name in your sum functions? e.g. Sum(IiF(Fields!RegisterID.Value = 6000, 1, 0) 
    and 
    Iif(Fields!PointID.Value = 500, 1, 0)) should include your dataset name as Sum(IiF(Fields!RegisterID.Value = 6000, 1, 0) and Iif(Fields!PointID.Value = 500, 1, 0),"datasetname")Like wise  Sum(Iif(Fields!PointID.Value = 500, 1, 0))  should also have dataset name Sum(Iif(Fields!PointID.Value = 500, 1, 0),"datasetname") 
    Gaur

  • Updateable Report with pagination(APEX 3.2)

    Hi,
    I am working on APEX 3.2 and I have a question on Sql Query(Updateable Report) and pagination. I have an updateable report which we have set to show 100 rows. When the user has more than 100 rows enters the data and clicks next the data disappears. How can i save first 100 records once i click next ?. Any suggestions will be appreciated.
    Thanks,
    Greenhorn

    Here is what I did to get it to work.
    1. Copy xmlparserv2.jar from my ORACLE_HOME/oc4j/lib directory to my glassfish domains/domain1/applications/fop/WEB-INF/lib directory.
    2. Added the following two lines to the glassfish domains/domain1/fop/apex_fop.jsp before the driver.run() line
    out.clear();
    out = pageContext.pushBody();The second part of solution I found on another forum page.

  • How to set more then three items in report with a form

    Hello,
    I have an interactive report with a form. In the interactive report i want to set the more than three form items, how can i do this.
    can anyone help me ot with this.
    Thanks,
    Orton

    More than 1 name/value pair can be entered for each item of the column link: just separate them with commas (','), and ensure that the order of the names and values matches.
    (Please change the handle in your forum profile to something better than "user11940294", and in search the forum before posting: this topic has occurred a number of times.)

  • Running Reports with a Process Definition/XMLPublisher App Engine

    Is there any documentation for creating the Application Engine to run XMLP reports from the PeopleSoft menu?  We are converting our Crystal reports to XMLP and I get the report to run fine through Report Viewer but the user wants to access it on the report menu.  The Data Source is query and the query has 7 run control prompts.  I can see how other report App Engines run using three fields UserID, Run Control, Language but this query would have seven prompts to pass from the run control page to the query/report.  I'm assuming I would have to use bind variables.  I don't want to use the method of passing three prompts from the run control table and then setting criteria in the query but to just pass all of the prompt values directly to the report because the query is a union so that complicates the process.  I was wondering if there is a paper, documentation or something to explain the process for passing the prompts (through peoplecode) to the report when running the report from the process definition to the App Engine from the menu?

    Anil and Rohit,
    Thank you both for the help and getting back to me timely. So let me be sure I understand. When running my report in JDeveloper, I am not able to run the rwservlet because it is not deployed on the 9iDS instance of OC4J that JDeveloper uses, because JDeveloper uses a lightweight version of the 9iDS OC4J containers (Or rather, is it not even a version of 9iDS OC4J?). So, I have to start a separate 9iDS OC4J instance which does have rwservlet deployed. So if I try the unsupported trick and deploy reports_ids.ear to the same OC4J instance that Jdeveloper is using, I may be able to get everything working with one instance of OC4J. If I do, what about when I deploy my report to a production 9iAS server? I'm thinking that the 9iAS instance of OC4J would have the rwservlet deployed, so my application would be fit for this environment, and I would still be running everything on one instance of 9iAS OC4J. I also have the idea, for development, of instead of running my application and reports using the internal JDeveloper OC4J instance, I would use a standalone 9iDS OC4J instance on my machine and just run everything (my web application and reports) on this. Do you think this would be feasible? Should I be able to use the JDeveloper debugger to remotely debug all this?
    Thanks and sorry for so many questions!
    Bill

  • SQL QUERY updateable report with APEX_ITEM fields to update hidden columns

    Here is my SQL query:
    select
    "EMPLOYEE_ID",
    "PUBLICATION_ID",
    "TITLE",
    '<NOBR>1. ' || APEX_ITEM.TEXT(101,CODE1,2,3) || '  ' ||
    APEX_ITEM.TEXT(102,CODE1_PCT,2,3) || ' %</NOBR><BR>' ||
    '<NOBR>2. ' || APEX_ITEM.TEXT(103,CODE2,2,3) || '  ' ||
    APEX_ITEM.TEXT(104,CODE2_PCT,2,3) || ' %</NOBR><BR>' ||
    '<NOBR>3. ' || APEX_ITEM.TEXT(105,CODE3,2,3) || '  ' ||
    APEX_ITEM.TEXT(106,CODE3_PCT,2,3) || ' %</NOBR>' rfcd_codes,
    APEX_ITEM.DISPLAY_AND_SAVE(100,CODE1) hidden_rfcd1,
    mycomments
    from "#OWNER#".mytable
    I have 3 code fields with their percentages (_pct). I have concatinated them so I can format them nicely on the page.
    I have create a process 'on-submit and before computations and validations' where I was hoping to assign my table columns (eg the code and pct columns) from the APEXITEMs in my select statement.
    I can get the values from these (APEX_ITEM) fields by referencing APEX_APPLICATION.G_F10(i) etc.... so thats cool.
    But my problem is how do I reference the table columns so I can assign them.
    I am using a 'Multi Row Update' process to perform the update to the database.
    P.S. mycomments column is working fine. It gets updated nicely but its just those other APEX_ITEM fields.

    I don't have the apex_application.g_f01(i) referenced in the page source...In the page source you wouldn't find anything by that name
    Identify the tabular form's checkbox column in the page(firebug/chrome developer panel makes this easy)
    It should be like
    &lt;input id=&quot;...&quot; value=&quot;&quot; type=&quot;checkbox&quot; name=&quot;fXX&quot; &gt;we are interested in the name attribute , get that number (between 01 and 50)
    Replace that number in the code, for instance if it was f05 , the code would use
    apex_application.g_f05
    --i'th checked record' primary keyWhen you loop through a checkbox array, it only contains the rows which are checked and it is common practice to returns the record's primary key as the value of the checkbox(available as the the i'th array index as apex_application.g_f05(i) , where i is sequence position of the checked row) so that you can identify the record.

  • How to set a new formula to a report with java

    Post Author: gionnyDeep
    CA Forum: Data Connectivity and SQL
    Hi all
    I use CR 4 eclipse and i need to set a formula to a reportClientDocument but actually exists just the setRecordSelectionFormula that does not what i need.
    Actually i need to define a formula and not a record selection formula.Exists a method in any api of cr4E that does this stuff?
    Regards
    Sorry for my english

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

Maybe you are looking for