Populating application item when updateable query report item is changed

I have been looking at the help for cascading LOVs posted here. Unfortunately, I am not able to get it to work, and so am backing up with baby steps.
I have a sql updateable report. It has a column (IN_STATE) that is a LOV sql query that pulls up a list of states. When a state is selected, I want the value to be placed in the application item, TEMPORARY ITEM. because I have copied the logic, it may actually be more complicated that needed at this point...happy to cut things out if need be.
The updateabale report item, IN_STATE has the element attribute of:
onchange="get_ajax_select_xml(this);"
The region has an html header of:
<script type="text/javascript">
function appendToSelect(pSelect, pValue, pContent)
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
else {     
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
var g_area=new Object;
var g_sub_area=new Object;
function replace_select_list(pSelect,pXML)
var l_Count = pXML.getElementsByTagName("option").length;
pSelect.length = 0;
for(var j=0;i<l_Count;j++){
var l_Opt_Xml = pXML.getElementsByTagName("option")[j];
appendToSelect(pSelect, l_Opt_Xml.getAttribute('value'),l_Opt_Xml.firstChild.nodeValue)
function get_ajax_select_xml(pThis)
var l_Return = null;
var l_td=html_CascadeUpTill(pThis,'TD');
var l_area=l_td.nextSibling.getElementsByTagName('select')[0];
var l_sub_area=l_td.nextSibling.nextSibling.getElementsByTagName('select')[0];
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=get_area_code',html_GetElement('pFlowStepId').value);
get.add('TEMPORARY_ITEM',pThis.value);
gReturn = get.get('XML');
</script>GET_AREA_CODE and GET_SUB_AREA_CODE are application processes.
At this stage, I am just trying to polutate TEMPORARY_ITEM when IN_STATE is changed.
Any hints are appreciated. thanks

If you are working with APEX then you are posting on the wrong forum. This is the JDeveloper forum - try this instead:
Oracle Application Express (APEX)

Similar Messages

  • ABAP QUERY Report : column number change

    Hi friends,
    I need to modify the existing ABAP QUERY REPORT.
    I have added a new field in the selection screen.
    When I execute the query, it(our new filed) is displaying at the end of the columns.
    But I want it to be at 8th columns. please help me.
    When I try to change the out position to "8"at "Basic list" -> select check box of our field and double clict it, I am getting the following error.
    Warning: Overlapping fields
    Those fields overlapped by other fields will not be displayed in their entirety.
    So I could not display the new field at 8 th column.
    Guys. Please help me.

    Hi
    You have to change the position of each field after 8th column
    suppose you added your new field at the 8th column position
    then all the subsequent fields positions you have to adjust as per their length
    You have to do like this to adjust the columns
    see the doc on query
    http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
    Step-by-step guide for creating ABAP query
    http://www.sappoint.com/abap/ab4query.pdf
    ABAP query is mostly used by functional consultants.
    SAP Query
    Purpose
    The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
    All the data required by users for their lists can be selected from any SAP table created by the customer.
    To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
    ABAP Query, as far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
    To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly
    use either SQ02 ans SQ01
    or SQVI tr code
    for more information please go thru this url:
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
    http://goldenink.com/abap/sap_query.html
    Please check this PDF document (starting page 352) perhaps it will help u.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    check the below link will be helpful for u
    Tutorial on SQVI
    once you create query system generates a report starting with AQZZ/SAPQUERY/ABAGENCY2======= assing this report to tr code for the same
    Regards
    Anji

  • Application Crash when use crystal report

     I use crystal report in visual studio 2010. In crystal report i use parameter, image, sub-report. When i close the crystal report viewer. there is always crash my program, below are the details.
    How I overcome this situation?????????
    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: myapp.vshost.exe
    Application Version: 10.0.30128.1
    Application Timestamp: 4b61238e
    Fault Module Name: KERNELBASE.dll
    Fault Module Version: 6.1.7600.16385
    Fault Module Timestamp: 4a5bdbdf
    Exception Code: c0020001
    Exception Offset: 0000b727
    OS Version: 6.1.7600.2.0.0.256.1
    Locale ID: 1033
    Additional Information 1: 0a9e
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional Information 3: 0a9e
    Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
    Read our privacy statement online:
    http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
    C:\Windows\system32\en-US\erofflps.txt

    Hi SriBalaram,
    According to your description, it seems the crash is caused by crystal report in your project. For this kind of issue, I would suggest go to its official forum http://scn.sap.com/community/crystal-reports-for-visual-studio/content?filterID=content~objecttype~objecttype[thread] for
    support.
    Best regards,
    Shanks Zen
    MSDN Community Support | Feedback to us

  • Deman Planning - Query/report

    Hello,
    I have been asked to provide a query/report showing stock in restricted &/0r unrestricted state BUT with no demand on the item.
    The query/report needs to show material/item number, stock figures in each state, std cost and price unit.
    The demand is shown on txn MD04 but how can I create a query/report as above?
    I would like to create a query using SQVI if possible?
    Any help would be appreciated.

    There are several approaches to consider and it would be good to hear from some direct users.  Assuming you have a BW/BI landscape, there are numerous metrics in info cubes to easily get the data.  I used to look at inventory metrics and would start with the DOH (days on hand) - I don't remember how it was calculated, but normally it would take the current stock level and divide by the demand.  Of course, when the demand goes away, you are dividing by zero (or nearly zero), and your projected DOH goes way up.  So, by looking at the DOH, you quickly find out what products have stock with little or no demand.  You would then need to add the costing metrics, likely from another info cube.
    There are numerous inventory metrics in the BW info cube - I'll try to find an updated list, but if you ask your BW architect on site they should be able to provide it.
    Is there a reason why you are looking at it from a transactional query perspective instead of BW? 
    Ray Adams - 610-661-4647

  • FBL3N - line item visible both as open item and as cleared item

    Hello,
    Please can you tell me possible reasons for which I see the same line item in FBL3N as an open item when I check "open items" and as cleared when I check for "cleared items".
    Thank you !
    Daniel N.

    There is a small correction:
    It is not partial it is residual.
    In case of partial your original document will be intact - Open items will show debit, credit and the balance.
    In case of residual, your original amount will be deducted and a new entry gets posted as if there is a new transaction. For example from 100 USD if 40 USD has been cleared, then two line items will be shown in 40 as cleared items and a new line 60 will be generated in open items 60. But, this 60 will have different document number.
    I think there is some issue the way in which selection criteria has been selected.
    Please do not see the open items at a key date. Because that date it might be open item, later at a stage it might have become a cleared item.
    Do not restrict any dates and see the total items (cleared items and open items) and let me know if the same document is showing as cleared as well as open. This is more unlikely and I have not seen.
    Regards,
    Ravi

  • SAP QUERY report for vendor line items

    Hi
    I have created a SAP QUERY report for vendor line items with fields vendor no.,vendor name,amount,company code and period.But there is one line item i donot know from wher system is getting it picked with is not in that vedor account,when i compare with fbl1n.I checked the document number too...the same doc number is twice in my query report.One with correct amount and another with wrong one.How do i chk.Where did i go wrong in creating query.I used logical database KDF.
    Please advise.

    i chked...how do we get the amount displayed in query...it just displays amount no debit credit symbol... i have selected BSEG-DMBTR field but no -/+ sign,how is it done in query,please suggest.

  • SSRS 2012 (SP Integrated) report on SP 2013 PerformancePoint Dashboard: when too many filter items selected together report does not update anymore!

    I am having a situation with SSRS 2012 (SP-integrated) report rendered on SP 2013 PerformancePoint Dashboard using linked PerformancePoint (PP) filters.
    The report works fine as long as too many PP filter items are not selected at the same time. When gradually selecting more items from the filter, the report updates itself until more than a sepecific numer of filter items are selected - the report simply
    does not update itself anymore. This "specific number of filter items", when hit, generates the following error in ULS:
    An exception  occurred while rendering a Web control. The following diagnostic information might help to determine the cause of this problem:  System.UriFormatException: Invalid URI: The hostname could not be parsed.    
     at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)    
     at System.UriBuilder..ctor(String uri)    
     at Microsoft.PerformancePoint.Scorecards.ServerRendering.ReportViewControl.ReportUrl(SqlReportViewData sqlReportViewData)    
     at Microsoft.PerformancePoint.Scorecards.ServerRendering.ReportViewControl.RenderSqlReport(TextWriter writer, ReportView sqlReportView)    
     at Microsoft.PerformancePoint.Scorecards.ServerRendering.ReportViewControl.RenderReportViewControl(HtmlTextWriter writer, ReportView rv)  PerformancePoint Services error code 20700.
    I already know that the cause of the issue is in the length of the query (perhapse RDL or MDX) that the browser is supposed to pass on to the instance of SSAS.
    Some people had suggested a workaround that was suitable for older versions or non-integrated SSRS (see here: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cb6ede72-6ed1-4379-9d3c-847c11b75b32/report-manager-operation-cannot-run-due-to-current-state-of-the-object).
    Knowing this, have already done the changes suggested (adding the lines suggested to SP's web.config for Reporting and the web.config of the site on which report is rendred) at no avail, just to make sure.
    I have rednered the same report on the same dashboard using SSRS filters and there is no problem; it just works fine. This has to be a bug in PP that is causing this.
    Has anyone had the same problem with SSRS 2012 (SP-integrated) report rendered on SP 2013 PP dashboard using PP filter? Any fixes or workarounds?
    thnx!

    Hello everybody.
    I confirm the issue in Service Pack 1 Release 2.
    Poor workaround is to remove the repeated infromation from the member keys (in SSAS they can be really long).
    The issue seems to be specific to SSRS: Excel Services works well with the same filter.
    Sergey Vdovin

  • Run Query report showing only PO block item, yet to be received.

    Hi,
    Out GR process involves putting the material in (PO block) first using the movement type 903 and t-coden MB0. Next step is GR in unrestricted use using  M Type 905 and t-code MB01 as well.
    I have to enhance a query report so that only those items should show up which have been completed for 903 (PO clock), but not completed for mtype 905. In other words, run a report to list all outstanding itmes in the PO.
    I could run a report to show mtype 903 only but it shows even those items too which are pur in unrestricted us (m typw 905).
    I thanks in advance for help.
    Jaan

    Hi
    903 and 905 are specific to company not SAP standard. Difficult for forum to comment. Why ur company is not using 103 and 105? Normally in standard SAP accounting entries happenes after 105/905. You need to check your quiry. even 103/903 updates EKBE table. You need to pick from there and calculate open PO based on that. In standard ME2M with selection parameter WE101 will do this. You can configure similar to WE101 in below config with your requirement in case if you wish to use standard report
    spro>MM>purchasing>reporting>maintain purchasing list-->selection parameter
    Regards
    Antony

  • How To Use a Hidden Page Item within an SQL Report Query without Submitting

    Hi,
    Using: Oracle ApEx 3.0.1
    I have an sql report region that contains a hidden page item as part of the "where clause". My problem is, based on a value entered by the user, I need to assign this value enetered to my hidden item, so that it can be used within the where condition of my sql but this would need to be done without actually submitting the form.
    At the moment, I can set the value via an on-demand process but my SQL is still not returing any values as the hidden page item within the query is not set (as page has not been submitted).
    Can anybody please assist as I am not sure how to do this and whether in actual fact, this is possible to do, without having submitted the page.
    Thanks.
    Tony.
    Edited by: Tony F. on Nov 12, 2011 1:39 AM

    You can set a session value using a dummy ajax call e.g:
    Add the following to the 'Function and Global Variable Declaration' region
    function f_set_item(pThis){
      var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',1);
      get.add('P1_ID',pThis.value)
      gReturn = get.get();
      get = null;
    }Where P1_ID is the session value to be set. Then call the function in the usual way e.g.
    javascript:f_set_item(this);
    I hope that helps
    Shunt

  • Hidden report items with toggle are visible in Excel when a report is exported to Excel.

    Hi
    I have  4 Bar charts and 4 text boxes in one report in SSRS Report . These charts  are hidden based on parameters. I have one visible chart and one text box when report is rendered .
    When report is exported to excel  4 charts  are visible. Each Bar chart has one textbox in toggle box.  If I set toggle to None  all hidden charts  will be invisible in excel file.
    I used   iif(Globals!RenderFormat.Name=" EXCEL",False,True)
     but it does not work when the chart is toggled by a text box.<v:shape alt="" id="Picture_x0020_1" o:spid="_x0000_i1025" style="width:6in;height:396pt;"
    type="#_x0000_t75"></v:shape>

    Hi Katherine
    Thank you for your quick response.
     I am working with three versions .(SQL SERVER 2008, 2008 R2 and  2012)
    I designed all reports  in SQL Server 2008 and  uploaded them in other versions.
    For example, I have a chart that it is invisible when the report is initially run.
     I want to hide this chart in excel when I export  it to Excel format.
    In SQL Server 2008: If  the toggleitem of a chart sets to a text box  the chart is visible in excel when it is a hidden item  in the report .
    I checked in PDF and word format  it is fine and  hidden items  are not displayed.
    There is  this scenario  for SQL Server 2008 R2  and  SQL Server 2012. I tested  Globals! RenderFormat  in two versions but it  does not
    work. The main  issue is  toggleitem. If I remove toggleitem  from  hidden items  they are invisible in three versions when they are exported to Excel. I  am not sure if I design report in Sql Server 2008 R2  I can hide some
    report items with toggle in Excel format or Not?
    Thanks 

  • One of my friends is getting an error "Can not buy this item. You must buy the application to which this item is intended to buy the item" when they try to make an In app Purchase

    More Details: http://feedback.photoshop.com/photoshop_family/topics/cannot_download_camera_pac k_inside_photoshop_app
    My friend is trying to purchase an IAP on Adobe Photoshop Express, however they get an error saying "Can not buy this item. You must buy the application to which this item is intended to buy the item" when they try to make an In app Purchase". Everything other app is working fine.
    Any thoughts/suggestion to make this error go away?

    I suggest trying the update again after an hour or two.  Sometimes, the notice that an update is available comes an hour or two before the developers actually sends the revised app out to be downloaded.

  • How do i report on BOMS when they have sub items?

    I cant see a simple way or indeed any way of extracting BOM information when i have sub items listed against main items in a BOM.
    For ease of updating i was hoping to be able to extract the current information we have loaded.
    Any suggestions
    David

    CS11 pretty much displays BOM with Sub-bom items ...
    I am not sure what ouput requirement you have on mind...most of the times i have worked with CS11...
    Thanks,
    sudhi

  • HFR Issues - "5200: Error executing query: Invalid Item ID"

    Hi All,
    We are using Hyperion HFM application 11.1.1.3. Recently we have upgraded the Oralce Database to 11.2.0.2 and reconfigured the HFM application with this new database version. When I tried to run the Financial reporting through the HFR studio, I am getting error message - "5200: Error executing query: Invalid Item ID". Please could you help me to resolve this issue.
    Thanks,
    Aravindh K

    This was due to an invalid default Point of View for the user that was incompatible with the particular report.
    Change the Preferences to User Point of View Preview and run the report again.
    File > Preference > Financial Reporting > Select Preview "ON" under USer Point of View box.
    Re-run the report and select the desired POV.
    This will prompt the user to change their POV every time he or she opens a report. They can select the correct POV and the report runs correctly.
    You can turn off later. Let me know if it fixed this issue.

  • HFR - 5200: Error executing query: Invalid Item ID

    Hi All,
    We are using Hyperion HFM application 11.1.1.3. Recently we have upgraded the Oralce Database to 11.2.0.2 and reconfigured the HFM application with this new database version. When I tried to run the Financial reporting through the HFR studio, I am getting error message - "5200: Error executing query: Invalid Item ID". Please could you help me to resolve this issue.
    Thanks,
    Aravindh K

    Did anything change on the database side? Alias, member name? "Error executing query" usually is associated with a change in the database.
    Regards
    Celvin
    http://www.orahyplabs.com

  • How to refer report items?

    Hi,
    How to refer the report items?
    I have standard sql report region contains 3 columns.
    doc_id,doc_name and No_units.all three items are apex item.
    below is my sql query for report.
    APEX_ITEM.SELECT_LIST_FROM_QUERY(17,doc_id,'select s_id from         
    sales')"doc id",
    apex_item.text(18, doc_name) "doc name",
    apex_item.text(19,  No_units) " No units",null
    from sale_docMy intention is to fire a dynamic action when event change in doc_id. So in when tab what i have to assign in item(s) fields for doc_id. i gave *#doc_id#* in items(s) field it doesnt work.
    how to resolve this?

    any help?

Maybe you are looking for

  • Print HTML in Landscape

    Hello, I have rendered my HTML on a JEditorPane with Editable set to false. The pages are displayed fine on the screen. However, when I try to print I have a problem. If I print in Portrait, everything prints just fine (only everything doesn't fit on

  • ITunes ignores the "stop time" for music videos since 10.6.7 osx update.  Tried with iTunes 10.2.1, 10.2.2, 10.3.  Only way to make it work is to back out to 10.6.6 (time consuming).  Has nobody else noticed this?

    Only a problem with music videos. Normal audio tracks work fine.  Introduced with 10.6.7.  10.6.8 failed to fix it. Set the "stop time" of a music video to 10 seconds shorter than the full length and iTunes will still play it to the end.  Very annoyi

  • Creation of Business Event Type

    Hi We have already created a Business Event Type called Safety Refresher. Actually this training will happen every month. already created Safety Refresher and again trying to create its showing business event type already exists. Now i want under saf

  • Powerpoint

    i have word for mac, which i just realized comes with powerpoint, but emails i receive with a powerpoint attachment wont opent.  its saying its a "binary file" is there something i need to do to open it with the mac version of pp?

  • Read Aditional Text - PA30

    Dear All i have big problem in the PA30 tcode select any infotype "Action" ....... goto Edit menu and select Maintain Text or Maintain Description then you can write large text there  after you save it you can see text icon in the main screen my prob