Dynamically changing the detail navigation

Hi all,
       can anyone please tell me how to change the detail navigation  dynamatically..
Regards,
Jeyasingh Samuel

Hi Srinivasa,
There are 2 things you can do:
(1) You can simply set the invisible property for the iViews (I think this is what you want).
You create a settings page which lists all the iViews, and when the user clicks a button, the page gets all the settings for all the iViews and sets the invisibility property for all of them.
The invisibility property indicates whether to display this object in the TLN/DTN.
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
env.put(Context.SECURITY_PRINCIPAL, request.getUser());
env.put(IPcdContext.PCD_PERSONALIZATION_PRINCIPAL, request.getUser());
iCtx = new InitialContext(env);
//Create loop of all objects 
    String pageID = "portal_content/DanielContent/DanRole/Folder1/Folder2/Page1";
    IPage myPage = (IPage)iCtx.lookup(pageID);
    myPage.putAttribute(IAttriView.ATTRIBUTE_NAVINVISIBLE,"true");
    myPage.save();
The above code is for a page, but you can do the same for an iView.
(2) If you iViews are in a page, and do not appear in the navigation tree, but you want to make them invisible, you can set this property on the iViews.
myIview.putAttribute(IAttriView.ATTRIBUTE_AVAILABILITY,IAttriViewValues.AVAILABILITY_VALUE_AVAILABLE);
myIview.save();
Either way, make sure to set the personalization environment variable when you do your PCD lookup, as shown above. Otherwise, the changes for one user will affect all users.
Hope this helps.
Daniel

Similar Messages

  • Changing the Detailed Navigation link

    Dear All,
    I need to change the Detailed Navigation link so that it is right aligned and the arrow image is followed after the link.
    Ex.    Sales Reports =>
    when it is opened then the following should be the view
              Sales Reports *
                       Report1  o
                       Report1  o
    Do let me know if this can be achieved by any theme settings; if not then what should be the approach for the same.
    Regards,
    Samir

    Hi Samir,
    This is not possible by just theme settings, For this you need to modify the Detailed Navigation Par file.
    Download the the Detailed Navigation par file open the jsp page and saw the columns .
    Regards,
    Piyush

  • Can you programmatically change properties of the Detailed Navigation?

    Is there an SAP EP6.0 API call to allow one to programmatically change the width of the Detailed Navigation, or programmatically hide or unhide it?  I realize that this can be preset, but I am interested in dynamically changing these values.
    Thanks,
    John

    Hi!
    If you look to the sourceCode of your EP (rigthClick->show source) you'll see that some JavaScriptFiles are loaded. One of them is called:
    "WAandNavPanel.js"
    Inside this file are some nice functions like "collapsePanel()" and so on. I didn't try, but perhaps you can use them or they can show you the right way.
    http://<host>:<port>/irj/portalapps/com.sap.portal.layouts.framework/scripts/WAandNavPanel.js
    Regards,
    Christian

  • Can't find services in the Detailed Navigation when open from Overview page

    Hi,
    We have developed a custom area page for our ESS application. The area is visible in the Overview page as well as in TLN (Top leavel navigation). When we open the area from TLN the services under this area are visible in the Detailed Navigation(DN) on the left. But when we are trying to open the area from the overview page we can't be able to see the services in the DN and we have realized that the focus is on "Overview" in the TLN. In DN also only the Overview link is coming. But for other standard ESS applications the focus in the TLN is changing.
    Please help to find the solution.
    Thanks,
    Sekhar

    Hi Sekhar,
    Did you get any solution for this issue. I am facing the same situation.Please advise.
    Thanks,
    -Ashwani

  • How can you set the default width of the 'Detailed Navigation iView'?

    Hello,
    we would like to reduce the default width of the 'Detailed Navigation iView' in order to save some screen space.
    So far, we havn't found the right item in the portal admin to do this.
    Any help would be much appreciated! Thanks in advance.
    Frank Schülke, E.ON Ruhrgas, Germany

    Hi Frank,
    You can change the width of this navigation iview  by changing the value of "defaultExpWidth" in the file WAandNAVPanel.js present in the par file com.sap.layouts.framework.par from default value 220 pixels to the value you want.
    upload the changed par file and restart the server.
    Hope this helps,
    (if not do get  back )
    Regards,
    Uma.
    Do award points for helpful answers in SDN!!!!!!!:-)

  • How can I add an iView to the Detailed Navigation itself

    How can I add an iView to the Detailed Navigation itself and hides the other hyperlinks?

    To add an iview on the Detailed navigation side of a page:
    1.Double click the page which brings up the page editor.
    2.Click the Display dropdown box and choose Dynamic Navigation.
    3.Add an ivew to it.Save and add the page to a role to see the results.
    if this is not u wanted, post back here.
    Regards.

  • Different links in the detailed navigation, based on URL alias

    <u>What I'm trying to do :</u>
    Based on URL aliases /irj/portal/individual or /irj/portal/business
    I will dynamically add an UME group to the already logged in user.
    <u>Filter :</u>
    If clicking on /irj/portal/individual I will store "group=individual" in the context, and add UME group individual, if clicking /irj/portal/business I will store "group=business" in the context, and add UME group business and remove individual, and then redirect to the same URL.
    <u>Configuration</u>
    Each UME group has a one-to-one mapping to a Portal role.
    I will place an ACL on the PCD content, based on group, hiding/showing aggregated folders, hanging under the roles.
    <u>Wanted end-result</u>
    Different links in the detailed navigation, based on URL alias.
    <b>My question is how you would implement the filter part, mentioned above ?</b>
    Portal app or J2EE servlet filter or something else ?

    Hi sunil,
       Create a JSPDynPage component(C) having 2 hbj:link whose hrefs point to these 2 iViews(A and B). U can get the href of the iView by previewing it(for A and B). Create an iview from the par component (C) and add it to the DLN so that it shows the links to ur iViews(A and B). U can make the Show Tray property of this iView (C) to false.
    Regards,
    Harini S

  • Dynamically change the document when the user opens it through a PDF Portfolio

    Hello
    I'm generating a PDF Portfolio using LiveCycle PDF Generator. I need to dynamically change the document that is presented when the user opens a PDF portfolio.
    Can anyone give ideas on how to accomplish this using the portfolio and navigator API?
    Thank you

    That was it. What an operating system. It is very helpful to view files you are looking for. But if you have preview on you cannot save files.

  • Expand all folders in the detailed navigation by default on click of Role

    Hi All,
    I have a requirement on expand all the folders in the detailed navigation by defalut when we click a Role in the Fist level navigation.
    Please have a look about our requirement as mentioned below.
    ->Role1(First Level Navigation)
       ->Wokset1(Second Level)
           -> Folder1(Detailed Navigation entry Folder)
                  -> Folder2
                       Page1
                       Page2
                  ->Folder3
                       Page3
                       Page4
                  -> Folder4
                       Page5
                       Page6
    When the user clicks on Role1 then automatically all the folders in the detailed navigation should be expanded by default then user could see all the pages displayed in all folders. currently the functionality is collapsed all the folders by default in the detailed navigation then user has to expand the folders manually.
    Regading this issue, i had seen couple of threads on the same but getting confusion what is the exact solution for the solution.
    in those existing threads some people has mentioned that need to change code in the lightdetailnavigation.par or some other mentioned that it is not worked out even do the required changes in the code of light detail navigation part file. there is no clarity in the existing threads for getting  the exact solution . please let me know what are the properties needs to be changed at folder level or workset level to make sure all the folders should be expanded by default in the detailed navigation??
    Currently we are using portal 7.0 version.
    Any pointers in this regard would be the great help to us??
    Thanks in advance.
    Regards,
    PortalUser
    Edited by: PortalUser100 on Jan 22, 2011 10:15 AM

    Hi,
    To expand all the folder by default, we need to set the property of the detailed navigation tree.
    Open your framework page in the content administration.
    Check on the detailed navigation check box and click on the properties button.
    In the properties, set the value of initial state= OPEN .
    This will expand all the folders by default.
    Hope you understood.
    Regards
    Nishant

  • Access the detailed navigation link using webdynpro

    Hi,
    I have a requirement where we have two different DC's of which one is a standard DC and the other one is custom DC with one application in each of them.My requirement is to navigate to the other application in the second DC directly on clik of a link or button from the current application.Also since these applications are displayed in detailed navigation i want to access the detailed navigation link location and activate the other Application instead of using WDPortalNaviagtion.
    The steps are:
    Development Component - DC1 - This is custom DC
    with application APP1
    Development Component -DC2 - This is standard
    with application APP2
    I have APP1 & APP2 in the detailed navigation.
    If i have a link or button in APP1 to navigate to APP2 i have to be able to activate the link on the detailed Navigation of APP2 to open up its content.

    Hi Swathi,
    Check the following threads:--
    Replace an iView dynamically by another one by portal navigating service
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1aa4d188-0e01-0010-2382-c5c65202c433
    http://help.sap.com/saphelp_nw04/helpdata/en/43/d1233b4c1d0a85e10000000a1553f6/frameset.htm
    Hope This Will Help
    Regards,
    Siddharth

  • Changing the Portal Navigation structure

    Hello everyone,
    I am also trying to modify the Portal general look and feel. I want to change the portal navigation structure (not just the themes and templates) the way first and second level navigation has been arranged. Do you have any idea as to how to do this?
    One example could be, can I center all the second level navigation items. Can I modify the tab separators etc.
    Would appreciate any help.
    Regards,
    Deepak Shankar

    hello
    Refer following links for portal login page change..
    Portal Customizations Intro - Login Part 1
    Portal Customizations Intro - Login Part 2
    A fast and easy Portal logon page customizing
    <b>Customizing the Logon Screens</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/23/c0e240beb0702ae10000000a155106/frameset.htm
    <b>Changing the authschemes.xml File.</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/3afd4e641b8f42ac07bb77fe30375b/frameset.htm
    <b>Display Animated Logo in the Portal Login Branding Image dynamically: </b>Display Animated Logo in the Portal Login Branding Image dynamically
    Display Animated Logo in the Portal Login Branding Image dynamically: Display Animated Logo in the Portal Login Branding Image dynamically
    The standard logon component containing the code and resources used by the logon screens is shipped in a portal archive (PAR) file named com.sap.portal.runtime.logon.par.
    Import the par file as a project in NWDS. Browse through the tree structure of the project. In the PORTAL-INF folder, various jsps are available.
    1)umLogonPage.jsp
    2)umLogonCertPage.jsp
    3)umResetPasswordPage.jsp
    4)changePasswordPage.jsp
    5)umHelpPage.jsp
    6)umLogonProblemPage.jsp
    7)umLogoffPage.jsp
    8)umLogonTopArea.txt
    9)umLogonBotArea.txt.
    Inorder to change the images, text in the logon page you need to edit Files 1,8,9
    The SAP logo is referenced in umLogonBotArea.txt as sapLogo.gif.
    The branding image branding-image.jpg is referenced in umLogonBotArea.txt.
    Edit the images name in these files and put your new images in the layout folder of the project.
    If u want to remove the " register now" option in the logon screen, remove the self registration tag in the umLogonPage.jsp
    Cheers..
    Chinmaya
    Reward for helpful answers

  • How to dynamically change the text of a TextObject with embedded DataField?

    Hi
    I'm trying to dynamically change the text of a TextObject at runtime, by using the .NET library. My problem is that if one or more DatabaseFieldDefinition is embedded inside my text, I'm unable to change the "static text" only, by keeping the field, e.g. I have :
    Text1 => "Contact Name: {Contact.Name}"
    and I'd like to change it to anything else like:
    Text1 => "Nom du Contact: {Contact.Name}"
    Half of my TextObject is static text while second part comes from the dataset.
    (of course the translation is dynamic - it is called at run-time and the new value to be set depends on the calling application language)
    If I simply modify the Text property of my TextObject, the {Contact.Name} embedded field is not evaluated anymore by the Crystal Engine, but considered as a single text.
    Using formulas or parameters looks quite difficult, because it means having many ones just for translation needs - I cannot control the way my users will create their reports and "force them" to use complex methods just in order to put a text and a value together...
    Anyone knows how to deal with that ?

    Only way I can think of doing this:
    1) Create a formula (call it lang) and enter the string "Contact Name" in it
    2) Place the  {Contact.Name} field next to the string
    3) So now you have:
    ContactName:  {Contact.Name}
    4) Check what localization you are after. If you need "Nom du Contact", change the lang formula so it shows "Nom du Contact" using the code below:
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Public Class Form1
    Inherits System.Windows.Forms.Form
    Dim Report As New CrystalReport1()
    Dim FormulaFields As FormulaFieldDefinitions
    Dim FormulaField As FormulaFieldDefinition
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    FormulaFields = Report.DataDefinition.FormulaFields
    FormulaField = FormulaFields.Item(0)
    FormulaField.Text = "[formula text]"
    CrystalReportViewer1.ReportSource = Report
    End Sub
    I realize this may not give you consistent spacing as the translations may have strings of differnt length. Perhaps someone has other idea(s)...

  • Dynamically change the Binding of a view object

    I want to reuse a panel several times in my application. The VO has one bind parameter (:1). The same panel should be reused several times with different bind variables.
    I found a technical note concerning this issue called: How to Dynamically Change the binding of a View Object to a JClient Panel. This works for JDeveloper 9i but not for JDeveloper 19g. Does anybody know how to dynamically change the binding in JDeveloper 10g

    You may use bindRowSetIterator() and pass in a custom fetched ViewObject or a RowSetIterator to the iterator binding that is displayed in your panel.

  • Dynamically change the Priority Group of Logical Table Sources in OBIEE 11g

    Hi All,
    I have 2 Logical Table Sources(LTS 1 and LTS 2 for a Logical Table in BMM Layer).
    Example: Logical Table : Sample
    LTS Source 1 : Sample 1(Priority Group Set to 1)
    LTS Source 2 : Sample 2(Priority Group Set to 0)
    I have set the Priority Group of Sample 1 LTS Source to 1 and Priority Group of Sample 2 LTS Source to 0.
    I need to dynamically change the Priority Group of Sample 1 LTS Source to 0 if my role is DEVELOPER where role is a column in database.
    If my role is not equal to DEVELOPER then the Priority Group of Sample 1 LTS Source will remain same(1).
    Please suggest how can i achieve this.
    Thanks,
    Soukath Ali

    hello Soukath Ali,
    didi you find a way to dinamically changing Priority Group?
    thanks,
    Maria Teresa Marchetti

  • Dynamically changing the name of the .dll file to load in call Library

    Our current model is to use dll files as "plug-in" modules for instruments and a top layer test step calls the appropriate driver dll.
    For instance
    the TestStep is called with the kenmore.dll passed as a parameter so the kenmore.dll file is loaded, the functions are registered and the functions are called.  Next the TestStep is called with whirlpool.dll as a parameter now the whirlpool.dll is loaded the functions are registered and the functions are called.  This works very well in our current CVI/LabWindows environment.  Now we plan to work with LabView, we wish to retain this model (as DLL files, there are advantages in our model for us).  We have not found a way to load these dll files from LabView without hard coding the path and filenames in.
    Any suggestions on how to dynamically change the path in the Call Library module, or another suggested method of loading the dll via LabView?
    Thanks,

    John Stuart wrote:
    Our current model is to
    use dll files as "plug-in" modules for instruments and a top layer test
    step calls the appropriate driver dll.
    For instance
    the TestStep is called with the kenmore.dll passed as
    a parameter so the kenmore.dll file is loaded, the functions are
    registered and the functions are called.  Next the TestStep is
    called with whirlpool.dll as a parameter now the whirlpool.dll is
    loaded the functions are registered and the functions are called. 
    This works very well in our current CVI/LabWindows environment. 
    Now we plan to work with LabView, we wish to retain this model (as DLL
    files, there are advantages in our model for us).  We have not
    found a way to load these dll files from LabView without hard coding
    the path and filenames in.
    Any suggestions on how to dynamically change the path in the Call
    Library module, or another suggested method of loading the dll via
    LabView?
    Thanks,
    As Ben has pointed out LabVIEW
    scripting may be a possibility but you are going with that in highly
    unsupported area. Also I happen to know that changing the library name
    of a Call Library Node through scripting has produced unsupported
    feature errors previous to LabVIEW 7.1 eventhough the method was there.
    And LabVIEW 8 hides the whole scripting business behind the license
    manager.
    Another approach at least if the different DLLs do not change to often
    thier functions and parameters would be to create a wrapper DLL. Have
    it a method that loads the desired DLL and links its functions to
    internal function pointers. Then when calling the actual function entry
    points just redirect directly to the correct fucntion through that
    function pointer. Since you are already working in CVI creating such a
    DLL should be only a matter of taking out a little bit of your already
    existing code and put it into a DLL project.
    Rolf Kalbermatter
    Message Edited by rolfk on 04-12-2006 07:40 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for