How to set the view, which has to be shown at runtime?

Hi,
in my application i have more than one view, but at runtime only one of these views has to be shown. I want to decide this via a parameter that I get from the url.
How can i set the right view to be showing at runtime?
I tried it with a StartView which fires the right Outbound Plug in his wdDoInit-Method. This is working fine, but the problem is, that the method OnPlugDefault() of ComponentInterfaceViewController isn't called already at this time. So in the Init-Method of the StartView I don't have the given URL Parameter, so I can't decide which Plug I want to fire. The method OnPlugDefault() is called only after the init-method of the StartView.
Is there any other possibilty to set the view, which has to be shown, at runtime?
Thanks and Best Regards
Katharina

Hi,
One way is you can pass the parameter in the URL , read the parameter and then fire the outbound plug depending upon that.
You can read the parameters as follows
HttpServletRequest request =Task.getCurrentTask()
     .getWebContextAdapter()
     .getHttpServletRequest();
String[] param1 = request.getParameterValues("<<PARAMETRNAME");
if(param1.equals("VALUE"))
  fire outbound plug1;
Regards, Anilkumar

Similar Messages

  • How to set the view privilege of a portlet?

    Dear all,
    I would like to ask how to set the view privilege of a portlet (which is located on the Intranet homepage) to only a group of users?
    As far as I know, I can create a tab with view privilege to address the about scenario. But is it possible to directly set the view privilege to the portlet ?
    thanks
    George (HK)
    Welcome to my photo albums at http://community.webshots.com/user/GeorgeLee80
    Message was edited by:
    georgelkh

    OK, you got me there George. I don't know where you can set view rights to an out of box portlet. So how about a different approach?
    1) Create a blank page with no nav bar or anything else
    2) Assign the group you want to see the notifications portlet view rights on the page
    3) Make sure the show as portlet check box is checked on the Optional tab in the page properties
    4) Add the notifications portlet to the page
    5) Ensure the portlet settings are how you desire in terms of what notifications to show and the region settings are how they should be in terms of border, headers, etc
    6) Edit the page where you want the notifications portlet to be shown and add the page portlet you just created instead of the notification portlet
    This should achieve what you seek without having to dig into out-of-box portlets.
    Rgds/Mark M.

  • How to get the records which has a specified x/y coordinates

    Hi,
    How to get the records which has a specified x/y coordinates. I have a table which has street data. And another table has a point data. Now I just want to get the records from street data which includes the points in the point data table. Can any one give your suggestions
    Thanks and Regards
    Aravindan

    Aravinda,
    If you want to find the line segments which intersect the given
    set of points, you can do that with SDO_RELATE.
    siva

  • How to open the period which has already closed in MM

    How to open the period which has already closed in MM.

    1. Lock all users out of PRD
    2. Take snapshot of MB5L for all materials at company code for current and previous periods
    3. Add User parameter MMPI_READ_NOTE with value = current date in this format YYYYMMDD
    4. Stop all processing that updates inventory values
    5. Run t-code MMPI with correct period
    6. Run Z_DEl_HIST_ENTRIES program
    7. Take MB5L snapshot for all materials at company code fs01 for current and previous periods
    8. Validate that values match on MB5L pre-post snapshots or are appropriate.
    9. Unlock all users in PRD
    10. Remove User parameter MMPI_READ_NOTE from user ID
    chander

  • How to clear the node which has multiple attributes

    Hello ,
               how to clear the node which has multiple attributes.
    I've tried this using the method SET_STATIC_ATTRIBUTES_NULL but it's not working.
    Thanks,
    Sandhya.

    Hello,
    I suggest you to create an internal table or structure clear it and the bind it to the context node.
    Another possibility is to try to invalidate the node (method INVALIDATE of interface IF_WD_CONTEXT_NODE).
    Regards.

  • How to set the View instance and view  attribute to lov field ?

    Hi
    I created lov and textfield programatically.
    I want to set the viewattribute and view instance to that items(lovbean, texfieldbean).
    How to set programatically?
    Thanks in Advance
    Awadesh

    Hi
    Thanks. Its working fine. But now i got some another issue.
    after setting, i put simple system.out.println(Pagecontext.getparameter("idoflov"));
    But it returns null value.
    why. Actully i want to pass this value (according to my requirement).
    The view instance and view attribute are setting correctly. But after that i checked means it returns null value .
    plz let me know.
    Thanks

  • How to set the view HTML source in IE using Notepad to open?

    When I want to view the HTML source in IE, Java Web Start is launched instead of Notepad after I install the Java Web Start. How can I change the view source back to using Notepad?

    Sorry, a late reply: simply remove (or rename) the JWS Notepad shortcut from your desktop.
    It seems that this "lovely" little example application
    has taken over IE's "view source" feature by trying to
    launch itself in the place of notepad. It would be quite disappointing from the sandbox point-of-view if a JWS application would be able to make such changes without any warning...
    It's more like Windows cannot handle two applications with the same name. Just hold down the Windows key, hit R and type "notepad" in the Run dialog and you'll also get the JWS demo -- while typing "notepad.exe" still fires Windows Notepad.
    Even more strange: typing "notepad" in a MS-Dos box does not fire the JWS demo, even when you change the current directory to be your desktop, like c:\windows\desktop. However, typing "start notepad" in that specific directory does fire the demo...
    Even although in the Windows registry one finds HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Default HTML Editor shows the full path to the Windows notepad.exe, it is simply not using that information. You can't blame that on JWS.
    So: simply removing or renaming the shortcut helps you out. Or, even better: put a shortcut named Notepad on your desktop and make it refer to your favorite editor -- c:\program files\accessories\worpad.exe if you don't have anything better -- this will make searching the source code in IE much easier...
    Arjan.

  • How to set the view of a table to the last column?

    Hi all,
    I have a table that allows user to add rows to it. When the number of columns exceed the number of row the viewport can display, the freshest columns are not in the view.
    My question is, how do I force the viewport to view the last rows of the table as the table grows? Instead of just showing the starting rows?

    You're mixing columns and rows in your problem description, but
    something like the following should be close
    Rectangle rect = new Rectangle( table.getWidth()-1, table.getHeight()-1, 1, 1);
    table.scrollRectToVisible( rect );: jay

  • How to set the view format of the numbers in the tooltip.

    By default a graph will automatically format the axis view to be a scaled value.
    Example: 180321005 will show as 180 M on the axis label for the graph
    There is a way to set the scaling on the y-axis of a graph so that it will not be displayed as a scaled number.
    m_graph.getY1Axis().getViewFormat().setScaleFactor(BaseViewFormat.SCALEFACTOR_NONE);
    Now: Example: 180321005 will show as 180321005 on the axis label for the graph
    But is there a way to set the scaling factor for the pop up tooltip that appears when the user mouses over a point on the graph?
    Right now the tooltip view shows the y value as a scaled value; therefore, much of the number's percision is lost.
    Thanks,
    michelle

    Hello
    Did you find any soloution?

  • How to set the number of sockets for batch processing at runtime?

    Hello all,
    I need to change the execution model at runtime. I have achieved this by setting the 'ModelPath' property of the sequence file at runtime. When I set the sequence file model as batchmodel, i need to set the number of test sockets also dynamically. How can this be done? Once i set the number of sockets, i would also have to set the UUT serial number for each socket. Please help me out in solving this.
    Thanks and Regards
    Madhu Srinivasan.

    Hi Madhu,
        You can do this by inserting a sequence file callback into your main sequence and choose the ModelOptions callback. You can then use the expression step to set the "Parameters.ModelOptions.NumTestSockets" value to whatever you want. If you then use the Test UUTs execution entry point you will be prompted for serial numbers automatically. You could also use this same procedure but alter the ModelOptions callback in the process model directly, either way works just as well but I think that using a sequence file callback gives a bit more flexibility in the system.
    Hope this helps,
       Nick

  • How to stop the TR which has run a long time

    Hi,
    I released a TR, but the system import it a long time. I think maybe have a problem with it.
    I want to stop the import job of the TR. How can I do for that?
    jk

    hi,
    Q: How to kill a long running job in SAP.
    Answer
    You can 'kill' your own long running jobs by doing the following.
    Open a new SAP session.
    In the new session, from the SAP R/3 screen, follow the menu path: Tools>>Administration
    (new screen) Monitoring >>System monitoring>>User overview
    Fastpath:  /nsm04
    Result: the "Overview of Users" screen appears. This is a list of the jobs currently running.
    Find your username in the list and click on it
    Click on the Sessions button .
    Result: the Overview of Sessions screen appears.
    Click on the End session button .
    hi, ask your BASIS people for killing the job..
    regards
    vijay

  • How to set webApp path which has '/' in it.

    I am using WLS 5.1 on Windows and want to access my web application with URL prefix
    "http://localhost/demos/sample"
    weblogic.httpd.webApp.demos/sample=c:/WEBROOT/WEBAPPS/sample does not work.
    thanks,

    Hi,
    One way is you can pass the parameter in the URL , read the parameter and then fire the outbound plug depending upon that.
    You can read the parameters as follows
    HttpServletRequest request =Task.getCurrentTask()
         .getWebContextAdapter()
         .getHttpServletRequest();
    String[] param1 = request.getParameterValues("<<PARAMETRNAME");
    if(param1.equals("VALUE"))
      fire outbound plug1;
    Regards, Anilkumar

  • How to set the value of a data template parameter at runtime?

    I went through the document and found one line "A parameter is a variable whose value can be set at runtime.". But there is no further description or example about this feature.
    Can anyone tell how to do or show me a example?
    Thanks in advance

    Hi,
    define in the report-definition a parameter (for example p_deptno). This results in an entry in the xdo-file:
    <parameter id="p_deptno"> ....
    Define the same parameter in the Data Template ....
         <parameters>
    <parameter name="p_deptno" datatype="number"/>
    </parameters>
    and use this parameter in your Query:
    <sqlStatement name="QueryDept">
    <![CDATA[SELECT DEPTNO,DNAME,LOC FROM DEPT WHERE DEPTNO = :p_depnto]]>
    </sqlStatement>
    Regards
    Rainer

  • The toolbar which has the go back button, refresh button, etc. is gone. How do I get it back?

    The tool bar which has the url of the page I am on, go back button, refresh button, etc. is gone. How do I get it back?
    == This happened ==
    Just once or twice
    == a couple weeks ago.

    The toolbar which has the view button is also missing.

  • How to handle user preference which has "_" and " " in the name

    Hi Experts,
    I have a question how to handle value which has like "_" and "space" etc in user preference.
    If setting "a_b-c d", I could not retrieve this because it's escaped in database.
    So this code can't get value even though I can set it.
    Is there any restriction of name? Is there any documentation how to code user prefernece which has non alphabet and number in the name?
    I know it's possible to handle the data like adding escaped data. But I don't think this is the best way to retrieve the data. Because nobody confirm it's not problem in the future.
    Could you tell me the best way to get these user preference?
    Thanks in advance,
    Masaaki Tada
    Here is a sample.
    <%@ page contentType="text/html;charset=Shift_JIS" %><%@ page language="java" import="com.plumtree.remote.portlet.*, com.plumtree.remote.prc.*, java.util.*" %>
    <%
    /** * UserInfo - Simple Page * Display User Information*/
    // VariablesIPortletContext oPortletContext = null;IPortletRequest oPortletRequest = null;IPortletUser oPortletUser = null;IPortletResponse oPortletResponse = null;IRemoteSession s;IUserManager oUser;
    /* Get Portlet Objects */
    try{oPortletContext = PortletContextFactory.createPortletContext(request, response);oPortletRequest = oPortletContext.getRequest();oPortletUser = oPortletContext.getUser();oPortletResponse = oPortletContext.getResponse();} catch (Exception e) {oPortletContext = null;oPortletRequest = null;oPortletUser = null;oPortletResponse = null;}
    String val = oPortletRequest.getSettingValue( SettingType.User, "a_b-c d" );String hoe = oPortletRequest.getSettingValue( SettingType.User, "abcd" );out.println( "a_b-c d: " + val );out.println( "abcd : " + hoe );
    oPortletResponse.setSettingValue( SettingType.User, "a_b-c d", "aiueo" );oPortletResponse.setSettingValue( SettingType.User, "abcd", "bbbb" );%>

    Plumtree recommends that user preference names have only alphanumeric characters in them (a-z, A-Z, 0-9). Any non-alphanumeric characters will be encoded by the EDK.
    I strongly suggest that you change your user pref name to something that's alphanumeric. However, if that is not possible, you can use the following workaround: in the web service editor, enter the encoded name for the user pref. There are several ways to get the encoded name.
    One way is to encode the pref manually, yourself. Plumtree uses the %u encoded format: each non alphanumeric character is converted into %uxxxx, where xxxx is the Unicode representation of the character. For all ASCII characters, just look at the ASCII hex chart. For example, character "-" has a hex value of 2d. So, a preference name "jane_pref" would be encoded to "jane%u002dpref", and you'd enter the latter value on the preferences page in the web service editor.
    The other way to find out the encoded value is to set a preference programmatically and use the HTTP tunnel tool to look at HTTP traffic between the portal server and remote server. The remote server will be sending a HTTP header to the portal server (the header name will probably be CSP-User-Pref) and inside the header you should see the pref name, encoded with %u. Just copy it out of there and into the web service editor.
    Hope this helps,
    Jane

Maybe you are looking for