Hide/Use a page based on country

I apologize in advance if this has been covered, but I have been searching and haven't seen what I need.
We have created a modified version of the travel expense form, and have added a cover sheet and summary page to the process before the SAP delivered detail prints.  The second page, the summary, is landscape while the other pages are portrait.
We are now going to be handling the travel processing for our mexican divisions, and they have different requirements for the summary, which include the page being portrait, not landscape as it is currently. 
I was thinking I could develop another page in portrait, with the fields they require, but I would have to use country to determine which page to hide, and which one to use.  How can I use the employee's country to determine which page to display?
I saw something on the boards about using formcalc to hide items, but can it be done for a whole page?
Thanks in advance.

Thank you for the resource.
The document mentions hidden is not available for master pages.
When this was originally developed, the programmer put pages Cover and Summary under the drop down (Master Pages) under the Hierarchy tab.  Aon the same level as (Master Pages) I find items CoverSheet and US_Summary.  Am I to connect my script to Summary under (Master Pages) or to US_Summary? The Summary is the item with the landscape orientation.  US_Summary has no orientation. 
Sorry if this is a bit rudimentary, but I am left modifying this without much knowledge of the product.
This is the code I entered in ready:layout for US_Summary
----- data.US_Summary::ready:layout - (FormCalc, client) -------------------------------------------
if ( $record.COVERSHEET.C_HEADER.CNTRY eq "Mexico" ) then
this.presence = "hidden"
endif
Edited by: Ed Left on May 7, 2010 5:43 PM

Similar Messages

  • Currency Translation: Query use different Rates based on country/Currency

    Hi Friends,
    There is a requirement from our client to apply two different Exchange Rates on the rows of a single query (based on the Inflationary status of countries/Currencies).
    For regular set of countries(or Local currencies), we want normal P&L Rate to be applied on local curency.
    But at the same time if it is a High Inflationary country (or currency), the Global Currency should be displayed as it is without any translation.
    Both these effects should happen and appear on the same Key figure column.
    How can we achieve this?
    Looking forward to have your inputs. Thanks in Anticipation!

    Hi Vikram,
    Thanks for the suggestion.
    It seems as if this suggestion could work only when we want to excute for a given country code. In Reality the query will be executed for all countries in one go and we want the query result rows follow different logic for Different LEs or Currency.
    Any further Ideas Pls. Thanks!

  • How do I display or hide a Java menu based on current url in a php page

    How do I display or hide a Javascript menu based on the current url in a php page?
    I want to specify when a java menu appears on a page based on the current url - does anyone have a script for the vars and conditional statements to make this happen - it would be something like this in natural language:
    <javascript>
    if currenturl = http://jemmakidd.com/categories.php
    then displaymenu
    else if currenturl = http://jemmakidd.com/categories.php?cat=14 (or 15,16 etc)
    then DONOTdisplaymenu
    What is needed is that, if you look at this page there is a java menu under the first category:
    http://jemmakidd.com/categories.php
    I WANT the menu to appear on that page so that is working, however if I look at one of the store categories, like on this page, I do NOT want the menu to appear - it may be that this can be done without using a java current url type function - thats why I'm asking...
    http://jemmakidd.com/categories.php?cat=14
    So to summarise:
    http://jemmakidd.com/categories.php (If this url is used DO display menu - if any other url DONT display menu)
    Thanks again...any ideas?
    Edited by: littlealex2009 on Jul 15, 2009 12:51 AM

    This is a Java forum, not a Javascript forum. Google the differences.
    kind regards,
    Jos

  • How to hide table column based on country molga value

    Hi Experts,
    I am doing some enhancement in ess application. I want to hide table column based on country code i.e. Molga value.
    I want to hide coulm for only Japan country reset of them i need to be show those coulmn.
    Could you please provide me a sample code.
    Regards
    Chakri

    Hi Chakri,
    Your setting the table value that time you will get the Country Code.
    1.Create the attribute like Country_Column_Visible Data Type bind the com.sap.ide.webdynpro.uielementdefinitions.Visibility this value  you need to bind the table country column.
    2.In Table You need to check the country code Japan is available you need follow this below sample code.
    for(int i=0;i<tablesize;i++)
         tablesithValue=wdContext.nodeTable().getTablenode(i);
         if(null != tablesithValue.getcountrycode)
         if(tablesithValue.getcountrycode.equalsIgnoreCase("Japan"))
              wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.NONE);
         }else
              wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.VISIBLE);
    Use the above code you condition it will work.I hope it will help you.
    BR,
    Durga

  • Hide/Show Pages Based On Dropdown Selection

    Hello,
    This one is driving me crazy. In this form (attached) I have 3 checkboxes and based on what is checked, I want to hide the first page and navigate to the 1st checked box. It works for the Web Chat option, but all others do not. Also, on the next button from the Web Chat page, when I click next, I have an alert pop that should only show if Web Chat is the only selection chosen, but it shows no matter how many selections are made from the checkboxes.
    As always, any help is appreciated!

    Hello,
    That took care of the popup issue, but the navigation is still a problem. For some reason choosing any option from the checkboxes and any option from the Type of setup dropdown always brings me to either a blank page or the Web Chat page.
    Thanks for looking into this, hopefully you (or another member) can assist with this issue as well.

  • I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics

    I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics with "Alternative Text".
    I know that with a Microsoft product graphics can be tagged before a PDF is made. I need to know how to do this with my programming.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

  • How to create a form based on table using dynamic page?

    Hi,
    I need to create a form using dynamic page. How do you pass values from the html form to a oracle procedure that will get executed on submission of the form ? I could not find any documents which shows how to do that. Can anyone please help me out with an example ?
    thanks,
    Mainak

    Hi,
    Something seems to get added to the form action because of "http". Hence I am removing it.
    You need to write a procedure with the values in the as parameters. Say for example you want to insert a record into dept
    table then
    Dynamic page code
    <html>
    <body>
    <form action="portalschema.insert_dept">
    <input type="text" name="p_deptno">
    <input type="text" name="p_dname">
    <input type="submit" name="p_action" value="save">
    </form>
    </body>
    </html>
    Procedure code.
    create or replace procedure insert_dept
    (p_deptno in number,
    p_dname in varchar2,
    p_action in varchar2)
    is begin
    if p_action = 'save' then
    insert into scott.dept(deptno,dname) values(p_deptno,p_dname);
    commit;
    end if;
    end;
    grant execute on insert_dept to public;
    Hope this helps.
    Thanks,
    Sharmila

  • A website says i need to use a UK based proxy for their site. I am based in England!

    This is what the site says when I try to view it even though I am in England >>
    Licencing restrictions require that Kiss Kube is only available to UK based listeners. Kiss uses a system to determine your geographic location via your IP address to make the decision.
    Multi-national corporations and internet service providers sometimes have their network configured in such a way that it makes it appear to the Kiss Kube that you are trying to listen from another country.
    If you are in the UK, please ask your IT department if you're able to use a UK based proxy for internet access.
    == URL of affected sites ==
    http://http://kube.totalkiss.com/browser.php

    What does this web page say about your location?
    http://whatismyipaddress.com/

  • Unable to hide the first page in the form

    Hi ,
    I am trying to design a dynamic form that has three pages. The form is being used in a LiveCycle process and during the process initiation, only the second page should be visible and the first and third pages should be hidden. I am trying to hide the first and the third pages using JavaScript. I noticed that the third page is being hidden but the first page gets displayed as an empty page. Based on this behavior here are couple of questions I need guidance with
    Can we hide the first page within a form? If so why am I seeing this inconsistent behavior when hiding the first and third pages?
    If the first page can not be hidden then is there a workaround to achieve my goal of re-arranging the pages so that I can add content to the first page dynamically and shift the previous content on the first page to the second page?
    Any suggestions will be appreciated.
    Thanks,
    Samanthapudi

    Hi,
    You've originally said.
    in the first page i don't want data in main window...
    yet using a command node to trigger the next page means you have to include a (presumably) empty main window in the first page.
    Your main window has to contain some output (a table usually) and it's contents are the same on every page (only it's height can change).  So, you can't have a blank main window on page 1 and a main window with data on pages 2 and 3.
    Remove the main window from page 1, set page2 as the next page for page 1.
    As for how to trigger page 3 you'll need to provide more detail on what the condition is.  Do you want multiple copies of page 2 to hold all of the main window data, or just one?  Do you want one copy of page 2 then the rest of the data on multiple copies of page 3.  Be specific.
    Regards,
    Nick

  • Show/Hide DVT Admin Menu Based on Entitlements

    Hi,
    We're using the DVT framework provided in Weblogic Portal 10.3.2 to create My Page functionality within our portal project. Part of the requirement is to offer limited functionality to non-admin users.
    For example:
    Portal Level Customization Menu
    - Show/Hide based on entitlements (we tried setting an entitlement of the Main page Book, and that worked, however after that we were unable to see the Customize Menu for any child Books/Pages)
    - Limit entries based on entitlements
    Book Level Customization Menu
    - Limit menu entries based on entitlements
    - Restrict the ability to rename book based on entitlements
    Page Level Customization Menu
    - Limit menu entries based on entitlements
    - Restrict the ability to rename page based on entitlements
    Portlet Level Customization Menu
    - Limit menu entries based on entitlements
    - Restrict the ability to rename portlet based on entitlements
    We've been able to eliminate DVT functionality for entire Books and Pages based on entitlements, however we can't find a way to provide limited functionality as described above.
    Any suggestions on how to accomplish this?
    Thank you.

    Sorry about the confusion. What I meant was, I tested with both setting entitlement and DA roles (separately) and found that the usecase you are describing works. BTW, you are right in that only visitor entitlement roles effect dvt functionality. I just wanted to check if setting DA roles wasn't causing some undesirable behavior.
    Back to the issue you are having, I am assuming you are talking about setting a 'view' entitlement for 'role1' on the primary book and logging in as a user that is not in 'role1' but has 'edit' rights on a child page or book of the primary book. In that case you shouldn't be able to see anything since you don't have view rights to the main book. If that is not the case, can you provide details about your setup?
    Here is what I tested and found working. Set an 'edit' entitlement for 'role1' and a 'view' entitlement for 'role2' on the primary book. When logged in as a user from 'role2' I cannot see the 'Customize' gear icon on the primary book but I can see the gears on child books, pages and portlets. I tested the usecase with non-primary books and that works too.
    Thanks

  • Multipage forms to assess students - use 1 page per student?

    Hi
    I need to set up a form to assess 16 students...rather than have the assessors complete 16 separate forms. I can use conditional branching to show or hide pages based on a selection at the start (so the assessor only sees the pages for the students they want to assess), but how do I return results that can be separated out by student...i.e. if the same "questions" are on each page can I identify them separately?
    Thanks

    Sorry I don't quite understand your use case. Why do you not want the 16 students to fill out the form separately? If you do that, then you can easily see the results separated by student.
    Randy

  • Blank page is getting displayed in SAPScript when using NEW-PAGE option.

    Hello Experts,
    We have created a customized SAPScript and in this separate Script is generated based on the currency(WAERS).
    So if we have 3 different currencies, then 3 pages will be created with there details, but we are using NEW-PAGE option in
    MAIN window to separate the pages and after 3rd page it is displaying 4th page also with footer details.
    So how can we avoid last blank page which is getting displayed?

    Hi isha.walia ,
       This issue can be solved by two ways. Please take the one which suits you better.
    Solution 1: If  you need to generate separate prints for different currencies.
    In the driver program, build an internal table for different currencies which needed to be printed. (Using delete adjacent duplicates, build the internal table with exact number of currencies to be printed). Remove the NEW-PAGE option and call the script/form inside the loop. Do the necessary conditions to manipulate the print.
    Advantages of above solution: Better control on spools if needed.
    Solution 2:  Get the count of the number of pages in a variable. Inside the print loop, increment a flag counter. Check it against the variable which contains the number of pages to be printed at the end of each page. Exit the loop when the number of pages to be printed is reached.
    Advantage of above solution: Simple to write the program.
    Thanks and Regards
    Raghesh R S

  • How can I HIDE a web Page From the Index above?

    I sometimes would like to directly link one page to another instead of listing every single page in the INDEX. For instance, I have a "Renovations" page with two other renovation pages following.....Can this be done from page to page with Hyperlinks ONLY? Is there a way to "hide" the titles in the Index listings above each page so they don't show with the web pages that I DO WANT listed?
    G5   Mac OS X (10.4.6)  

    Welcome twincrks
    You can use Inspector, Page Tab and uncheck "Include
    Page in navigation menu", this will stop the page
    being displayed in the navigation bar at the top of
    the screen.
    You can then manually create links to your other
    pages (see www.willg4pb.com - Hyperlinks for
    creating hyperlinks). Then, again using Inspector,
    this time the Link Tab, choose to Link To: One of My
    Pages, and choose the page you wish to link to from
    the drop down list.
    Will
    AWESOME! I just knew that there was a genius out there to help me. Thank you Will! Kathy

  • Creating a adf page based on webservice data control

    hello
    i am using latest version of jdev 11g from otn.
    i created a VO based on EO and define a view criteria as well. i added that to a AM and exposed it as web service and deployed to a wls server.
    now i wish to created a adf page based on it so i created a ws data control based on the wsdl.
    in the data control section now i see service as findSearchOrder. When i try to drop it on the page it created a adf form with two input boxes findControl and findCriteria.
    So, I am not able to understand how exactly these are going to map to the actual search parameters?
    Please advise

    If you want to retrieve all records, you can set them to null.
    But of course, it depends on what you want to archive (I suppose you want a search form?).
    Please give us your complete JDev version. (Help > About > About tab)

  • Error Copying pages based on a template

    I get the following error while copying pages based on a template. The template also contains a top horizontal navigation bar (portlet), a footer (portlet) and one item (portal smart text - Current Page). I'm using Portal 9iAs Rel 2 on win2000.
    Error while copying page. (WWC-44262)
    An unexpected error occurred: User-Defined Exception (WWC-44088)
    This region was not found. (WWC-44089)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)
    If I delete all the portlets and items from the template I'm able to make copies of the page.
    Has anyone else faced a similar problem? Please let me know if anyone has a solution.

    We've seen this problem on pages imported from another site. Please report this problem to Oracle Tech Support.
    Thanks,
    Portal PM

Maybe you are looking for