Passing attribute value in session variable

Hi All
I need to store one field value from my SIM form as a session variable and pass them to the next page along with my session, using some jscript stuff or else. Does this make sense?
If it is possible or anyone have any prior experience please reply.
Thanks in advance

We have tested a code-snippet that 'gets' attribute-values from the session:
<invoke name='getAttribute'>
    <invoke name='getHttpSession'>
        <ref>:display.state</ref>
    </invoke>
    <s>attribute_name</s>
</invoke>You can try 'setAttribute' in the similar way.
Thanks,
Adi

Similar Messages

  • How to pass attribute values through variables in JSP  Custom TagLib

    Hi,
    Can anybody help me how to pass values through varuables in the jsp custom tag.
    i am using JSP custom tag. I am unable to pass attribute values through variables.
    <invitation:invdetails invid="<%=invid%>"/> The value is passing as <%=invid%> ,not value of the invid.
    But i am getting throuh the fllowing
    <invitation:invdetails invid='1' />
    Please anybody suggest me how to pass value by using the variable.

    Hi,
    It sounds like you need to set the <rtexprvalue> tag to true in the TLD for your tag. If you do this the tag will read in the value you are trying to pass to it.
    dapanther...

  • Passing JavaScript values to JSP variables

    Can any body correct the follwing code
    <Script language="JavaScript">
    function test( x )
    <%
    int num = x;
    num = num * 2;
    %>
    v.value = "<%out.print(num);%>";
    <input type="button" name="b" value="test" onClick="test(5)">
    <input type="text" name="v" value="0">
    In short, I am trying to pass JavaScript value to JSP variable. I hope that it is possible to do that. If it is possible then how can I do it. I want to assing the variable x passed to the JavaScript function called test to the JSP variable called num.
    Regards,
    Ageel

    Thank you for your reply,,,
    I think then the only way to do it is to post the
    value on the server and then use request.getParameter
    method in jsp code
    but the question now how can I post values to the
    server using JavaScript without reloading the pageyes... you can to it by create a new popup window which will submit the value to server after page was loaded... then, server return a value to the same window in html/jsp page which then using javascript to set it back to the opener and close up the window... however, this is not a good choice unless you have no other alternative...
    >
    There is other possible solution
    if I can get the text field value from the same page
    without reloading it that would work fine and will
    solve my problem, is it possible?yes... you can get the value from the textfield...
    for example :
    function showValueInTextField()
        alert(document.forms[0].elements["mytextfieldname"].value);
    >
    My final question> can jsp change things on the same
    page without reloading it. I mean can it work like
    JavaScript so that I can use it's internal functions
    instead of using java script :S
    not really know what you trying to say here...

  • Passing values to session variables from another application

    Hi,
    From an external application we are passing username and password for accessing the OBIEE Dashboard.In the url call we are passing NQUser and NQPassword. This is working fine.
    To setup data level security we need to pass region id list also as request object. Then we can filter the tables by the value in the region id list for that user. If we use external table to pass the home_id list then the application is working fine by setting up row-wise init block. But we need request object from an external application to send the list. How can we accept the list from OBIEE RPD?
    In the documentation it mentions about session variables - non system. But it requires an init block. How can we create a variable that accepts the values when user logins just like NQUser and NQPassword.
    Please suggest.
    Thanks.

    Try this ...
    http://oraclebizint.wordpress.com/2007/07/30/customizing-obi-ee-%E2%80%93-go-url-parameters/
    In this blog entry you'll find at the bottom ...
    Hello, Can you please explain how to pass parameter values in the url. For example, I want to run an answers query and pass into the url something like this: &Region=West
    Venkatakrishnan J Says:
    August 22, 2007 at 7:36 am
    Yes, this absolutely possible. You can get the details from the Web Services guide since it has all the necessary examples and more explanation. Thats why i did not include it in the blog. You can get it from page 213 of the Docs http://download.oracle.com/docs/cd/B40078_02/doc/bi.1013/b31766.pdf

  • Inablility to retrieve values of session variables in irpt page

    We currently are using xMII 11.5.  We are having difficulty retrieving values assigned to our created session variables. 
    We have defined 2 users, each associated with session variables whose values differ by user.  Each user is associated with a different irpt page which retrieves information based on the values passed by the session variables.  Both pages return correct information in the grid using the as the param.1 value on the opening of the page. 
    On one page, we are able to retrieve the values of the session variables in Javascript by placing hidden fields on the document and using the document.getelementbyID("hiddenValue1").value.  The other irpt will only bring back the name of the of the session variable in the curly braces, .
    Both users are set up the same in System Security and Data Access.  If we switch the pages opened for the user in the Portal Navigation, one page will return the values no matter which user and the other page will always bring back the session variable name in the braces.  This makes us believe that it is not a problem with the user setup or the definition of the session variables.
    Would anyone be able to help us understand what needs to be done to correct this issue?

    Michelle,
    Have you tried URL encoding your irpt pass through parameters in your Navigation link?  Perhaps the commas and parenthesis are causing some issues ( http://help.sap.com/saphelp_xmii115/helpdata/en/Getting_Started/Template_Editor/Query_Construction.htm )
    Just to clarify, the Role/User attributes defined in LHSecurity are truly session properties, and the session properties are shown by the PropertyAccessServlet results.  Adding the name/value pairs to the URL are only a one-shot pass through to the ReportServlet that processes web pages with .irpt extenstions, so they don't actually set the session properties and are non-retentive beyond the one page.  As you are presently doing with the navigation links, we typically recommend URL passthroughs for page to page activities and using the session itself for name/value pairs that you want to set once and use anywhere throughout your application.
    document.APPLET.getPropertyValue(NAME); will also give you access to the session through javascript, but if you do a view...source in the browser after your TeamLeaderView web page has loaded you should see the results of the search/replace efforts of the ReportServlet, and the javascript you are using to get values out of hidden form field elements should simply reflect the text you see in the view source window.
    If they work inside APPLET tags like you mentioned for Param.1 you could also use document.APPLET.getQueryObject().getParam(1); instead of the hidden form field elements, and remember that you have 32 params and if they are not used in the underlying query can provide a very nice place to 'catch' the results like you are are doing with hidden form field elements that could potentially get reset by a form button.
    Regards,
    Jeremy

  • Pass bind value to a variable

    How possible is it to pass a bind value to a variable?
    <cfselect id="addo" name="addo"
    bind="cfc:asproxy.getRList()"display="ListName" value="ListID"
    BindOnLoad="true" />
    The above bind value in addo then passed to the below, making
    available to the whole page as "valueaddo"
    <cfset valueaddo =#addo#>

    Thank you Bitaites.
    I tried to add a new action in the page definitions --> bindings --> insert inside binding create new action --> and then choose the data collection --> select an Action as "ExecuteWithParams" --> in the Value field I put the value e.g. 'APPROVER'.
    Is something I did wrong? Because it seems not work... =(
    Can you explain a little bit about how to do it?
    Thanks a lot!!

  • Passing Auto numbers as Session variables

    Hi,
    I have a large survey which I want to split into different
    web pages, I want to keep the primary key filtering through onto
    each page so it keeps it all together, which I would normally do
    using a session variable. However when I insert the record, I don't
    insert the primary key field, therefore how do i pick it up as a
    session variable?
    I tried using hidden fields, but it tries to insert a null
    value. I'm sure I'm missing something really straight forward.
    Thanks

    Sorry, it's an ASP application with an Access 2003
    database

  • Using HttpHeader to set value for session variables

    Hi,
    We want to set values for 2 session variables (USER and ROLEID) using HttpHeader in obiee 11g. Has anyone tried this? How can we achieve this?
    I found the below note on the forum for setting value for the USER session variable. how can we set the ROLEID session variable also? is it possible to set values for 2 variables?
    for setting the USER session variable,
    You should add this in $BI_HOME/bifoundation/web/display/authenticationschemas.xml:
    <SchemaKeyVariable source="httpHeader" nameInSource="Proxy-Remote-User" forceValue="SSO"/>
    <AuthenticationSchema name="SSO" displayName="Single Sign On" userID="IMPERSONATE" proxyUserID="NQ_SESSION.RUNAS" options="noLogoffUI noLogonUI">
    <RequestVariable source="httpHeader" type="auth" nameInSource="Proxy-Remote-User" biVariableName="IMPERSONATE" options="required"/>
    </AuthenticationSchema>
    Please suggest.
    Thanks.

    I think maybe your SnmpValue type or value is not corrent.
    1.3.6.1.4.1.7064.201.1.200.100.0 is Enum control type
    when I use
    SnmpValue val = new SnmpString("0");
    It doesn't work, but when I use
    SnmpValue val = new SnmpInt(0);
    It works. I think the JDMK should give some warning message when the type is not correct. :)
    The code is following:
    final SnmpVarBindList setList = new SnmpVarBindList(" set varbind list ");
    SnmpOid oid = new SnmpOid("1.3.6.1.4.1.7064.201.1.200.100.0");
    SnmpValue val = new SnmpInt(0);
    SnmpVarBind valueBind = new SnmpVarBind(oid, val);
    setList.addVarBind( valueBind );
    SnmpRequest setRequest = session.snmpSetRequest(null, setList);

  • Pass the value of a variable in a KM Option

    Hi Gurus,
    We have developped a LKM using existing DBlinks to extract data. Since we are not allowed to created DBlinks ourselves on the source DBs, we have added an option in the KM to specify the name of the DBlink that should be used.
    It worked well because we only had the prod context.
    Now we have a Dev and Test context for some dataservers. Our idea was to put a variable DBL_NAME as the option value and refresh it in a package. The dblink name is store in a table with its associate context name and we retrieve the context using the Substitution API : SELECT value from PARAM WHERE param = '<%=odiRef.getContext("CTX_NAME")%>'
    As the value of option DBLINK_NAME we put #PROJECT.DBL_NAME.
    However at runtime the variable is not resolved so its name appears instead of its value : +... from MIN.DATASTORE@#PROJECT.DBL_NAME DATASTORE where     (1=1)+.
    Do you have any idea of the cause of the behavior ?
    We are working with ODI 11.1.1.5.
    Here is the code of our KM :
    create or replace view <%=odiRef.getObjectNameDefaultPSchema("L",  "" , "W")%><%=odiRef.getInfo("COLL_NAME")%>
    +(+
         +<%=odiRef.getColList("", "[CX_COL_NAME]", ",\n\t", "", "")%>+
    +)+
    as select     <%=odiRef.getPop("DISTINCT_ROWS")%>
         +<%=odiRef.getColList("", "[EXPRESSION]", ",\n\t", "", "")%>+
    +from     <%=odiRef.getSrcTablesList("", "[SCHEMA].[RES_NAME]@"+"odiRef.getOption("DBLINK_NAME")"+" [POP_TAB_ALIAS]", ", ", "")%>+
    +where     (1=1)+
    +<%=odiRef.getFilter()%>+
    +<%=odiRef.getJrnFilter()%>+
    +<%=odiRef.getJoin()%>+
    +<%=odiRef.getGrpBy()%>+
    +<%=odiRef.getHaving()%>+
    Thanks in advance for your help.
    Regards

    Hi Michael,
    Thanks a lot for your answer! It could be a workaround.
    However sometimes we have a lot of different sources that doesn't need a different dblink for each context and only one source that has 3 different dblinks (one for each context). If I could avoid to create a lot of useless variable, it would be nice.
    Does someone know if it is possible to put the value of a variable as a KM option ?
    Regards

  • Passing attribute values to custom SOA

    Hi All
    I created a custom SOA wokflow based upon the the auto approval workflow but I noticed the basic fields like "first name" and "last name" is not passed over to the SOA composite.
    can you please let me know how can we pass those values ?
    Thanks

    Hi,
    What you mean by based on auto approval workflow.. can you tell me what is your requirement??
    Regards,
    Raghav.

  • Pass a value returned from variable to parameter ssis 2012

    DECLARE
    @var1
    sql_variant
    =
    @DatabaseName
    EXEC
    [SSISDB].[catalog].[set_execution_parameter_value]
    @execution_id,
    @object_type=30,
    @parameter_name=N'DatabaseID',
    @parameter_value=@var1hi
    all, is it possible to pass the variable value to the parameter instead of the value like above instead of value, in the above case @database holds value of the database

    "pass
    the variable value to the parameter instead of the value like
    above instead of value"
    is misleading
    where do you pass what from?
    Arthur My Blog

  • Passing multiple values to one variable in jsp/javabean

    I have a form, which contains an assortment of fields/checkboxes/etc. What I'd like to see is when someone goes through the form and enters text or checks any fields on the form they want, after they submit it to the next page, the next page will display all those values that they entered or checked. Some of these values entered may be strings or integers. I want all those values (checkbox1, checkbox2, etc) to be stored in one variable in a javabean so I can call upon that value at anytime during the session. Any suggestions?

    why do you want to store so many data in just one variable?

  • CRM_IC: Passing Attribute values between classes

    Hi,
    I'm working on CRM_IC Inbox Enhancements module and facing a problem passing values from one class to another.
    Can any one let me know how can i access the value of an attribute declared and changed in one class can be used and accessed in another class.
    Thanks in advance
    Ajay Yeluguri

    Hi Thirumala,
    Thanks for the answer.
    I'm new to this CRM development and trying what you said but getting errors when executed
    Please check the code and let me know if any changes
    <b>In the first class:</b>
      DATA: lr_bdc TYPE REF TO cl_crm_ic_cucobdc_impl.
       lr_bdc ?= lr_bdc->get_custom_controller( 'CuCoBDC' ).
       lr_bdc->set_navigation_data(
                    iv_source_view_name  = 'testdata' ).
    <b>In the next class:</b>
    DATA: lr_bdc             TYPE REF TO cl_crm_ic_cucobdc_impl,
          lv_bp_number       TYPE string,
          lr_selected_object TYPE REF TO if_bol_bo_property_access.
      lr_bdc ?= lr_bdc->get_custom_controller( 'CuCoBDC' ).
        CALL METHOD lr_bdc->get_navigation_data
          IMPORTING
            ev_selected_object = lr_selected_object.
    Thanks
    Ajay

  • How to store values in session variables for use later

    I am trying to read user input from a form, lookup some values from a database,
    store the combined data into session to retrieve later in the subsequent pages
    in a pageflow application. Could someone guide me as to how exactly to do this?
    The documentation doesn't seem to be of much help.
    Thanks,
    Krishna K

    Krishna,
         If you will be using the data within the course of the same page flow
    or nested page flows then you should store the data in the page flow
    itself. Simply declaring variables in the .jpf will do this. The page
    flow is stored in the session for you and it is deleted when the user
    exits the page flow. This is good because it keeps down session size.
         If you have data that you want to use across page flows then you will
    need to store in the session or globalApp.
         Here is a link to "Using Data Binding in Page Flows" it has an example
    of storing data into the session and it goes into the pros and cons of
    using each data binding scope.
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conDatabindingXScript.html
    - john
    Krishna Kuchibhotla wrote:
    I am trying to read user input from a form, lookup some values from a database,
    store the combined data into session to retrieve later in the subsequent pages
    in a pageflow application. Could someone guide me as to how exactly to do this?
    The documentation doesn't seem to be of much help.
    Thanks,
    Krishna K

  • How to pass attribute values after ExecuteWithParam to method call

    Hi,
    I am using Jdev 11.1.1.6.
    My use case is that I have mainPage BTF which has ExecuteWithParam as the default activity. This filters the VO using params. I have a requirement to store some of the attributes from current row to pageFlowScope which needs to be passed to multiple child taskflows.
    I can introduce a method call after ExecuteWithParam activity and before the page renders but not sure how should I pass the current row (or something) to this method call to store the values on pageFlowScope.
    What should I pass to this managed bean to store the values on pageFlowScope? Is there any alternative?
    Thanks,
    Jai

    I see two possible ways to get to the attributes. First you can get the iterator current row and get the attributes from there. Second you add attribute bindings to the methods pageDef file for all attributes you are interested in. Then you access them using the attribute binding. I never tested the 2nd method but I guess the framework will fill the attribute bindings like it does in a normal page.
    Sorry, can't give you sample code on this add I'm not in front of a PC.
    Timo

Maybe you are looking for