Current window variable in SmartForms

Hi,
what is syste variable to find the name of the current window in Smartforms,
regards,
venkat
Edited by: Alvaro Tejada Galindo on Feb 27, 2008 12:02 PM

Hi Venkat,
I think the system variable you are looking for is SFSY-WINDOWNAME!
Have a nice day!

Similar Messages

  • What is the system variable to find the name of the current window in S.F

    hi
    what is the system variable to find the name of the current window in S.F

    Hi ,
    SFSY_PAGEWINDOW
    regards,
    Prashant

  • How to copy window to another smartform?

    I have a window in one smartform which i want to use in another smartform (no copy of first smartform, so other inputparameters). Because of it's complexity i don't want to write it again. How can you copy a window?
    i get always an error when trying to download a subtree, saying that my cursor is in an invalid position, so i have no idea if that could be the solution.
    thanks on advance
    Guido Bouman

    Hi G. Bouman ,
    Its simple just download smartforms to local drive ....
    and upload whenever u want.....
    if you dont want to download it .... you have another option...follow the below steps it works....
    you create one zform in local object.....
    1) open zsmartform and select window which you want to copy
    2) and press back or f3 button and come out of current form and open zform(local object) ... and right click on page and paste it... it will works...as i ve done in my development....
    if you need any clarification contact me.....
    Dont forgot to Reward me points .....
    All the very best....
    Regards,
    Sreenivasa sarma K.
    Edited by: sharmashree kashi on Mar 26, 2008 3:34 PM

  • How to open a new window from submit button &dialog page in current window?

    We have a requirement, wherein we have a OAF search page for PO lines with search criteria, Go button to search ,result region (table layout) and a submit button(Create new expedite).
    1. Now user can select some lines from result region and click on Submit button.
    2. On click of submit button we need to pop up a window or may be a dialog page asking that " Do you want open supplier web link portal or not?".
    3. If user clicks yes(in Dialog page) then first fetch the URL from a look up maintained in Oracle EBS on the basis of supplier of the lines selected and then open that URL in a new window and side by side we need to open a dialog page in search page asking "whether user has updated the expedite info in supplier portal or not?". On basis of this we need to updated some count in custom tables.
    So in step 3 i am facing problem, that how to open an URL in a new window through a submit button and side by side want to open a dialog page in the current window also.
    Hope a quick response from you all.
    Note:- To open a custom page we can have a link or button(button of type button and not submit button) on base page with destination url property as following javascript:
    javascript:var a = window.open('OA.jsp?page=/XXX/oracle/apps/xxx/......&retainAM=Y', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    So the question is how to do the same for submit button on OAF page???

    Antriksh,
    You just need to attach a submit action in button bean and not submit button bean, based on the output of confirm type of alert in javascript.
    Here is code u need to put in destination url of the button:
    //replace <confirm message> by message you want to show.
    javascript:input=confirm('<confirm message>');if(input==true){submitForm('DefaultFormName',0,{XXX:' abc'});}" Now in the process request of the base page CO, u can get parametre 'XXX' from the pagecontext....so
    if((("abc").equals(pageContext.getParameter("XXX"))))
    {/// custom LOGIC }
    The same i have replied in your mail. I hope this resolves the issue.
    --Mukul

  • HTML-DB OAE Javascript to close current window and open a new window

    Hi everybody,
    We work with 1.6.
    What we want is to close the current window and open a new window with the URL mentionned in the window.open('http://www.cf.qc/pls/portal/PORTAL.....,'newwindow').
    The new window opening fires only once although we call it many times.
    Our javascript is:
    function closeTest()
    { alert('closeTest');
    if('&REQUEST.'=='QUITTER2'){     
    w = window.self;
    w.opener = w;
    w.close();
    window.open('http://www.cf.qc/pls/portal/PORTAL.home','newwindow','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
    We call it on our application attributes :
    OnLoad="closeTest()"
    Thanks. Bye.

    Try this on for size:
    I have included two functions.
    windowRebuild() - opens a new window, maximizes it based on the screen size, removes all toolbars, and then closes the old window.
    myLocation(appName, pageName) - builds a url referencing an HTMLDB application, specfic to what server you are currently on. Very useful when you have an application on 3 different servers(dev, test, prod servers), you wouldn't want the server name hardcoded if you plan to export the app to another server.
    Also, you need to be careful when using &APP_ID. I am not completely certain how that is resolved at runtime, but I've found it only works when the javascript is in the HTML Header of a page and not stored in the template of the page.
    <script language="JavaScript1.1" type="text/javascript">
      This functions is for internal application use.
      Examples of myLocation:
      url = myLocation('&APP_ID.', 'APP_PUBLIC_PAGE');
      url = myLocation('MY_APP_ALIAS', 'MY_PAGE_ALIAS');
      url = myLocation('184', '10');
    function myLocation(myApp, myPage){
      var myHost = location.host;
      var newURL;
      newURL = 'http://'+myHost+'/pls/htmldb/f?p='+myApp.toString()+':'+myPage.toString();
      return newURL;
    /*  Function windowRebuild()
    *   This function will open a new window and close the old window.
    *   This function will also maximize the new window and remove all toolbars.
    function windowRebuild(){
       if(window.name != 'myAppWin'){
        var url = myLocation('&APP_ID.', 'PAGE_ALIAS');
        var myWin = window.open(url,'myAppWin','toolbar=0,scrollbars=1,menubar=0,status=1,resizable=1,location=0');
        window.opener = 'x';
        window.close();
       if(window.name == 'myAppWin'){
        window.moveTo(0,0);
        window.resizeTo(screen.availWidth,screen.availHeight);
    </script>Let me know if that works or you need some more explanation.
    Chris

  • How can I close 'current' window and not all windows?

    How can I close the current window (only) and not all or none?
    This function works well with MS Explorer.
    Not a problem, just a desired function.

    Hi JLCluster,
    If you just click the small x in the tab you are currently viewing, it will close only that tab. I think you are clicking the x in upper right hand corner of the screen which closes all open tabs as you described.
    Hopefully this helps!

  • How can I isolate what's causing my current window to lose focus?

    The window I currently have open, (no matter what app I have open,) is constantly losing focus. Like it just did.... I can be in the middle of typing and the system will suddenly give me the alert notification sound for every character I enter, because the focus has gone somewhere else. I can't continue typing until I click back in the current window and return focus. I've downloaded so many "clean it" programs and removed so much stuff it's not funny. Dammit, it just did it again. I searched blogs and forums and found lots of folks with the same problem and the replies have been along the lines of removing this program or that program. It happens when people just start typing. It happens after 15 seconds; it happens when both one program and another are open at the same time. Remove Hyperspace or Adobe Air or...
    I could go over everything I've done to try and fix this myself, but I'm really hoping there's someone out there who can just explain to me how to set up my machine so I can capture whatever it is that's causing this. Then with any luck I can find a fix for it somewhere.
    My frustration is so high, I'm about to turn this thing off and go back to using my windoze box. UGH!

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    Note: If you’ve activated FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode.) Post the results of steps 1 and 2.

  • How can I get a query in the search field to open in a new tab or new window from the current window?

    How can I get a query in the search field to open in a new tab or new window from the current window?

    If you are searching via the Search Bar on the Navigation Toolbar, this preference can be changed to have searches there open in a Tab.
    Type '''about:config''' in the Address Bar and hit Enter. Then answer "I'll be careful". Type this pref in the Search at the top.
    '''browser.search.openintab''' = double-click to toggle to '''true'''

  • Create current date variable at universe level

       Hi Everyone
    I have created report regarding to daily car sales. However there is records registered for further months, 2015 December for instance.
    Actually they are error records, but I can't delete them since data transfer is realizing automatically and updates hourly.
    That is why I have decided to use prompt for report: date is less or equal to current date. But couldn't find way how to create current date variable.
    Please help with this.
    Regards...

    Yes.
    Create an object called Today as:
    cast(convert(char(10),getdate(),23) as datetime)
    Note that it will not parse because it does not reference a table. Don't associate it with a table just to get it parsing as you will then have that table in every query that uses the Today object, whether you want it or not!
    It will work fine when you use it in your query. In your example, create a condition of Ship Date Less Than Or Equal To Today where Ship Date and Today are the names of the two objects. This will then translate into SQL as:
    WHERE orders.ship_date <= cast(convert(char(10),getdate(),23) as datetime)
    This will parse because the table orders is in the statement.
    I hope that is clear.
    Regards,
    Mark

  • How can I access the Tabs page in the current window, without opening a new tab?

    I like the new Tabs page. I'd like to open it in the current window, without the need of opening a new tab or window.
    Is this possible?

    You can make a bookmark and set the location to about:newtab to open that page in the current tab.

  • Button on page 0 -- Close current window

    I have been asked if its possible to close the current window when a user clicks on a button.
    (I suspect this will involve some javascript)
    any example would be appreciated

    Keith,
    Add this to the HTML Header of the page:
    &lt;script type="text/javascript">
    //&lt;![CDATA[
       function closeWindow() {
          window.opener = self;
          window.opener.close();
    //]]>
    &lt;/script>Then call the function from a button by setting the button's optional URL redirect to:
    javascript:closeWindow();Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • My current Windows 7 Disk for my pc work?

    Will my current windows 7 disc I got with my current pc work installed with boot camp?

    No it only says windows 7 OS the drivers are on another CD and the other software is on other CD's Actually I reformatted the pc and put the windows 7 OS back on it clean leaving ALL of the Dell junk off of it because it was slowing my performance down. It has nothing Dell on it now...

  • Content open up in the current window

    When I add content in the content area but when I click the link it opens up in the current window
    s oppose to if it had been URL Link there is an option to open up in current window.
    As I was searching in metalink I found somebody from Oracle had posted this :
    ### What were you trying to accomplish when the problem occurred? ###
    Author : Jerry Silver Type : N/A
    Date : Jun 6, 2001 11:22 PT
    Here's a solution for Portal 3.0.8 or later that allows you to open a file in
    a new browser window. It requires that you create a custom item type, and use a
    procedure to display a link to the file.
    1. Create the following procedure. You can create it in any schema, but the
    schema has to have select privilege on the view 'WWSBR_ALL_ITEMS' in the portal
    schema. In this example, the portal schema is PORTAL30. If you're running
    version 3.0.8, you'll also need to apply the patch to bug 1724250.
    Create or Replace PROCEDURE OPEN_FILE (p_itemid IN NUMBER) as
    fileURL varchar2(1024);
    baseURL varchar2(256) := '/pls/portal30/docs/';
    begin
    select baseURL | | filename into fileURL
    from portal30.wwsbr_all_items
    where id = p_ItemId;
    htp.p ('Open File');
    EXCEPTION
    when NO_DATA_FOUND then
    htp.p('Document not found or access denied');
    when others then
    htp.p(sqlerrm);
    end;
    The procedure generates a link to the item filename with a target of "_blank",
    which opens the file in a new browser window. Replace the baseURL attribute
    value with the correct Database Access Descriptor (DAD) and Document Access
    Path ("/docs") for your site.
    2. Grant execute on the procedure to the portal public schema. The name of this
    schema is <portal schema>_PUBLIC. So if your portal schema is PORTAL30, grant
    execute on the procedure to PORTAL30_PUBLIC.
    3. Create a custom item type, using the base item type of "File". I recommend
    that you create the type in the Shared Objects content area, so it can be used
    in other content areas (from the Navigator, go to the Content Areas tab, select
    Contents for Shared Objects, Custom Types, and Item Types - Create). Edit the
    Text continued in next action...
    new type and go to the Procedures tab.
    4. In the Procedure Call Properties, enter:
    Type: PL/SQL
    Procedure Call: <your procedure schema>.OPEN_FILE
    Link Text: Open File (it doesn't matter what you put here - it only displays if
    "Display Procedure Results With Item" is unchecked.)
    Check "Display Procedure Results With Item"
    5. Under "Pass Attributes as Parameters", enter:
    Attribute: Item Id
    Pass As: p_itemid
    (Notice how you can pass most of an item's attributes to a procedure. You can
    take advantage of this feature to write procedures that give you precise
    control over the rendering of your items).
    6. In the properties for the content areas in which the new type is to be used,
    go to the Items tab. Specify that you want the new type to be visible. You may
    want to hide the base File item type, so users won't be confused by two
    different item types for files.
    7. Edit the folder style for the content area. Go to Folder Layout. Edit the
    region properties for each region in which you will be using the new item type.
    For each region, replace "Display Name or Image" with "Display Name". "Display
    Name or Image" will render the Display Name as a link to your file that opens
    the file in the same browser window. "Display Name" simply renders the display
    name as text, with no link.
    8. Now you can create items of the new item type. Each item's Display Name will
    appear next to a link that says "Open File". Clicking the link will cause the
    file to open in a new browser window.
    Hope you find this useful.
    But after doing this the issue with this still I am able to see this as link on the page but when I
    click on it opens up in current window. But when I click on the header bar that
    displays Content Area name then it takes to the content are manager. Here there is
    a link that shows OPEN_FILE link and then it opens up in a new window.
    But I don't want user to go inside the content manager to see the content to open up in a new window.
    I want this same functionality to be there on the page rather then in the content area navigator
    Thanks

    fuscia wrote:
    stonecrest wrote:sh -c "cd %f && urxvt"
    can't help being ignorant: what is that?
    A shell script for entering the working directory and launching urxvt.
    Try it and see if it actually works.
    I think I tried something like that but wasn't successful...
    Last edited by moljac024 (2008-09-26 12:28:43)

  • Can we call a window of one smartform in another smartform

    can we call a window of one smartform in another smartform?

    hi
    No it is not possible
    regards
    vijay
    reward points if helpful

  • Open in new tab on right click fails to open in the current window when used in a dependent window called with window.open command from original window this worked fine until ver 4.0

    i have been using this page in all versions of firefox until ver 4.0 and it has worked fine
    https://npwas.com/dummy/charts/charts.html
    when this page is loaded enter a stock symbol in the text field "AAPL"
    then click one of the lower links --"Yahoo Headlines"-- and another window is opened with this code
    - function yahoolink(sqlstring, winnum) {
    - var myurl = "http://finance.yahoo.com/";
    - var mysymbol = document.SymbolForm.symbol.value;
    - var mysrc = myurl + sqlstring + mysymbol;
    - var mywindow = "mywindow" + winnum;
    - //alert("mywindow- " + mywindow);
    - if (sqlstring == "mb/")
    - mysrc = "http://messages.finance.yahoo.com/" + -sqlstring + mysymbol;
    window.open(mysrc,mywindow,'resizable=yes,titlebar1=1,toolbar=1,scrollbars=1');
    all this works but when i right click on a message or news item and select "OPEN IN NEW TAB" - it fails to open the tab in this current window it opens it in the parent window --
    the way i have always used this is to able to select news and right click all news items to read as new tabs and have all news items or messages to be grouped in the child window
    this is now broken or do i need to recode something??
    https:\\npwas.com come is my secure server and you may load the page and see the code
    so far i really love ver 4.0 especially the sppppppeeeeeeeeed!!!!
    keep up the great work
    thanx in advance
    tojo

    2 Solutions found in [http://support.mozilla.com/en-US/questions/791244]
    the user cor-el has a method that does not require any add-ons. He States
    This code in userChrome.css will move "Open Link in New Window" to the top of the context menu.
    <pre>@namespace url("<a href="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</a>"); /* only needed once */
    #contentAreaContextMenu &gt; * { -moz-box-ordinal-group: 2; }
    #context-openlink { -moz-box-ordinal-group: 1 !important; }</pre>
    the user jay_ff shows how to do it using the Menu Editor Add-on
    1. Install the Menu Editor add-on from https://addons.mozilla.org/en-US/firefox/addon/menu-editor/ .
    2. After the installation, go to Firefox> add-ons (or simply use Ctrl+Shift+A)
    3. Go to the Menu Editor "Options"
    4. In the "Main context menu," simply grab the "Open link in New Tab" and place it below the "Open Link in New Window"
    5. and Voila! You may also change other menu options if you want to!
    I tried jay_ff method first and found that indeed changing the Main Context Menu did cause the hotlink context menu to change as well.

Maybe you are looking for

  • Can an Ipad be Cloned to an Ipad Mini?

    I have an Ipad 2. I am thinking of getting an Ipad Mini. If I do, it would be a hassle to install and update all the apps again, arrange the icons for them, set all the settings again, etc. Would it be possible to do a full backup of the Ipad 2, then

  • Importing Adobe PDF files

    This question was posted in response to the following article: http://help.adobe.com/en_US/illustrator/cs/using/WS714a382cdf7d304e7e07d0100196cbc5f-656ca .html

  • Can't delete or rename folders when I FTP

    Hi Hope someone can help me with this!! When I connect to a webserver using FTP with dreamweaver, it won't let me delete or rename any folders. It's nothing to do with the persmissions becasue the user has full permissions and can delete or rename wh

  • Binding variables of application class in bsp application.

    Hi, I know it is possible to bind the variables of model class like "//MODEL/VARIABLE" but is it possible to bind the variables of applicaiton class? Thanks and regards, Santosh.

  • Local machine using - expecting remote machine

    Any advice on this one? I did modify the security / firewall to except IChat 2009-01-04 19:42:44 -0600: No data has been received for the last 10 seconds. Audio channel info: local machine using 10.0.1.200:16402, expecting remote machine to send to 6