Issue with :REQUEST variable

Hello Friends,
I have a SQL REPORT which populates the manual tabular form. I have a ADD button in the report region which submits as ADD. I used the where condition in the SQL report to use the REQUEST like this : - WHERE :REQUEST='ADD' ..
Also I tried to display the value of 'REQUEST' by keeping in process success message and it shows correctly as ADD indicating the value is set. can some one suggest if my usage of the variable in sql query is incorrect.
Thanks.

The question is not silly. There are techniques to do that row adding without a page refresh. However, it is not always only row adding but other stuff you need to process: validations, record update and save, issuing some messages and optimistic locking... I would suggest to stick with the given method since this is the best approach in my opinion. You may want to have a look at the example which uses collections to avoid update button pressing for each change:
http://apex.oracle.com/pls/otn/f?p=31517:246
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
-------------------------------------------------------------------

Similar Messages

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • Issue with presentation variables, dashboard prompt and filter

    Dear Guru's,
    I have a question about constraining a request with presentation variable set by a dashboard prompt. I have a dashboard prompt, that stores its value in a presentation variable . The prompt is about region. When the dashboard opens, the default of the prompt is all choices and it needs to show my reports with "All Choices". I've created the following filter on my two reports on the dashboard:
    "Dim Student"."Region" = '@{variables.GILLES}'
    or '@{variables.GILLES}' IS NULL
    One report is just the column "Dim Student"."Region" (to see if it works) and with this report the above filter works just fine. When nothing is prompted it shows "All Choices" when a choice is made the report responds accordingly.
    BUT
    The second report on my dash with the same region column, but extended with some time dimension columns and a measure gives an error which I'm not able to solve.
    +State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14023] None of the fact sources for ToDate(# Feitelijke Instroom:[DAggr(Feit Instroom en Uitstroom Opleidingen.# Feitelijke Instroom by [ Dim Tijd.Maand Omschrijving, Dim Tijd.Maand Nummer, Dim Tijd.Jaar, Dim Kwalificatie.Kwalificatie Niveau, Dim Leerling.RCBREGIO Regio] )], [Level JAAR]) are compatible with the detail filter [Dim Tijd.Maand Nummer = 3, Dim Tijd.Jaar = 2010].+
    +(HY000)SQL Issued: SELECT "Dim Tijd".Jaar saw_0, "Dim Tijd"."Maand Nummer" saw_1, "Dim Tijd"."Maand Omschrijving" saw_2, "Dim Kwalificatie"."Kwalificatie Niveau" saw_3, "Dim Leerling"."RCBREGIO Regio" saw_4, "Feit Instroom en Uitstroom Opleidingen"."# Feitelijke Instroom Cumulatief" saw_5, REPORT_SUM(saw_5 BY saw_0, saw_1, saw_2) FROM repos_x WHERE ("Dim Tijd".Jaar = 2010) AND ("Dim Tijd"."Maand Nummer" = 3) AND (("Dim Leerling"."RCBREGIO Regio" = 'Noord-Oost') OR ('Noord-Oost' IS NULL)) ORDER BY saw_0, saw_1, saw_2, saw_3, saw_4+
    While the exact same report but without the "or '@{variables.GILLES}' IS NULL" doesn't throw any errors but doesn't show the "all choices" by default.
    The ultimate goal to achieve is to build a dashboard with several reports from several subject areas with one single prompt that opens default with "all choices" and constrains the reports accordingly.
    Any help is highly appreciated.
    Kind Regards,
    Gilles

    Phani,
    I know "All Choices" is a special value and that it doesn't represent NULL. My filter construction seems to work fine.
    My filter condition:
    "Dim Student"."Region" = '@{variables.GILLES}'
    or '@{variables.GILLES}' IS NULL
    When it's set by the prompt it filters the request accordingly (first condition evaluates to true), when it's not set the second condition evaluates to true and shows all the results (or it's not filtered).
    The problem is that it doesn't work when time dimensions are combined with this filter. Then it throws the error mentioned in the first post.
    By the way: your suggested solution doesn't work.

  • Issues with Shared Variables in Systems Running for Extended Periods of Time

    I am designing a large SCADA system using LabVIEW DSC and cRIOs. My plan is to use shared variables to communicate the majority of the information across my network (much like "tags" in a normal SCADA system).
    I'm wondering if anyone has experienced issues (connection failures, etc...) with shared variables running on systems for months (both real-time and windows based PCs) without the cRIO or PC being restarted/redeploying the variables. What is the stability of the Shared Variable Engine over extended periods of time?
    Thank you for the input.
    --CLD--
    LV 6.1, 8.6.1, 2011 SP1, 2012 SP1

    I have a system with 2 cRIO's each with Ethercat extension chassis.  Each cRIO hosts ~100 NSV's and is running the scan engine at 40 Hz.
    Each cRIO is coupled to a HMI that has front panel control bindings to NSV's hosted on the cRIO as well as a windows hosted mirror library (used for citadel db logging) that is also bound to the cRIO NSV library.  The cRIO's have monay months of contiguous run time without reboot and I closely monitor cpu and memory usage and also rt performance metrics and will log faults if there are any such events.  I also use NSV's for messaging from the HMI to the cRIO for such things as setting zero offset values and deploying configuration parameters.  My overall findings are that the SV engine and the PSP are stable and efficient (especially NSV<->NSV and NSV<->HMI binding)

  • Issue with Default Variable in WAD after Java Patch 7.01.7.31

    Hello all,
    I'm running into an issue with the Web Application Designer Template execution for a particular default variable. This started occuring after Java Patch 7.01.7.31 we had implented over the weekend.
    The issue is when Executing the WAD Template, we have a selection screen with a variable with default values assigned to it. When leaving the default values and hitting Ok to execute  through the screen does not register and stays as is and I get a message at the top with the following: Characteristic Prob % Number has no master data for "1.00" or you do not have authorization.
    This only seems to occur for this default variable on info object Prob % Number, the other default variables seem to work fine. Also another note when clearing out the values it returns data and executes through. The value 1.00 is also a valid value in the cube and also in the output display. If we run this report in the BEx analyzer, the selection screen executes through with the default variable perfectly fine, this is only an issue with the Web Application Designer Template.
    Has anyone ran into this? I've searched and have not found any notes as of yet.
    Thank you,
    -Andy

    Dear Andy,
    Please raise this to SAP, seems like a strange problem this needs to be addressed by OSS note only.
    Close this thread once you get a solution.
    Regards.
    Den

  • Issue with declaring variable

    I am developing a multiuser application in flash, using smartfox server and as 2.0, but i am having an issue with defining/declaring a variable/object/array, and then accessing it. I am attempting to define "curMap" (whether it be a variable, array, object, whatever works) within the following function, as the returned array from the server, "resObj". This works fine as long as i only call up "curMap" WITHIN this function(as you see in the  line :  r_txt.text = curMap;)  however whenever I try to call up "curMap" on the frame coding, outside the function, it comes back as undefined, or typically nothing.  Any Ideas as to how to properly do/assign this? I have tried various things(such as _root., _global, or defining the var "curMap" outside the function) with no luck.
    Here is my Code:
    smartfox.onExtensionResponse = function(resObj:Object, type:String)
            if (type == "xml")
                    if (resObj._cmd == "getMap")
                        curMap = resObj.db[0];
                        r_txt.text = curMap;
                    }else if (resObj._cmd == "getSurr"){
                     surrMap = resObj.db;
                     b_txt.text = surrMap[0];
    thanks

    ahhh! yup that fixes it, thanks!

  • Issue With OLAP Variable

    HI all,
    we have an issue with the OLAP variable. One of the  SAP olap variable(0P-perf1) is processed  as Authorisation. where it should be sap exit. When we try to change at the BEx analyzer it was in disabled status.
    My question here are :
    1) How we can change the processing type?

    Hi,
    Pls refer link
    creation of OLAP  Variable
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a55ece09411d2acb90000e829fbfe/frameset.htm
    It may help you.
    Thanks
    Edited by: npathak on Aug 4, 2010 4:09 PM

  • Issue with substitution variable with @MDSHIFT in BR in Calc Manager

    Hi Experts,
    We have a BR in EAS which is working fine.
    and exported to Calcmanager, now while validation it is giving error "@BaseScenario" is not found.
    the code is
    @MDSHIFT("LFLSalesIncVAT_GBP_C_DHP"->&BaseScenario->"Final"->"CD_FinalPlanPL",-1,"Year",,1,"Period",);
    if i hard code it like @MDSHIFT("LFLSalesIncVAT_GBP_C_DHP"->"P7PP"->"Final"->"CD_FinalPlanPL",-1,"Year",,1,"Period",); working fine.
    is there any limitation with calc manger and substitution variables?
    Thanks
    GP

    There seems to be many issues with validations in calc manager, does the rule run if you dont validate.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Issue with request.get parameter

    Hi all,
    I am working on a developing a for  the users to request access to portal. on submit of the form a mail is sent to user and a page for the successful submission is displayed.
    When transported to Q system we started to get a null pointer exception on submitting the initial form. On investigating further I saw that the request.get parameter is not getting the values in the second page.Please let me know if there is any thing to be done at the portal level to solve this issue. As it is the same code and iview on both the systems.

    Hi,
    It might be issue with Permissions, And also Everyone role with end user permission is assigned or not in QA.
    Compare the permissions in dev and qa to resolve the issue.
    http://<hostname>:<port no>/irj/servlet/prt/portal/prtroot/com.sap.portal.admin.acleditor.listPermissions
    Hope this helps.
    Cheers-
    Pramod

  • Terminal issues with environmental variables

    I am having an issue with persisting environmental variables during a session. I am running an app that requires the sequential running of 3 scripts setenv.sh, build.sh, run.sh.
    The first script sets variables that are being used by the other scripts. The script just contains lines like
    "export ADVISOR_HOME=/Applications/Blaze/Advisor65;"
    if i add echo the variables name in the script they are set, but immediately after or with env they are gone.
    From my understanding (not much) these should persist as long as the window is open. Is there any setting that is being set in OS X that is sandboxing scripts? It would seem to be security-minded but is causing problems.
    Also is there any way to temporarily disable the requirement to prefix a command call with ./ in os x. Many of the included scripts are calling methods in the same directory and I am having to alter a lot of scripts to include ./
    Thanks in advance,
    walter

    walter deane wrote:
    I am having an issue with persisting environmental variables during a session. I am running an app that requires the sequential running of 3 scripts setenv.sh, build.sh, run.sh.
    The first script sets variables that are being used by the other scripts. The script just contains lines like
    "export ADVISOR_HOME=/Applications/Blaze/Advisor65;"
    if i add echo the variables name in the script they are set, but immediately after or with env they are gone.
    Do you mean you echo them from within the script and then they are gone after the script ends? That would be normal. If you want them to persist through the other scripts, you could combine the scripts. The problem is that you're setting them in one process and expecting them to persist in another process. Unless the second is a child of the first, that won't work. I think it would work if you executed the second two scripts from within the first script because they would then be children of the first process. Does that make sense? I'm not sure of the correct terminology here and I can't draw a tree which is what I want to do! Another option might be to source setenv.sh rather than running it (i.e. wouldn't need to be executable) - the same way the shell does when starting up, I think.
    From my understanding (not much) these should persist as long as the window is open.
    I don't think it has anything to do with windows. It is just when the process exits. If you set such variables at the command line, they'll persist until the window closes because they'll persist until the process exits which is usually when the window closes. At least, in the simplest cases. But it isn't the window staying open or not that's important. It's that everything else done in the window happens to inherit the environment from the parent process. In truth, this often isn't the case anyway, but I expect that's the source of the misunderstanding.
    Is there any setting that is being set in OS X that is sandboxing scripts? It would seem to be security-minded but is causing problems.
    Nothing special that I know of. There is stuff for something like this in Leopard but you'd have to enable it and I'm not sure it applies here.
    Also is there any way to temporarily disable the requirement to prefix a command call with ./ in os x. Many of the included scripts are calling methods in the same directory and I am having to alter a lot of scripts to include ./
    You can do this but it is extremely insecure. Essentially, you can add the current directory to PATH. (PATH=$PATH:./; export PATH) It would be much, much better - much, much safer - to edit the scripts. Can you not use sed to edit them? If there is some sort of pattern, there's no need to do it by hand.
    If this is an application you plan to share, you should certainly not consider changing PATH in this way unless you are aiming to produce an application with maximum destructive potential! If you don't plan to share, of course, it is your call!
    - cfr

  • Issue with session variable

    Hi,
    I'm trying to setup a session variable to filter an Answer query based on the user login name. I've created the following
    - A database table that contains a user name and its related filter (Entity)
    - An initialization block for the session variable to issue the following sql: select Entity from table where user_name = ':USER'
    - Created a target session variable called CURR_ENTITY as the target and assign a default value as 'No entity'.
    - Filter my Answer query to use the session variable CURR_ENTITY
    After restart of BI server and Presentation services and opening the report, CURR_ENTITY is always set to the default value. I've checked NQQuery,.log and looks like the initialization block was not returning any rows.
    Any ideas on how to get around this issue? Thanks.
    Regards,
    Gerd

    Hi gerd,
    select Entity from table where user_name = ':USER'Check if this query is returning values in the backend DB.If so it is returning then it should work fine in session variable.
    After defining the target variable CURR_ENTITY and test it in the screen.That shows you is it picking all the values or a single defaulted value.
    If its showing all values then re-check your block once again.
    (OR)
    In the target variable instead of variable define row-wise initialization (i mean check it) and change the SQL in the variable to this
    select 'CURR_ENTITY',Entity from table where user_name = ':USER'
    and test it so you can use it in answers .....it should work with what is required.
    hope answered the question.
    Cheers,
    KK

  • Issue with retrieving variables

    Hi.  Got help with some code on here before.  Basically, it retrieves values from my php page and displays them in my flash movie.  The code I am using is
    var n:uint=1;
    var tl:MovieClip=this;
    try {
         var keyStr:String;
         var valueStr1:String;
         var valueStr2:String;
         var paramObj:Object=LoaderInfo(this.root.loaderInfo).parameters;
         for (keyStr in paramObj) {
              tl["valueStr"+n]=String(paramObj[keyStr]);
              n++;
    } catch (error:Error) {
    myString=valueStr1;
    myString1=valueStr2;
    The problem is this.  On my html page, I type in two values for the first name and last name, say "Nick" and "Price".  The above method retrieves these values and stores them in two Strings.  I then display them using a text field.  Now sometimes, everything works normal, and variable 1 holds "Nick" and variable 2 holds "Price".  On other occassions however, its the opposite, and variable 1 holds "Price" and variable 2 holds "Nick".  This is a big problem when I come to display them, as they are back to front.
    My adding to the text field is straight forward (not all code included, but two text fields are created and each variable added to one of these)
    tf.text="To "+myString;
    addChild(tf);
    tf1.text="Love "+myString1;
    addChild(tf1);
    I was wondering if this error could be caused by what I am doing above, or how I am assigning the variables to myString and myString1?
    cheers

    for-in loops iterate through an object in random order.
    but you should know the keyStr for your variables so this is not an issue.  for example, your flashvars might assigning:
    var1="foo";
    var2="bar";
    and you would use:
    tf.text = String(paramObj[var1])+" "+String(paramObj[var2])

  • Issue with IP variable binding in WAD

    Hi experts,
    I'm having issues while trying to bind variable1 to variable2 in WAD. Here's the scenario:
    I have configured through T-code rsbbs the QUERY A, which is passing two "generic" characteristic values to the receptor (QUERY B).
    These two characteristic values are sent to the variables that are executed by formula (sequence) AND also to the variables in QUERY B.
    The issue is when the user changes the variable selection (thru pop-up) for the formula (sequence), it does not update the variable from the Query B, thus, I can't see the correct selection for Query B after executing the sequence.
    I've read numerous postings and I tried to bind these two variables (variable from formula sequence to QueryB variable) as a next command after the sequence execution unsuccessfully. The variables are not updated, it always shows the values before the user change.
    PS: version 7.
    Please help!
    Thanks,
    Orcamento

    Hi Prathish,
    Thanks for your reply. However, the issue has not been solved.
    Let me try to explain in more detail...
    E.g.
    Step 1: Query A sends value thru RSBBS to Variable 1 (Query B), and Variable 2 (fox formula from IP) by right clicking on "GO TO" from selected cell>> OK.
    Step 2: WAD opens with Query B - with variable values sent from Query A >> OK.
    Step 3: User changes value of FOX Variable 2 (this value was first sent from step 1)... let's say that value passed from Query A was 10, and user changes to 20. Then, execute the function >> OK.
    Step 4: Since Variable 1 still contains value 10 sent by RSBBS, Query B does not show results just changed (value 20).
    I believe that I can bind these two variables through WAD, but I tried unsuccessfully.
    Do you know if there are any configuration that I can bind these two variables in WAD, which should work dynamically?
    Thank you so much for your help!
    Orcamento

  • Navigation list issue with dynamic variable

    Hi All,
    I'm a little bit stock with (maybe) a little issue. I'm looking for a way to put variable on a navigation list in the same page. E.X. there is where my navigation list is pointing : f?p=&APP_ID.:20:&SESSION.::&DEBUG.::P20_3,P20_1,P20_2:#État#,#Année Comptable#,#Période Comptable#: .
    I Need to inherit the value ( #État#,#Année Comptable#,#Période Comptable#:) from a sql query from the main region (list are in a subregion ).
    Could some one help me with that please ?
    Thanks in advance !!
    Eric

    Hmm.. on the last APEX SIG day in Belgium Oracle was very dark about that (as usual).
    They even were not sure what features would definitely be present in the new version.
    They did however expect it to be somewhere in october / november
    again. you can mimic by using a report-region looking like a list
    regards,
    Richard

  • SCM export as SCAP: Issue with external variables

    SCM can export some of the baselines as SCAP v1.0 XML files (including CPE, OVAL and XCCDF).
    Here's an excerpt of an OVAL file generated by SCM for Windows 7:
    <definitions>
    <definition ...>
    <title>Network security: Do not store LAN Manager hash value on next password change</title>
    <criteria>
    <criterion negate="false" test_ref="oval:microsoft.com:tst:1" ... />
    </criteria>
    </definition>
    </definitions>
    <tests>
    <registry_test id="oval:microsoft.com:tst:1">
    <object object_ref="oval:microsoft.com:obj:1" />
    <state state_ref="oval:microsoft.com:ste:1" />
    </registry_test>
    </tests>
    <objects>
    <registry_object id="oval:microsoft.com:obj:1" ...>
    <hive>HKEY_LOCAL_MACHINE</hive>
    <key>System\CurrentControlSet\Control\Lsa</key>
    <name>NoLMHash</name>
    </registry_object>
    </objects>
    <states>
    <registry_state id="oval:microsoft.com:ste:1" ...>
    <value var_ref="oval:microsoft.com:var:1" datatype="int" operation="equals" />
    </registry_state>
    </states>
    <variables>
    <external_variable id="oval:microsoft.com:var:1" ... />
    </variables>
    As you can see, "oval:microsoft.com:var:1" is defined as an external variable. Unless the value of this external variable is specified, no OVAL tool (such as OVALDI) can evaluate this XML file against a given Windows 7. (In fact, there are over
    400 external variables in this XML file.)
    Can SCM export an OVAL file which includes the value of the external variables?

    Well, I went back into Best Buy to test on 3 other laptops (2 Asus, and their floor model for this Sony). It seems to be doing the same problem so at least I was able to rule out broken hardware issue on my particular laptop.
    Here's what I did to test:
    Since I couldn't really install Adobe Premiere on their machines, I used the DVIO software (http://www.carr-engineering.com/dvio.htm) and a 5 min clip I captured.  I transferred onto their machines, hooked up my Sony D8, and attempted to play the video.  It would play for 15 seconds and then stop and jitter with a loud noise (like it does on my laptop).  I even tried changing each machine's firewire driver to the legacy one and same results.  I pulled a brand new 4 pin to 4 pin firewire cable off their shelf and still the same problem.
    I think I've nailed it down to Win7x64 bit Home Edition not playing nice with Firewire driver.  Very annoying.  I can't find any concrete evidence of this from other users on any of the forums that have my particular problem, but from my own testing, it's all I can conclude.
    I have 2 other things I can try:
    1.  Opening the laptop and looking at the firewire to maybe find appropriate driver (ugh, I don't want to have to open this thing up).
    2.  Upgrading to Win7x64bit Pro and possibly testing with XP on the new MS Virtual PC (http://www.microsoft.com/windows/virtual-pc/).  I can't do it with my Home edition apparantly.
    Who needs to view video on an external TV anyways....sheeesh...(scarcasm).
    Tim

Maybe you are looking for

  • Is there a way to instal Final cut studio 2 in the new iMac with Lion?

    My new iMac arrived with pre installed Os x Lion. When tried to instal FCS2 it gives me error that it can't open it because PowerPC apps are no longer supported. Geniuses . I'm wandering, since I can't downgrade to snow leopard, is there a way around

  • XML file to RFC (BAPI)

    hi can you please give the configuration steps that i have to follow while doing xml file to RFC, 1)configurations in XI part 2)configurations in R/3 part and i am using bpm in this scenario, is there any need of  "program id " while doing configurat

  • Addings days to a date

    In an class assignment how do you add a number of days to a date and then outout in a stored program procedure?

  • EventHandler not executes for more of an user

    Hi Guys, I have three eventhandlers Post-Process, generator user login, associate the user manager and changer user status, from OIM 11g. When executes my HR reconciliation, and exists a new user to be created, is executed all eventhandlers normally,

  • IPhoto slideshows on my iPad

    I have seen one of my iPhoto slideshows on my iPad so I know it is there.  It was put together in iPhoto with music and I THOUGHT I viewed it in my video app.  I cannot find anything in my video app now except two purchased videos.  I have the latest