APEX application or page url  - How to use enum string to replace ID number

URL to a APEX page is format as ***/f?p=APPLICATION_ID:PAGE_ID:... . Here the APPLIACTION_ID and PAGE_ID are numbers.
My Question is: Is there a way to replace the numbers by using strings? For example: can I have a URL like /f?p=MY_APPLICATION:MY_PAGE1: ... ? Juts like ENUM in other languages, MY_APPLICATION actually just represent the application id but much more readable since it is a string with a name the user may familar.
Please help.
Thank you.

You can assign an alphanumeric alias to applications and pages using their respective attribute edit forms in the Application Builder. Then you can construct links that use those aliases instead of the IDs. These aliases will generally be preserved in the URL visible in the browser, but not in all cases. You have to deliberately use the aliases in any branch definitions, list item targets, etc. Note that application aliases must be unique within a workspace. Please see the User's Guide for more info.
Scott

Similar Messages

  • Link to URL -- How to use it?

    Hi Experts,
    I have created LinktoURL UI element in my WD program1. I have to call WD program2 from WD program1 using this LinktoURL UI element. I had earlier written code like as below. The code was working fine. Now my problem is that code is not working any more. Can you please provide me some guidelines. What is the generaic method to call one WD program using other WD program using LinktoURL. I had created context called URL and wrote the code in wdDoModify. Problem is earlier code was working fine. Its not working now !!!
    Thanks
    Gary
    public static void wdDoModifyView(IPrivateAutoSettlementAppView wdThis, IPrivateAutoSettlementAppView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
    if(!"".equals(wdContext.currentContextElement().getTripNumber())&&null!=wdContext.currentContextElement().getTripNumber())
          wdContext.currentContextElement().
          setUrl("https://ruepd.mycompany.com:50001/irj/portal?" +
                      "NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.sap.pct%2Fevery_user%2Fcom.sap.pct.erp.ess.bp_folder%2Fcom.sap.pct.erp.ess.roles%2Fcom.sap.pct.erp.ess.employee_self_service%2Fcom.sap.pct.erp.ess.employee_self_service%2Fcom.sap.pct.erp.ess.area_travel_expenses%2Fcom.mycompany.portal.page.create_expense_report&DynamicParameter=trip_number%3D"+
                   wdContext.currentContextElement().getTripNumber() +
                   "%26mode%3Dcreate&TarTitle=Create%20Expense%20Report");
          else
               wdContext.currentContextElement().setTripNumber(wdContext.currentSettlement_DetailsElement().getReinr());
               wdContext.currentContextElement().
                    setUrl("https://ruepd.mycompany.com:50001/irj/portal?" +
                             "NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.sap.pct%2Fevery_user%2Fcom.sap.pct.erp.ess.bp_folder%2Fcom.sap.pct.erp.ess.roles%2Fcom.sap.pct.erp.ess.employee_self_service%2Fcom.sap.pct.erp.ess.employee_self_service%2Fcom.sap.pct.erp.ess.area_travel_expenses%2Fcom.mycompany.portal.page.create_expense_report&DynamicParameter=trip_number%3D"+
                             wdContext.currentContextElement().getTripNumber() +
                             "%26mode%3Dcreate&TarTitle=Create%20Expense%20Report");  

    Gary 
    I have the same scenario and this code works very well:
    change "BBAprovacoesPendentes" for your target application name.
      public void onActionAprovacoesPendentes(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionAprovacoesPendentes(ServerEvent)
           //Get component's message manager
           IWDMessageManager messageMgr = wdComponentAPI.getMessageManager();
           // Get name of deployable object this component belongs to
           String deployableObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
           Map urlParameters = new HashMap();
           // get URL parameter value entered by user, stored in context attribute
           // u2018UrlParamValueu2019. Put parameter u2018hugou2019 in the sneak preview version.
           try {
           // Get deployable object part of target application.
           // Precondition: assume, that other application belongs to the same
           // Web Dynpro Project (Deployable Object)
           WDDeployableObjectPart deployableObjectPart =
           WDDeployableObject.getDeployableObjectPart(
           deployableObjectName,
           "BBAprovacoesPendentes",
           WDDeployableObjectPartType.APPLICATION);
           // Get target URL based on deployable object part and URL parameters 8
           String urlToTargetApp = WDURLGenerator.getApplicationURL(deployableObjectPart, urlParameters);
           // Fire exit plug to target URL via IPublic-API of used interface view
           // controller
           wdThis.wdGetRequisicaoCompraWindowController().wdFirePlugExitPlug( urlToTargetApp );
           } catch (WDURLException e) {
                messageMgr.reportException(e.getLocalizedMessage());
           } catch (WDDeploymentException ex) {
                messageMgr.reportException(ex.getLocalizedMessage());
        //@@end

  • How to use List String in JSP page?

    Hello All,
    I am having problem using List<String> in my JSP page. Below is my JSP code.
    <%@ page import="java.util.*, java.io.*"%>
    <html>
    <body>
    <h1 align="center">Beer Recommendations JSP</h1>
    <p>
    <%
    List<String> beerBrands = (List<String>)request.getAttribute("styles");
    Iterator<String> it = beerBrands.iterator();
    while(it.hasNext()){
         out.print("<br>try: " + it.next());
    %>
    </body>
    </html>
    When I compile the above JSP code in Eclipse 3.4 (using JBoss 4.2 as my Application Server), I get the following Warning.
    Type safety: Unchecked cast from Enumeration to Enumeration<String>
    If I add the "@SuppressWarnings("unchecked")" to the code, Eclipse does not give any Error during compilation. But, at runtime, I get the following Error.
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 10 in the jsp file: /BeerAdvice.jsp
    Syntax error, annotations are only available if source level is 5.0
    7: <p>
    8:
    9: <%
    10: @SuppressWarnings("unchecked")
    11: List<String> beerBrands = (List<String>)request.getAttribute("styles");
    12: Iterator<String> it = beerBrands.iterator();
    13: while(it.hasNext()){
    An error occurred at line: 11 in the jsp file: /BeerAdvice.jsp
    The type List is not generic; it cannot be parameterized with arguments <String>
    8:
    9: <%
    10: @SuppressWarnings("unchecked")
    11: List<String> beerBrands = (List<String>)request.getAttribute("styles");
    12: Iterator<String> it = beerBrands.iterator();
    13: while(it.hasNext()){
    14:      out.print("<br>try: " + it.next());
    An error occurred at line: 11 in the jsp file: /BeerAdvice.jsp
    Syntax error, parameterized types are only available if source level is 5.0
    8:
    9: <%
    10: @SuppressWarnings("unchecked")
    11: List<String> beerBrands = (List<String>)request.getAttribute("styles");
    12: Iterator<String> it = beerBrands.iterator();
    13: while(it.hasNext()){
    14:      out.print("<br>try: " + it.next());
    Any help is very much appreciated.
    Thank you for your help.
    Thanks,
    Chubha

    Hi anotherAikman,
    Thank you for your help. I currently have the following version of the Java.
    {color:#800000}java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
    {color:#000000}{color:#000000}Does it mean I have Java SE Version 6 Update 17 and you are suggesting me to download the Java EE Version 6?{color} If this is correct, can you please let me know what difference does it make?
    I am now going to install the Java EE 6 and try this out.
    Thank you for your help.{color}
    {color:#000000}Thanks,
    Chubha{color}
    {color}

  • Is there a way to tie to iPads together so that when you turn a page with a tap on one, both iPads turn a page.  I am using the ipad to replace piano sheet music.  The challenge is that ordinary sheet music is on both a left and right page.

    We are trying to use an ipad to replace ordinary paper sheet music on a piano.  When truning ordinary paper pages, it is sometimes hard to grasp one page, turn it quickly and get it to stay turned.  The idea with using an ipad is that a tap turns the page, it stays turned.  However,,,,,ordinary sheet music is on both left and right pages.  With one turn you get 2 new pages.  The ipad, being smaller results in only one page and therefore twice as many page turn taps; more taps equals less hands on the piano.  If we could tie 2 ipads together and get them both to turn the page simultaneously it would be nice.  We are trying to get used to using the ipad.  We are using ForScore app to get sheet music into the ipad; we could load one with odd pages and one with even pages.  Maybe this is getting too complicated.
    Anyway to tie 2 units together
    John

    No way to control one device from the other.  But, according to ForScore, you should be able to display two sheets side by side in landscape mode (2-up view)?  Not sure if that helps as it must make the actual print smaller to do so.
    http://www.forscoreapp.com/about/#interface

  • How to use subset string on read visa

    Hi everybody,
    please help me, i have problem about how to pick some string on String indicator (Display Hex)
    please see pict below :
    look at read buffer indicator, how to pick them one by one (Volt, Ampere, Watt, kVar, Cosphi) ? i wanna convert it to decimal. please help me
    THANKS~
    Attachments:
    Modbus NI VISAA.vi ‏13 KB
    Modbus NI VISAA.vi ‏13 KB

    Just use String Subset to pull out parts you need.  For voltage, you will want index to be 2 with a length of 4.  You can then do the conversion however you need to.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions

  • How to use Enums in query ?

    Hi,
    I would like to use java 1.5 Enums in query, but i cannot find any usefull
    informations in docs.
    I use Kodo 4.0.0EA3.
    I have a class with a field that is an enum, and i would like to filter the
    query on specific value. Enums are defined in an other classe.
    i imported the Enums in the query, but a received the erreor below :
    <4|false|4.0.0EA3> kodo.jdo.UserException: An error occurred while parsing the
    query filter "etat==StateEnum.SUBMITTED". Error message: Attempt to query field
    "SUBMITTED" from a class without metadata. If this is a field of an implicit
    variable, you may need to cast the variable within the filter to identify its type.
    Thanks,
    Stephane Bouchet

    Stephane Bouchet a ?crit :
    Stephane Bouchet a ?crit :
    Hi,
    I would like to use java 1.5 Enums in query, but i cannot find any usefull
    informations in docs.
    I use Kodo 4.0.0EA3.
    I have a class with a field that is an enum, and i would like to filter the
    query on specific value. Enums are defined in an other classe.
    i imported the Enums in the query, but a received the erreor below :
    <4|false|4.0.0EA3> kodo.jdo.UserException: An error occurred while parsing the
    query filter "etat==StateEnum.SUBMITTED". Error message: Attempt to query field
    "SUBMITTED" from a class without metadata. If this is a field of an implicit
    variable, you may need to cast the variable within the filter to identify its type.
    I tried to declare the Enum via declareImports and declareVariables, and i get
    now this error :
    The type "DocumentsConstants.StateEnum" as used in the parameter/variable
    declarations could not be found in the imports.
    there is the code :
    String filtre = "state.etat == aState";
    query.declareImports("import fr.emn.castor.documents.DocumentsConstants.StateEnum");
    query.declareParameters("StateEnum aState");
    List queryRes = (List) query.execute(StateEnum.SUBMITTED);I found some exemples from JPOX, that use Enum in queries :
    from the CVS
    (http://jpox.cvs.sourceforge.net/jpox/JPOX/Plugins/Java5/src/test/org/jpox/persistence/EnumMappingTest.java?view=markup)
    , i found that the query must be like :
    pm.newQuery(Palette.class,"colorOrdinal == 'RED'")
    So i tried this but i got an Exception saying just :
    JDOException : java.lang.String ???
    i suppose that is because the value is between special char, but removing them
    and i got the previously errors.
    So my question is : Does Kodo supports Enums in Queries with JDOQL ???
    Thanks for any help,
    St?phane

  • How too use the string tokeniser class to format date strings

    Using the code below I want to write a method which takes a string as a parameter and process it as follows:
    Input: 21/07/62
    Output: 21st July 62
    I wish to do this using the string tokenizer class. Can anyone help??
    import java.io.*;
    public class Input
    public static void main(String args[]) throws IOException
    String theString;
    BufferedReader stdin = new BufferedReader(
    new InputStreamReader(System.in));
    System.out.println("Enter your string now please");
    theString = stdin.readLine(); // throws IOException
    System.out.println("You entered ***" + theString + "***");
    }

    You can certainly use a StringTokenizer to parse your date into three numbers but I think you should use SimpleDateFormat, which will even help you generate your desired format: http://java.sun.com/j2se/1.4/docs/api/java/text/SimpleDateFormat.html

  • Domain redirecting to an apex application and page

    Hi,
    Sorry if this thread has been posted before but I did a search on the forum and couldn't find any answers.
    Basically I've set up a new domain name and I've got an installation of Oracle Apex running. I want this domain name to be redirected to my application and 'home' page when the user types my domain name into their browser.
    I've seen examples of how this is done in this forum using virtualhost in the http conf files for standalone versions of htmldb, but not found any info on how to do it in APEX (since these files are installed for apex).
    Is it possible to perform this type of domain redirect in apex??
    I'm using Oracle Apex version 2.01.
    Any info would be greatly appreciated.
    Cheers,
    Kev

    Kev,
    When you say ApEx...do you mean ApEx or do you mean XE?
    You can use the same method shown for a virtualhost section in the main section of your Apache configuration. The apache directives are valid both inside and outside of a virtualhost section.

  • AIR Application Installer screen - name - How to use image??

    I want to use the image instead of the plain text for the name of the application. Is there any way to use image as an application name?
    PrincessWidget-app.xml
    <!-- Used as the filename for the application. Required. -->
    <filename>Princess Countdown Connection</filename>
    <!-- The name that is displayed in the AIR application installer.
    May have multiple values for each language. See samples or xsd schema file. Optional. -->
    <name>assets/Princess_logo.png</name>
    <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
    <version>v1.0.1</version>

    thanks levi_h
    JTextPane class extends JEditPane and allows you to embed
    images or other components within the text managed by the component

  • How to use a gif to replace the original background in the tab on portal ?

    Hi All:
    I want to change the background by using a gif as the background in the tab of the index.html.
    The Area is like the red area in the url below.
    Link:[pic example|http://uploads.bizhat.com/view/103254]
    All I know is to change a CSS in a par file, but I don't exactly know where the file is.
    Could anyone show me the way to find the file and change it?
    Thanks

    Hi jayesh :
    I am a little coufused.
    In the toplevelnavigation.jsp,the code below
    <!-- 1st level start -->
    <div id="Level1DIV">
        <TABLE id="level1" name="level1" border="10" cellspacing="0" cellpadding="0">
        </TABLE>
    </div>
    If I add some words between
    <div id...>
    and
    <TABLE...>
    , the portal will show what i add.
    This means I'm modifying the right file, and I don't need to creat iview or something else.
    So when I want to change the background using gif file, shall I only change some CSS or some code in some Jsps?
    Allen

  • How to use time machine to replace the current iMovie for one a few weeks ago?

    I have a movie in iMovie that somehow became unusable.  The size says it is 10GB when it should only be about 1GB.  I have been to the Genius Bar for a total of 4 hours and the only solution we can find is to REMAKE the entire movie.  They say that one or more of my movie clips must have imbedded data that it shutting the whole iMovie program down.  They say there is no way to know which clip is causing the problem.  I really don't want to remake the entire 2 hour movie.  I tried to use time machine and found my movie from about 3 weeks ago (before it ballooned to 10GB--so I guess before I added the bad clip) and I just wanted to replace my current one with this version and just fill in the last 3 weeks of data.  However I can't seem to do this.  Does anyone know how to do this using iMovie '08?

    sheri69 wrote:
    I tried to use time machine and found my movie from about 3 weeks ago (before it ballooned to 10GB--so I guess before I added the bad clip) and I just wanted to replace my current one with this version and just fill in the last 3 weeks of data.  However I can't seem to do this.  Does anyone know how to do this using iMovie '08?
    You don't do it with iMovie, but with Time Machine.
    Quit iMovie, then locate and select the file you want to restore in your backups via the "Star Wars" display and click the Restore button.  See #15 in Time Machine - Frequently Asked Questions.

  • Pm-utils: how to use cpufreq after powersave replacement [SOLVED]

    How I can load cpufreq module without powersave? I try lo load p4-clockmod.ko (this module was used by powersave) manually via rc.local, but I got the error
    insmod: error inserting '/lib/modules/2.6.22-ARCH/kernel/arch/i386/kernel/cpu/cpufreq/p4-clockmod.ko': -1 Unknown symbol in module
    As was mentioned in http://bugs.archlinux.org/task/7651 , the cpufreq module can be loaded from rc.local or via MODULES list in rc.conf. What I do wrong?
    Last edited by PavelZh (2007-08-26 19:22:00)

    Module loaded, but dynamic scaling frequency doesn't work more
    #cpufreq-info
    cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
    Report errors and bugs to [email protected], please.
    analyzing CPU 0:
    driver: p4-clockmod
    CPUs which need to switch frequency at the same time: 0
    hardware limits: 175 MHz - 1.40 GHz
    available frequency steps: 175 MHz, 350 MHz, 525 MHz, 700 MHz, 875 MHz, 1.05 GHz, 1.23 GHz, 1.40 GHz
    available cpufreq governors: performance
    current policy: frequency should be within 175 MHz and 1.40 GHz.
    The governor "performance" may decide which speed to use
    within this range.
    current CPU frequency is 1.40 GHz (asserted by call to hardware).
    Why only 'performance' governor is available? With powersave I can switch between 'performance' and 'dynamic' via kpowersave, but now I can set only 'performance'
    UPDATED: governor name is 'dynamic', but kernel module name is 'cpufreq_ondemand'.
    After loading 'cpufreq_ondemand' module kpowersave works again
    Last edited by PavelZh (2007-08-26 18:55:28)

  • How to use SQL String functions with JPA and SAP NW

    Hi Everyone,
    I'm recently got the following problem:
    I have a Web Service project using JPA. But as i found out SAPs JPA implementation or more precisely openSQL restricts the use of the LOWER() function, which converts a String to lower case.
    Now I am looking for some sort of workaround. I want to execute the following JPQL query:
    SELECT bp FROM BusinessPartner bp WHERE LOWER(bp.companyName) LIKE LOWER(:companyName)
    I assume there is somewhere a flag to disable this restrictions, because there might be cases, like mine, where this standard functions are needed.
    Kind Regards,
    Carl

    Hi Vladimir,
    no it's not the same issue, because I am asking for a solution for this problem. There have to be ways to bypass this. Otherwise you can't use JPA properly. This is too much of a restriction!
    Is there no possibility to change to another implementation than openSQL?
    Regards,
    Carl
    Edited by: Carl Simon Heckmann on Feb 2, 2009 2:26 PM

  • How to use method String.split

    I am spliting a string, just like "1a|24|3|4". My code is
    String[] array = new String[10];
    String buff = "1|2|3|4";
    array = buff.split("|");
    System.out.println(array[1]);
    I think that the result should be "24", but the result always
    is "1". Why? When I use String.split(",") to split a string "1a,24,3,4",
    I can get the result "24". Can't "|" be used as a delimiter? Who can
    explain this issue? Thanks.

    Hi
    The argument of split is a "regular expression" instead any common string with delimiters as used in StringTokenizer.
    The char "|" is named as "branching operator" or "alternation"..doesn't matter this moment.
    If you must to use "|" in source strings, change the regular expression to "\\D", it means "any non numeric char":
    // can use any delimiter not in range '0'..'9'
    array = buff.split("\\D");
    Regards.

  • How to use Unicode strings for tool titles?

    So one of the few remaining Illustrator suites that does not accept ai::UnicodeString objects for arguments is AIToolSuite. I would really (really!) like to get some Unicode characters in some of my tool titles and tips, but figuring out what goes on behind the sAITool->AddTool() call, with its char* arguments, is tough.
    I have tried the obvious stuff, like passing UTF-8 multibyte data, which doesn't work. I have tried more nebulous approaches, like passing Z-string data with Adobe's strange way of "escaping" Unicode code points (they typically use "^U+1234" instead of the de facto "\u1234"), which doesn't work either.
    The result is that Unicode data either doesn't show at all, or shows as the typical Latin-based garbage full of diacritical marks (e.g. "éáÊöãÀ") which is nowhere near the original data that was passed in.
    Anybody have some insight?
    PS: I plan on filing a feature request shortly for ai::UnicodeString support in AIToolSuite, but until then...
    Thanks,
    - Garrett

    Hello Mark -
    At this time TestStand has no unicode support. The multi-byte support that we do offer is based on the Windows architecture that handles Asian language fonts. It really isn't meant to provide a bridge for unicode values in TestStand. Certainly, your Operator Interface environment will have its own support level for unicode, i.e. at this time neither LabWindows/CVI version 6.0 nor LabVIEW 6.1 officially support unicode characters. This is why you will see that the units defined in the TestStand enumerators are all text-based values.
    I have run a quick test here, probably similar to what you were doing on your end, and I am uncertain if you will get the database behavior you want from TestStand. The database logging steps and API all use basic char sty
    le strings to communicate to the driver. Even though you are reading in a good value from Excel, TestStand is interpreting the character as the nearest ASCII equivalent, i.e. "Ω" will be stored and sent to the database as "O". If you have a stored proceedure in Oracle that is calling on some TestStand variable or property string as an input, then it is doubtful you will get correct transmission of the values to the database. If your stored proceedure could call into a spreadsheet directly, you would probably have better luck.
    Regards,
    Elaine R.
    National Instruments
    http://www.ni.com/ask

Maybe you are looking for