Change a Global var based on page

Can I change a global var based on what page I am on.
For example.

Hi,
I do that sort of thing myself - though usually I use this as a pointer to where I need to return to when the user has finished an action on a form page (the form being accessible from multiple pages).
Create an Application Item called, say, G_RETURN_PAGE.
On pages 2 and 3, create a Computation that runs Before Header and, using a Static Assignment, sets G_RETURN_PAGE to that page number.
In my case, I use &G_RETURN_PAGE. in the Page setting on a branch, but you could use :G_RETURN_PAGE in PL/SQL etc
Andy

Similar Messages

  • Modify width of rectangle based on page number in InDesign via Javascript

    I have a rectangle called `pageBar` on my master page !
    I would like to create a script that will automatically resize the width of the rectangle based on the page number.
    Something like : `width = 1280 * (pageNumber / pageTotal)`
    Any help would be much appreciated.
    Thanks in advance,
    J.

    Here's the script I ended up with. I'm a bit unhappy that I ended up having the literal string "pageBar" in it twice. The second instance is there to allow the script to be run on the same document twice -- that's one of the prices you pay for using master page items in a script rather than creating objects on the fly and applying an object style to them (better than setting selected properties):
    //DESCRIPTION: Size PageBar on each page
    (function() {
              if (app.documents.length > 0) {
                        sizePageBars(app.documents[0]);
              return;
    function sizePageBars(aDoc) {
              var pageBar = getMasterItem(aDoc, "pageBar");
              if (pageBar == null) return;
              // walk through the document's pages and deal with each page
              var theMaster = pageBar.parent;
              var numPages = aDoc.pages.length;
              for (var j = numPages - 1; j >= 0; j--) {
                        if (theMaster == aDoc.pages[j].appliedMaster) { // ignore pages with other masters
                                  processPage(aDoc.pages[j]);
              function processPage(page) {
                        // numPages, pageBar and j are visible as global variables in this function
                        // caculate desired width
                        var desiredHalfWidth = 1280 * (j + 1)/(numPages * 2); // j starts at zero;
                        // could be running script for a second time, so check to see if page already has pageBar on it
                        var bar = page.rectangles.item("pageBar");
                        if (bar == null) {
                                  var bar = pageBar.override(page);
                        var pBounds = bar.geometricBounds;
                        var xCenter = (pBounds[3] + pBounds[1])/2;
                        pBounds[1] = xCenter - desiredHalfWidth;
                        pBounds[3] = xCenter + desiredHalfWidth;
                        bar.geometricBounds = pBounds;
              function getMasterItem(aDoc, name) {
                        var appliedMaster = aDoc.pages[0].appliedMaster;
                        var anItem = appliedMaster.rectangles.item(name);
                        if (anItem == null) {
                                  alert("Couldn't locate 'pageBar' rectangle.");
                        return anItem;
    I was going to introduce to the resize method, but that would have first meant understanding it myself. The description in the object model viewer is a masterful demonstration of how not to communicate complicated information.
    So I did a web search and found myself on this page by Marc Autret: http://www.indiscripts.com/post/2013/05/indesign-scripting-forum-roundup-4
    Search that page for resize and you'll see what I mean. Compared to the simple manipulation of geometric bounds, using resize is a nightmare of complexity. Marc has simplified it by providing a function you can call, but I decided to just go with using the bounds.
    I hope this proves helpful to you.
    Dave

  • How to increment a value in a textfield based on page number

    Hi,
    I am doing PDF based print forms which is non interactive, i got a requirment where i have to increment the binded value of a text field based on page number.
    presently i am using this code in initialize event of that textfield.
    var curpage = $layout.page ( ref ( $ ) )
    var totpages = $layout.pageCount()
    $.rawValue = $.rawValue - totpages
    $.rawValue = $.rawValue + curpage
    but this is not helping me, can anyone help me regarding this

    Thanks for yor reply.please you can tellme clearly how to set use 'NQ_SESSION.USER' to set the value to logged in User.i.e i have circle table in that users and circle names will be there.it is teradata database.so how can i set that in to the dashboard prompt and one thing along with that prompt the follwing prompts will be there
    mobile no<>
    date<>
    circle name<"user">
    this is my requirement so please help me step by step what to do for achiving this.
    thanking oyu

  • How to debug global vars ??

    I have a problem with the tcode iw32. sometimes the dates are not updated by the system if the main date is changed in a operation.
    this happens with 1 out of 10.000 orders but the impact on the process is very frustrating since it's hardly noticed in time
    now I have a serviceorder where the corresponding date FSAVD is not changed after changing NTANF.
    I thought I had debugged to a point that I thought the function was were the dates were changed unfornatunatly I noticed that somewhere in the programm the global table AFVG_BT is filled. but I can't find where this table is updated in the programm SAPLCOIH  ???
    anybody knows how to find the source of the changes ??
    kind regards
    arthur de smidt

    but it's not an update on a database table but on a global var. in st05 the runtime analysys you only see the database acces so I can't find how and when AFVG_BT is updated ?
    also under se30 I can find a function which I already found before only then the global var is already updated by the system . I want to know when this global var is updated and what rules have been passed before this update took place
    kind regards
    arthur de smidt

  • WRT54G V8 Can't connect to web based setup page?

    Earlier I reset my router and was able to use 192.168.1.1 to visit the web based setup page while trying to re-establish a home network now that I have a new computer using Windows 7 which can not use the easylink advisor. I was able to get on the page to update my SSID and WEP key. But when my wireless devices were still having problems connecting to the internet I tried to go back to the page and found that I can't get it to connect, though my desktop is able to connect to other internet sites just fine.
    Does anyone know what i can be doing wrong? I am using Verizon DSL. I was able to ping the router and all tests showed that it was connected fine, yet I still cannot get on the setup page and my laptop still can't connect to the network. I have tried resetting the router again, and still nothing. And yes, I have gone through numerous power cycles. I also tried going though the network map on my computer, but the computer says it was unable to create a map for it even though at the time I had it listed as a Home network.
    Message Edited by TaiShan on 01-03-2010 07:06 PM
    Solved!
    Go to Solution.

    Wireless connections to 192.168.1.1  often fail.  When accessing the router setup pages, always use a computer that is wired to the WRT54G.
    If the above does not solve your problem, then here are my other tips for viewing the router setup pages:
    You do not need an Internet connection. The router's "web pages" are built into the router.
    Use Internet Explorer, it usually works.
    JavaScript must be enabled.
    Use a computer that is wired to the router.
    In the non-working computer, temporarily turn off your software firewall.
    Point your browser to 192.168.1.1 , then login to your router. Your user name should be left blank. Your password is "admin" (with no quotes), unless you changed it.
    If you are using Zone Alarm, right click on the ZA icon in the system tray (lower right corner of screen) and then click "Shutdown ZoneAlarm", and see if this fixes your problem. If this does not work, try the following with Zone Alarm: Open the ZAISS control center, go to Privacy, then temporarily turn off Ad Blocking and Cookie Control, and see if that fixes your problem.
    Some Zone Alarm users have reported that adding 192.168.1.1 to their list of "trusted" addresses fixed the problem. This trick might also work with other firewalls.
    If you are using Noton Internet Security with the Add-on Pack, be sure to turn off the Pop-up Blocker, and the Ad blocker. Some users have reported that they needed to uninstall the entire Norton Add-on Pack.
    If you cannot get anything at 192.168.1.1 then perhaps this is not your router's address. Go to "Start" > All Programs > Accessories > Command Prompt.
    A black DOS box will appear. Type in "ipconfig" (with no quotes), then hit the Enter key. Look at the "Default Gateway". Is it 192.168.1.1 ? Point your browser to the "Default Gateway", then login to your router.
    If the above fails, disconnect your modem from the router, and try again. If this corrects your problem, then most likely you have a "modem-router" rather than an ordinary modem. Report back with this problem, and also state the make and exact model number of your modem (not the router).
    If all of the above fails, power down your entire system, unplug it from the wall, wait one minute, then power up and try again.
    If all of the above tips fail, then reset the router to factory defaults: Power down the router and disconnect all wires from it. Wait one minute. Power up the router, allow it to fully boot (1-2 minutes), then press and hold the reset button for 30 seconds, then release the button and allow the router to reset and reboot ( 2-3 minutes). Power down router. Wait one minute. Connect one computer, by wire, to a LAN port on the router. Boot up system.  The router should work, but you will need to setup your router again from scratch.  If you saved a router configuration file, DO NOT use it.
    If you still have trouble, then you need to download and install (or re-install) the latest firmware for your router. After the firmware upgrade, you must reset the router to factory defaults, then setup the router again from scratch. If you saved a router configuration file, DO NOT use it.
    Message Edited by toomanydonuts on 01-03-2010 10:54 PM

  • WRT54GX4 - Difficulties Accessing the Router's Web-Based Setup Page

    WRT54GX4 - Difficulties Accessing the Router's Web-Based Setup Page.
    I have tried everything posted to the forums and the Knowledge Base for several weeks now with no luck.  I can power push router and gain access to router's web-base interface but only for a few minutes than it quits loading part way through and or does not load at all.  If I turn off the wireless side I can access the router at will with no problems. My warranty is almost over. I am at my wits end. I would like to get it replaced under warranty if I can. (^8
    Solved!
    Go to Solution.

    Thank you for your recommendations peanuts. (^8
    I bought the router back in December 10, 2006. 
    I updated the firmware to v1.00.20 back in June 2007. After I did a successful firmware upgrade I reset the router to factory default settings and then reconfigured it. It has worked Ok till a couple of months ago.
    I have read everything I can find here on the support forum and in the Knowledge Base several times.
    I have tried changing all the different settings to the different recommendations posted here and in Knowledge Base with no success. Each time I would do a long reset back to factory defaults, let it soak for a few hours and then make one change at a time and let it soak.
    I have been monitoring 6 other wireless AP(s) around me (none mine) for a couple of months too. None of them are strong enough to connect to. My SSID is different from them. I have tried all the channels. My router is passworded and MAC'd.
    It is looking like it is time to call support and try to get a replacement under warranty while it is still in affect.

  • How to change a region title based upon the input parameter?

    Hi All,
    I need to change the region's title dynamically based on the value of a select list in another region.
    Can anyone help me in this?
    Regards,
    Sakthi.

    Hi,
    You can use &P1_ITEM_NAME. (including the & and the .) in a region title - this string will be replaced by the value from the page item called P1_ITEM_NAME, so change the name to suit your page item
    Andy

  • Is it possible to change the spell check dictionary in "pages for iPad" from Spanish to UK English?  The app was downloaded in Spain.

    Is it possible to change the spell check dictionary in “pages for iPad” from Spanish to UK English?  The app was purchased in Spain and I am living in spain temporarily

    Spell checking should be based on the keyboard layout that you've got selected in Settings > General > Keyboard > International Keyboards - if you have an English 'UK keyboard' selected then the spell checking should be English

  • Global Var in Bp

    Hi Masters,
    How can we create Global Var in BP?
    I tested Co-relation, but could not get any easy way to use the concept of Global Var in BP.
    I want to check that how many times my BP has been triggered?

    All the variables are essentially global to the process. Creating a new variable of type xfaForm will do what you ask. If you add an Assign Task, there is a properties section for Form Data Mappings. If you set the input and output to the xfaFrom variable, then any changes made are applied to that variable. You can modify values with a Set Value step using xpath. It is best when you create the form, that you associate a schema with it. Having a schema associated with it with allow you to expand down to any element in the form/variable in the XPath Builder.

  • Global vars in as3

    Hi all,
    I'm sure this is easy, but I can't seem to find out how to do this. I need to create a global var in AS3 so that I can create the var on the main timeline and change it within another movie clip. Thanks for the help in advance.

    If you design your program correctly there is rarely a need for global variables. That said, the easiest thing is to just make the variable a public member of the document class. Then any objects in the program can access this variable using "parent.myVar", etc. I generally like to pass the main DisplayObject in as a parameter of any instantiated class. That way I don't have to use "parent.parent" or any confusing syntax. You could also use "this.root" but I try to avoid that at all costs.

  • Is there a list of global vars somewhere i can access in apex

    is there a list of global vars somewhere i can access in apex
    also can i have the http address in a var in apex

    Hi,
    See the section on Substitution Strings here: http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/index.htm#S - this details the available global variables (eg, APP_USER).
    You can define your own substitution strings - these are set on the Shared Components, Definition page - so you could put your url in there. There are other methods as well, such as Application Items or a SQL table (which may be better if you need to get the url value outside of an application)
    Andy

  • MDMP UNICODE CONVERSION- Global fall back code page.

    Hello ,
    Im doing MDMP unicode conversion. In that SPUMG settings has Global fall backup code bage.
    What is exactly Global fall back code page and its uses?.
    Im using 1160 has Global fall back code page in SPUMG? will there be any effect?
    Thanks and Regards
    Vinay

    Hello Vinay,
    Please have a look at the Unicode conversion Guide:
    Excerpt:
    "Whenever there is no information to determine the correct code page, R3load uses the Global Fallback Code Page (GFBCP) for the conversion. Its default value is the code page which corresponds to the logon language EN, or else 1100. This is a global setting for all tables."
    This basically means you should select the code page used by the majority of the users / data .
    If you use 1160, then the majority of users should be based on Latin-1 (Western European code page).
    Best regards,
    Nils Buerckel
    SAP AG

  • Want to change the Look & Feel of Login page

    Hi,
    I am using Oracle Webcenter 11g (Version 11.1.1.2.0) . I want to change the look & Feel of Login.jspx . I have gone through the extension document
    "*http://www.oracle.com/technology/products/webcenter/pdf/owcs_r11_extend_spaces_wp.pdf"*, it listed about customizing the Landing page .
    But i want to change the look & feel of *"Login.jspx"* page along with want this as landing page. How i will achieve this, will it be done through the same document that i am referring .Please suggest me.
    Thanks,
    Swagatika

    Thanx.
    I just wonder if i could change the global toolbar of the login page though this or not.
    As i changed the webcenter global tool bar (i,e increase the height of the toolbar) using CustomSiteTemplate, but the login page toolbar height remains as it is.
    So how could i achieve this and one more thing how could i make the login page as the landing page and once login done it should forwarded to webcenter spaces. Please reply asap.
    Thanks,
    Swagatika

  • How to change header and footer in login page in oracle apps r12

    Hi all,
    how to change header and footer in login page in oracle apps r12 and login button background color, please help me
    thanks
    saran

    how to change header and footer in login page in oracle apps r12 and login button background color, please help meTips For Personalizing The E-Business Suite R12 Login Page (MainLoginPG) [ID 741459.1]
    How to Personalize Login page in R12? [ID 579917.1]
    R12 Login Page: How to Personalize the Logo ? [ID 849752.1]
    Thanks,
    Hussein

  • Get All Control Values [Variant] Method for Global Vars

    Hello,
    to get all the data of controls use in a VI, the methode "Get All Control Values [Variant]" can be used fine.
    Is anything else available for gloabl variables which are use by this VI?
    Thanks.

    Yes, I tried to link this methode to the vi which contains the global vars but got the error message
    "you cannot make a strict vi refernce to a global VIs.
    Any other idea?
    Thanks, Thomas.
    Message Edited by maximint on 05-30-2007 08:41 AM
    Attachments:
    Untitled.vi ‏40 KB

Maybe you are looking for

  • Need recommendation on all items to buy at same time

    Thanks to the IRS wealth redistrobution racket, I now have unplanned money free to buy a complete home theater setup. I am looking to buy a LED Flat screen, audio / DVD/Blue Ray package, and whatever is required to stream movies and shows from my com

  • Best practices on how to document code?

    Hi, I tried searching the web for tutorials or examples, but couldn't come up with anything. Can anyone sum up some of their best practices to document LabVIEW code? I'm talking about a fairly elaborate program, built with a state machine approach. I

  • Adobe Air 2.7 broke in OS 1.0.6.2390

    Ok, so, Adobe Air sucks to begin with.  It's slowwwww and on the PB it's very unstable.  I've been living with, hoping for improvements.  But with the release of OS 1.0.6.2390 with Adobe Air 2.7 it REALLY sucks.  At least in the previous versino I co

  • When I sign in to FaceTime I get an error message saying cannot login check network connection.

    Cannot connect to FaceTime on wifi!

  • Tomahawk selectOneRadio

    I am trying to get two selectOneRadio components in the same group using the tomahawk selectOneRadio component. This component has a forceId parameter but it does not seem to work: <t:selectOneRadio id="UNIQUEID" forceIdIndex="false" forceId="true" r