Request variables in Actionscript

i am building an application which will send parameters to the server.
we can send parameters through MXML using the <mx:Request> tag
is it possible to send parameters using actionscript ?

could you give me an example..
my code looks like this..
internal  
const DATAPROCESSOR_URL:String=http://localhost/FlexApp/DataProcessor.aspx;
_httpService =new HTTPService(null,null);_httpService.url = DATAPROCESSOR_URL;
_httpService.resultFormat =
"e4x";_httpService.useProxy =
false;_httpService.addEventListener(FaultEvent.FAULT,faultHandler);
_httpService.addEventListener(ResultEvent.RESULT, fillHandler);
_httpService.send();

Similar Messages

  • How to get Request Variables in Variables-View

    while editing a jsp-page i always can see the "Session Variables" in variables-view (left down corner of eclipse above tag libraries). also while working with forms i can see all available form variables for the as "Page Variables".
    but what i really would need is to see the available "Request Variables" which are set by the action calling the page.
    what do i have to do, to make this running?
    tnx in advance
    Rel
    //deny everything!

    Here comes the action config...
         <action-mappings>
              <action path="/area_rosa_news" type="mvc.actions.site.news.area_rosa_newsAction" parameter="area_rosa_news">
                   <forward name="area_rosa_news" path="area_rosa_news" contextRelative="false"></forward>
              </action>
         </action-mappings>

  • Using Javascript function to change the value of a request variable

    Have a javascript function that activates onchange within a form variable. Would like the javascript function to change the value of a request variable.
    The javascript function is able to obtain the current value of the request variable ( which is 0 ) however I am unsuccessful in changing the value to 1.
    I have been trying to use the following:
         var vchange = 'request.changes_made = 1 ;' ;
         eval(vchange);
    Any ideas?

    If the user makes a change to the content of the form, and then attempts to leave the form, a javascript alert pops up giving the user the option of cancelling the submit, returning to the form and saving it.
    If there have been no changes, then the user is free to migrate to another page.
    This process is to protect users from losing valuable information but not to annoy them with "R U Sure" messages.
    Knowing the status of the form content is important to the functionality of the application.
    G

  • Inserting text from a variable in actionscript

    what is it called when you insert text from a variable in actionscript?

    Your question is not clear.  There is no specific name for the process of inserting text from a variable that I am aware of.
    If you have a dynamic textfield that you have assigned an instance name to, let's say you named it "tField", then to assign a variable called "aVar" to that textfield you would use:
    tField.text = aVar;

  • How to print a request variable in the name of a section?

    Hello all,
    I have a session variable created in the RPD called VarWorstStore
    and I have a prompt which sets a request variable with the same name.
    Now when I put a report which is filtered on this variable then I can see that the variable is changing when I press go in the dashboard prompt.
    However, I call this variable in a section as well (go to page options - edit dashboard and click on rename of a section)
    Now I type: @{biServer.variables['NQ_SESSION.VarWorstStore']} and check the box Display section heading.
    Now when I save the dashboard I can see the value of the session variable. However, when I change the session variable with the prompt, thenb I can see that the report is changing, but the title isn't.
    Can anyone help me on this? My reference on this was: http://4.bp.blogspot.com/_f689sAiiG-E/SKv8Fxu7wNI/AAAAAAAAAPk/pppwQ1DdEhg/s1600-h/obi-ee-variables-overview.jpg
    I think it is a bug, but perhaps someone knows
    OBIEE version:
    Build: 10.1.3.4.1.090414.1900
    Release Version: Oracle Business Intelligence 10.1.3.4.1
    Package: 090414.1900

    Thanks for all your responds!!
    However, I was thinking in first instance on a narrative view myself indeed, however this is not good enough for me, because I really have an almost pixel perfect dashboard.
    But the thing with the prompt works!!! What I have done is making an extra prompt with the default value set to the session variable and then I set a presentation variable in the same prompt, and after that I am filtering the reports on the presentation variable in stead of the session variable.
    But I cannot find anywhere where to hide the prompt, can you tell me this?
    The only way I can hide things is to set permissions I gues, but then I also guess is that the prompt will do not do its tasks when the user has no permissions to this prompt.
    Hope you can help me out on this last part!!

  • "Request variable" in dashboard prompt

    Can I really change the value of a session variable using Set variable "Request variable" option in a dashboard Prompt. If "yes", can someone explain with an example. If "no" is there any other way to change the value of a session variable in specific pages while navigating.

    In the Report, Create a filter fro VERTICAL. In the Filter Creation Click On Add - Variable - Presentation, Now in the variable Expr give your variable name, In the default value give any value for this VERTICAL.
    Now put your prompt and report in dashboard, test it.

  • Specifying Request Variable's Date Format in LTS Content Filter

    All,
    We are trying to use a Dashboard prompt to set a request variable (session) to filter a logical table source. When I use either a DATE or TIMESTAMP format and default it properly in the Initialization Block the filter works properly. As soon as I change the value by using the prompt, it tries to compare the base column to the value of the variable in the following manner:
    SOURCE_COLUMN = REQUEST_VARIABLE
    DATE: HIER_DATE = '2010-02-03'
    TIMESTAMP: HIER_DATE = '2010-02-03 12:15:45'
    As soon as I try to insert the conversion functions TIMESTAMP or DATE, which work fine if I do the filter in the Answers report itself, it won't compile correctly, ex:
    SOURCE_COLUMN = DATE REQUEST_VARIABLE
    SOURCE_COLUMN = TIMESTAMP REQUEST_VARIABLE
    Anyone know of a workaround or if I'm doing something wrong here? Any help will be greatly appreciated.
    Thanks in Advance,
    Josh

    eejimkos,
    We're using a request variable, not a presentation to be exact; we have tried both drop down and calendar - neither work. I'm not quite sure what you're asking about the target data. It is a different column in the same table; we're trying to filter a hierarchy down using the effective_to and effective_from dates with < and > respectively. Finally, our nls language default date format is set as 'DD-MON-YY", which is the way we want it, but for some reason when using the variable it's coming through as 'YYYY-MM-DD' if the base column is of type DATE and 'YYYY-MM-DD HH:MI:SS' if it's TIMESTAMP.
    Thanks,
    Josh

  • Request variable not overriding session variable in report filter

    I have a dashboard edit prompt that saves value into a request variable with same name as session variable.
    The session variable has "enable any user to set the value".
    I have a filter in the report that has been converted to sql where the transaction date is greater than the value entered in the prompt.
    I see the "SET Variable" clause at the top of the sql being sent to the server in the logs.
    However, when I am in "View Logs", I see that the sql that is being sent to the database is sending the original value of the session variable instead of the new value in the request variable.
    I have tried using VALUEOF(NQ_SESSION.variablename), VALUEOF(variablename), VALUEOF("Dynamic Initialization Block Name"."variablename"), @{biServer.variables['NQ_SESSION.variablename']} with no difference.
    What am I doing wrong?

    user4006070 wrote:
    I have a dashboard edit prompt that saves value into a request variable with same name as session variable.
    The session variable has "enable any user to set the value".
    I have a filter in the report that has been converted to sql where the transaction date is greater than the value entered in the prompt.
    I see the "SET Variable" clause at the top of the sql being sent to the server in the logs.
    However, when I am in "View Logs", I see that the sql that is being sent to the database is sending the original value of the session variable instead of the new value in the request variable.
    I have tried using VALUEOF(NQ_SESSION.variablename), VALUEOF(variablename), VALUEOF("Dynamic Initialization Block Name"."variablename"), @{biServer.variables['NQ_SESSION.variablename']} with no difference.
    What am I doing wrong?When you created the prompt, did you make sure you set the variable type to Request variable?

  • Request Variable in Report Subtitle??

    Hi there,
    I'm using Request variable in my report. I want to use the same in Report subtitle.
    I was using @{biServer.variables['NQ_SESSION.myvariable']} in report subtitle.
    Its showing the default value first time. When I change the value in dashboard prompt (editbox) and click go, value in subtitle is not changing.
    Appreciate your help
    Thanks

    Okay, you can't use presentation variables in the rpd so if you are using it in the rpd to override a session variable, then you need to set it to a Request Variable.
    Put the request variable in the Title window of the Title View not the Subtitle window.
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31767.pdf page 98.
    Oh, and because we are back to Request variable,use the @biServer.variables['NQ_SESSION.variable']} syntax.
    To test functionality, use this session variable in the Title field of the Title View:
    @biServer.variables['NQ_SESSION.USER']}
    This will return the logon ID of the user.
    Edited by: David_T on Sep 10, 2010 7:51 AM

  • What is the usage of Request Variable ? and how we can use it ?

    Hi All,
    What is the usage of Request Variable ? and how we can use it ?
    Thanks in advance

    Hi,
    A Request variable is the same as a Session variable:
    http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_Variables4.html
    Cheers,
    Daan Bakboord
    Scamander Solutions

  • Request Variables

    Hello,
    Can somebody please tell me what a request variable is? Is this the same as a session variable?
    You can select request variable when creating a prompt.
    Does anyone know what this object does?
    Thanks!

    Okay, it is still showing helpful answers and correct answer points available. You need to award points as well. The "Answered" part is not connected to the points because it is possible to "solve" your own problem. Then you can mark the post "Answered" so others can see what that the thread is completed (and can find the solution if the poster displays it).
    But, as in this case, if someone else provides the solution, then you can award the 5 points for the helpful answer and 10 points for the correct one.
    HTH,

  • Post Variables Using Actionscript

    Hi,
    I have seen on the docs that we could write HTTPService in
    Actionscript method. I have completed the entire section based on
    the description of the method defined on the doc, but I am having
    some issues defining the variables to pass to the actual service
    (mx:request as in MXML).
    I need to know the actual variable that gets passed to the
    service, because I would like to reuse the information returned
    from the service for further edits. Since this information is not
    stored in the XML, I wonder if anyone can tell me what is wrong
    with the syntax below? Currently, all I get is this error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    Anything is appreciated.

    "alice_data" <[email protected]> wrote in
    message
    news:ge9nf1$1ai$[email protected]..
    > Hi, Amy:
    >
    > Sorry, but I think I am getting a little confused at
    this point. I have
    > removed
    > var loader:URLLoader = new URLLoader();
    > loader.addEventListener(Event.COMPLETE,
    function(event:Event):void {
    > trace("finished sending and loading: "+ loader.data);
    > });
    > loader.load(request);
    > and ran the code again and received the same error as
    before.
    >
    > Part of the problems with the error I have been getting
    is that I have
    > not
    > defined my parameters correctly, but again I tried to
    take the parameter
    > definition from the following line, it tells me I need
    one argument:
    > <mx:Button
    > label="Submit" id="mySubmitButton"
    click="useHttpService()"/>. What should
    > I
    > put in the parenthesis?
    >
    > The doc I referred to is at
    >
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?co
    >
    ntext=LiveDocs_Book_Parts&file=dataservices_099_15.html, but I
    think my
    > main
    > problem here is that I am not sure how to define the
    variables and pass it
    > to
    > the actual service and have the variables be handled
    internally through
    > Actionscript. Or, is what I trying to accomplish here
    not possible at all?
    Try changing this:
    private var request:HTTPService;
    to
    private var request: URLRequest;
    I still think you're getting a lot of warnings you're
    ignoring (check the
    problems tab). You should have gotten a duplicate variable
    definition for
    what you had.
    What you're trying to accomplish is possible, but you DO need
    to pay
    attention to the warnings and errors Flex is trying to tell
    you about. They
    are your friend.

  • Request variable in Answers prompt

    I am on OBIEE 11.1.1.5 and have created a session variable which is set to 'Enable any user to set the value'. Then default for this varaible is set to CURRENT_DATE. I have created a logical column to calculate Length of Service based on this variable like
    cast(Floor( (TIMESTAMPDIFF( SQL_TSI_MONTH , "Core"."Fact - Active - Period of Service"."Hire Date" ,VALUEOF(NQ.SESSION."Test")))/12) as char)||' year(s) '||cast(Mod((TIMESTAMPDIFF( SQL_TSI_MONTH , "Core"."Fact - Active - Period of Service"."Hire Date" ,VALUEOF(NQ.SESSION."Test"))),12) as char)||' month(s)'
    Now I create a answers request and put this logical column on it. What should be the prompt so that the Length of Service gets calculated based on the iput provided by the user?

    I am following http://everythingoracle.com/obieerv.htm to move forward.
    I created a variable prompt abc with date as data type and then in Advanced tab under Advanced SQL Cluses in Prefix I typed: SET VARIABLE Test='{abc}';
    This just puts '{abc}' in the formula. And if I try SET VARIABLE Test={abc}; then it throws syntax error i Advanced tab.
    What am I doing wrong?
    Edited by: user12301184 on Aug 26, 2011 6:38 AM

  • Global variable in ActionScript 3:

    Hi Everyone,
    I'm looking at a short example on
    http://www.greenethumb.com/article/11/global-variables-in-as3
    in which the author creates a separate package as such:
    package com.greenethumb.utils
    public class GlobalVarContainer
    public static var vars:Object = [];
    The problem is that when I do this (when I add that snip to
    the top of my single .as file), I get the following error:
    "5006: An ActionScript file can not have more than one
    externally visible definition:
    com.greenethumb.utils.GlobalVarContainer, Untitled314"
    I've already got another package {...} on that same .as file.
    If I just stick this:
    public class GlobalVarContainer
    public static var vars:Object = [];
    ...then I get the somewhat similar error message:
    5006: An ActionScript file can not have more than one
    externally visible definition: GlobalVarContainer, Untitled314
    I don't know where to put this.

    Have your global AS script in its own .AS file then import it accordingly.
    I have a sample here: http://www.smithmediafusion.com/blog/?p=436

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

Maybe you are looking for

  • Mobile Hotspot issue.

    So I was helping a friend with a PC problem and discovered that when my hotspot is turned on if accessed threw a desktop or laptop there is no prompt for the password. There is a prompt if a mobile device tries to access but not with PC's or laptops.

  • Help with analitic function

    version 9.2 Here is a sample WITH temp AS      (SELECT 10 ID, TRUNC (SYSDATE - 1) dt, 101 ord_id         FROM DUAL       UNION       SELECT 11 ID, TRUNC (SYSDATE - 1) dt, 101 ord_id         FROM DUAL       UNION       SELECT 11 ID, TRUNC (SYSDATE) dt

  • Weird noise, cannot explain?? Help!!

    Hey there, I've tried quite a couple troubleshooting tips, but to no avail. I even did the entire page of requirements for Pro Tools in the "Help us Help you" page so it runs properly with my system which I must say runs way better, but did not fix m

  • Find filenames in directory

    Is there some way to parse a specific directory and get the names of the files in that directory? I have a folder named FILES that will contain *.xls files. My intent is to have the program parse the FILES directory and display all of the file names

  • What is error 5100 for multifunction printeers and how do you fix it?

    what is error 5100 for multifunction printeers and how do you fix it?