Share variable value between context

Hello people !
I need to refresh a variable from DB only once, at the beginning, from a GLOBAL context, and then, i need to evaluate that value from several other contexts, but the value must remain the same.
Is that possible ?
ps: asi es, soy argentino. Saludos !

On the package I think is that possible. See # Oracle® Data Integrator - Reference Manual - 10g Release 3 (10.1.3)
http://www.oracle.com/technology/products/oracle-data-integrator/10.1.3/htdocs/documentation/oracledi_reference.pdf
Definition of an iterative loop
To create a loop that repeats ten times, simply create a numerical variable, snp_increment, that
contains the increment, then insert the following three steps:
• Step 1 (Initializing loop): A Set Variable -type step which assigns '0' to snp_increment.
• Step 2 (Increment loop): A Set Variable -type step which increments snp_increment by '1'.
• Step 3 to n: …actions to execute in a loop n times.... The snp_increment variable can be
used in these procedures.
• Step n+1 (loop end test): An Evaluate Variable -type step which tests snp_increment<=10.
If successful, execute the task: "step 2", if failed, execute the task: "<<next step>>"
• Step n+2: .... next actions

Similar Messages

  • Share variable value between java script and jsp

    Hi, Firends:
    In my old web page I used a static array to hold a set of values, and now I want to use dynamic value from datbase.
    I created a bean to process database data and return resultset value to an array string.
    I convert my html page into jsp page, use "usebean" tag to call specific method, after done, how can I set the
    resultvaule to my script variable?
    It's urgent!! great thanks!

    Hello,
    Finally, the codes work! thanks for all the suggestion!
    The most important is "J" need <%= tag too. and do not forget the double quotation mark ("") while assigning the value.
    the code like following:
    <jsp:useBean id="ArrayBean" class="myProj.BeanServices"
    scope="page" >
    </jsp:useBean>
    <%! public String[] dataArray; %>
    <%
    dataArray = ArrayBean.getRecordsetReturn();
    %>
    <script language="JavaScript1.2">
    var MCC = new Array(<%=dataArray.length%>);
    <%for(int j =0; j < dataArray.length; j++){ %>;
    MCC[<%=j%>]="<%=dataArray[j]%>";
    <%}%>;
    </script>
    One more question:
    I found on the web server, if I used the same file name (asp file and js file, html file is ok.), seems the server always used the old compiled codes ignoring the code already changed, even after re-complile. I have to change the file name again and again.
    I worked on JDeveloper environment, it has a testing web server environment on my local, I am not sure if this situation will happen in the real server environment.
    How can I make any new updates go into effect immidiately! Do you know web server has some configuration to handle this?
    Thanks a gain!

  • Sharing complex substitution variable values between ASO and BSO databases

    We have ASO and BSO Essbase database member names with spaces in, and need to store some of these member names in substitution variables. However, this has to be done differently for ASO and BSO, due to calc script syntax requiring double quotes and MDX requiring square brackets. For example:
    ASO:
    &CurWeek value = Week 1
    MDX: [&CurWeek]
    BSO:
    &CurWeek value = "Week 1"
    Calc Script: &CurWeek
    As a result, the substitution variables cannot be shared between the ASO and BSO cubes, since the BSO variable value requires double quotes due to the space in the member name.
    Is there a way to get the above to work with both ASO and BSO? Can the double quotes be escaped in calc script syntax? Or can the double quotes be removed in the MDX formula?

    Hi TimG,
    Apologies for such a late reponse to this, genuinely haven't had a spare second to reply until now!
    Yes, I suspect a complex alias name may be the best solution here, and to remove the spaces from the actual member names.
    I was not aware of the latter part at all. My colleague has confirmed as much on this too - DBAG 11.1.2.1 pp117 & 118:
    "Note: If a substitution variable value is numeric or a member name starting with a
    numeral or containing the special characters referred to above is to be used both
    in MDX and non-MDX situations, create two substitution variables, one without
    the value enclosed in quotation marks and one with the value in quotation marks."
    "To ensure that a new substitution variable value is available in formulas, partition definitions,
    and security filters, stop and restart the application. All other uses of substitution variables are
    dynamically resolved when used."
    This last paragraph is the most concerning since we were planning to be able to update substitution variables values and then access the new values from calc scripts and formulae instantaneously. This quirk is unexpected and a little inconvenient. We may have to look at scheduling a change of substitution variable value overnight, followed by a stop/start of the app ready for the next day, and to work around needing to access changed values instantly.

  • Synchronize substitution variables values between Essbase and Planning

    Hello,
    In EPM version 11.1.2.1 (but we noticed the problem also in previous EPM versions) when we set the value of a substitution variable in Essbase, the value is is not immediately updated in Planning: for some time we see the old value. The value in Planning remains unchanged even in we log off or exit Planning and log on again.
    Instead if we restart the Planning service, the value is immediately updated
    Since we would like to use the Essbase substitution variables to manage some selections in Planning Data Entru Forms, is there any way to force a synchronization, or to increase the frequence of synchronizations between Essbase and Planning?
    Regards
    Francesco Quaranta

    Have a look at setting the planning property SUBST_VAR_CACHE_LIFETIME
    http://docs.oracle.com/cd/E17236_01/epm.1112/hp_admin/properts.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • URGENT: Share PageParameter value between multiple pages

    Hi All
    I have a set of pages where each page have a page parameter (lets call it ParamX). This parameter is used by portlets on the pages to display content from database.
    The problem is that, I need to share the same value of this parameter in all pages of the portlet. In other words, when ParamX is updated from value V1 to V2 in PageA, PageA is refreshed to show new data corresponding to new Value V2. But when user goes to another page PageB, the value is still V1. I want this value to be updated as it was in the page from where user navigated to new page.
    In short, the value ParamX pageparamter should be shared by all pages.
    Thanks in advance

    hi,
    as far as i know there are no global parameters that we support in the portal UI.
    could you please post this question in Portal Development Forum, the people there are more development oriented and might have a solution for you:
    http://forums.oracle.com/forums/forum.jspa?forumID=4
    regards,
    christian

  • Losing variable values between functions...

    hi!
    I'm trying to do something simple in actionscript as simple as this:
    - Create a variable: var urlVideo:String;
    - Use that variable inside a function and give it a value: urlVideo = videoElemento.url.text();
    - Then create a new variable and give it the urlVideo value: var url:String = urlVideo;
    My problem is that urlVideo loses it's value
    Why is that happening?
    Here's my code:
    var idVideo:String = "12";
    var urlVideo:String;
    var xmlPath:String = "videos.xml";
    var xml:XML;
    var loader = new URLLoader();
    loader.load(new URLRequest(xmlPath));
    loader.addEventListener(Event.COMPLETE, xmlLoaded);
    function xmlLoaded(e:Event):void
    if ((e.target as URLLoader) != null )
    xml = new XML(e.target.data);
    xml.ignoreWhitespace = true;
    getVideo(xml);
    function getVideo(videosInput:XML):void
    var listaVideos:XMLList = videosInput.Video;
    for each (var videoElemento:XML in listaVideos)
    if(videoElemento.id.text() == idVideo)
    urlVideo = videoElemento.url.text();
    trace(urlVideo); //has a value
    break;
    var url:String = urlVideo; //the urlVideo values is null !!
    What am i doing wrong?
    Can anyone help me?

    The above post is correct providing the way you displayed the code in your original post is the same way you have it in your program
    function getVideo(videosInput:XML):void
    var listaVideos:XMLList = videosInput.Video;
    for each (var videoElemento:XML in listaVideos)
    if(videoElemento.id.text() == idVideo)
    urlVideo = videoElemento.url.text();
    trace(urlVideo); //has a value
    break;
    var url:String = urlVideo;  this line occurs outside the function which means that until getVideo is called urlVideo will always be null because its never set until getVideo actualy gives it a value.
    zeroskillz method will set the url to play right inside the function which is a good way to organize.. keep behaviors together.
    now if you placed url= urlvideo before the end of the function you would have seen a trace like thus:
    function getVideo(videosInput:XML):void
    var listaVideos:XMLList = videosInput.Video;
    for each (var videoElemento:XML in listaVideos)
    if(videoElemento.id.text() == idVideo)
    urlVideo = videoElemento.url.text();
    trace(urlVideo); //has a value
    break;
    var url:String = urlVideo  //has value

  • Pass variable values between Applications,but not through URL.

    Greetings,
    My objective is to pass a value from one page in one application to another page in a diferent application.
    I am aware through some posts i ahve read in the forum that it is possible to pass the value through URL,
    however besides being unable to do so i don't want the user to be able to see the value in the url.
    Also it may be a big value and there are URL size limitations as well as not looking pleasant.
    I have considered keeping the value in a database field, but i would like to use this only as a last resort since the value is temporary and when it gets to destination page it will disapear.
    Anyone is aware of a solution for my problem?
    My Homepage
    Best Regards

    Hi Igor,
    I don't know if the APEX_UTIL. [SAVEKEY_NUM|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.htm#sthref2583] / SAVEKEY_VC2 functions work across apps, but you could try. The other thing you could try is setting a cookie using the [OWA_COOKIE|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/w_cook.htm] package.
    --Jennifer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can I share values between different jsp pages?

    Hi,
    I'm doing a jsp, bc4j application (JDeveloper 9.0.3), and I need to share some values between different jsp pages. To do this,
    I have used the tag <jsp:usebean.....></jsp:usebean> in this way:
    on pageone.jsp
    <jsp:useBean id="param" scope="session" class="MyPackage.Parameters" ></jsp:useBean>
    on pagetwo.jsp     
    <jsp:useBean id="param" scope="session" class="MyPackage.Parameters" ></jsp:useBean>
    and so on, in order to refer to the same instance of the class "Parameters".
    After deploying, the application works well only if the client is the same pc where the AS resides, otherwise the variables of "Parameters" are null.
    Please, could you help me?
    Thanks
    Nunzio.

    I am seeing an indication on 9.0.3 that static includes are not static, but instead always dynamic. The compiler generates a call to the included page, and doesn't include the content in the calling page as it should.

  • Transfer variable values via ABAP betweenn planning areas

    Hello,
    I'm using an ABAP-coding (BPS How-To 'variables type user-exit) for transferring variable values between planning areas. It works fine for single-, multi- and interval-selection, but not for single hierarchie nodes.
    I don't want to transfer the values beneath the nodes but the node itself. Has anyone experience with that or changed the ABAP-Coding.
    Note, I'm using a variable type hierarchie as destination and get always a dump, when the ABAP is executed.
    Appreciate your help, thanks in advance...

    Hello,
    I am having the same problem. Can the function module Z_VARIABLE_GET_DETAIL from the "How to...BPS Variables of Type Exit" be modified to get the node value of a hierarchy node variable so it can be used as a global variable?
    Thanks, Linda

  • Use context to pass value between JPF and Java Control

    hi,
    Can we use context to pass value between JPF and Java Control? It works if i m using InitialContext in the same machine but i dun think it will works if i put Web server and application server in different machine. Anyone have an idea how to do it?
    I also want to get the method name in the onAcquire callback method. Anyone knows how to do this?
    thks
    ?:|

    Hi.
    Yoy can the next options for make this:
    1. Pass your values in http request.
    example: http://localhost/index.jsp?var1=value1&var2=value2&var3....
    2. You can use a no visible frame (of height or width 0) and keep your variables and values there using Javascript, but of this form, single you will be able to check the values in the part client, not in the server. Of this form, the values of vars are not visible from the user in the navigation bar.
    Greeting.

  • Share JSESSIONID cookie between 2 contexts

    Hi all,
    I am trying to share the JSESSIONID cookie between 2 contexts on the same virtual server.
    www.evador.ca/a and www.evador.ca/b
    I tried to put the following in my sun-web.xml:
    <session-config>
    <cookie-properties>
    <property name="cookieDomain" value=".evador.ca";>
    <description>The domain for which the cookie is valid.</description>
    </property>
    <property name="cookiePath" value="/" />
    </cookie-properties>
    </session-config>
    With Firefox I can look at the cookies created. There is only one JSESSIONID with path / and domain .evador.ca. But even with these encouraging info I cannot see the cookie in both contexts...
    I have an another cookie for localization purposes (That I create my self) called lang and believe it or not this works:
    langCookie.setMaxAge(Integer.MAX_VALUE);
    langCookie.setPath("/");
    langCookie.setDomain(domainName);
    response.addCookie(langCookie);
    What am I doing wrong?
    Thank you,
    Luc
    Edited by: lucbard on Dec 7, 2007 2:55 PM

    Servlet specification mentions:
    SRV.7.3 Session Scope
    HttpSession objects must be scoped at the application (or servlet context) level.
    The underlying mechanism, such as the cookie used to establish the session, can be
    the same for different contexts, but the object referenced, including the attributes in that object, must never be shared between contexts by the container.
    You cannot share a cookie between 2 contexts.

  • Using HttpServletRequest object to share variables between static methods.

    Does anyone know of the overhead/performance implications of using the HttpServletRequest object to share variables between a static method and the calling code?
    First, let me explain why I am doing it.
    I have some pagination code that I would like to share across multiple servlets. So I pulled the pagination code out, and created a static method that these servlets could all use for their pagination.
    public class Pagination {
         public static void setPagination (HttpServletRequest request, Config conf, int totalRows) {
              int page = 0;
              if (request.getParameter("page") != null) {
                   page = new Integer(request.getParameter("page")).intValue();
              int articlesPerPage = conf.getArticlesPerPage();
              int pageBoundary = conf.getPageBoundary();
                int numOfPages = totalRows / articlesPerPage;  
                // Checks if the page variable is empty (not set)
                if (page == 0 || (page > numOfPages && (totalRows % articlesPerPage) == 0 && page < numOfPages + 1)) {    
                 page = 1;  // If it is empty, we're on page 1
              // Ex: (2 * 25) - 25 = 25 <- data starts at 25
             int startRow = page * articlesPerPage - (articlesPerPage);
             int endRow = startRow + (articlesPerPage);           
             // Set array of page numbers.
             int minDisplayPage = page - pageBoundary;
             if (minDisplayPage < 1) {
                  minDisplayPage = 1;     
             int maxDisplayPage = page + pageBoundary;
             if (maxDisplayPage > numOfPages) {
                  maxDisplayPage = numOfPages;     
             int arraySize = (maxDisplayPage - minDisplayPage) + 1;
             // Check if there is a remainder page (partially filled page).
             if ((totalRows % articlesPerPage) != 0) arraySize++;
             // Set array to correct size.
             int[] pages = new int[arraySize];
             // Fill the array.
             for (int i = 1; i <= pages.length; i++) {
                  pages[i - 1] = i;
             // Set pageNext and pagePrev variables.
             if (page != 1) {
                  int pagePrev = page - 1;
                  request.setAttribute("pagePrev", pagePrev);
             if ((totalRows - (articlesPerPage * page)) > 0) {
                 int pageNext = page + 1;
                 request.setAttribute("pageNext", pageNext);
             // These will be used by calling code for SQL query.
             request.setAttribute("startRow", startRow);
             request.setAttribute("endRow", endRow);
             // These will be used in JSP page.
             request.setAttribute("totalRows", totalRows);
             request.setAttribute("numOfPages", numOfPages);
             request.setAttribute("page", page);
             request.setAttribute("pages", pages);          
    }I need two parameters from this method (startrow and endrow) so I can perform my SQL queries. Since this is a multithreaded app, I do not want to use class variables that I will later retrieve through methods.
    So my solution was to just set the two parameters in the request and grab them later with the calling code like this:
    // Set pagination
    Pagination.setPagination(request, conf, tl.getTotalRows());
    // Grab variables set into request by static method
    int startRow = new Integer(request.getAttribute("startRow").toString());
    int endRow = new Integer(request.getAttribute("endRow").toString());
    // Use startRow and endRow for SQL query below...Does anyone see any problem with this from a resource/performance standpoint? Any idea on what the overhead is in using the HttpServletRequest object like this to pass variables around?
    Thanks for any thoughts.

    You could either
    - create instance vars in both controllers and set them accordingly to point to the same object (from the App Delegate) OR
    - create an instance variable on the App Delegate and access it from within the view controllers
    Hope this helps!

  • Access custom variable value in web.xml context-param?

    My requirement or need is to access a variable value either in a class in my Model project or a backing bean in my View project. For example, one variable I need to access is an application server I am integrating with - 'testserver' or 'productionserver' - I want to be able to configure this within an external file so that I do not have to re-compile my application to change the variable.
    I was thinking about placing this variable in the web.xml <context-param> section as:
    <context-param>
    <param-name>servername</param-name>
    <param-value>testserver</param-value>
    </context-param>
    I need to access this value within a class (not a servlet) on an Application Module service method, though if needed, I could access it from a backing bean and pass it to the service method (less desirable.) Is this a good approach and how do access this variable from within a Java class including any imports I need to do (code example)?
    Thanks and Happy New Year!
    Hopefully most everyone is out spending time with friends and family versus stuck trying to complete a project like me...

    I found an example from SRDemo that provides what I was looking for:
    String serverhostaddress =
    FacesContext.getCurrentInstance().getExternalContext().getInitParameter("param-name-var-in-webxml");

  • Pageflow variable values don't hold between two ajax requests

    I have pageflow application(Portal) where I have implemented typeAhead(like google suggest with AJAX) for two select boxes. Here I have to inform the server of the firstbox value after it is selected(with AJAX) to save it in pageflow variable so that for next request(while typing in second select box), the corresponding select option data determined by first selection has to be returned. But I see that pagflow doesn't hold values between subsequent ajax requests.But as per BEA Pageflow description values are retained till the end of session.
    Does it have anything to do with the ajax requests which are not normal HTTP browser requests? Plz any suggestions are welcome.

    Hi
    Thanks for reply,
    I know that you said, because I did some ABAP programs and some ABAP reports of the bussiness process of Collateral Objects, with information of these tables and when I tried get information,  I did something like you said, or I assigned cms_ast-object_ref_id to a variable, and this varible I converted to the same type of the other field and find the match or join between the tables(cms_movables, cms_ast).
    The problem is not when I do an ABAP program. The problem is:
    (BO)Business Objects needs to get some information about these tables to do some reports, but  BO has not the tools or the capacity to convert  fields, as well as ABAP. BO gets information directly of the tables of database.
    The posible solution to this problem is that I can create a job and a program, which function is replicate the information of cms_ast and insert on a "z" table or get the relation between to tables (cms_movables and cms_ast) and insert on a "z" table. These can help BO to get information, because BO instead of get information of this tables (cms_movables, cms_ast) , now get information of the table z and then get and join with other tables.
    The principal problem is that BO get information online, with these the job which run the program need to be run minute per minute. and I think that it is not the best practice, because all the tables are some scalables.
    I think that my program could be better, how can I catch a INSERT event on table cms_ast, to convert the fields, and insert on a "z" tables
    Or anybody have an idea, how can i solve these problems?

  • Web report - Variable values while switching between views.

    Hi Gurus,
    We have a query which has a few variables that are getting populated with default values during query execution[customer exits].
    We have added this query to the web.Now there is a date variable  which gets populated with the current date value by default.Suppose the users don't vant to run the report for the current date, they are able to change the date in the variable window and execute. But once the report is run, and we try to choose a different vieew for the report, the report automatically gets refreshed with the selected view, but for the default current date value (because of the customer exit).Shouldn't the selected view be getting refreshed with the date values that the user had entered while executing the report?
    Also when navigating between the different views, shouldn't a variable window pop up? Is there any setting to have the variable window pop up when navigating between the different views of a web report?
    Would appreciate a quick response.
    Thanks a Lot
    Arvind

    hello,
    we need to go to Query properties -> interaction tab-> remove reuse variables to populate the variable screen everytime or "Save and reuse variable values" to supress variable window
    or
    Problem could be due to any personalisation.try this:
    One the query is executed, click on the button which says change variable values.
    In the variable pop-up screen which comes up click on the personalization button
    In the new screen which comes up click on reset personalization button
    Enter new variable values and execute the query.
    Reg,
    Dhanya

Maybe you are looking for

  • Windows Server (Exchange) Login on Mac OS X 10.6.5?

    I have an odd question. Here at work, my colleague is able to login to his MacBook using his MS Windows Server login info, he also get s PW expiration notifications and the ability to change the password through his Mac OS X login screen. Meanwhile,

  • How do I save or export my collections?

    How do I backup, save, or export my collections?  I have about 20 collections.  I want to be able to restore them all if my computer crashes and I need to pull everything up on a new computer.  I may also want to have my collections accessible on a s

  • Getting the values in separate columns

    Hello Everyone I am new to Bex, i have the sales data of 2008,2009,2010. now my requirement is to display the sales order(key figure) for 2008,2009,2010 in separate columns for each customer(dimension) in a single report , can any one help me how to

  • Setting up a Test Voice VLAN for Lync 2013

    I want to set up a second voice vlan to be a test vlan. In the current situation the customer has voice and data running on  vlan1. The customer insist on taking incremental steps to improve QoS. I have advocated separated vlans for voice and data. T

  • When adding a file to library in iTunes 8 it is not played automatically

    Hi, Before iTunes 8, double-clicking on an mp3 file, would add it to the iTunes Library and play it automatically. However in iTunes 8, when a file is added to the library, it is not played automatically and we have to find it in the list and play it