Updatable report with row data dependend dropdown box values

Hello,
Oracle 10, Apex 4.0.
Working on this query:
SELECT waarde1,waarde2,
APEX_ITEM.POPUP_FROM_QUERY (3,waarde3,'select select ((waarde1-0.1)+(level*0.1)) d, ((waarde1-0.1)+(level*0.1)) r from (select * from lov_test where waarde1 = c001) connect by level <= (((waarde2-waarde1) *10)+waarde1)') waarde3
FROM lov_test
ORDER BY 1
The idee is to get a popup or dropdown box for "waarde3" in witch the selectable values are waarde1 to waarde2 rising with 0.1 at a time.
And this in a multi row updatable report.
Example
waarde1 waarde 2 waarde3(possible values in the dropdown box)
1 4 1-1.1-1.2 ... 3.8-3.9-4.0
3 7 3-3.1-3.2 ... 6.8-6.9-7.0
The error I get is:
Error in init lov: ORA-00936: Ontbrekende uitdrukking. p_lov:select select ((waarde1-0.1)+(level*0.1)) d, ((waarde1-0.1)+(level*0.1)) r from (select * from lov_test where waarde1 = c001) connect by level <= (((waarde2-waarde1) *10)+waarde1)wwv_flow_security.g_security_group_id:1264429985836387wwv_flow_security.g_curr_flow_security_group_id:1264429985836387 Unable to initialize query.
For every row in the table lov_test.

Hi,
I think this is a misunderstanding.
Your code is:
SELECT waarde1,waarde2,
APEX_ITEM.POPUP_FROM_QUERY (3,waarde3,'select select ((waarde1-0.1)+(level*0.1)) d, ((waarde1-0.1)+(level*0.1)) r from (select * from lov_test where waarde1 = c001) connect by level <= (((waarde2-waarde1) *10)+waarde1)') waarde3
FROM lov_test
ORDER BY 1... and should be:
SELECT waarde1,waarde2,
APEX_ITEM.POPUP_FROM_QUERY (3,waarde3,'select ((waarde1-0.1)+(level*0.1)) d, ((waarde1-0.1)+(level*0.1)) r from (select * from lov_test where waarde1 = c001) connect by level <= (((waarde2-waarde1) *10)+waarde1)') waarde3
FROM lov_test
ORDER BY 1See?
'select select ((...' instead of 'select ((...'
That should explain the "missing expression" error, as there is nothing to follow the first select.
Looks like a simple copy/paste mistake :)

Similar Messages

  • Problems with updatable Report - add rows

    Hello,
    I've an updatable report with about 650 rows.
    When I press the button "add rows" there is no empty row displayed.
    Is there a limit of rows for the updatable report?
    The report row limit is 1000 and the rows per page are 50.
    Thanks in advance
    Ulrike

    Hello Aiman,
    First ensure that your app is not pointing to .NET framework 4.0 client install.  I believe you are talking about VS2010 and CR4VS2010.
    You need to go to properties of the project --> 'Application' tab --> Target framework --> select frame work 4.0.
    You should be able to see the viewer in reporting section. Note # 1529493 have the details. Check:
    http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/f64f7c55-bbda-42f9-9d6e-a3c1e8f56300
    Hope it helps!
    Thanks.
    Edited by: A G on Nov 24, 2010 8:37 PM

  • GL Trial Balance Report with Effective Dates as Parameters

    We have a requirement to show the GL Trial Balance report with Effective dates as Parameters.
    Current Analysis:
    The Journals get updated with corresponding CCID in GL_BALANCES table when the Journal is posted. GL_BALANCE is SOB specific, if the SOB has month as period then the balances in GL_BALANCES would get updated against the month(period).
    To overcome the period problem, we explored the option of using a View based on GL_JE_HEADERS and GL_JE_LINES for 'Posted' Journal Batches of a SOB. We are checking whether the GL_JE_HEADERS.default_effective_date lies between the :p_from_date and :p_to_date which is sent to the Report as a parameter. The above idea does not return expected data when the custom Trial Balance Report is run.
    Following is the Query being used:
    SELECT cc.segment4 ACCOUNT, bal.code_combination_id,
    bal.begin_balance_dr
    + SUM (NVL (gljel.accounted_dr, 0)) opening_bal_dr,
    bal.begin_balance_cr
    + SUM (NVL (gljel.accounted_cr, 0)) opening_bal_cr,
    ffv.description,
    (SELECT SUM (NVL (gljel.accounted_dr, 0))
    FROM gl_je_headers gljeh,
    gl_je_lines gljel,
    gl_code_combinations gcc
    WHERE gljeh.default_effective_date BETWEEN :p_from_date
    AND :p_to_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.code_combination_id = gcc.code_combination_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND gljeh.actual_flag = 'A'
    --AND gljel.code_combination_id =
    -- bal.code_combination_id
    AND gcc.segment4 = cc.segment4
    GROUP BY gcc.segment4) c_dr,
    (SELECT SUM (NVL (gljel.accounted_cr, 0))
    FROM gl_je_headers gljeh,
    gl_je_lines gljel,
    gl_code_combinations gcc
    WHERE gljeh.default_effective_date BETWEEN :p_from_date
    AND :p_to_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.code_combination_id = gcc.code_combination_id
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND gljeh.actual_flag = 'A'
    AND gcc.segment4 = cc.segment4
    GROUP BY gcc.segment4) c_cr
    FROM gl_period_statuses per,
    gl_code_combinations cc,
    gl_balances bal,
    gl_je_headers gljeh,
    gl_je_lines gljel,
    fnd_flex_values_vl ffv,
    fnd_flex_value_sets ffvs
    WHERE cc.chart_of_accounts_id = :p_chart_of_accts_id
    AND bal.currency_code = :p_currency
    AND bal.actual_flag = 'A'
    AND bal.period_name = per.period_name
    AND cc.template_id IS NULL
    AND cc.code_combination_id = bal.code_combination_id
    AND per.set_of_books_id = :p_set_of_books_id
    AND per.application_id = 101
    AND :p_from_date BETWEEN per.start_date AND per.end_date
    AND gljeh.period_name = per.period_name
    AND gljeh.default_effective_date <= :p_from_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'JSWEL_ACCOUNT'
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND cc.summary_flag = ffv.summary_flag
    AND cc.segment4 = ffv.flex_value
    AND gljeh.actual_flag = 'A'
    AND gljel.code_combination_id = bal.code_combination_id
    GROUP BY bal.begin_balance_dr,
    bal.begin_balance_cr,
    cc.segment4,
    ffv.description,
    bal.code_combination_id
    Kindly suggest if I am missing anything. I am sure that the great guns here can help me out.
    Thanks
    Sumit

    suggest to create customize TB report.

  • Performance: How to manage large reports with high data volume

    Hi everybody,
    we actually make some tests on our BO server system, to define limitations and oppertunities. Among other things we constructed a large report with a high data volume (about 250.000 data records).
    When executing the query in SAP Query Designer it takes about 10 minutes to display it. In Crystal Reports we rebult the row and column structure of the query. The data retrieval in Crystal Reports Designer last about 9 minutes - even faster as in the query.
    Unfortunately in BO InfoView the report is not displayed. After 30 minutes of loading time we get a timeout error RCIRAS0244.
    com.crystaldecisions.sdk.occa.managedreports.ras.internal.ManagedRASException:
    Cannot open report document. ---
    The request timed out because there has been no reply from the server for 600.000 milliseconds.
    Also a refresh of an report with saved data is not possible.
    Now we are asking us some questions:
    1. Where can we set the timeout for InfoView to a value larger than 30 minutes?
    2. Why is InfoView so slow compared to Crystal Designer? Where is the bottleneck?
    3. Whats the impact of SAP single sign-on compared to Enterprise logon on the performance?
    Thanks for any helps and comments!
    Sebastian

    Hi Ingo,
    thank you for your reply.
    I will check the servers and maybe change the time limits.
    Unfortunately we have a quite slow server system that probably cause this timeout. In CR Designer we have no problems, its really quick. Is it to expect that CR Designer and InfoView have almost the same performance?
    Another nice point: When we execute the query in SAP BEx Query Designer it takes about 10 minutes to open it, in Crystal Designer it needs just about 5-6 minutes. We integrated exactly the same fields in the report, which exist in die SAP BEx query.
    What may cause the difference?
    - Exceptions and conditions in the query?
    - Free characteristics in the query?
    - anything else?
    Best regards,
    Sebastian

  • Interactive report with row selector?

    I've just upgraded to APEX 3.1. I've been playing with all those amazing new features of interactive report but I miss one very important for me - a row selector. I used to have the traditional reports based on updatable queries with row selector that enabled multi-row-delete operations. Is it still possible to include a row selector to IRR so as to accomplish MRD?
    Thanks,
    Zdenek

    Hi,
    this circumstance --> "missing row selector" raises another big problem.
    My Question now:
    I can't do row-specific processes now as in v3.0 where i could start a single process for every marked row.
    Is there any feature (that i don't know yet) to integrate process-buttons for every row in a report? Mean this button should start a process for the row, where the button was pressed.
    I didn't find any information about this feature.
    Thank you!

  • How to create a report with survey data

    Hi All,
    I need to create a report with survey data in below format. Can anyone help me how to display the summary in this format.
    Swapna

    Hi Swapna,
    According to your description, you want to create a report with survey data and display the summary.
    Reporting Services is used for rendering the report with data retrieved from datasource. In Reporting Services, we can retrieve data from the datasource then design a report, after the report processed, data is fixed on the report. So it’s not supported
    to have the end users selection and do summary. For your requirement, it’s can’t be achieved currently.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Billing report with due date field

    Dear Friends,
    Can you please tell the logic of Billing report with due date field.
    Input.  billing document no, date range, sales organisation
    Output : billing document no, sales organisation, Amount. Due date.
    If any clarification required, Please let me know.
    Thanks in advance
    Ranjan

    Is it VF05 is suffiant for your purpose?
    use further selection criteria tab.
    Amit.

  • Stock Aging report with current date

    Dear Experts
    Can we able to take stock aging report with current date?
    Thanks&Regards,
    Vinoth Raj K

    You're posting in the Portuguese B1 space.
    You might want to post in the English one: SAP Business One Application

  • Error when executing report with large data selection in Infoview

    Hello,
    This is regarding Error we are facing in BO system.
    We have installed:
    Business Object Enterprise XI 3.1
    Crystal report 2008
    When we are trying to execute report in BO INFOVIEW on production  system, we are facing following error (After 10 mins of execution).
    ========================================================================================
    Windows Internet Explorer
    Stop running this script?
    As script on this page is causing Internet Explorere to tun slowly.
    If it continues to run, your computer might become
    unresponsive.
    ========================================================================================
    Please note: We are getting data via Crytal report. Only, execution in infoview is giving error.
    If we are executing same report with less data(E.g a days data) then we are getting output in Infoview.
    However, when we execute report with more data (6 months data) then we are getting attached error after 10 min of execution time.
    Helpfull reply will be awarded.
    Regards.
    Edited by: Nirav Shah on Dec 14, 2010 6:19 AM

    If it is indeed a server timeout issue, the following document might be usefull: http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/606e9338-bf3e-2b10-b7ab-ce76a7e34432
    It's about Troubleshooting Time-outs in BusinessObjects Enterprise XI, but  a lot is still applicable.
    Hope this helps...
    Martijn van Foeken
    Focuzz BI Services
    http://www.focuzz.nl
    http://nl.linkedin.com/in/martijnvanfoeken
    http://twitter.com/mfoeken

  • Using Fields in Reports with stored Data

    Hello,
    i like to use fields in Reports with saved Data in it.
    Is this possible ?
    Example:
    A Invoicereport with saved Data  in a File. Now i like to get the Field Invoice_ID to use this in VB.net.
    Any Idea ?
    VS2008 with CR_reports in 8.5
    Thanx

    You wrote:
    Example:
    A Invoicereport with saved Data in a File. Now i like to get the Field Invoice_ID to use this in VB.net.
    You can export a report with saved data and then change the filtering without hitting the DB again. If you are asking if using a flat file as the data source there are multiple ways to do this. Define an ODBC data source to the file and specify the sturcture, or using ADO.NET and a record set, or using XML as the data source. Lots of ways in newer versions of CR. 8.5 was limited so the ODBC example is your best option.
    Or if you are asking how to get the data from the report you can use REadRecords. Not sure if 8.5 has this functionality though. It's way past it's end of life so I can't look.
    You wrote:
    VS2008 with CR_reports in 8.5
    Not supported, 8.5 has no .net assemblies and no RDC, only option would be to use RAS to make changes or reading records so you need to upgrade.

  • Publication for Deski report with multiple data providers

    Hi,
    Has anyone been able to get a publication working that uses a Deski report with multiple data providers as the source? I'm trying to get a publication working that uses dynamic recipients and personalization. When I try to schedule the publication, I get the error "Object not found". 
    Thanks,
    Debbie

    Debbie,
    That's standard.
    It's useful for emulating outer joins in reports.
    Say you've got a sales report where you want to display all 12 months of the year in a crosstab whatever month you run in.
    We're only in May at the moment though. With one data provider (SALES), you'll get a crosstab with just up to May for your months.
    If you create a separate data provider called MONTHS to return the months in the current year, you will then have a merged dimension of YearMonth in both.
    In your crosstab if you just use YearMonth you'll get just the five months. If you qualify it with its data provider name (in our case MONTHS), you'll see the full twelve months shown.
    I hope that clears it up for your.
    Regards,
    Mark

  • Updating graph with new data

    I have a problem updating my graphs with new data in Illustrator. When I update them with new data each month the y and x-axis tend to change font and size.
    What can be the problem? Please help me!

    Hi Rajasekar
    You can purchase the enterprise toolkit fron NI, it includes a "database connectivity toolkit".
    As regards the design pattern to do you you describe, it will depends on the refresh rate you need and the rate at which you want to write your data to the database.
    I would have 2 loops :
     - one acquiring the data and putting it in a queue,
     - and a second that get the data from the queue, logging data to database and refreshing the graph.
    If the write time to database is too long and slows down the graph refresh you place it in another loop.
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • BI+ Reporting With Multiple Data Sources

    Hi -
    We've been using BI+ Reports with multiple data sources on separate grids. We are wondering if there is a better way to ensure the user has their point of view bar in sync between the the data sources. In our case, both Data Sources are separate HFM applications with all the dimensions identical except the account which is defined on the report. We are not using Metadata Management.
    I'm aware of the "Merge Equivalent Prompts" in the Preferences > Financial Reporting window, but this does not always ensure the users have the same point of view.
    What practice are other companies using to make sure the user runs the reports accurately with both point of view bars pulling the same entity/year/period.
    Thanks in advance.

    Thanks for your answer, however my question - I know it looks quite messy - is not directly related to data templates, my problem is that at the moment I am using a stored procedure following - almost exactly - what another procedure does in oracle EBS to call a BI publisher report.
    1. This procedure populates some temporary table with the xml data where the concurrent request picks it up and uses it to populate the BI publisher template.
    2. However I can't go and specify the XML location in my data template as this is not an option for us (i.e. reading the xml from the temporary table), so I am looking for another way to populate the BI publisher template (Note: I can't as well include the SQL queries in my Data template).
    Thanks ;)

  • 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.

  • Updating table with Modified date/time when updating any row

    Hi guys,
    What I am trying to do is this. I have a several rows in my table, alongwith the field 'Modified_date'. I want to insert a modified_date if and when I update the row in the table. Here's my code, but it's not working:
    PROCEDURE ip_maint_save (p_submit IN VARCHAR2 DEFAULT NULL ,
    p_user_no IN varchar_array_type,
    p_user_id IN varchar_array_type,
    p_ip_first IN varchar_array_type,
    p_ip_last IN varchar_array_type,
    p_user_type IN varchar_array_type,
    p_user_language IN varchar_array_type,
    p_blue_jays IN varchar_array_type,
    p_created_by IN varchar_array_type,
    p_modified_by IN varchar_array_type,
    p_modified_date IN DATE := SYSDATE
    IS
    v_count_rec PLS_INTEGER := 0;
    BEGIN
    FOR i IN NVL (p_user_no.FIRST, 1) .. NVL (p_user_no.LAST, 0) LOOP
    IF p_user_id (i) IS NOT NULL THEN
    BEGIN
    UPDATE IP_MAP
    SET IP_FIRST = p_ip_first (i),
    IP_LAST = p_ip_last (i),
    USER_ID = p_user_id (i),
    USER_TYPE = p_user_type (i),
    USER_language = p_user_language (i),
    IP_FIRST_number = Mr_Ip_Maint.ip_to_number (p_ip_first (i)),
    IP_LAST_number = Mr_Ip_Maint.ip_to_number (p_ip_last (i)),
    MODIFIED_DATE = p_modified_date (i)
    WHERE USER_NO = p_user_no (i);
    .....rest of the code/exceptions follow....
    It's not working. Although, I am able to update a row, but it's not inserting/updating the modified_date field in the table for which the row is updated.
    Thanks in advance.

    Hi,
    As per my understanding, you are passing many values at a time to be updated using varchar_array_type type. In such scenario if your User_no is 100,101,102 all are being looped and the table is updated. But where are you checking the updated field or on what bases you will come to know that this particular field is updated.
    I will suggest you to use before update triggers. As in triggers you can check the rows old and new value and then set sysdate for modified_date column.
    Something like this,
    create or replace trigger trg_IP_MAP on IP_MAP
    before update
    For Each Row
    Begin
         If (:OLD.IP_FIRST != :NEW.IP_FIRST  OR
              :OLD.IP_LAST != :NEW.USER_ID OR
              :OLD.USER_TYPE != :NEW.USER_TYPE OR
              :OLD.USER_language != :NEW.USER_language OR
              :OLD.IP_FIRST_number !=:NEW.IP_FIRST_number OR
              :OLD.IP_LAST_number != :NEW.IP_LAST_number) THEN
                   :NEW.MODIFIED_DATE = SYSDATE
         END IF;
    END;Twinkle

Maybe you are looking for

  • How can I transfer all my bookmarks from my old firefox browswer bookmarks using Windows Vista onto my new Windows 7 desktop?

    I just purchased Windows 7 OS and replaced Windows Vista on my desktop PC. When I open a new firefox browser, none of my bookmarks from the older browser running under Vista is showing anymore. Can I still transfer all my old bookmarks fromVista onto

  • Error when trying to search a sales order created by other user

    Hi. I'm running SAP HANA One PL 04. I have a problem when I log on with User1 and try to search for sales orders created by another user. I got an error message. I think the user has enough permissions.. Is there anything else I should consider?? Hop

  • File Size on Bottom of folder

    I love my Macs, but the one thing I miss from the PC side is clicking on a file and having the size of that file show on the bottom of my folders. On my PC there is a "Statis Bar" option, so it shows the information of what is in that folder. So if I

  • Change States using Combo box

    I am creating a registration form with payment options in Adobe Flex . There would be 2 payment options, Cash and Credit card. when a user selects an option he/she has to fill in some details. I have created different states for credit and card optio

  • Adobe LiveCycle  ES Certification

    Hi ALL Is there any certification for Adobe Livecycle ES product.Since I did not find a appropriate type I have posted it here ~Amol